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 | d5cdbeb | 2005-10-10 20:59:28 +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 MOC KDE_CONFIG KDE_LIBS KDE_INCLUDES KDE_PREFIX CXX CXXFLAGS ac_ct_CXX QT_LIBS QT_INCLUDES ROOTQT GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG 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 |
| 773 | ac_env_CXX_set=${CXX+set} |
| 774 | ac_env_CXX_value=$CXX |
| 775 | ac_cv_env_CXX_set=${CXX+set} |
| 776 | ac_cv_env_CXX_value=$CXX |
| 777 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 778 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 779 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 780 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 781 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 782 | # |
| 783 | # Report the --help message. |
| 784 | # |
| 785 | if test "$ac_init_help" = "long"; then |
| 786 | # Omit some internal or obsolete options to make the list less imposing. |
| 787 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 788 | cat <<_ACEOF |
| 789 | \`configure' configures this package to adapt to many kinds of systems. |
| 790 | |
| 791 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 792 | |
| 793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 794 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 795 | |
| 796 | Defaults for the options are specified in brackets. |
| 797 | |
| 798 | Configuration: |
| 799 | -h, --help display this help and exit |
| 800 | --help=short display options specific to this package |
| 801 | --help=recursive display the short help of all the included packages |
| 802 | -V, --version display version information and exit |
| 803 | -q, --quiet, --silent do not print \`checking...' messages |
| 804 | --cache-file=FILE cache test results in FILE [disabled] |
| 805 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 806 | -n, --no-create do not create output files |
| 807 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 808 | |
| 809 | _ACEOF |
| 810 | |
| 811 | cat <<_ACEOF |
| 812 | Installation directories: |
| 813 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 814 | [$ac_default_prefix] |
| 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 816 | [PREFIX] |
| 817 | |
| 818 | By default, \`make install' will install all the files in |
| 819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 821 | for instance \`--prefix=\$HOME'. |
| 822 | |
| 823 | For better control, use the options below. |
| 824 | |
| 825 | Fine tuning of the installation directories: |
| 826 | --bindir=DIR user executables [EPREFIX/bin] |
| 827 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 828 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 833 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 834 | --includedir=DIR C header files [PREFIX/include] |
| 835 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 836 | --infodir=DIR info documentation [PREFIX/info] |
| 837 | --mandir=DIR man documentation [PREFIX/man] |
| 838 | _ACEOF |
| 839 | |
| 840 | cat <<\_ACEOF |
| 841 | |
| 842 | X features: |
| 843 | --x-includes=DIR X include files are in DIR |
| 844 | --x-libraries=DIR X library files are in DIR |
| 845 | _ACEOF |
| 846 | fi |
| 847 | |
| 848 | if test -n "$ac_init_help"; then |
| 849 | |
| 850 | cat <<\_ACEOF |
| 851 | |
| 852 | Optional Features: |
| 853 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 854 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 855 | --disable-darwin Disable Darwin (Mac OS X) support. |
| 856 | --disable-xsmp Disable XSMP session management |
| 857 | --disable-xsmp-interact Disable XSMP interaction |
| 858 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 859 | --enable-perlinterp Include Perl interpreter. |
| 860 | --enable-pythoninterp Include Python interpreter. |
| 861 | --enable-tclinterp Include Tcl interpreter. |
| 862 | --enable-rubyinterp Include Ruby interpreter. |
| 863 | --enable-cscope Include cscope interface. |
| 864 | --enable-workshop Include Sun Visual Workshop support. |
| 865 | --disable-netbeans Disable NetBeans integration support. |
| 866 | --enable-sniff Include Sniff interface. |
| 867 | --enable-multibyte Include multibyte editing support. |
| 868 | --enable-hangulinput Include Hangul input support. |
| 869 | --enable-xim Include XIM input support. |
| 870 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 871 | --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/photon/carbon |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 872 | --enable-kde-check If auto-select GUI, check for KDE default=no |
| 873 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 874 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 875 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 876 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 877 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 878 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 879 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
| 880 | --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar default=no |
| 881 | --disable-rpath Disable rpath. |
| 882 | --disable-kdetest Do not try to compile and run a test KDE program |
| 883 | --disable-gtktest Do not try to compile and run a test GTK program |
| 884 | --disable-acl Don't check for ACL support. |
| 885 | --disable-gpm Don't use gpm (Linux mouse daemon). |
| 886 | --disable-nls Don't support NLS (gettext()). |
| 887 | |
| 888 | Optional Packages: |
| 889 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 890 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 891 | --with-vim-name=NAME what to call the Vim executable |
| 892 | --with-ex-name=NAME what to call the Ex executable |
| 893 | --with-view-name=NAME what to call the View executable |
| 894 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 895 | --with-modified-by=NAME name of who modified a release version |
| 896 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 897 | --with-compiledby=NAME name to show in :version message |
| 898 | --with-plthome=PLTHOME Use PLTHOME. |
| 899 | --with-python-config-dir=PATH Python's config directory |
| 900 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 901 | --with-x use the X Window System |
| 902 | --with-qt-dir=DIR Specify prefix of QT files |
| 903 | --with-qt-includes=DIR Specify location of Qt headers |
| 904 | --with-qt-libs=DIR Specify location of Qt libraries |
| 905 | --with-kde-prefix=PFX Prefix where KDE is installed (optional) |
| 906 | --with-kde-includes=DIR Specify location of KDE headers |
| 907 | --with-kde-libs=DIR Specify location of KDE libraries |
| 908 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 909 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 910 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 911 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 912 | --with-gnome Specify prefix for GNOME files |
| 913 | --with-motif-lib=STRING Library for Motif |
| 914 | --with-tlib=library terminal library to be used |
| 915 | |
| 916 | Some influential environment variables: |
| 917 | CC C compiler command |
| 918 | CFLAGS C compiler flags |
| 919 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 920 | nonstandard directory <lib dir> |
| 921 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 922 | headers in a nonstandard directory <include dir> |
| 923 | CPP C preprocessor |
| 924 | CXX C++ compiler command |
| 925 | CXXFLAGS C++ compiler flags |
| 926 | |
| 927 | Use these variables to override the choices made by `configure' or to help |
| 928 | it to find libraries and programs with nonstandard names/locations. |
| 929 | |
| 930 | _ACEOF |
| 931 | fi |
| 932 | |
| 933 | if test "$ac_init_help" = "recursive"; then |
| 934 | # If there are subdirs, report their specific --help. |
| 935 | ac_popdir=`pwd` |
| 936 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 937 | test -d $ac_dir || continue |
| 938 | ac_builddir=. |
| 939 | |
| 940 | if test "$ac_dir" != .; then |
| 941 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 942 | # A "../" for each directory in $ac_dir_suffix. |
| 943 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 944 | else |
| 945 | ac_dir_suffix= ac_top_builddir= |
| 946 | fi |
| 947 | |
| 948 | case $srcdir in |
| 949 | .) # No --srcdir option. We are building in place. |
| 950 | ac_srcdir=. |
| 951 | if test -z "$ac_top_builddir"; then |
| 952 | ac_top_srcdir=. |
| 953 | else |
| 954 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 955 | fi ;; |
| 956 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 957 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 958 | ac_top_srcdir=$srcdir ;; |
| 959 | *) # Relative path. |
| 960 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 961 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 962 | esac |
| 963 | |
| 964 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 965 | # the directories may not exist. |
| 966 | case `pwd` in |
| 967 | .) ac_abs_builddir="$ac_dir";; |
| 968 | *) |
| 969 | case "$ac_dir" in |
| 970 | .) ac_abs_builddir=`pwd`;; |
| 971 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 972 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 973 | esac;; |
| 974 | esac |
| 975 | case $ac_abs_builddir in |
| 976 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 977 | *) |
| 978 | case ${ac_top_builddir}. in |
| 979 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 980 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 981 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 982 | esac;; |
| 983 | esac |
| 984 | case $ac_abs_builddir in |
| 985 | .) ac_abs_srcdir=$ac_srcdir;; |
| 986 | *) |
| 987 | case $ac_srcdir in |
| 988 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 989 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 990 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 991 | esac;; |
| 992 | esac |
| 993 | case $ac_abs_builddir in |
| 994 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 995 | *) |
| 996 | case $ac_top_srcdir in |
| 997 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 998 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 999 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1000 | esac;; |
| 1001 | esac |
| 1002 | |
| 1003 | cd $ac_dir |
| 1004 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1005 | if test -f $ac_srcdir/configure.gnu; then |
| 1006 | echo |
| 1007 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1008 | elif test -f $ac_srcdir/configure; then |
| 1009 | echo |
| 1010 | $SHELL $ac_srcdir/configure --help=recursive |
| 1011 | elif test -f $ac_srcdir/configure.ac || |
| 1012 | test -f $ac_srcdir/configure.in; then |
| 1013 | echo |
| 1014 | $ac_configure --help |
| 1015 | else |
| 1016 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1017 | fi |
| 1018 | cd $ac_popdir |
| 1019 | done |
| 1020 | fi |
| 1021 | |
| 1022 | test -n "$ac_init_help" && exit 0 |
| 1023 | if $ac_init_version; then |
| 1024 | cat <<\_ACEOF |
| 1025 | |
| 1026 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1027 | This configure script is free software; the Free Software Foundation |
| 1028 | gives unlimited permission to copy, distribute and modify it. |
| 1029 | _ACEOF |
| 1030 | exit 0 |
| 1031 | fi |
Bram Moolenaar | 78984f5 | 2005-08-01 07:19:10 +0000 | [diff] [blame] | 1032 | exec 5>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1033 | cat >&5 <<_ACEOF |
| 1034 | This file contains any messages produced by compilers while |
| 1035 | running configure, to aid debugging if configure makes a mistake. |
| 1036 | |
| 1037 | It was created by $as_me, which was |
| 1038 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1039 | |
| 1040 | $ $0 $@ |
| 1041 | |
| 1042 | _ACEOF |
| 1043 | { |
| 1044 | cat <<_ASUNAME |
| 1045 | ## --------- ## |
| 1046 | ## Platform. ## |
| 1047 | ## --------- ## |
| 1048 | |
| 1049 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1050 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1051 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1052 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1053 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1054 | |
| 1055 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1056 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1057 | |
| 1058 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1059 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1060 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1061 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1062 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1063 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1064 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1065 | |
| 1066 | _ASUNAME |
| 1067 | |
| 1068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1069 | for as_dir in $PATH |
| 1070 | do |
| 1071 | IFS=$as_save_IFS |
| 1072 | test -z "$as_dir" && as_dir=. |
| 1073 | echo "PATH: $as_dir" |
| 1074 | done |
| 1075 | |
| 1076 | } >&5 |
| 1077 | |
| 1078 | cat >&5 <<_ACEOF |
| 1079 | |
| 1080 | |
| 1081 | ## ----------- ## |
| 1082 | ## Core tests. ## |
| 1083 | ## ----------- ## |
| 1084 | |
| 1085 | _ACEOF |
| 1086 | |
| 1087 | |
| 1088 | # Keep a trace of the command line. |
| 1089 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1090 | # Strip out --silent because we don't want to record it for future runs. |
| 1091 | # Also quote any args containing shell meta-characters. |
| 1092 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1093 | ac_configure_args= |
| 1094 | ac_configure_args0= |
| 1095 | ac_configure_args1= |
| 1096 | ac_sep= |
| 1097 | ac_must_keep_next=false |
| 1098 | for ac_pass in 1 2 |
| 1099 | do |
| 1100 | for ac_arg |
| 1101 | do |
| 1102 | case $ac_arg in |
| 1103 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1104 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1105 | | -silent | --silent | --silen | --sile | --sil) |
| 1106 | continue ;; |
| 1107 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1108 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1109 | esac |
| 1110 | case $ac_pass in |
| 1111 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1112 | 2) |
| 1113 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1114 | if test $ac_must_keep_next = true; then |
| 1115 | ac_must_keep_next=false # Got value, back to normal. |
| 1116 | else |
| 1117 | case $ac_arg in |
| 1118 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1119 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1120 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1121 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1122 | case "$ac_configure_args0 " in |
| 1123 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1124 | esac |
| 1125 | ;; |
| 1126 | -* ) ac_must_keep_next=true ;; |
| 1127 | esac |
| 1128 | fi |
| 1129 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1130 | # Get rid of the leading space. |
| 1131 | ac_sep=" " |
| 1132 | ;; |
| 1133 | esac |
| 1134 | done |
| 1135 | done |
| 1136 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1137 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1138 | |
| 1139 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1140 | # config.log. We remove comments because anyway the quotes in there |
| 1141 | # would cause problems or look ugly. |
| 1142 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1143 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1144 | trap 'exit_status=$? |
| 1145 | # Save into config.log some information that might help in debugging. |
| 1146 | { |
| 1147 | echo |
| 1148 | |
| 1149 | cat <<\_ASBOX |
| 1150 | ## ---------------- ## |
| 1151 | ## Cache variables. ## |
| 1152 | ## ---------------- ## |
| 1153 | _ASBOX |
| 1154 | echo |
| 1155 | # The following way of writing the cache mishandles newlines in values, |
| 1156 | { |
| 1157 | (set) 2>&1 | |
| 1158 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1159 | *ac_space=\ *) |
| 1160 | sed -n \ |
| 1161 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1162 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1163 | ;; |
| 1164 | *) |
| 1165 | sed -n \ |
| 1166 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1167 | ;; |
| 1168 | esac; |
| 1169 | } |
| 1170 | echo |
| 1171 | |
| 1172 | cat <<\_ASBOX |
| 1173 | ## ----------------- ## |
| 1174 | ## Output variables. ## |
| 1175 | ## ----------------- ## |
| 1176 | _ASBOX |
| 1177 | echo |
| 1178 | for ac_var in $ac_subst_vars |
| 1179 | do |
| 1180 | eval ac_val=$`echo $ac_var` |
| 1181 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1182 | done | sort |
| 1183 | echo |
| 1184 | |
| 1185 | if test -n "$ac_subst_files"; then |
| 1186 | cat <<\_ASBOX |
| 1187 | ## ------------- ## |
| 1188 | ## Output files. ## |
| 1189 | ## ------------- ## |
| 1190 | _ASBOX |
| 1191 | echo |
| 1192 | for ac_var in $ac_subst_files |
| 1193 | do |
| 1194 | eval ac_val=$`echo $ac_var` |
| 1195 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1196 | done | sort |
| 1197 | echo |
| 1198 | fi |
| 1199 | |
| 1200 | if test -s confdefs.h; then |
| 1201 | cat <<\_ASBOX |
| 1202 | ## ----------- ## |
| 1203 | ## confdefs.h. ## |
| 1204 | ## ----------- ## |
| 1205 | _ASBOX |
| 1206 | echo |
| 1207 | sed "/^$/d" confdefs.h | sort |
| 1208 | echo |
| 1209 | fi |
| 1210 | test "$ac_signal" != 0 && |
| 1211 | echo "$as_me: caught signal $ac_signal" |
| 1212 | echo "$as_me: exit $exit_status" |
| 1213 | } >&5 |
| 1214 | rm -f core *.core && |
| 1215 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1216 | exit $exit_status |
| 1217 | ' 0 |
| 1218 | for ac_signal in 1 2 13 15; do |
| 1219 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1220 | done |
| 1221 | ac_signal=0 |
| 1222 | |
| 1223 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1224 | rm -rf conftest* confdefs.h |
| 1225 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1226 | echo >confdefs.h |
| 1227 | |
| 1228 | # Predefined preprocessor variables. |
| 1229 | |
| 1230 | cat >>confdefs.h <<_ACEOF |
| 1231 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1232 | _ACEOF |
| 1233 | |
| 1234 | |
| 1235 | cat >>confdefs.h <<_ACEOF |
| 1236 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1237 | _ACEOF |
| 1238 | |
| 1239 | |
| 1240 | cat >>confdefs.h <<_ACEOF |
| 1241 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1242 | _ACEOF |
| 1243 | |
| 1244 | |
| 1245 | cat >>confdefs.h <<_ACEOF |
| 1246 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1247 | _ACEOF |
| 1248 | |
| 1249 | |
| 1250 | cat >>confdefs.h <<_ACEOF |
| 1251 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1252 | _ACEOF |
| 1253 | |
| 1254 | |
| 1255 | # Let the site file select an alternate cache file if it wants to. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1256 | # Prefer explicitly selected file to automatically selected ones. |
| 1257 | if test -z "$CONFIG_SITE"; then |
| 1258 | if test "x$prefix" != xNONE; then |
| 1259 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1260 | else |
| 1261 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1262 | fi |
| 1263 | fi |
| 1264 | for ac_site_file in $CONFIG_SITE; do |
| 1265 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1266 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1267 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1268 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1269 | . "$ac_site_file" |
| 1270 | fi |
| 1271 | done |
| 1272 | |
| 1273 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1274 | # Some versions of bash will fail to source /dev/null (special |
| 1275 | # files actually), so we avoid doing that. |
| 1276 | if test -f "$cache_file"; then |
| 1277 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1278 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1279 | case $cache_file in |
| 1280 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1281 | *) . ./$cache_file;; |
| 1282 | esac |
| 1283 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1284 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1285 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1286 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1287 | >$cache_file |
| 1288 | fi |
| 1289 | |
| 1290 | # Check that the precious variables saved in the cache have kept the same |
| 1291 | # value. |
| 1292 | ac_cache_corrupted=false |
| 1293 | for ac_var in `(set) 2>&1 | |
| 1294 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1295 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1296 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1297 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1298 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1299 | case $ac_old_set,$ac_new_set in |
| 1300 | set,) |
| 1301 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1302 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1303 | ac_cache_corrupted=: ;; |
| 1304 | ,set) |
| 1305 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1306 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1307 | ac_cache_corrupted=: ;; |
| 1308 | ,);; |
| 1309 | *) |
| 1310 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1311 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1312 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1313 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1314 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1315 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1316 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1317 | ac_cache_corrupted=: |
| 1318 | fi;; |
| 1319 | esac |
| 1320 | # Pass precious variables to config.status. |
| 1321 | if test "$ac_new_set" = set; then |
| 1322 | case $ac_new_val in |
| 1323 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1324 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1325 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1326 | esac |
| 1327 | case " $ac_configure_args " in |
| 1328 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1329 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1330 | esac |
| 1331 | fi |
| 1332 | done |
| 1333 | if $ac_cache_corrupted; then |
| 1334 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1335 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1336 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1337 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1338 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1339 | fi |
| 1340 | |
| 1341 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1342 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1346 | |
| 1347 | |
| 1348 | |
| 1349 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1350 | |
| 1351 | |
| 1352 | |
| 1353 | |
| 1354 | |
| 1355 | |
| 1356 | |
| 1357 | |
| 1358 | |
| 1359 | |
| 1360 | |
| 1361 | |
| 1362 | |
| 1363 | |
| 1364 | |
| 1365 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
| 1366 | |
| 1367 | |
| 1368 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1369 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1370 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1371 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1372 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1373 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1374 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1375 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1377 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1378 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1379 | all: |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1380 | @echo 'ac_maketemp="$(MAKE)"' |
| 1381 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1382 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1383 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1384 | if test -n "$ac_maketemp"; then |
| 1385 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1386 | else |
| 1387 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1388 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1389 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1390 | fi |
| 1391 | 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] | 1392 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1393 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1394 | SET_MAKE= |
| 1395 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1396 | echo "$as_me:$LINENO: result: no" >&5 |
| 1397 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1398 | SET_MAKE="MAKE=${MAKE-make}" |
| 1399 | fi |
| 1400 | |
| 1401 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1402 | ac_ext=c |
| 1403 | ac_cpp='$CPP $CPPFLAGS' |
| 1404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1407 | if test -n "$ac_tool_prefix"; then |
| 1408 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1409 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1410 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1412 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1414 | else |
| 1415 | if test -n "$CC"; then |
| 1416 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1417 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1419 | for as_dir in $PATH |
| 1420 | do |
| 1421 | IFS=$as_save_IFS |
| 1422 | test -z "$as_dir" && as_dir=. |
| 1423 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1425 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1427 | break 2 |
| 1428 | fi |
| 1429 | done |
| 1430 | done |
| 1431 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1432 | fi |
| 1433 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1434 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1435 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1436 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1437 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1438 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1439 | echo "$as_me:$LINENO: result: no" >&5 |
| 1440 | echo "${ECHO_T}no" >&6 |
| 1441 | fi |
| 1442 | |
| 1443 | fi |
| 1444 | if test -z "$ac_cv_prog_CC"; then |
| 1445 | ac_ct_CC=$CC |
| 1446 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1447 | set dummy gcc; ac_word=$2 |
| 1448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1450 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1452 | else |
| 1453 | if test -n "$ac_ct_CC"; then |
| 1454 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1455 | else |
| 1456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1457 | for as_dir in $PATH |
| 1458 | do |
| 1459 | IFS=$as_save_IFS |
| 1460 | test -z "$as_dir" && as_dir=. |
| 1461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1463 | ac_cv_prog_ac_ct_CC="gcc" |
| 1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1465 | break 2 |
| 1466 | fi |
| 1467 | done |
| 1468 | done |
| 1469 | |
| 1470 | fi |
| 1471 | fi |
| 1472 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1473 | if test -n "$ac_ct_CC"; then |
| 1474 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1475 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1476 | else |
| 1477 | echo "$as_me:$LINENO: result: no" >&5 |
| 1478 | echo "${ECHO_T}no" >&6 |
| 1479 | fi |
| 1480 | |
| 1481 | CC=$ac_ct_CC |
| 1482 | else |
| 1483 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1484 | fi |
| 1485 | |
| 1486 | if test -z "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1487 | if test -n "$ac_tool_prefix"; then |
| 1488 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1489 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1492 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1494 | else |
| 1495 | if test -n "$CC"; then |
| 1496 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1497 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1499 | for as_dir in $PATH |
| 1500 | do |
| 1501 | IFS=$as_save_IFS |
| 1502 | test -z "$as_dir" && as_dir=. |
| 1503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1505 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1507 | break 2 |
| 1508 | fi |
| 1509 | done |
| 1510 | done |
| 1511 | |
| 1512 | fi |
| 1513 | fi |
| 1514 | CC=$ac_cv_prog_CC |
| 1515 | if test -n "$CC"; then |
| 1516 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1517 | echo "${ECHO_T}$CC" >&6 |
| 1518 | else |
| 1519 | echo "$as_me:$LINENO: result: no" >&5 |
| 1520 | echo "${ECHO_T}no" >&6 |
| 1521 | fi |
| 1522 | |
| 1523 | fi |
| 1524 | if test -z "$ac_cv_prog_CC"; then |
| 1525 | ac_ct_CC=$CC |
| 1526 | # Extract the first word of "cc", so it can be a program name with args. |
| 1527 | set dummy cc; ac_word=$2 |
| 1528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1530 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1532 | else |
| 1533 | if test -n "$ac_ct_CC"; then |
| 1534 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1535 | else |
| 1536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1537 | for as_dir in $PATH |
| 1538 | do |
| 1539 | IFS=$as_save_IFS |
| 1540 | test -z "$as_dir" && as_dir=. |
| 1541 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1543 | ac_cv_prog_ac_ct_CC="cc" |
| 1544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1545 | break 2 |
| 1546 | fi |
| 1547 | done |
| 1548 | done |
| 1549 | |
| 1550 | fi |
| 1551 | fi |
| 1552 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1553 | if test -n "$ac_ct_CC"; then |
| 1554 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1555 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1556 | else |
| 1557 | echo "$as_me:$LINENO: result: no" >&5 |
| 1558 | echo "${ECHO_T}no" >&6 |
| 1559 | fi |
| 1560 | |
| 1561 | CC=$ac_ct_CC |
| 1562 | else |
| 1563 | CC="$ac_cv_prog_CC" |
| 1564 | fi |
| 1565 | |
| 1566 | fi |
| 1567 | if test -z "$CC"; then |
| 1568 | # Extract the first word of "cc", so it can be a program name with args. |
| 1569 | set dummy cc; ac_word=$2 |
| 1570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1572 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1574 | else |
| 1575 | if test -n "$CC"; then |
| 1576 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1577 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1578 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1580 | for as_dir in $PATH |
| 1581 | do |
| 1582 | IFS=$as_save_IFS |
| 1583 | test -z "$as_dir" && as_dir=. |
| 1584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1586 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1587 | ac_prog_rejected=yes |
| 1588 | continue |
| 1589 | fi |
| 1590 | ac_cv_prog_CC="cc" |
| 1591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1592 | break 2 |
| 1593 | fi |
| 1594 | done |
| 1595 | done |
| 1596 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1597 | if test $ac_prog_rejected = yes; then |
| 1598 | # We found a bogon in the path, so make sure we never use it. |
| 1599 | set dummy $ac_cv_prog_CC |
| 1600 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1601 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1602 | # We chose a different compiler from the bogus one. |
| 1603 | # However, it has the same basename, so the bogon will be chosen |
| 1604 | # first if we set CC to just the basename; use the full file name. |
| 1605 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1606 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1607 | fi |
| 1608 | fi |
| 1609 | fi |
| 1610 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1611 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1612 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1613 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1614 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1615 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1616 | echo "$as_me:$LINENO: result: no" >&5 |
| 1617 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1618 | fi |
| 1619 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1620 | fi |
| 1621 | if test -z "$CC"; then |
| 1622 | if test -n "$ac_tool_prefix"; then |
| 1623 | for ac_prog in cl |
| 1624 | do |
| 1625 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1626 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1629 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1631 | else |
| 1632 | if test -n "$CC"; then |
| 1633 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1634 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1636 | for as_dir in $PATH |
| 1637 | do |
| 1638 | IFS=$as_save_IFS |
| 1639 | test -z "$as_dir" && as_dir=. |
| 1640 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1642 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1644 | break 2 |
| 1645 | fi |
| 1646 | done |
| 1647 | done |
| 1648 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1649 | fi |
| 1650 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1651 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1652 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1653 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1654 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1655 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1656 | echo "$as_me:$LINENO: result: no" >&5 |
| 1657 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1658 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1659 | |
| 1660 | test -n "$CC" && break |
| 1661 | done |
| 1662 | fi |
| 1663 | if test -z "$CC"; then |
| 1664 | ac_ct_CC=$CC |
| 1665 | for ac_prog in cl |
| 1666 | do |
| 1667 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1668 | set dummy $ac_prog; ac_word=$2 |
| 1669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1671 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1673 | else |
| 1674 | if test -n "$ac_ct_CC"; then |
| 1675 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1676 | else |
| 1677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1678 | for as_dir in $PATH |
| 1679 | do |
| 1680 | IFS=$as_save_IFS |
| 1681 | test -z "$as_dir" && as_dir=. |
| 1682 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1684 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1686 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1687 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1688 | done |
| 1689 | done |
| 1690 | |
| 1691 | fi |
| 1692 | fi |
| 1693 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1694 | if test -n "$ac_ct_CC"; then |
| 1695 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1696 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1697 | else |
| 1698 | echo "$as_me:$LINENO: result: no" >&5 |
| 1699 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1700 | fi |
| 1701 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1702 | test -n "$ac_ct_CC" && break |
| 1703 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1704 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1705 | CC=$ac_ct_CC |
| 1706 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1707 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1708 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1709 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1710 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1711 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1712 | See \`config.log' for more details." >&5 |
| 1713 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1714 | See \`config.log' for more details." >&2;} |
| 1715 | { (exit 1); exit 1; }; } |
| 1716 | |
| 1717 | # Provide some information about the compiler. |
| 1718 | echo "$as_me:$LINENO:" \ |
| 1719 | "checking for C compiler version" >&5 |
| 1720 | ac_compiler=`set X $ac_compile; echo $2` |
| 1721 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1722 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1723 | ac_status=$? |
| 1724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1725 | (exit $ac_status); } |
| 1726 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1727 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1728 | ac_status=$? |
| 1729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1730 | (exit $ac_status); } |
| 1731 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1732 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1733 | ac_status=$? |
| 1734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1735 | (exit $ac_status); } |
| 1736 | |
| 1737 | cat >conftest.$ac_ext <<_ACEOF |
| 1738 | /* confdefs.h. */ |
| 1739 | _ACEOF |
| 1740 | cat confdefs.h >>conftest.$ac_ext |
| 1741 | cat >>conftest.$ac_ext <<_ACEOF |
| 1742 | /* end confdefs.h. */ |
| 1743 | |
| 1744 | int |
| 1745 | main () |
| 1746 | { |
| 1747 | |
| 1748 | ; |
| 1749 | return 0; |
| 1750 | } |
| 1751 | _ACEOF |
| 1752 | ac_clean_files_save=$ac_clean_files |
| 1753 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1754 | # Try to create an executable without -o first, disregard a.out. |
| 1755 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1756 | # of exeext. |
| 1757 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1758 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1759 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1760 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1761 | (eval $ac_link_default) 2>&5 |
| 1762 | ac_status=$? |
| 1763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1764 | (exit $ac_status); }; then |
| 1765 | # Find the output, starting from the most likely. This scheme is |
| 1766 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1767 | # resort. |
| 1768 | |
| 1769 | # Be careful to initialize this variable, since it used to be cached. |
| 1770 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1771 | ac_cv_exeext= |
| 1772 | # b.out is created by i960 compilers. |
| 1773 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1774 | do |
| 1775 | test -f "$ac_file" || continue |
| 1776 | case $ac_file in |
| 1777 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1778 | ;; |
| 1779 | conftest.$ac_ext ) |
| 1780 | # This is the source file. |
| 1781 | ;; |
| 1782 | [ab].out ) |
| 1783 | # We found the default executable, but exeext='' is most |
| 1784 | # certainly right. |
| 1785 | break;; |
| 1786 | *.* ) |
| 1787 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1788 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1789 | # but it would be cool to find out if it's true. Does anybody |
| 1790 | # maintain Libtool? --akim. |
| 1791 | export ac_cv_exeext |
| 1792 | break;; |
| 1793 | * ) |
| 1794 | break;; |
| 1795 | esac |
| 1796 | done |
| 1797 | else |
| 1798 | echo "$as_me: failed program was:" >&5 |
| 1799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1800 | |
| 1801 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1802 | See \`config.log' for more details." >&5 |
| 1803 | echo "$as_me: error: C compiler cannot create executables |
| 1804 | See \`config.log' for more details." >&2;} |
| 1805 | { (exit 77); exit 77; }; } |
| 1806 | fi |
| 1807 | |
| 1808 | ac_exeext=$ac_cv_exeext |
| 1809 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1810 | echo "${ECHO_T}$ac_file" >&6 |
| 1811 | |
| 1812 | # Check the compiler produces executables we can run. If not, either |
| 1813 | # the compiler is broken, or we cross compile. |
| 1814 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1815 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1816 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1817 | # If not cross compiling, check that we can run a simple program. |
| 1818 | if test "$cross_compiling" != yes; then |
| 1819 | if { ac_try='./$ac_file' |
| 1820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1821 | (eval $ac_try) 2>&5 |
| 1822 | ac_status=$? |
| 1823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1824 | (exit $ac_status); }; }; then |
| 1825 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1826 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1827 | if test "$cross_compiling" = maybe; then |
| 1828 | cross_compiling=yes |
| 1829 | else |
| 1830 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1831 | If you meant to cross compile, use \`--host'. |
| 1832 | See \`config.log' for more details." >&5 |
| 1833 | echo "$as_me: error: cannot run C compiled programs. |
| 1834 | If you meant to cross compile, use \`--host'. |
| 1835 | See \`config.log' for more details." >&2;} |
| 1836 | { (exit 1); exit 1; }; } |
| 1837 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1838 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1839 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1840 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1841 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1842 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1843 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1844 | ac_clean_files=$ac_clean_files_save |
| 1845 | # Check the compiler produces executables we can run. If not, either |
| 1846 | # the compiler is broken, or we cross compile. |
| 1847 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1848 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1849 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1850 | echo "${ECHO_T}$cross_compiling" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1851 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1852 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1853 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1855 | (eval $ac_link) 2>&5 |
| 1856 | ac_status=$? |
| 1857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1858 | (exit $ac_status); }; then |
| 1859 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1860 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1861 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1862 | # `rm'. |
| 1863 | for ac_file in conftest.exe conftest conftest.*; do |
| 1864 | test -f "$ac_file" || continue |
| 1865 | case $ac_file in |
| 1866 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1867 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1868 | export ac_cv_exeext |
| 1869 | break;; |
| 1870 | * ) break;; |
| 1871 | esac |
| 1872 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1873 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1874 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1875 | See \`config.log' for more details." >&5 |
| 1876 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1877 | See \`config.log' for more details." >&2;} |
| 1878 | { (exit 1); exit 1; }; } |
| 1879 | fi |
| 1880 | |
| 1881 | rm -f conftest$ac_cv_exeext |
| 1882 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1883 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1884 | |
| 1885 | rm -f conftest.$ac_ext |
| 1886 | EXEEXT=$ac_cv_exeext |
| 1887 | ac_exeext=$EXEEXT |
| 1888 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1889 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1890 | if test "${ac_cv_objext+set}" = set; then |
| 1891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1892 | else |
| 1893 | cat >conftest.$ac_ext <<_ACEOF |
| 1894 | /* confdefs.h. */ |
| 1895 | _ACEOF |
| 1896 | cat confdefs.h >>conftest.$ac_ext |
| 1897 | cat >>conftest.$ac_ext <<_ACEOF |
| 1898 | /* end confdefs.h. */ |
| 1899 | |
| 1900 | int |
| 1901 | main () |
| 1902 | { |
| 1903 | |
| 1904 | ; |
| 1905 | return 0; |
| 1906 | } |
| 1907 | _ACEOF |
| 1908 | rm -f conftest.o conftest.obj |
| 1909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1910 | (eval $ac_compile) 2>&5 |
| 1911 | ac_status=$? |
| 1912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1913 | (exit $ac_status); }; then |
| 1914 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1915 | case $ac_file in |
| 1916 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1917 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1918 | break;; |
| 1919 | esac |
| 1920 | done |
| 1921 | else |
| 1922 | echo "$as_me: failed program was:" >&5 |
| 1923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1924 | |
| 1925 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1926 | See \`config.log' for more details." >&5 |
| 1927 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1928 | See \`config.log' for more details." >&2;} |
| 1929 | { (exit 1); exit 1; }; } |
| 1930 | fi |
| 1931 | |
| 1932 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1933 | fi |
| 1934 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1935 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1936 | OBJEXT=$ac_cv_objext |
| 1937 | ac_objext=$OBJEXT |
| 1938 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1939 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1940 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1942 | else |
| 1943 | cat >conftest.$ac_ext <<_ACEOF |
| 1944 | /* confdefs.h. */ |
| 1945 | _ACEOF |
| 1946 | cat confdefs.h >>conftest.$ac_ext |
| 1947 | cat >>conftest.$ac_ext <<_ACEOF |
| 1948 | /* end confdefs.h. */ |
| 1949 | |
| 1950 | int |
| 1951 | main () |
| 1952 | { |
| 1953 | #ifndef __GNUC__ |
| 1954 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1955 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1956 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1957 | ; |
| 1958 | return 0; |
| 1959 | } |
| 1960 | _ACEOF |
| 1961 | rm -f conftest.$ac_objext |
| 1962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1963 | (eval $ac_compile) 2>conftest.er1 |
| 1964 | ac_status=$? |
| 1965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1966 | rm -f conftest.er1 |
| 1967 | cat conftest.err >&5 |
| 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1969 | (exit $ac_status); } && |
| 1970 | { ac_try='test -z "$ac_c_werror_flag" |
| 1971 | || test ! -s conftest.err' |
| 1972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1973 | (eval $ac_try) 2>&5 |
| 1974 | ac_status=$? |
| 1975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1976 | (exit $ac_status); }; } && |
| 1977 | { ac_try='test -s conftest.$ac_objext' |
| 1978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1979 | (eval $ac_try) 2>&5 |
| 1980 | ac_status=$? |
| 1981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1982 | (exit $ac_status); }; }; then |
| 1983 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1984 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1985 | echo "$as_me: failed program was:" >&5 |
| 1986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1987 | |
| 1988 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1989 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1991 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1992 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1993 | fi |
| 1994 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1995 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1996 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1997 | ac_test_CFLAGS=${CFLAGS+set} |
| 1998 | ac_save_CFLAGS=$CFLAGS |
| 1999 | CFLAGS="-g" |
| 2000 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2001 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2002 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2004 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2005 | cat >conftest.$ac_ext <<_ACEOF |
| 2006 | /* confdefs.h. */ |
| 2007 | _ACEOF |
| 2008 | cat confdefs.h >>conftest.$ac_ext |
| 2009 | cat >>conftest.$ac_ext <<_ACEOF |
| 2010 | /* end confdefs.h. */ |
| 2011 | |
| 2012 | int |
| 2013 | main () |
| 2014 | { |
| 2015 | |
| 2016 | ; |
| 2017 | return 0; |
| 2018 | } |
| 2019 | _ACEOF |
| 2020 | rm -f conftest.$ac_objext |
| 2021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2022 | (eval $ac_compile) 2>conftest.er1 |
| 2023 | ac_status=$? |
| 2024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2025 | rm -f conftest.er1 |
| 2026 | cat conftest.err >&5 |
| 2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2028 | (exit $ac_status); } && |
| 2029 | { ac_try='test -z "$ac_c_werror_flag" |
| 2030 | || test ! -s conftest.err' |
| 2031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2032 | (eval $ac_try) 2>&5 |
| 2033 | ac_status=$? |
| 2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2035 | (exit $ac_status); }; } && |
| 2036 | { ac_try='test -s conftest.$ac_objext' |
| 2037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2038 | (eval $ac_try) 2>&5 |
| 2039 | ac_status=$? |
| 2040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2041 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2042 | ac_cv_prog_cc_g=yes |
| 2043 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2044 | echo "$as_me: failed program was:" >&5 |
| 2045 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2046 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2047 | ac_cv_prog_cc_g=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2048 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2050 | fi |
| 2051 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2052 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2053 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2054 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2055 | elif test $ac_cv_prog_cc_g = yes; then |
| 2056 | if test "$GCC" = yes; then |
| 2057 | CFLAGS="-g -O2" |
| 2058 | else |
| 2059 | CFLAGS="-g" |
| 2060 | fi |
| 2061 | else |
| 2062 | if test "$GCC" = yes; then |
| 2063 | CFLAGS="-O2" |
| 2064 | else |
| 2065 | CFLAGS= |
| 2066 | fi |
| 2067 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2068 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2069 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2070 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2072 | else |
| 2073 | ac_cv_prog_cc_stdc=no |
| 2074 | ac_save_CC=$CC |
| 2075 | cat >conftest.$ac_ext <<_ACEOF |
| 2076 | /* confdefs.h. */ |
| 2077 | _ACEOF |
| 2078 | cat confdefs.h >>conftest.$ac_ext |
| 2079 | cat >>conftest.$ac_ext <<_ACEOF |
| 2080 | /* end confdefs.h. */ |
| 2081 | #include <stdarg.h> |
| 2082 | #include <stdio.h> |
| 2083 | #include <sys/types.h> |
| 2084 | #include <sys/stat.h> |
| 2085 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2086 | struct buf { int x; }; |
| 2087 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2088 | static char *e (p, i) |
| 2089 | char **p; |
| 2090 | int i; |
| 2091 | { |
| 2092 | return p[i]; |
| 2093 | } |
| 2094 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2095 | { |
| 2096 | char *s; |
| 2097 | va_list v; |
| 2098 | va_start (v,p); |
| 2099 | s = g (p, va_arg (v,int)); |
| 2100 | va_end (v); |
| 2101 | return s; |
| 2102 | } |
| 2103 | |
| 2104 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2105 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2106 | These don't provoke an error unfortunately, instead are silently treated |
| 2107 | as 'x'. The following induces an error, until -std1 is added to get |
| 2108 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2109 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2110 | that's true only with -std1. */ |
| 2111 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2112 | |
| 2113 | int test (int i, double x); |
| 2114 | struct s1 {int (*f) (int a);}; |
| 2115 | struct s2 {int (*f) (double a);}; |
| 2116 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2117 | int argc; |
| 2118 | char **argv; |
| 2119 | int |
| 2120 | main () |
| 2121 | { |
| 2122 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2123 | ; |
| 2124 | return 0; |
| 2125 | } |
| 2126 | _ACEOF |
| 2127 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2128 | # breaks some systems' header files. |
| 2129 | # AIX -qlanglvl=ansi |
| 2130 | # Ultrix and OSF/1 -std1 |
| 2131 | # HP-UX 10.20 and later -Ae |
| 2132 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2133 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2134 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2135 | do |
| 2136 | CC="$ac_save_CC $ac_arg" |
| 2137 | rm -f conftest.$ac_objext |
| 2138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2139 | (eval $ac_compile) 2>conftest.er1 |
| 2140 | ac_status=$? |
| 2141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2142 | rm -f conftest.er1 |
| 2143 | cat conftest.err >&5 |
| 2144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2145 | (exit $ac_status); } && |
| 2146 | { ac_try='test -z "$ac_c_werror_flag" |
| 2147 | || test ! -s conftest.err' |
| 2148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2149 | (eval $ac_try) 2>&5 |
| 2150 | ac_status=$? |
| 2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2152 | (exit $ac_status); }; } && |
| 2153 | { ac_try='test -s conftest.$ac_objext' |
| 2154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2155 | (eval $ac_try) 2>&5 |
| 2156 | ac_status=$? |
| 2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2158 | (exit $ac_status); }; }; then |
| 2159 | ac_cv_prog_cc_stdc=$ac_arg |
| 2160 | break |
| 2161 | else |
| 2162 | echo "$as_me: failed program was:" >&5 |
| 2163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2164 | |
| 2165 | fi |
| 2166 | rm -f conftest.err conftest.$ac_objext |
| 2167 | done |
| 2168 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2169 | CC=$ac_save_CC |
| 2170 | |
| 2171 | fi |
| 2172 | |
| 2173 | case "x$ac_cv_prog_cc_stdc" in |
| 2174 | x|xno) |
| 2175 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2176 | echo "${ECHO_T}none needed" >&6 ;; |
| 2177 | *) |
| 2178 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2179 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2180 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2181 | esac |
| 2182 | |
| 2183 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2184 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2185 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2186 | # the declaration of exit, since it's the most demanding environment. |
| 2187 | cat >conftest.$ac_ext <<_ACEOF |
| 2188 | #ifndef __cplusplus |
| 2189 | choke me |
| 2190 | #endif |
| 2191 | _ACEOF |
| 2192 | rm -f conftest.$ac_objext |
| 2193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2194 | (eval $ac_compile) 2>conftest.er1 |
| 2195 | ac_status=$? |
| 2196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2197 | rm -f conftest.er1 |
| 2198 | cat conftest.err >&5 |
| 2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2200 | (exit $ac_status); } && |
| 2201 | { ac_try='test -z "$ac_c_werror_flag" |
| 2202 | || test ! -s conftest.err' |
| 2203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2204 | (eval $ac_try) 2>&5 |
| 2205 | ac_status=$? |
| 2206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2207 | (exit $ac_status); }; } && |
| 2208 | { ac_try='test -s conftest.$ac_objext' |
| 2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2210 | (eval $ac_try) 2>&5 |
| 2211 | ac_status=$? |
| 2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2213 | (exit $ac_status); }; }; then |
| 2214 | for ac_declaration in \ |
| 2215 | '' \ |
| 2216 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2217 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2218 | 'extern "C" void exit (int) throw ();' \ |
| 2219 | 'extern "C" void exit (int);' \ |
| 2220 | 'void exit (int);' |
| 2221 | do |
| 2222 | cat >conftest.$ac_ext <<_ACEOF |
| 2223 | /* confdefs.h. */ |
| 2224 | _ACEOF |
| 2225 | cat confdefs.h >>conftest.$ac_ext |
| 2226 | cat >>conftest.$ac_ext <<_ACEOF |
| 2227 | /* end confdefs.h. */ |
| 2228 | $ac_declaration |
| 2229 | #include <stdlib.h> |
| 2230 | int |
| 2231 | main () |
| 2232 | { |
| 2233 | exit (42); |
| 2234 | ; |
| 2235 | return 0; |
| 2236 | } |
| 2237 | _ACEOF |
| 2238 | rm -f conftest.$ac_objext |
| 2239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2240 | (eval $ac_compile) 2>conftest.er1 |
| 2241 | ac_status=$? |
| 2242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2243 | rm -f conftest.er1 |
| 2244 | cat conftest.err >&5 |
| 2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2246 | (exit $ac_status); } && |
| 2247 | { ac_try='test -z "$ac_c_werror_flag" |
| 2248 | || test ! -s conftest.err' |
| 2249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2250 | (eval $ac_try) 2>&5 |
| 2251 | ac_status=$? |
| 2252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2253 | (exit $ac_status); }; } && |
| 2254 | { ac_try='test -s conftest.$ac_objext' |
| 2255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2256 | (eval $ac_try) 2>&5 |
| 2257 | ac_status=$? |
| 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2259 | (exit $ac_status); }; }; then |
| 2260 | : |
| 2261 | else |
| 2262 | echo "$as_me: failed program was:" >&5 |
| 2263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2264 | |
| 2265 | continue |
| 2266 | fi |
| 2267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2268 | cat >conftest.$ac_ext <<_ACEOF |
| 2269 | /* confdefs.h. */ |
| 2270 | _ACEOF |
| 2271 | cat confdefs.h >>conftest.$ac_ext |
| 2272 | cat >>conftest.$ac_ext <<_ACEOF |
| 2273 | /* end confdefs.h. */ |
| 2274 | $ac_declaration |
| 2275 | int |
| 2276 | main () |
| 2277 | { |
| 2278 | exit (42); |
| 2279 | ; |
| 2280 | return 0; |
| 2281 | } |
| 2282 | _ACEOF |
| 2283 | rm -f conftest.$ac_objext |
| 2284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2285 | (eval $ac_compile) 2>conftest.er1 |
| 2286 | ac_status=$? |
| 2287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2288 | rm -f conftest.er1 |
| 2289 | cat conftest.err >&5 |
| 2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2291 | (exit $ac_status); } && |
| 2292 | { ac_try='test -z "$ac_c_werror_flag" |
| 2293 | || test ! -s conftest.err' |
| 2294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2295 | (eval $ac_try) 2>&5 |
| 2296 | ac_status=$? |
| 2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2298 | (exit $ac_status); }; } && |
| 2299 | { ac_try='test -s conftest.$ac_objext' |
| 2300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2301 | (eval $ac_try) 2>&5 |
| 2302 | ac_status=$? |
| 2303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2304 | (exit $ac_status); }; }; then |
| 2305 | break |
| 2306 | else |
| 2307 | echo "$as_me: failed program was:" >&5 |
| 2308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2309 | |
| 2310 | fi |
| 2311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2312 | done |
| 2313 | rm -f conftest* |
| 2314 | if test -n "$ac_declaration"; then |
| 2315 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2316 | echo $ac_declaration >>confdefs.h |
| 2317 | echo '#endif' >>confdefs.h |
| 2318 | fi |
| 2319 | |
| 2320 | else |
| 2321 | echo "$as_me: failed program was:" >&5 |
| 2322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2323 | |
| 2324 | fi |
| 2325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2326 | ac_ext=c |
| 2327 | ac_cpp='$CPP $CPPFLAGS' |
| 2328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2331 | ac_ext=c |
| 2332 | ac_cpp='$CPP $CPPFLAGS' |
| 2333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2336 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2337 | 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] | 2338 | # On Suns, sometimes $CPP names a directory. |
| 2339 | if test -n "$CPP" && test -d "$CPP"; then |
| 2340 | CPP= |
| 2341 | fi |
| 2342 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2343 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2345 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2346 | # Double quotes because CPP needs to be expanded |
| 2347 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2348 | do |
| 2349 | ac_preproc_ok=false |
| 2350 | for ac_c_preproc_warn_flag in '' yes |
| 2351 | do |
| 2352 | # Use a header file that comes with gcc, so configuring glibc |
| 2353 | # with a fresh cross-compiler works. |
| 2354 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2355 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2356 | # 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] | 2357 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2358 | cat >conftest.$ac_ext <<_ACEOF |
| 2359 | /* confdefs.h. */ |
| 2360 | _ACEOF |
| 2361 | cat confdefs.h >>conftest.$ac_ext |
| 2362 | cat >>conftest.$ac_ext <<_ACEOF |
| 2363 | /* end confdefs.h. */ |
| 2364 | #ifdef __STDC__ |
| 2365 | # include <limits.h> |
| 2366 | #else |
| 2367 | # include <assert.h> |
| 2368 | #endif |
| 2369 | Syntax error |
| 2370 | _ACEOF |
| 2371 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2372 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2373 | ac_status=$? |
| 2374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2375 | rm -f conftest.er1 |
| 2376 | cat conftest.err >&5 |
| 2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2378 | (exit $ac_status); } >/dev/null; then |
| 2379 | if test -s conftest.err; then |
| 2380 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2381 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2382 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2383 | ac_cpp_err= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2384 | fi |
| 2385 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2386 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2387 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2388 | if test -z "$ac_cpp_err"; then |
| 2389 | : |
| 2390 | else |
| 2391 | echo "$as_me: failed program was:" >&5 |
| 2392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2393 | |
| 2394 | # Broken: fails on valid input. |
| 2395 | continue |
| 2396 | fi |
| 2397 | rm -f conftest.err conftest.$ac_ext |
| 2398 | |
| 2399 | # OK, works on sane cases. Now check whether non-existent headers |
| 2400 | # can be detected and how. |
| 2401 | cat >conftest.$ac_ext <<_ACEOF |
| 2402 | /* confdefs.h. */ |
| 2403 | _ACEOF |
| 2404 | cat confdefs.h >>conftest.$ac_ext |
| 2405 | cat >>conftest.$ac_ext <<_ACEOF |
| 2406 | /* end confdefs.h. */ |
| 2407 | #include <ac_nonexistent.h> |
| 2408 | _ACEOF |
| 2409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2411 | ac_status=$? |
| 2412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2413 | rm -f conftest.er1 |
| 2414 | cat conftest.err >&5 |
| 2415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2416 | (exit $ac_status); } >/dev/null; then |
| 2417 | if test -s conftest.err; then |
| 2418 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2419 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2420 | else |
| 2421 | ac_cpp_err= |
| 2422 | fi |
| 2423 | else |
| 2424 | ac_cpp_err=yes |
| 2425 | fi |
| 2426 | if test -z "$ac_cpp_err"; then |
| 2427 | # Broken: success on invalid input. |
| 2428 | continue |
| 2429 | else |
| 2430 | echo "$as_me: failed program was:" >&5 |
| 2431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2432 | |
| 2433 | # Passes both tests. |
| 2434 | ac_preproc_ok=: |
| 2435 | break |
| 2436 | fi |
| 2437 | rm -f conftest.err conftest.$ac_ext |
| 2438 | |
| 2439 | done |
| 2440 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2441 | rm -f conftest.err conftest.$ac_ext |
| 2442 | if $ac_preproc_ok; then |
| 2443 | break |
| 2444 | fi |
| 2445 | |
| 2446 | done |
| 2447 | ac_cv_prog_CPP=$CPP |
| 2448 | |
| 2449 | fi |
| 2450 | CPP=$ac_cv_prog_CPP |
| 2451 | else |
| 2452 | ac_cv_prog_CPP=$CPP |
| 2453 | fi |
| 2454 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2455 | echo "${ECHO_T}$CPP" >&6 |
| 2456 | ac_preproc_ok=false |
| 2457 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2458 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2459 | # Use a header file that comes with gcc, so configuring glibc |
| 2460 | # with a fresh cross-compiler works. |
| 2461 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2462 | # <limits.h> exists even on freestanding compilers. |
| 2463 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2464 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2465 | cat >conftest.$ac_ext <<_ACEOF |
| 2466 | /* confdefs.h. */ |
| 2467 | _ACEOF |
| 2468 | cat confdefs.h >>conftest.$ac_ext |
| 2469 | cat >>conftest.$ac_ext <<_ACEOF |
| 2470 | /* end confdefs.h. */ |
| 2471 | #ifdef __STDC__ |
| 2472 | # include <limits.h> |
| 2473 | #else |
| 2474 | # include <assert.h> |
| 2475 | #endif |
| 2476 | Syntax error |
| 2477 | _ACEOF |
| 2478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2480 | ac_status=$? |
| 2481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2482 | rm -f conftest.er1 |
| 2483 | cat conftest.err >&5 |
| 2484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2485 | (exit $ac_status); } >/dev/null; then |
| 2486 | if test -s conftest.err; then |
| 2487 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2488 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2489 | else |
| 2490 | ac_cpp_err= |
| 2491 | fi |
| 2492 | else |
| 2493 | ac_cpp_err=yes |
| 2494 | fi |
| 2495 | if test -z "$ac_cpp_err"; then |
| 2496 | : |
| 2497 | else |
| 2498 | echo "$as_me: failed program was:" >&5 |
| 2499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2500 | |
| 2501 | # Broken: fails on valid input. |
| 2502 | continue |
| 2503 | fi |
| 2504 | rm -f conftest.err conftest.$ac_ext |
| 2505 | |
| 2506 | # OK, works on sane cases. Now check whether non-existent headers |
| 2507 | # can be detected and how. |
| 2508 | cat >conftest.$ac_ext <<_ACEOF |
| 2509 | /* confdefs.h. */ |
| 2510 | _ACEOF |
| 2511 | cat confdefs.h >>conftest.$ac_ext |
| 2512 | cat >>conftest.$ac_ext <<_ACEOF |
| 2513 | /* end confdefs.h. */ |
| 2514 | #include <ac_nonexistent.h> |
| 2515 | _ACEOF |
| 2516 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2517 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2518 | ac_status=$? |
| 2519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2520 | rm -f conftest.er1 |
| 2521 | cat conftest.err >&5 |
| 2522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2523 | (exit $ac_status); } >/dev/null; then |
| 2524 | if test -s conftest.err; then |
| 2525 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2526 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2527 | else |
| 2528 | ac_cpp_err= |
| 2529 | fi |
| 2530 | else |
| 2531 | ac_cpp_err=yes |
| 2532 | fi |
| 2533 | if test -z "$ac_cpp_err"; then |
| 2534 | # Broken: success on invalid input. |
| 2535 | continue |
| 2536 | else |
| 2537 | echo "$as_me: failed program was:" >&5 |
| 2538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2539 | |
| 2540 | # Passes both tests. |
| 2541 | ac_preproc_ok=: |
| 2542 | break |
| 2543 | fi |
| 2544 | rm -f conftest.err conftest.$ac_ext |
| 2545 | |
| 2546 | done |
| 2547 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2548 | rm -f conftest.err conftest.$ac_ext |
| 2549 | if $ac_preproc_ok; then |
| 2550 | : |
| 2551 | else |
| 2552 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2553 | See \`config.log' for more details." >&5 |
| 2554 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2555 | See \`config.log' for more details." >&2;} |
| 2556 | { (exit 1); exit 1; }; } |
| 2557 | fi |
| 2558 | |
| 2559 | ac_ext=c |
| 2560 | ac_cpp='$CPP $CPPFLAGS' |
| 2561 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2562 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2563 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2564 | |
| 2565 | |
| 2566 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2567 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2568 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2570 | else |
| 2571 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2572 | then ac_cv_prog_egrep='grep -E' |
| 2573 | else ac_cv_prog_egrep='egrep' |
| 2574 | fi |
| 2575 | fi |
| 2576 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2577 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2578 | EGREP=$ac_cv_prog_egrep |
| 2579 | |
| 2580 | |
| 2581 | cat >conftest.$ac_ext <<_ACEOF |
| 2582 | /* confdefs.h. */ |
| 2583 | _ACEOF |
| 2584 | cat confdefs.h >>conftest.$ac_ext |
| 2585 | cat >>conftest.$ac_ext <<_ACEOF |
| 2586 | /* end confdefs.h. */ |
| 2587 | |
| 2588 | _ACEOF |
| 2589 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2590 | $EGREP "" >/dev/null 2>&1; then |
| 2591 | : |
| 2592 | fi |
| 2593 | rm -f conftest* |
| 2594 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2595 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2596 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2598 | else |
| 2599 | ac_func_search_save_LIBS=$LIBS |
| 2600 | ac_cv_search_strerror=no |
| 2601 | cat >conftest.$ac_ext <<_ACEOF |
| 2602 | /* confdefs.h. */ |
| 2603 | _ACEOF |
| 2604 | cat confdefs.h >>conftest.$ac_ext |
| 2605 | cat >>conftest.$ac_ext <<_ACEOF |
| 2606 | /* end confdefs.h. */ |
| 2607 | |
| 2608 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2609 | #ifdef __cplusplus |
| 2610 | extern "C" |
| 2611 | #endif |
| 2612 | /* We use char because int might match the return type of a gcc2 |
| 2613 | builtin and then its argument prototype would still apply. */ |
| 2614 | char strerror (); |
| 2615 | int |
| 2616 | main () |
| 2617 | { |
| 2618 | strerror (); |
| 2619 | ; |
| 2620 | return 0; |
| 2621 | } |
| 2622 | _ACEOF |
| 2623 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2625 | (eval $ac_link) 2>conftest.er1 |
| 2626 | ac_status=$? |
| 2627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2628 | rm -f conftest.er1 |
| 2629 | cat conftest.err >&5 |
| 2630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2631 | (exit $ac_status); } && |
| 2632 | { ac_try='test -z "$ac_c_werror_flag" |
| 2633 | || test ! -s conftest.err' |
| 2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2635 | (eval $ac_try) 2>&5 |
| 2636 | ac_status=$? |
| 2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2638 | (exit $ac_status); }; } && |
| 2639 | { ac_try='test -s conftest$ac_exeext' |
| 2640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2641 | (eval $ac_try) 2>&5 |
| 2642 | ac_status=$? |
| 2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2644 | (exit $ac_status); }; }; then |
| 2645 | ac_cv_search_strerror="none required" |
| 2646 | else |
| 2647 | echo "$as_me: failed program was:" >&5 |
| 2648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2649 | |
| 2650 | fi |
| 2651 | rm -f conftest.err conftest.$ac_objext \ |
| 2652 | conftest$ac_exeext conftest.$ac_ext |
| 2653 | if test "$ac_cv_search_strerror" = no; then |
| 2654 | for ac_lib in cposix; do |
| 2655 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2656 | cat >conftest.$ac_ext <<_ACEOF |
| 2657 | /* confdefs.h. */ |
| 2658 | _ACEOF |
| 2659 | cat confdefs.h >>conftest.$ac_ext |
| 2660 | cat >>conftest.$ac_ext <<_ACEOF |
| 2661 | /* end confdefs.h. */ |
| 2662 | |
| 2663 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2664 | #ifdef __cplusplus |
| 2665 | extern "C" |
| 2666 | #endif |
| 2667 | /* We use char because int might match the return type of a gcc2 |
| 2668 | builtin and then its argument prototype would still apply. */ |
| 2669 | char strerror (); |
| 2670 | int |
| 2671 | main () |
| 2672 | { |
| 2673 | strerror (); |
| 2674 | ; |
| 2675 | return 0; |
| 2676 | } |
| 2677 | _ACEOF |
| 2678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2680 | (eval $ac_link) 2>conftest.er1 |
| 2681 | ac_status=$? |
| 2682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2683 | rm -f conftest.er1 |
| 2684 | cat conftest.err >&5 |
| 2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2686 | (exit $ac_status); } && |
| 2687 | { ac_try='test -z "$ac_c_werror_flag" |
| 2688 | || test ! -s conftest.err' |
| 2689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2690 | (eval $ac_try) 2>&5 |
| 2691 | ac_status=$? |
| 2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2693 | (exit $ac_status); }; } && |
| 2694 | { ac_try='test -s conftest$ac_exeext' |
| 2695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2696 | (eval $ac_try) 2>&5 |
| 2697 | ac_status=$? |
| 2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2699 | (exit $ac_status); }; }; then |
| 2700 | ac_cv_search_strerror="-l$ac_lib" |
| 2701 | break |
| 2702 | else |
| 2703 | echo "$as_me: failed program was:" >&5 |
| 2704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2705 | |
| 2706 | fi |
| 2707 | rm -f conftest.err conftest.$ac_objext \ |
| 2708 | conftest$ac_exeext conftest.$ac_ext |
| 2709 | done |
| 2710 | fi |
| 2711 | LIBS=$ac_func_search_save_LIBS |
| 2712 | fi |
| 2713 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2714 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2715 | if test "$ac_cv_search_strerror" != no; then |
| 2716 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2717 | |
| 2718 | fi |
| 2719 | for ac_prog in gawk mawk nawk awk |
| 2720 | do |
| 2721 | # 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] | 2722 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2723 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2725 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2727 | else |
| 2728 | if test -n "$AWK"; then |
| 2729 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2730 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2732 | for as_dir in $PATH |
| 2733 | do |
| 2734 | IFS=$as_save_IFS |
| 2735 | test -z "$as_dir" && as_dir=. |
| 2736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2737 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2738 | ac_cv_prog_AWK="$ac_prog" |
| 2739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2740 | break 2 |
| 2741 | fi |
| 2742 | done |
| 2743 | done |
| 2744 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2745 | fi |
| 2746 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2747 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2748 | if test -n "$AWK"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2749 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2750 | echo "${ECHO_T}$AWK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2751 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2752 | echo "$as_me:$LINENO: result: no" >&5 |
| 2753 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2754 | fi |
| 2755 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2756 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2757 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2758 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2759 | # Extract the first word of "strip", so it can be a program name with args. |
| 2760 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2763 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2765 | else |
| 2766 | if test -n "$STRIP"; then |
| 2767 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2768 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2770 | for as_dir in $PATH |
| 2771 | do |
| 2772 | IFS=$as_save_IFS |
| 2773 | test -z "$as_dir" && as_dir=. |
| 2774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2776 | ac_cv_prog_STRIP="strip" |
| 2777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2778 | break 2 |
| 2779 | fi |
| 2780 | done |
| 2781 | done |
| 2782 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2783 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2784 | fi |
| 2785 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2786 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2787 | if test -n "$STRIP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2788 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2789 | echo "${ECHO_T}$STRIP" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2790 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2791 | echo "$as_me:$LINENO: result: no" >&5 |
| 2792 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2793 | fi |
| 2794 | |
| 2795 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2796 | |
| 2797 | |
| 2798 | if test -z "$CFLAGS"; then |
| 2799 | CFLAGS="-O" |
| 2800 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 2801 | fi |
| 2802 | if test "$GCC" = yes; then |
| 2803 | gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 2804 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 2805 | 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] | 2806 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 2807 | else |
| 2808 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 2809 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 2810 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 2811 | fi |
| 2812 | fi |
| 2813 | fi |
| 2814 | |
| 2815 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2816 | { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS |
| 2817 | (cross compiling doesn't work)" >&5 |
| 2818 | echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS |
| 2819 | (cross compiling doesn't work)" >&2;} |
| 2820 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2821 | fi |
| 2822 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2823 | test "$GCC" = yes && CPP_MM=M; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2824 | |
| 2825 | if test -f ./toolcheck; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2826 | { echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 2827 | echo "$as_me: checking for buggy tools..." >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2828 | sh ./toolcheck 1>&6 |
| 2829 | fi |
| 2830 | |
| 2831 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 2832 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2833 | echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 2834 | echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2835 | case `uname` in |
| 2836 | 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] | 2837 | BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2838 | echo "${ECHO_T}yes" >&6;; |
| 2839 | *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2840 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2841 | esac |
| 2842 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2843 | echo "$as_me:$LINENO: checking for QNX" >&5 |
| 2844 | echo $ECHO_N "checking for QNX... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2845 | case `uname` in |
| 2846 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 2847 | test -z "$with_x" && with_x=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2848 | QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2849 | echo "${ECHO_T}yes" >&6;; |
| 2850 | *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2851 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2852 | esac |
| 2853 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2854 | echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 2855 | echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2856 | if test "`(uname) 2>/dev/null`" = Darwin; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2857 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2858 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2859 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2860 | echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 2861 | echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2862 | # Check whether --enable-darwin or --disable-darwin was given. |
| 2863 | if test "${enable_darwin+set}" = set; then |
| 2864 | enableval="$enable_darwin" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2865 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2866 | else |
| 2867 | enable_darwin="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2868 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2869 | if test "$enable_darwin" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2870 | echo "$as_me:$LINENO: result: no" >&5 |
| 2871 | echo "${ECHO_T}no" >&6 |
| 2872 | echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 2873 | echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2874 | if test -f os_macosx.c; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2875 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2876 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2878 | echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 2879 | echo "${ECHO_T}no, Darwin support disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2880 | enable_darwin=no |
| 2881 | fi |
| 2882 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2883 | echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 2884 | echo "${ECHO_T}yes, Darwin support excluded" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2885 | fi |
| 2886 | |
| 2887 | if test "$enable_darwin" = "yes"; then |
| 2888 | MACOSX=yes |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 2889 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 2890 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2891 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp" |
| 2892 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2893 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2894 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2895 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2897 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2898 | cat >conftest.$ac_ext <<_ACEOF |
| 2899 | /* confdefs.h. */ |
| 2900 | _ACEOF |
| 2901 | cat confdefs.h >>conftest.$ac_ext |
| 2902 | cat >>conftest.$ac_ext <<_ACEOF |
| 2903 | /* end confdefs.h. */ |
| 2904 | #include <stdlib.h> |
| 2905 | #include <stdarg.h> |
| 2906 | #include <string.h> |
| 2907 | #include <float.h> |
| 2908 | |
| 2909 | int |
| 2910 | main () |
| 2911 | { |
| 2912 | |
| 2913 | ; |
| 2914 | return 0; |
| 2915 | } |
| 2916 | _ACEOF |
| 2917 | rm -f conftest.$ac_objext |
| 2918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2919 | (eval $ac_compile) 2>conftest.er1 |
| 2920 | ac_status=$? |
| 2921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2922 | rm -f conftest.er1 |
| 2923 | cat conftest.err >&5 |
| 2924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2925 | (exit $ac_status); } && |
| 2926 | { ac_try='test -z "$ac_c_werror_flag" |
| 2927 | || test ! -s conftest.err' |
| 2928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2929 | (eval $ac_try) 2>&5 |
| 2930 | ac_status=$? |
| 2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2932 | (exit $ac_status); }; } && |
| 2933 | { ac_try='test -s conftest.$ac_objext' |
| 2934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2935 | (eval $ac_try) 2>&5 |
| 2936 | ac_status=$? |
| 2937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2938 | (exit $ac_status); }; }; then |
| 2939 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2940 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2941 | echo "$as_me: failed program was:" >&5 |
| 2942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2943 | |
| 2944 | ac_cv_header_stdc=no |
| 2945 | fi |
| 2946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2947 | |
| 2948 | if test $ac_cv_header_stdc = yes; then |
| 2949 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2950 | cat >conftest.$ac_ext <<_ACEOF |
| 2951 | /* confdefs.h. */ |
| 2952 | _ACEOF |
| 2953 | cat confdefs.h >>conftest.$ac_ext |
| 2954 | cat >>conftest.$ac_ext <<_ACEOF |
| 2955 | /* end confdefs.h. */ |
| 2956 | #include <string.h> |
| 2957 | |
| 2958 | _ACEOF |
| 2959 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2960 | $EGREP "memchr" >/dev/null 2>&1; then |
| 2961 | : |
| 2962 | else |
| 2963 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2964 | fi |
| 2965 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2966 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2967 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2968 | |
| 2969 | if test $ac_cv_header_stdc = yes; then |
| 2970 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2971 | cat >conftest.$ac_ext <<_ACEOF |
| 2972 | /* confdefs.h. */ |
| 2973 | _ACEOF |
| 2974 | cat confdefs.h >>conftest.$ac_ext |
| 2975 | cat >>conftest.$ac_ext <<_ACEOF |
| 2976 | /* end confdefs.h. */ |
| 2977 | #include <stdlib.h> |
| 2978 | |
| 2979 | _ACEOF |
| 2980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2981 | $EGREP "free" >/dev/null 2>&1; then |
| 2982 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2983 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2984 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2985 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2986 | rm -f conftest* |
| 2987 | |
| 2988 | fi |
| 2989 | |
| 2990 | if test $ac_cv_header_stdc = yes; then |
| 2991 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2992 | if test "$cross_compiling" = yes; then |
| 2993 | : |
| 2994 | else |
| 2995 | cat >conftest.$ac_ext <<_ACEOF |
| 2996 | /* confdefs.h. */ |
| 2997 | _ACEOF |
| 2998 | cat confdefs.h >>conftest.$ac_ext |
| 2999 | cat >>conftest.$ac_ext <<_ACEOF |
| 3000 | /* end confdefs.h. */ |
| 3001 | #include <ctype.h> |
| 3002 | #if ((' ' & 0x0FF) == 0x020) |
| 3003 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3004 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3005 | #else |
| 3006 | # define ISLOWER(c) \ |
| 3007 | (('a' <= (c) && (c) <= 'i') \ |
| 3008 | || ('j' <= (c) && (c) <= 'r') \ |
| 3009 | || ('s' <= (c) && (c) <= 'z')) |
| 3010 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3011 | #endif |
| 3012 | |
| 3013 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3014 | int |
| 3015 | main () |
| 3016 | { |
| 3017 | int i; |
| 3018 | for (i = 0; i < 256; i++) |
| 3019 | if (XOR (islower (i), ISLOWER (i)) |
| 3020 | || toupper (i) != TOUPPER (i)) |
| 3021 | exit(2); |
| 3022 | exit (0); |
| 3023 | } |
| 3024 | _ACEOF |
| 3025 | rm -f conftest$ac_exeext |
| 3026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3027 | (eval $ac_link) 2>&5 |
| 3028 | ac_status=$? |
| 3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3030 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3032 | (eval $ac_try) 2>&5 |
| 3033 | ac_status=$? |
| 3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3035 | (exit $ac_status); }; }; then |
| 3036 | : |
| 3037 | else |
| 3038 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3039 | echo "$as_me: failed program was:" >&5 |
| 3040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3041 | |
| 3042 | ( exit $ac_status ) |
| 3043 | ac_cv_header_stdc=no |
| 3044 | fi |
| 3045 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3046 | fi |
| 3047 | fi |
| 3048 | fi |
| 3049 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3050 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3051 | if test $ac_cv_header_stdc = yes; then |
| 3052 | |
| 3053 | cat >>confdefs.h <<\_ACEOF |
| 3054 | #define STDC_HEADERS 1 |
| 3055 | _ACEOF |
| 3056 | |
| 3057 | fi |
| 3058 | |
| 3059 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3060 | |
| 3061 | |
| 3062 | |
| 3063 | |
| 3064 | |
| 3065 | |
| 3066 | |
| 3067 | |
| 3068 | |
| 3069 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3070 | inttypes.h stdint.h unistd.h |
| 3071 | do |
| 3072 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3073 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3074 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3075 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3077 | else |
| 3078 | cat >conftest.$ac_ext <<_ACEOF |
| 3079 | /* confdefs.h. */ |
| 3080 | _ACEOF |
| 3081 | cat confdefs.h >>conftest.$ac_ext |
| 3082 | cat >>conftest.$ac_ext <<_ACEOF |
| 3083 | /* end confdefs.h. */ |
| 3084 | $ac_includes_default |
| 3085 | |
| 3086 | #include <$ac_header> |
| 3087 | _ACEOF |
| 3088 | rm -f conftest.$ac_objext |
| 3089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3090 | (eval $ac_compile) 2>conftest.er1 |
| 3091 | ac_status=$? |
| 3092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3093 | rm -f conftest.er1 |
| 3094 | cat conftest.err >&5 |
| 3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3096 | (exit $ac_status); } && |
| 3097 | { ac_try='test -z "$ac_c_werror_flag" |
| 3098 | || test ! -s conftest.err' |
| 3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3100 | (eval $ac_try) 2>&5 |
| 3101 | ac_status=$? |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); }; } && |
| 3104 | { ac_try='test -s conftest.$ac_objext' |
| 3105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3106 | (eval $ac_try) 2>&5 |
| 3107 | ac_status=$? |
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3109 | (exit $ac_status); }; }; then |
| 3110 | eval "$as_ac_Header=yes" |
| 3111 | else |
| 3112 | echo "$as_me: failed program was:" >&5 |
| 3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3114 | |
| 3115 | eval "$as_ac_Header=no" |
| 3116 | fi |
| 3117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3118 | fi |
| 3119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3120 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3122 | cat >>confdefs.h <<_ACEOF |
| 3123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3124 | _ACEOF |
| 3125 | |
| 3126 | fi |
| 3127 | |
| 3128 | done |
| 3129 | |
| 3130 | |
| 3131 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3132 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3133 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3134 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3136 | fi |
| 3137 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3138 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3139 | else |
| 3140 | # Is the header compilable? |
| 3141 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 3142 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
| 3143 | cat >conftest.$ac_ext <<_ACEOF |
| 3144 | /* confdefs.h. */ |
| 3145 | _ACEOF |
| 3146 | cat confdefs.h >>conftest.$ac_ext |
| 3147 | cat >>conftest.$ac_ext <<_ACEOF |
| 3148 | /* end confdefs.h. */ |
| 3149 | $ac_includes_default |
| 3150 | #include <Carbon/Carbon.h> |
| 3151 | _ACEOF |
| 3152 | rm -f conftest.$ac_objext |
| 3153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3154 | (eval $ac_compile) 2>conftest.er1 |
| 3155 | ac_status=$? |
| 3156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3157 | rm -f conftest.er1 |
| 3158 | cat conftest.err >&5 |
| 3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3160 | (exit $ac_status); } && |
| 3161 | { ac_try='test -z "$ac_c_werror_flag" |
| 3162 | || test ! -s conftest.err' |
| 3163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3164 | (eval $ac_try) 2>&5 |
| 3165 | ac_status=$? |
| 3166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3167 | (exit $ac_status); }; } && |
| 3168 | { ac_try='test -s conftest.$ac_objext' |
| 3169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3170 | (eval $ac_try) 2>&5 |
| 3171 | ac_status=$? |
| 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3173 | (exit $ac_status); }; }; then |
| 3174 | ac_header_compiler=yes |
| 3175 | else |
| 3176 | echo "$as_me: failed program was:" >&5 |
| 3177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3178 | |
| 3179 | ac_header_compiler=no |
| 3180 | fi |
| 3181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3183 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3184 | |
| 3185 | # Is the header present? |
| 3186 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 3187 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
| 3188 | cat >conftest.$ac_ext <<_ACEOF |
| 3189 | /* confdefs.h. */ |
| 3190 | _ACEOF |
| 3191 | cat confdefs.h >>conftest.$ac_ext |
| 3192 | cat >>conftest.$ac_ext <<_ACEOF |
| 3193 | /* end confdefs.h. */ |
| 3194 | #include <Carbon/Carbon.h> |
| 3195 | _ACEOF |
| 3196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3198 | ac_status=$? |
| 3199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3200 | rm -f conftest.er1 |
| 3201 | cat conftest.err >&5 |
| 3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3203 | (exit $ac_status); } >/dev/null; then |
| 3204 | if test -s conftest.err; then |
| 3205 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3206 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3207 | else |
| 3208 | ac_cpp_err= |
| 3209 | fi |
| 3210 | else |
| 3211 | ac_cpp_err=yes |
| 3212 | fi |
| 3213 | if test -z "$ac_cpp_err"; then |
| 3214 | ac_header_preproc=yes |
| 3215 | else |
| 3216 | echo "$as_me: failed program was:" >&5 |
| 3217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3218 | |
| 3219 | ac_header_preproc=no |
| 3220 | fi |
| 3221 | rm -f conftest.err conftest.$ac_ext |
| 3222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3223 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3224 | |
| 3225 | # So? What about this header? |
| 3226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3227 | yes:no: ) |
| 3228 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3229 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3230 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 3231 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
| 3232 | ac_header_preproc=yes |
| 3233 | ;; |
| 3234 | no:yes:* ) |
| 3235 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 3236 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 3237 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 3238 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 3239 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 3240 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 3241 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3242 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3243 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 3244 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 3245 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 3246 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 3247 | ( |
| 3248 | cat <<\_ASBOX |
| 3249 | ## ------------------------------------------ ## |
| 3250 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3251 | ## ------------------------------------------ ## |
| 3252 | _ASBOX |
| 3253 | ) | |
| 3254 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3255 | ;; |
| 3256 | esac |
| 3257 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3258 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3259 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3261 | else |
| 3262 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 3263 | fi |
| 3264 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3265 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3266 | |
| 3267 | fi |
| 3268 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 3269 | CARBON=yes |
| 3270 | fi |
| 3271 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3272 | |
| 3273 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3274 | 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] | 3275 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3276 | fi |
| 3277 | fi |
| 3278 | fi |
| 3279 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3280 | echo "$as_me:$LINENO: result: no" >&5 |
| 3281 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3282 | fi |
| 3283 | |
| 3284 | |
| 3285 | |
| 3286 | |
| 3287 | have_local_include='' |
| 3288 | have_local_lib='' |
| 3289 | if test "$GCC" = yes; then |
| 3290 | echo 'void f(){}' > conftest.c |
| 3291 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 3292 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 3293 | rm -f conftest.c conftest.o |
| 3294 | fi |
| 3295 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 3296 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 3297 | if test "$tt" = "$LDFLAGS"; then |
| 3298 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 3299 | fi |
| 3300 | fi |
| 3301 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 3302 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 3303 | if test "$tt" = "$CPPFLAGS"; then |
| 3304 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 3305 | fi |
| 3306 | fi |
| 3307 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3308 | echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 3309 | echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 |
| 3310 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3311 | # Check whether --with-vim-name or --without-vim-name was given. |
| 3312 | if test "${with_vim_name+set}" = set; then |
| 3313 | withval="$with_vim_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3314 | VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 3315 | echo "${ECHO_T}$VIMNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3316 | else |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 3317 | VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3318 | echo "${ECHO_T}Defaulting to $VIMNAME" >&6 |
| 3319 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3320 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3321 | echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 3322 | echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3323 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3324 | # Check whether --with-ex-name or --without-ex-name was given. |
| 3325 | if test "${with_ex_name+set}" = set; then |
| 3326 | withval="$with_ex_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3327 | EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 3328 | echo "${ECHO_T}$EXNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3329 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3330 | EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 3331 | echo "${ECHO_T}Defaulting to ex" >&6 |
| 3332 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3333 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3334 | echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 3335 | echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3336 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3337 | # Check whether --with-view-name or --without-view-name was given. |
| 3338 | if test "${with_view_name+set}" = set; then |
| 3339 | withval="$with_view_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3340 | VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 3341 | echo "${ECHO_T}$VIEWNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3342 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3343 | VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 3344 | echo "${ECHO_T}Defaulting to view" >&6 |
| 3345 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3346 | |
| 3347 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3348 | echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 3349 | echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3350 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3351 | # Check whether --with-global-runtime or --without-global-runtime was given. |
| 3352 | if test "${with_global_runtime+set}" = set; then |
| 3353 | withval="$with_global_runtime" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3354 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3355 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3356 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3357 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3358 | |
| 3359 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3360 | echo "$as_me:$LINENO: result: no" >&5 |
| 3361 | echo "${ECHO_T}no" >&6 |
| 3362 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3363 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3364 | echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 3365 | echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3366 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3367 | # Check whether --with-modified-by or --without-modified-by was given. |
| 3368 | if test "${with_modified_by+set}" = set; then |
| 3369 | withval="$with_modified_by" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3370 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3371 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3372 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3373 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3374 | |
| 3375 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3376 | echo "$as_me:$LINENO: result: no" >&5 |
| 3377 | echo "${ECHO_T}no" >&6 |
| 3378 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3379 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3380 | echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 3381 | echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6 |
| 3382 | cat >conftest.$ac_ext <<_ACEOF |
| 3383 | /* confdefs.h. */ |
| 3384 | _ACEOF |
| 3385 | cat confdefs.h >>conftest.$ac_ext |
| 3386 | cat >>conftest.$ac_ext <<_ACEOF |
| 3387 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3388 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3389 | int |
| 3390 | main () |
| 3391 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3392 | /* TryCompile function for CharSet. |
| 3393 | Treat any failure as ASCII for compatibility with existing art. |
| 3394 | Use compile-time rather than run-time tests for cross-compiler |
| 3395 | tolerance. */ |
| 3396 | #if '0'!=240 |
| 3397 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3398 | #endif |
| 3399 | ; |
| 3400 | return 0; |
| 3401 | } |
| 3402 | _ACEOF |
| 3403 | rm -f conftest.$ac_objext |
| 3404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3405 | (eval $ac_compile) 2>conftest.er1 |
| 3406 | ac_status=$? |
| 3407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3408 | rm -f conftest.er1 |
| 3409 | cat conftest.err >&5 |
| 3410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3411 | (exit $ac_status); } && |
| 3412 | { ac_try='test -z "$ac_c_werror_flag" |
| 3413 | || test ! -s conftest.err' |
| 3414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3415 | (eval $ac_try) 2>&5 |
| 3416 | ac_status=$? |
| 3417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3418 | (exit $ac_status); }; } && |
| 3419 | { ac_try='test -s conftest.$ac_objext' |
| 3420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3421 | (eval $ac_try) 2>&5 |
| 3422 | ac_status=$? |
| 3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3424 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3425 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3426 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3427 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3428 | echo "$as_me: failed program was:" >&5 |
| 3429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3430 | |
| 3431 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3432 | cf_cv_ebcdic=no |
| 3433 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3435 | # end of TryCompile ]) |
| 3436 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3437 | echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 3438 | echo "${ECHO_T}$cf_cv_ebcdic" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3439 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3440 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3441 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3442 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3443 | |
| 3444 | line_break='"\\n"' |
| 3445 | ;; |
| 3446 | *) line_break='"\\012"';; |
| 3447 | esac |
| 3448 | |
| 3449 | |
| 3450 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3451 | echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 3452 | echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3453 | case `uname` in |
| 3454 | OS/390) OS390Unix="yes"; |
| 3455 | if test "$CC" = "cc"; then |
| 3456 | ccm="$_CC_CCMODE" |
| 3457 | ccn="CC" |
| 3458 | else |
| 3459 | if test "$CC" = "c89"; then |
| 3460 | ccm="$_CC_C89MODE" |
| 3461 | ccn="C89" |
| 3462 | else |
| 3463 | ccm=1 |
| 3464 | fi |
| 3465 | fi |
| 3466 | if test "$ccm" != "1"; then |
| 3467 | echo "" |
| 3468 | echo "------------------------------------------" |
| 3469 | echo " On OS/390 Unix, the environment variable" |
| 3470 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 3471 | echo " Do:" |
| 3472 | echo " export _CC_${ccn}MODE=1" |
| 3473 | echo " and then call configure again." |
| 3474 | echo "------------------------------------------" |
| 3475 | exit 1 |
| 3476 | fi |
| 3477 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3478 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3479 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3480 | ;; |
| 3481 | *) OS390Unix="no"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3482 | echo "$as_me:$LINENO: result: no" >&5 |
| 3483 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3484 | ;; |
| 3485 | esac |
| 3486 | fi |
| 3487 | |
| 3488 | |
| 3489 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3490 | echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 3491 | echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6 |
| 3492 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3493 | # Check whether --with-features or --without-features was given. |
| 3494 | if test "${with_features+set}" = set; then |
| 3495 | withval="$with_features" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3496 | features="$withval"; echo "$as_me:$LINENO: result: $features" >&5 |
| 3497 | echo "${ECHO_T}$features" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3498 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3499 | features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 3500 | echo "${ECHO_T}Defaulting to normal" >&6 |
| 3501 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3502 | |
| 3503 | dovimdiff="" |
| 3504 | dogvimdiff="" |
| 3505 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3506 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3507 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3508 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3509 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3510 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3511 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3512 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3513 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3514 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3515 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3516 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3517 | dovimdiff="installvimdiff"; |
| 3518 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3519 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3520 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3521 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3522 | dovimdiff="installvimdiff"; |
| 3523 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3524 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3525 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3526 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3527 | dovimdiff="installvimdiff"; |
| 3528 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3529 | *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 3530 | echo "${ECHO_T}Sorry, $features is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3531 | esac |
| 3532 | |
| 3533 | |
| 3534 | |
| 3535 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3536 | echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 3537 | echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6 |
| 3538 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3539 | # Check whether --with-compiledby or --without-compiledby was given. |
| 3540 | if test "${with_compiledby+set}" = set; then |
| 3541 | withval="$with_compiledby" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3542 | compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5 |
| 3543 | echo "${ECHO_T}$withval" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3544 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3545 | compiledby=""; echo "$as_me:$LINENO: result: no" >&5 |
| 3546 | echo "${ECHO_T}no" >&6 |
| 3547 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3548 | |
| 3549 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3550 | echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 3551 | echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3552 | # Check whether --enable-xsmp or --disable-xsmp was given. |
| 3553 | if test "${enable_xsmp+set}" = set; then |
| 3554 | enableval="$enable_xsmp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3555 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3556 | else |
| 3557 | enable_xsmp="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3558 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3559 | |
| 3560 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3561 | echo "$as_me:$LINENO: result: no" >&5 |
| 3562 | echo "${ECHO_T}no" >&6 |
| 3563 | echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 3564 | echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3565 | # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
| 3566 | if test "${enable_xsmp_interact+set}" = set; then |
| 3567 | enableval="$enable_xsmp_interact" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3568 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3569 | else |
| 3570 | enable_xsmp_interact="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3571 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3572 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3573 | echo "$as_me:$LINENO: result: no" >&5 |
| 3574 | echo "${ECHO_T}no" >&6 |
| 3575 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3576 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3577 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3578 | |
| 3579 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3580 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3581 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3582 | fi |
| 3583 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3584 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3585 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3586 | fi |
| 3587 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3588 | echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 3589 | echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3590 | # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. |
| 3591 | if test "${enable_mzschemeinterp+set}" = set; then |
| 3592 | enableval="$enable_mzschemeinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3593 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3594 | else |
| 3595 | enable_mzschemeinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3596 | fi; |
| 3597 | echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 3598 | echo "${ECHO_T}$enable_mzschemeinterp" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3599 | |
| 3600 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3601 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3602 | |
| 3603 | echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 3604 | echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6 |
| 3605 | |
| 3606 | # Check whether --with-plthome or --without-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3607 | if test "${with_plthome+set}" = set; then |
| 3608 | withval="$with_plthome" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3609 | with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 3610 | echo "${ECHO_T}$with_plthome" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3611 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3612 | with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3613 | echo "${ECHO_T}\"no\"" >&6 |
| 3614 | fi; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3615 | |
| 3616 | if test "X$with_plthome" != "X"; then |
| 3617 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 3618 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3619 | echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 3620 | echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3621 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3622 | echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 3623 | echo "${ECHO_T}\"$PLTHOME\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3624 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
| 3625 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3626 | echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 3627 | echo "${ECHO_T}\"not set\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3628 | # Extract the first word of "mzscheme", so it can be a program name with args. |
| 3629 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3630 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3632 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
| 3633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3634 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3635 | case $vi_cv_path_mzscheme in |
| 3636 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3637 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 3638 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3639 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3641 | for as_dir in $PATH |
| 3642 | do |
| 3643 | IFS=$as_save_IFS |
| 3644 | test -z "$as_dir" && as_dir=. |
| 3645 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3647 | ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
| 3648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3649 | break 2 |
| 3650 | fi |
| 3651 | done |
| 3652 | done |
| 3653 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3654 | ;; |
| 3655 | esac |
| 3656 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3657 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
| 3658 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3659 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3660 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 3661 | echo "${ECHO_T}$vi_cv_path_mzscheme" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3662 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3663 | echo "$as_me:$LINENO: result: no" >&5 |
| 3664 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3665 | fi |
| 3666 | |
| 3667 | |
| 3668 | if test "X$vi_cv_path_mzscheme" != "X"; then |
| 3669 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 3670 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 3671 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 3672 | fi |
| 3673 | fi |
| 3674 | |
| 3675 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3676 | echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 3677 | echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6 |
| 3678 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
| 3679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3680 | else |
| 3681 | vi_cv_path_mzscheme_pfx=` |
| 3682 | ${vi_cv_path_mzscheme} -evm \ |
| 3683 | "(display (simplify-path \ |
| 3684 | (build-path (call-with-values \ |
| 3685 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3686 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3687 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3688 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 3689 | echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3690 | vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` |
| 3691 | fi |
| 3692 | fi |
| 3693 | fi |
| 3694 | |
| 3695 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3696 | echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 3697 | 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] | 3698 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3699 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 3700 | echo "${ECHO_T}\"yes\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3701 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3702 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3703 | echo "${ECHO_T}\"no\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3704 | vi_cv_path_mzscheme_pfx= |
| 3705 | fi |
| 3706 | fi |
| 3707 | |
| 3708 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
| 3709 | if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
| 3710 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a" |
| 3711 | else |
| 3712 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3713 | if test "$GCC" = yes; then |
| 3714 | 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] | 3715 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 3716 | uname -r | grep '^5' >/dev/null; then |
| 3717 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3718 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3719 | fi |
| 3720 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \ |
| 3721 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'" |
| 3722 | MZSCHEME_SRC="if_mzsch.c" |
| 3723 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 3724 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3725 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3726 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3727 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3728 | |
| 3729 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3730 | |
| 3731 | |
| 3732 | |
| 3733 | |
| 3734 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3735 | fi |
| 3736 | |
| 3737 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3738 | echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 3739 | echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3740 | # Check whether --enable-perlinterp or --disable-perlinterp was given. |
| 3741 | if test "${enable_perlinterp+set}" = set; then |
| 3742 | enableval="$enable_perlinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3743 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3744 | else |
| 3745 | enable_perlinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3746 | fi; |
| 3747 | echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 3748 | echo "${ECHO_T}$enable_perlinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3749 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3750 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3751 | # Extract the first word of "perl", so it can be a program name with args. |
| 3752 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3755 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
| 3756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3757 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3758 | case $vi_cv_path_perl in |
| 3759 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3760 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 3761 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3762 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3764 | for as_dir in $PATH |
| 3765 | do |
| 3766 | IFS=$as_save_IFS |
| 3767 | test -z "$as_dir" && as_dir=. |
| 3768 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3770 | ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
| 3771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3772 | break 2 |
| 3773 | fi |
| 3774 | done |
| 3775 | done |
| 3776 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3777 | ;; |
| 3778 | esac |
| 3779 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3780 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
| 3781 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3782 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3783 | echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 3784 | echo "${ECHO_T}$vi_cv_path_perl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3785 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3786 | echo "$as_me:$LINENO: result: no" >&5 |
| 3787 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3788 | fi |
| 3789 | |
| 3790 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3791 | echo "$as_me:$LINENO: checking Perl version" >&5 |
| 3792 | echo $ECHO_N "checking Perl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3793 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 3794 | eval `$vi_cv_path_perl -V:usethreads` |
| 3795 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 3796 | badthreads=no |
| 3797 | else |
| 3798 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 3799 | eval `$vi_cv_path_perl -V:use5005threads` |
| 3800 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 3801 | badthreads=no |
| 3802 | else |
| 3803 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3804 | echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 3805 | 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] | 3806 | fi |
| 3807 | else |
| 3808 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3809 | echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 3810 | echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3811 | fi |
| 3812 | fi |
| 3813 | if test $badthreads = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3814 | echo "$as_me:$LINENO: result: OK" >&5 |
| 3815 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3816 | eval `$vi_cv_path_perl -V:shrpenv` |
| 3817 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 3818 | shrpenv="" |
| 3819 | fi |
| 3820 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3821 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3822 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 3823 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 3824 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 3825 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 3826 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 3827 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 3828 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 3829 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3830 | echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 3831 | 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] | 3832 | cflags_save=$CFLAGS |
| 3833 | libs_save=$LIBS |
| 3834 | ldflags_save=$LDFLAGS |
| 3835 | CFLAGS="$CFLAGS $perlcppflags" |
| 3836 | LIBS="$LIBS $perllibs" |
| 3837 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3838 | cat >conftest.$ac_ext <<_ACEOF |
| 3839 | /* confdefs.h. */ |
| 3840 | _ACEOF |
| 3841 | cat confdefs.h >>conftest.$ac_ext |
| 3842 | cat >>conftest.$ac_ext <<_ACEOF |
| 3843 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3844 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3845 | int |
| 3846 | main () |
| 3847 | { |
| 3848 | |
| 3849 | ; |
| 3850 | return 0; |
| 3851 | } |
| 3852 | _ACEOF |
| 3853 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3855 | (eval $ac_link) 2>conftest.er1 |
| 3856 | ac_status=$? |
| 3857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3858 | rm -f conftest.er1 |
| 3859 | cat conftest.err >&5 |
| 3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3861 | (exit $ac_status); } && |
| 3862 | { ac_try='test -z "$ac_c_werror_flag" |
| 3863 | || test ! -s conftest.err' |
| 3864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3865 | (eval $ac_try) 2>&5 |
| 3866 | ac_status=$? |
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3868 | (exit $ac_status); }; } && |
| 3869 | { ac_try='test -s conftest$ac_exeext' |
| 3870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3871 | (eval $ac_try) 2>&5 |
| 3872 | ac_status=$? |
| 3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3874 | (exit $ac_status); }; }; then |
| 3875 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3876 | echo "${ECHO_T}yes" >&6; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3878 | echo "$as_me: failed program was:" >&5 |
| 3879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3880 | |
| 3881 | echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 3882 | echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3883 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3884 | rm -f conftest.err conftest.$ac_objext \ |
| 3885 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3886 | CFLAGS=$cflags_save |
| 3887 | LIBS=$libs_save |
| 3888 | LDFLAGS=$ldflags_save |
| 3889 | if test $perl_ok = yes; then |
| 3890 | if test "X$perlcppflags" != "X"; then |
| 3891 | PERL_CFLAGS="$perlcppflags" |
| 3892 | fi |
| 3893 | if test "X$perlldflags" != "X"; then |
| 3894 | LDFLAGS="$perlldflags $LDFLAGS" |
| 3895 | fi |
| 3896 | PERL_LIBS=$perllibs |
| 3897 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 3898 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 3899 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3900 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3901 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3902 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3903 | |
| 3904 | fi |
| 3905 | fi |
| 3906 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3907 | echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 3908 | 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] | 3909 | fi |
| 3910 | fi |
| 3911 | |
| 3912 | if test "x$MACOSX" = "xyes"; then |
| 3913 | dir=/System/Library/Perl |
| 3914 | darwindir=$dir/darwin |
| 3915 | if test -d $darwindir; then |
| 3916 | PERL=/usr/bin/perl |
| 3917 | else |
| 3918 | dir=/System/Library/Perl/5.8.1 |
| 3919 | darwindir=$dir/darwin-thread-multi-2level |
| 3920 | if test -d $darwindir; then |
| 3921 | PERL=/usr/bin/perl |
| 3922 | fi |
| 3923 | fi |
| 3924 | if test -n "$PERL"; then |
| 3925 | PERL_DIR="$dir" |
| 3926 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 3927 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 3928 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 3929 | fi |
| 3930 | fi |
| 3931 | fi |
| 3932 | |
| 3933 | |
| 3934 | |
| 3935 | |
| 3936 | |
| 3937 | |
| 3938 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3939 | echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 3940 | echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3941 | # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
| 3942 | if test "${enable_pythoninterp+set}" = set; then |
| 3943 | enableval="$enable_pythoninterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3944 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3945 | else |
| 3946 | enable_pythoninterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3947 | fi; |
| 3948 | echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 3949 | echo "${ECHO_T}$enable_pythoninterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3950 | if test "$enable_pythoninterp" = "yes"; then |
| 3951 | # Extract the first word of "python", so it can be a program name with args. |
| 3952 | set dummy python; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3955 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
| 3956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3957 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3958 | case $vi_cv_path_python in |
| 3959 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3960 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 3961 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3962 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3964 | for as_dir in $PATH |
| 3965 | do |
| 3966 | IFS=$as_save_IFS |
| 3967 | test -z "$as_dir" && as_dir=. |
| 3968 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3969 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3970 | ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
| 3971 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3972 | break 2 |
| 3973 | fi |
| 3974 | done |
| 3975 | done |
| 3976 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3977 | ;; |
| 3978 | esac |
| 3979 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3980 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
| 3981 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3982 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3983 | echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 3984 | echo "${ECHO_T}$vi_cv_path_python" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3985 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3986 | echo "$as_me:$LINENO: result: no" >&5 |
| 3987 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3988 | fi |
| 3989 | |
| 3990 | if test "X$vi_cv_path_python" != "X"; then |
| 3991 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3992 | echo "$as_me:$LINENO: checking Python version" >&5 |
| 3993 | echo $ECHO_N "checking Python version... $ECHO_C" >&6 |
| 3994 | if test "${vi_cv_var_python_version+set}" = set; then |
| 3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3996 | else |
| 3997 | vi_cv_var_python_version=` |
| 3998 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3999 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4000 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4001 | echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 4002 | echo "${ECHO_T}$vi_cv_var_python_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4003 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4004 | echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 4005 | 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] | 4006 | if ${vi_cv_path_python} -c \ |
| 4007 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 4008 | then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4009 | echo "$as_me:$LINENO: result: yep" >&5 |
| 4010 | echo "${ECHO_T}yep" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4011 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4012 | echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 4013 | echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6 |
| 4014 | if test "${vi_cv_path_python_pfx+set}" = set; then |
| 4015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4016 | else |
| 4017 | vi_cv_path_python_pfx=` |
| 4018 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4019 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4020 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4021 | echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 4022 | echo "${ECHO_T}$vi_cv_path_python_pfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4023 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4024 | echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 4025 | echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6 |
| 4026 | if test "${vi_cv_path_python_epfx+set}" = set; then |
| 4027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4028 | else |
| 4029 | vi_cv_path_python_epfx=` |
| 4030 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4031 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4032 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4033 | echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 4034 | echo "${ECHO_T}$vi_cv_path_python_epfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4035 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4036 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4037 | if test "${vi_cv_path_pythonpath+set}" = set; then |
| 4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4039 | else |
| 4040 | vi_cv_path_pythonpath=` |
| 4041 | unset PYTHONPATH; |
| 4042 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4043 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4044 | fi |
| 4045 | |
| 4046 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4047 | |
| 4048 | |
| 4049 | # 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] | 4050 | if test "${with_python_config_dir+set}" = set; then |
| 4051 | withval="$with_python_config_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4052 | vi_cv_path_python_conf="${withval}" |
| 4053 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4054 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4055 | echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 4056 | echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6 |
| 4057 | if test "${vi_cv_path_python_conf+set}" = set; then |
| 4058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4059 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4060 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4061 | vi_cv_path_python_conf= |
| 4062 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 4063 | for subdir in lib share; do |
| 4064 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 4065 | if test -d "$d" && test -f "$d/config.c"; then |
| 4066 | vi_cv_path_python_conf="$d" |
| 4067 | fi |
| 4068 | done |
| 4069 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4070 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4071 | fi |
| 4072 | echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 4073 | echo "${ECHO_T}$vi_cv_path_python_conf" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4074 | |
| 4075 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 4076 | |
| 4077 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4078 | echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 4079 | echo "${ECHO_T}can't find it!" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4080 | else |
| 4081 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4082 | if test "${vi_cv_path_python_plibs+set}" = set; then |
| 4083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4084 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4085 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4086 | tmp_mkf="/tmp/Makefile-conf$$" |
| 4087 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 4088 | __: |
| 4089 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 4090 | @echo "python_LIBS='$(LIBS)'" |
| 4091 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 4092 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 4093 | eof |
| 4094 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 4095 | rm -f ${tmp_mkf} |
| 4096 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 4097 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 4098 | vi_cv_path_python_plibs="-framework Python" |
| 4099 | else |
| 4100 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4101 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 4102 | else |
| 4103 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 4104 | fi |
| 4105 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 4106 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 4107 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4108 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4109 | fi |
| 4110 | |
| 4111 | |
| 4112 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 4113 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 4114 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 4115 | else |
| 4116 | 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}" |
| 4117 | fi |
| 4118 | PYTHON_SRC="if_python.c" |
| 4119 | if test "x$MACOSX" = "xyes"; then |
| 4120 | PYTHON_OBJ="objects/if_python.o" |
| 4121 | else |
| 4122 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 4123 | fi |
| 4124 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4125 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 4126 | fi |
| 4127 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 4128 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4129 | echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 4130 | echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4131 | threadsafe_flag= |
| 4132 | thread_lib= |
| 4133 | if test "x$MACOSX" != "xyes"; then |
| 4134 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 4135 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 4136 | threadsafe_flag="-D_THREAD_SAFE" |
| 4137 | thread_lib="-pthread" |
| 4138 | fi |
| 4139 | fi |
| 4140 | libs_save_old=$LIBS |
| 4141 | if test -n "$threadsafe_flag"; then |
| 4142 | cflags_save=$CFLAGS |
| 4143 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 4144 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4145 | cat >conftest.$ac_ext <<_ACEOF |
| 4146 | /* confdefs.h. */ |
| 4147 | _ACEOF |
| 4148 | cat confdefs.h >>conftest.$ac_ext |
| 4149 | cat >>conftest.$ac_ext <<_ACEOF |
| 4150 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4151 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4152 | int |
| 4153 | main () |
| 4154 | { |
| 4155 | |
| 4156 | ; |
| 4157 | return 0; |
| 4158 | } |
| 4159 | _ACEOF |
| 4160 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4162 | (eval $ac_link) 2>conftest.er1 |
| 4163 | ac_status=$? |
| 4164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4165 | rm -f conftest.er1 |
| 4166 | cat conftest.err >&5 |
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4168 | (exit $ac_status); } && |
| 4169 | { ac_try='test -z "$ac_c_werror_flag" |
| 4170 | || test ! -s conftest.err' |
| 4171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4172 | (eval $ac_try) 2>&5 |
| 4173 | ac_status=$? |
| 4174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4175 | (exit $ac_status); }; } && |
| 4176 | { ac_try='test -s conftest$ac_exeext' |
| 4177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4178 | (eval $ac_try) 2>&5 |
| 4179 | ac_status=$? |
| 4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4181 | (exit $ac_status); }; }; then |
| 4182 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4183 | echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4184 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4185 | echo "$as_me: failed program was:" >&5 |
| 4186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4187 | |
| 4188 | echo "$as_me:$LINENO: result: no" >&5 |
| 4189 | echo "${ECHO_T}no" >&6; LIBS=$libs_save_old |
| 4190 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4191 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4192 | rm -f conftest.err conftest.$ac_objext \ |
| 4193 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4194 | CFLAGS=$cflags_save |
| 4195 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4196 | echo "$as_me:$LINENO: result: no" >&5 |
| 4197 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4198 | fi |
| 4199 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4200 | echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 4201 | 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] | 4202 | cflags_save=$CFLAGS |
| 4203 | libs_save=$LIBS |
| 4204 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 4205 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4206 | cat >conftest.$ac_ext <<_ACEOF |
| 4207 | /* confdefs.h. */ |
| 4208 | _ACEOF |
| 4209 | cat confdefs.h >>conftest.$ac_ext |
| 4210 | cat >>conftest.$ac_ext <<_ACEOF |
| 4211 | /* end confdefs.h. */ |
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 | int |
| 4214 | main () |
| 4215 | { |
| 4216 | |
| 4217 | ; |
| 4218 | return 0; |
| 4219 | } |
| 4220 | _ACEOF |
| 4221 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4223 | (eval $ac_link) 2>conftest.er1 |
| 4224 | ac_status=$? |
| 4225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4226 | rm -f conftest.er1 |
| 4227 | cat conftest.err >&5 |
| 4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4229 | (exit $ac_status); } && |
| 4230 | { ac_try='test -z "$ac_c_werror_flag" |
| 4231 | || test ! -s conftest.err' |
| 4232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4233 | (eval $ac_try) 2>&5 |
| 4234 | ac_status=$? |
| 4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4236 | (exit $ac_status); }; } && |
| 4237 | { ac_try='test -s conftest$ac_exeext' |
| 4238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4239 | (eval $ac_try) 2>&5 |
| 4240 | ac_status=$? |
| 4241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4242 | (exit $ac_status); }; }; then |
| 4243 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4244 | echo "${ECHO_T}yes" >&6; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4245 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4246 | echo "$as_me: failed program was:" >&5 |
| 4247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4248 | |
| 4249 | echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 4250 | echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4251 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4252 | rm -f conftest.err conftest.$ac_objext \ |
| 4253 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4254 | CFLAGS=$cflags_save |
| 4255 | LIBS=$libs_save |
| 4256 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4257 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4258 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4259 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4260 | |
| 4261 | else |
| 4262 | LIBS=$libs_save_old |
| 4263 | PYTHON_SRC= |
| 4264 | PYTHON_OBJ= |
| 4265 | PYTHON_LIBS= |
| 4266 | PYTHON_CFLAGS= |
| 4267 | fi |
| 4268 | |
| 4269 | fi |
| 4270 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4271 | echo "$as_me:$LINENO: result: too old" >&5 |
| 4272 | echo "${ECHO_T}too old" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4273 | fi |
| 4274 | fi |
| 4275 | fi |
| 4276 | |
| 4277 | |
| 4278 | |
| 4279 | |
| 4280 | |
| 4281 | |
| 4282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4283 | echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 4284 | echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4285 | # Check whether --enable-tclinterp or --disable-tclinterp was given. |
| 4286 | if test "${enable_tclinterp+set}" = set; then |
| 4287 | enableval="$enable_tclinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4288 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4289 | else |
| 4290 | enable_tclinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4291 | fi; |
| 4292 | echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 4293 | echo "${ECHO_T}$enable_tclinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4294 | |
| 4295 | if test "$enable_tclinterp" = "yes"; then |
| 4296 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4297 | echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 4298 | echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6 |
| 4299 | |
| 4300 | # Check whether --with-tclsh or --without-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4301 | if test "${with_tclsh+set}" = set; then |
| 4302 | withval="$with_tclsh" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4303 | tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 4304 | echo "${ECHO_T}$tclsh_name" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4305 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4306 | tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5 |
| 4307 | echo "${ECHO_T}no" >&6 |
| 4308 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4309 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4310 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4311 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4312 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4313 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4315 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4316 | case $vi_cv_path_tcl in |
| 4317 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4318 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4319 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4320 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4322 | for as_dir in $PATH |
| 4323 | do |
| 4324 | IFS=$as_save_IFS |
| 4325 | test -z "$as_dir" && as_dir=. |
| 4326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4328 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4330 | break 2 |
| 4331 | fi |
| 4332 | done |
| 4333 | done |
| 4334 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4335 | ;; |
| 4336 | esac |
| 4337 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4338 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4339 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4340 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4341 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4342 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4343 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4344 | echo "$as_me:$LINENO: result: no" >&5 |
| 4345 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4346 | fi |
| 4347 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4348 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4349 | |
| 4350 | 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] | 4351 | tclsh_name="tclsh8.2" |
| 4352 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4353 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4356 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4358 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4359 | case $vi_cv_path_tcl in |
| 4360 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4361 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4362 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4363 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4365 | for as_dir in $PATH |
| 4366 | do |
| 4367 | IFS=$as_save_IFS |
| 4368 | test -z "$as_dir" && as_dir=. |
| 4369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4370 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4371 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4373 | break 2 |
| 4374 | fi |
| 4375 | done |
| 4376 | done |
| 4377 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4378 | ;; |
| 4379 | esac |
| 4380 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4381 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4382 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4383 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4384 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4385 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4386 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4387 | echo "$as_me:$LINENO: result: no" >&5 |
| 4388 | echo "${ECHO_T}no" >&6 |
| 4389 | fi |
| 4390 | |
| 4391 | fi |
| 4392 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 4393 | tclsh_name="tclsh8.0" |
| 4394 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4395 | set dummy $tclsh_name; ac_word=$2 |
| 4396 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4398 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4400 | else |
| 4401 | case $vi_cv_path_tcl in |
| 4402 | [\\/]* | ?:[\\/]*) |
| 4403 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4404 | ;; |
| 4405 | *) |
| 4406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4407 | for as_dir in $PATH |
| 4408 | do |
| 4409 | IFS=$as_save_IFS |
| 4410 | test -z "$as_dir" && as_dir=. |
| 4411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4412 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4413 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4415 | break 2 |
| 4416 | fi |
| 4417 | done |
| 4418 | done |
| 4419 | |
| 4420 | ;; |
| 4421 | esac |
| 4422 | fi |
| 4423 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4424 | |
| 4425 | if test -n "$vi_cv_path_tcl"; then |
| 4426 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4427 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
| 4428 | else |
| 4429 | echo "$as_me:$LINENO: result: no" >&5 |
| 4430 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4431 | fi |
| 4432 | |
| 4433 | fi |
| 4434 | if test "X$vi_cv_path_tcl" = "X"; then |
| 4435 | tclsh_name="tclsh" |
| 4436 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4437 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4438 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4440 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4442 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4443 | case $vi_cv_path_tcl in |
| 4444 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4445 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4446 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4447 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4449 | for as_dir in $PATH |
| 4450 | do |
| 4451 | IFS=$as_save_IFS |
| 4452 | test -z "$as_dir" && as_dir=. |
| 4453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4455 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4457 | break 2 |
| 4458 | fi |
| 4459 | done |
| 4460 | done |
| 4461 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4462 | ;; |
| 4463 | esac |
| 4464 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4465 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4466 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4467 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4468 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4469 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4470 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4471 | echo "$as_me:$LINENO: result: no" >&5 |
| 4472 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4473 | fi |
| 4474 | |
| 4475 | fi |
| 4476 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4477 | echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 4478 | echo $ECHO_N "checking Tcl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4479 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 4480 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4481 | echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 4482 | echo "${ECHO_T}$tclver - OK" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4483 | 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 -` |
| 4484 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4485 | echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 4486 | echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4487 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 47136d7 | 2004-10-12 20:02:24 +0000 | [diff] [blame] | 4488 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4489 | else |
| 4490 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 4491 | fi |
| 4492 | for try in $tclinc; do |
| 4493 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4494 | echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 4495 | echo "${ECHO_T}$try/tcl.h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4496 | TCL_INC=$try |
| 4497 | break |
| 4498 | fi |
| 4499 | done |
| 4500 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4501 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4502 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4503 | SKIP_TCL=YES |
| 4504 | fi |
| 4505 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4506 | echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 4507 | 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] | 4508 | if test "x$MACOSX" != "xyes"; then |
| 4509 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 4510 | else |
| 4511 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 4512 | fi |
| 4513 | for try in $tclcnf; do |
| 4514 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4515 | echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 4516 | echo "${ECHO_T}$try/tclConfig.sh" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4517 | . $try/tclConfig.sh |
| 4518 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 4519 | TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\ /\\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4520 | break |
| 4521 | fi |
| 4522 | done |
| 4523 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4524 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4525 | echo "${ECHO_T}<not found>" >&6 |
| 4526 | echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 4527 | echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4528 | tcllib=`echo $tclinc | sed s/include/lib/g` |
| 4529 | for ext in .so .a ; do |
| 4530 | for ver in "" $tclver ; do |
| 4531 | for try in $tcllib ; do |
| 4532 | trylib=tcl$ver$ext |
| 4533 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4534 | echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 4535 | echo "${ECHO_T}$try/lib$trylib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4536 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 4537 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 4538 | uname -r | grep '^5' >/dev/null; then |
| 4539 | TCL_LIBS="$TCL_LIBS -R $try" |
| 4540 | fi |
| 4541 | break 3 |
| 4542 | fi |
| 4543 | done |
| 4544 | done |
| 4545 | done |
| 4546 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4547 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4548 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4549 | SKIP_TCL=YES |
| 4550 | fi |
| 4551 | fi |
| 4552 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4553 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4554 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4555 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4556 | |
| 4557 | TCL_SRC=if_tcl.c |
| 4558 | TCL_OBJ=objects/if_tcl.o |
| 4559 | TCL_PRO=if_tcl.pro |
| 4560 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 4561 | fi |
| 4562 | fi |
| 4563 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4564 | echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 4565 | 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] | 4566 | fi |
| 4567 | fi |
| 4568 | fi |
| 4569 | |
| 4570 | |
| 4571 | |
| 4572 | |
| 4573 | |
| 4574 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4575 | echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 4576 | echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4577 | # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
| 4578 | if test "${enable_rubyinterp+set}" = set; then |
| 4579 | enableval="$enable_rubyinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4580 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4581 | else |
| 4582 | enable_rubyinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4583 | fi; |
| 4584 | echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 4585 | echo "${ECHO_T}$enable_rubyinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4586 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4587 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4588 | # Extract the first word of "ruby", so it can be a program name with args. |
| 4589 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4590 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4592 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
| 4593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4594 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4595 | case $vi_cv_path_ruby in |
| 4596 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4597 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 4598 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4599 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4601 | for as_dir in $PATH |
| 4602 | do |
| 4603 | IFS=$as_save_IFS |
| 4604 | test -z "$as_dir" && as_dir=. |
| 4605 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4607 | ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
| 4608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4609 | break 2 |
| 4610 | fi |
| 4611 | done |
| 4612 | done |
| 4613 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4614 | ;; |
| 4615 | esac |
| 4616 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4617 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
| 4618 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4619 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4620 | echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 4621 | echo "${ECHO_T}$vi_cv_path_ruby" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4622 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4623 | echo "$as_me:$LINENO: result: no" >&5 |
| 4624 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4625 | fi |
| 4626 | |
| 4627 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4628 | echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 4629 | echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 4630 | 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] | 4631 | echo "$as_me:$LINENO: result: OK" >&5 |
| 4632 | echo "${ECHO_T}OK" >&6 |
| 4633 | echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 4634 | echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4635 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 4636 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4637 | echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 4638 | echo "${ECHO_T}$rubyhdrdir" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4639 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 4640 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 4641 | if test "X$rubylibs" != "X"; then |
| 4642 | RUBY_LIBS="$rubylibs" |
| 4643 | fi |
| 4644 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 4645 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 4646 | librubyarg="$rubyhdrdir/$librubyarg" |
| 4647 | else |
| 4648 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 4649 | if test -f "$rubylibdir/$librubyarg"; then |
| 4650 | librubyarg="$rubylibdir/$librubyarg" |
| 4651 | elif test "$librubyarg" = "libruby.a"; then |
| 4652 | librubyarg="-lruby" |
| 4653 | else |
| 4654 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 4655 | fi |
| 4656 | fi |
| 4657 | |
| 4658 | if test "X$librubyarg" != "X"; then |
| 4659 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 4660 | fi |
| 4661 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 4662 | if test "X$rubyldflags" != "X"; then |
| 4663 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 4664 | fi |
| 4665 | RUBY_SRC="if_ruby.c" |
| 4666 | RUBY_OBJ="objects/if_ruby.o" |
| 4667 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4668 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4669 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4670 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4671 | |
| 4672 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4673 | echo "$as_me:$LINENO: result: not found" >&5 |
| 4674 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4675 | fi |
| 4676 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4677 | echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 4678 | 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] | 4679 | fi |
| 4680 | fi |
| 4681 | fi |
| 4682 | |
| 4683 | |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4688 | echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 4689 | echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4690 | # Check whether --enable-cscope or --disable-cscope was given. |
| 4691 | if test "${enable_cscope+set}" = set; then |
| 4692 | enableval="$enable_cscope" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4693 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4694 | else |
| 4695 | enable_cscope="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4696 | fi; |
| 4697 | echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 4698 | echo "${ECHO_T}$enable_cscope" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4699 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4700 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4701 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4702 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4703 | |
| 4704 | fi |
| 4705 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4706 | echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 4707 | echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4708 | # Check whether --enable-workshop or --disable-workshop was given. |
| 4709 | if test "${enable_workshop+set}" = set; then |
| 4710 | enableval="$enable_workshop" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4711 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4712 | else |
| 4713 | enable_workshop="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4714 | fi; |
| 4715 | echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 4716 | echo "${ECHO_T}$enable_workshop" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4717 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4718 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4719 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4720 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4721 | |
| 4722 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4723 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4724 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4725 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4726 | if test "${enable_gui-xxx}" = xxx; then |
| 4727 | enable_gui=motif |
| 4728 | fi |
| 4729 | fi |
| 4730 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4731 | echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 4732 | echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4733 | # Check whether --enable-netbeans or --disable-netbeans was given. |
| 4734 | if test "${enable_netbeans+set}" = set; then |
| 4735 | enableval="$enable_netbeans" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4736 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4737 | else |
| 4738 | enable_netbeans="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4739 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4740 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4741 | echo "$as_me:$LINENO: result: no" >&5 |
| 4742 | echo "${ECHO_T}no" >&6 |
| 4743 | |
| 4744 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4745 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4746 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4748 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4749 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4750 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4751 | cat >conftest.$ac_ext <<_ACEOF |
| 4752 | /* confdefs.h. */ |
| 4753 | _ACEOF |
| 4754 | cat confdefs.h >>conftest.$ac_ext |
| 4755 | cat >>conftest.$ac_ext <<_ACEOF |
| 4756 | /* end confdefs.h. */ |
| 4757 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4758 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4759 | #ifdef __cplusplus |
| 4760 | extern "C" |
| 4761 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4762 | /* 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] | 4763 | builtin and then its argument prototype would still apply. */ |
| 4764 | char socket (); |
| 4765 | int |
| 4766 | main () |
| 4767 | { |
| 4768 | socket (); |
| 4769 | ; |
| 4770 | return 0; |
| 4771 | } |
| 4772 | _ACEOF |
| 4773 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4775 | (eval $ac_link) 2>conftest.er1 |
| 4776 | ac_status=$? |
| 4777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4778 | rm -f conftest.er1 |
| 4779 | cat conftest.err >&5 |
| 4780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4781 | (exit $ac_status); } && |
| 4782 | { ac_try='test -z "$ac_c_werror_flag" |
| 4783 | || test ! -s conftest.err' |
| 4784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4785 | (eval $ac_try) 2>&5 |
| 4786 | ac_status=$? |
| 4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4788 | (exit $ac_status); }; } && |
| 4789 | { ac_try='test -s conftest$ac_exeext' |
| 4790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4791 | (eval $ac_try) 2>&5 |
| 4792 | ac_status=$? |
| 4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4794 | (exit $ac_status); }; }; then |
| 4795 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4796 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4797 | echo "$as_me: failed program was:" >&5 |
| 4798 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4799 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4800 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4801 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4802 | rm -f conftest.err conftest.$ac_objext \ |
| 4803 | conftest$ac_exeext conftest.$ac_ext |
| 4804 | LIBS=$ac_check_lib_save_LIBS |
| 4805 | fi |
| 4806 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4807 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4808 | if test $ac_cv_lib_socket_socket = yes; then |
| 4809 | cat >>confdefs.h <<_ACEOF |
| 4810 | #define HAVE_LIBSOCKET 1 |
| 4811 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4812 | |
| 4813 | LIBS="-lsocket $LIBS" |
| 4814 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4815 | fi |
| 4816 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4817 | |
| 4818 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4819 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4820 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4822 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4823 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4824 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4825 | cat >conftest.$ac_ext <<_ACEOF |
| 4826 | /* confdefs.h. */ |
| 4827 | _ACEOF |
| 4828 | cat confdefs.h >>conftest.$ac_ext |
| 4829 | cat >>conftest.$ac_ext <<_ACEOF |
| 4830 | /* end confdefs.h. */ |
| 4831 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4832 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4833 | #ifdef __cplusplus |
| 4834 | extern "C" |
| 4835 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4836 | /* 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] | 4837 | builtin and then its argument prototype would still apply. */ |
| 4838 | char gethostbyname (); |
| 4839 | int |
| 4840 | main () |
| 4841 | { |
| 4842 | gethostbyname (); |
| 4843 | ; |
| 4844 | return 0; |
| 4845 | } |
| 4846 | _ACEOF |
| 4847 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4849 | (eval $ac_link) 2>conftest.er1 |
| 4850 | ac_status=$? |
| 4851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4852 | rm -f conftest.er1 |
| 4853 | cat conftest.err >&5 |
| 4854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4855 | (exit $ac_status); } && |
| 4856 | { ac_try='test -z "$ac_c_werror_flag" |
| 4857 | || test ! -s conftest.err' |
| 4858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4859 | (eval $ac_try) 2>&5 |
| 4860 | ac_status=$? |
| 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4862 | (exit $ac_status); }; } && |
| 4863 | { ac_try='test -s conftest$ac_exeext' |
| 4864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4865 | (eval $ac_try) 2>&5 |
| 4866 | ac_status=$? |
| 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4868 | (exit $ac_status); }; }; then |
| 4869 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4870 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4871 | echo "$as_me: failed program was:" >&5 |
| 4872 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4873 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4874 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4875 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4876 | rm -f conftest.err conftest.$ac_objext \ |
| 4877 | conftest$ac_exeext conftest.$ac_ext |
| 4878 | LIBS=$ac_check_lib_save_LIBS |
| 4879 | fi |
| 4880 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4881 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 4882 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 4883 | cat >>confdefs.h <<_ACEOF |
| 4884 | #define HAVE_LIBNSL 1 |
| 4885 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4886 | |
| 4887 | LIBS="-lnsl $LIBS" |
| 4888 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4889 | fi |
| 4890 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4891 | echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 4892 | echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6 |
| 4893 | cat >conftest.$ac_ext <<_ACEOF |
| 4894 | /* confdefs.h. */ |
| 4895 | _ACEOF |
| 4896 | cat confdefs.h >>conftest.$ac_ext |
| 4897 | cat >>conftest.$ac_ext <<_ACEOF |
| 4898 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4899 | |
| 4900 | #include <stdio.h> |
| 4901 | #include <stdlib.h> |
| 4902 | #include <stdarg.h> |
| 4903 | #include <fcntl.h> |
| 4904 | #include <netdb.h> |
| 4905 | #include <netinet/in.h> |
| 4906 | #include <errno.h> |
| 4907 | #include <sys/types.h> |
| 4908 | #include <sys/socket.h> |
| 4909 | /* Check bitfields */ |
| 4910 | struct nbbuf { |
| 4911 | unsigned int initDone:1; |
| 4912 | ushort signmaplen; |
| 4913 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4914 | |
| 4915 | int |
| 4916 | main () |
| 4917 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4918 | |
| 4919 | /* Check creating a socket. */ |
| 4920 | struct sockaddr_in server; |
| 4921 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 4922 | (void)htons(100); |
| 4923 | (void)gethostbyname("microsoft.com"); |
| 4924 | if (errno == ECONNREFUSED) |
| 4925 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4926 | |
| 4927 | ; |
| 4928 | return 0; |
| 4929 | } |
| 4930 | _ACEOF |
| 4931 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4933 | (eval $ac_link) 2>conftest.er1 |
| 4934 | ac_status=$? |
| 4935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4936 | rm -f conftest.er1 |
| 4937 | cat conftest.err >&5 |
| 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4939 | (exit $ac_status); } && |
| 4940 | { ac_try='test -z "$ac_c_werror_flag" |
| 4941 | || test ! -s conftest.err' |
| 4942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4943 | (eval $ac_try) 2>&5 |
| 4944 | ac_status=$? |
| 4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4946 | (exit $ac_status); }; } && |
| 4947 | { ac_try='test -s conftest$ac_exeext' |
| 4948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4949 | (eval $ac_try) 2>&5 |
| 4950 | ac_status=$? |
| 4951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4952 | (exit $ac_status); }; }; then |
| 4953 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4954 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4955 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4956 | echo "$as_me: failed program was:" >&5 |
| 4957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4958 | |
| 4959 | echo "$as_me:$LINENO: result: no" >&5 |
| 4960 | echo "${ECHO_T}no" >&6; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4961 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4962 | rm -f conftest.err conftest.$ac_objext \ |
| 4963 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4964 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4965 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4966 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4967 | fi |
| 4968 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4969 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4970 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4971 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4972 | |
| 4973 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4974 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4975 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4976 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4977 | fi |
| 4978 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4979 | echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 4980 | echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4981 | # Check whether --enable-sniff or --disable-sniff was given. |
| 4982 | if test "${enable_sniff+set}" = set; then |
| 4983 | enableval="$enable_sniff" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4984 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4985 | else |
| 4986 | enable_sniff="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4987 | fi; |
| 4988 | echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 4989 | echo "${ECHO_T}$enable_sniff" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4990 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4991 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4992 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4993 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4994 | |
| 4995 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4996 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4997 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4998 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4999 | fi |
| 5000 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5001 | echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 5002 | echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5003 | # Check whether --enable-multibyte or --disable-multibyte was given. |
| 5004 | if test "${enable_multibyte+set}" = set; then |
| 5005 | enableval="$enable_multibyte" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5006 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5007 | else |
| 5008 | enable_multibyte="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5009 | fi; |
| 5010 | echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 5011 | echo "${ECHO_T}$enable_multibyte" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5012 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5013 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5014 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5015 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5016 | |
| 5017 | fi |
| 5018 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5019 | echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 5020 | echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5021 | # Check whether --enable-hangulinput or --disable-hangulinput was given. |
| 5022 | if test "${enable_hangulinput+set}" = set; then |
| 5023 | enableval="$enable_hangulinput" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5024 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5025 | else |
| 5026 | enable_hangulinput="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5027 | fi; |
| 5028 | echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 5029 | echo "${ECHO_T}$enable_hangulinput" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5030 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5031 | echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 5032 | echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5033 | # Check whether --enable-xim or --disable-xim was given. |
| 5034 | if test "${enable_xim+set}" = set; then |
| 5035 | enableval="$enable_xim" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5036 | echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 5037 | echo "${ECHO_T}$enable_xim" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5038 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5039 | enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 5040 | echo "${ECHO_T}defaulting to auto" >&6 |
| 5041 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5042 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5043 | echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 5044 | echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5045 | # Check whether --enable-fontset or --disable-fontset was given. |
| 5046 | if test "${enable_fontset+set}" = set; then |
| 5047 | enableval="$enable_fontset" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5048 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5049 | else |
| 5050 | enable_fontset="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5051 | fi; |
| 5052 | echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 5053 | echo "${ECHO_T}$enable_fontset" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5054 | |
| 5055 | test -z "$with_x" && with_x=yes |
| 5056 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 5057 | if test "$with_x" = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5058 | echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 5059 | echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5060 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5061 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5062 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 5063 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5066 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
| 5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5068 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5069 | case $xmkmfpath in |
| 5070 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5071 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 5072 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5073 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5075 | for as_dir in $PATH |
| 5076 | do |
| 5077 | IFS=$as_save_IFS |
| 5078 | test -z "$as_dir" && as_dir=. |
| 5079 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5081 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
| 5082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5083 | break 2 |
| 5084 | fi |
| 5085 | done |
| 5086 | done |
| 5087 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5088 | ;; |
| 5089 | esac |
| 5090 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5091 | xmkmfpath=$ac_cv_path_xmkmfpath |
| 5092 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5093 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5094 | echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 5095 | echo "${ECHO_T}$xmkmfpath" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5096 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5097 | echo "$as_me:$LINENO: result: no" >&5 |
| 5098 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5099 | fi |
| 5100 | |
| 5101 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5102 | echo "$as_me:$LINENO: checking for X" >&5 |
| 5103 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 5104 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5105 | |
| 5106 | # Check whether --with-x or --without-x was given. |
| 5107 | if test "${with_x+set}" = set; then |
| 5108 | withval="$with_x" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5109 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5110 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5111 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 5112 | if test "x$with_x" = xno; then |
| 5113 | # The user explicitly disabled X. |
| 5114 | have_x=disabled |
| 5115 | else |
| 5116 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 5117 | # Both variables are already set. |
| 5118 | have_x=yes |
| 5119 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5120 | if test "${ac_cv_have_x+set}" = set; then |
| 5121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5122 | else |
| 5123 | # 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] | 5124 | ac_x_includes=no ac_x_libraries=no |
| 5125 | rm -fr conftest.dir |
| 5126 | if mkdir conftest.dir; then |
| 5127 | cd conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5128 | # 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] | 5129 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5130 | acfindx: |
| 5131 | @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] | 5132 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5133 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 5134 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5135 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 5136 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 5137 | for ac_extension in a so sl; do |
| 5138 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5139 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 5140 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5141 | fi |
| 5142 | done |
| 5143 | # Screen out bogus values from the imake configuration. They are |
| 5144 | # bogus both because they are the default anyway, and because |
| 5145 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5146 | case $ac_im_incroot in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5147 | /usr/include) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5148 | *) 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] | 5149 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5150 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5151 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5152 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5153 | esac |
| 5154 | fi |
| 5155 | cd .. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5156 | rm -fr conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5157 | fi |
| 5158 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5159 | # Standard set of common directories for X headers. |
| 5160 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 5161 | ac_x_header_dirs=' |
| 5162 | /usr/X11/include |
| 5163 | /usr/X11R6/include |
| 5164 | /usr/X11R5/include |
| 5165 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5166 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5167 | /usr/include/X11 |
| 5168 | /usr/include/X11R6 |
| 5169 | /usr/include/X11R5 |
| 5170 | /usr/include/X11R4 |
| 5171 | |
| 5172 | /usr/local/X11/include |
| 5173 | /usr/local/X11R6/include |
| 5174 | /usr/local/X11R5/include |
| 5175 | /usr/local/X11R4/include |
| 5176 | |
| 5177 | /usr/local/include/X11 |
| 5178 | /usr/local/include/X11R6 |
| 5179 | /usr/local/include/X11R5 |
| 5180 | /usr/local/include/X11R4 |
| 5181 | |
| 5182 | /usr/X386/include |
| 5183 | /usr/x386/include |
| 5184 | /usr/XFree86/include/X11 |
| 5185 | |
| 5186 | /usr/include |
| 5187 | /usr/local/include |
| 5188 | /usr/unsupported/include |
| 5189 | /usr/athena/include |
| 5190 | /usr/local/x11r5/include |
| 5191 | /usr/lpp/Xamples/include |
| 5192 | |
| 5193 | /usr/openwin/include |
| 5194 | /usr/openwin/share/include' |
| 5195 | |
| 5196 | if test "$ac_x_includes" = no; then |
| 5197 | # Guess where to find include files, by looking for Intrinsic.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5198 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5199 | cat >conftest.$ac_ext <<_ACEOF |
| 5200 | /* confdefs.h. */ |
| 5201 | _ACEOF |
| 5202 | cat confdefs.h >>conftest.$ac_ext |
| 5203 | cat >>conftest.$ac_ext <<_ACEOF |
| 5204 | /* end confdefs.h. */ |
| 5205 | #include <X11/Intrinsic.h> |
| 5206 | _ACEOF |
| 5207 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5208 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5209 | ac_status=$? |
| 5210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5211 | rm -f conftest.er1 |
| 5212 | cat conftest.err >&5 |
| 5213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5214 | (exit $ac_status); } >/dev/null; then |
| 5215 | if test -s conftest.err; then |
| 5216 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5217 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5218 | else |
| 5219 | ac_cpp_err= |
| 5220 | fi |
| 5221 | else |
| 5222 | ac_cpp_err=yes |
| 5223 | fi |
| 5224 | if test -z "$ac_cpp_err"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5225 | # We can compile using X headers with no special include directory. |
| 5226 | ac_x_includes= |
| 5227 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5228 | echo "$as_me: failed program was:" >&5 |
| 5229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5230 | |
| 5231 | for ac_dir in $ac_x_header_dirs; do |
| 5232 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 5233 | ac_x_includes=$ac_dir |
| 5234 | break |
| 5235 | fi |
| 5236 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5237 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5238 | rm -f conftest.err conftest.$ac_ext |
| 5239 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5240 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5241 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5242 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5243 | # See if we find them without any special options. |
| 5244 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5245 | ac_save_LIBS=$LIBS |
| 5246 | LIBS="-lXt $LIBS" |
| 5247 | cat >conftest.$ac_ext <<_ACEOF |
| 5248 | /* confdefs.h. */ |
| 5249 | _ACEOF |
| 5250 | cat confdefs.h >>conftest.$ac_ext |
| 5251 | cat >>conftest.$ac_ext <<_ACEOF |
| 5252 | /* end confdefs.h. */ |
| 5253 | #include <X11/Intrinsic.h> |
| 5254 | int |
| 5255 | main () |
| 5256 | { |
| 5257 | XtMalloc (0) |
| 5258 | ; |
| 5259 | return 0; |
| 5260 | } |
| 5261 | _ACEOF |
| 5262 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5264 | (eval $ac_link) 2>conftest.er1 |
| 5265 | ac_status=$? |
| 5266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5267 | rm -f conftest.er1 |
| 5268 | cat conftest.err >&5 |
| 5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5270 | (exit $ac_status); } && |
| 5271 | { ac_try='test -z "$ac_c_werror_flag" |
| 5272 | || test ! -s conftest.err' |
| 5273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5274 | (eval $ac_try) 2>&5 |
| 5275 | ac_status=$? |
| 5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5277 | (exit $ac_status); }; } && |
| 5278 | { ac_try='test -s conftest$ac_exeext' |
| 5279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5280 | (eval $ac_try) 2>&5 |
| 5281 | ac_status=$? |
| 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5283 | (exit $ac_status); }; }; then |
| 5284 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5285 | # We can link X programs with no special library path. |
| 5286 | ac_x_libraries= |
| 5287 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5288 | echo "$as_me: failed program was:" >&5 |
| 5289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5290 | |
| 5291 | LIBS=$ac_save_LIBS |
| 5292 | 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] | 5293 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5294 | # 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] | 5295 | for ac_extension in a so sl; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5296 | if test -r $ac_dir/libXt.$ac_extension; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5297 | ac_x_libraries=$ac_dir |
| 5298 | break 2 |
| 5299 | fi |
| 5300 | done |
| 5301 | done |
| 5302 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5303 | rm -f conftest.err conftest.$ac_objext \ |
| 5304 | conftest$ac_exeext conftest.$ac_ext |
| 5305 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5306 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5307 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5308 | # Didn't find X anywhere. Cache the known absence of X. |
| 5309 | ac_cv_have_x="have_x=no" |
| 5310 | else |
| 5311 | # Record where we found X for the cache. |
| 5312 | ac_cv_have_x="have_x=yes \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5313 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5314 | fi |
| 5315 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5317 | fi |
| 5318 | eval "$ac_cv_have_x" |
| 5319 | fi # $with_x != no |
| 5320 | |
| 5321 | if test "$have_x" != yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5322 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 5323 | echo "${ECHO_T}$have_x" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5324 | no_x=yes |
| 5325 | else |
| 5326 | # If each of the values was on the command line, it overrides each guess. |
| 5327 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 5328 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 5329 | # Update the cache value to reflect the command line values. |
| 5330 | ac_cv_have_x="have_x=yes \ |
| 5331 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5332 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 5333 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5334 | fi |
| 5335 | |
| 5336 | if test "$no_x" = yes; then |
| 5337 | # 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] | 5338 | |
| 5339 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5340 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5341 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5342 | |
| 5343 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 5344 | else |
| 5345 | if test -n "$x_includes"; then |
| 5346 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 5347 | fi |
| 5348 | |
| 5349 | # It would also be nice to do this for all -L options, not just this one. |
| 5350 | if test -n "$x_libraries"; then |
| 5351 | X_LIBS="$X_LIBS -L$x_libraries" |
| 5352 | # For Solaris; some versions of Sun CC require a space after -R and |
| 5353 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5354 | case `(uname -sr) 2>/dev/null` in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5355 | "SunOS 5"*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5356 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 5357 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 5358 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 5359 | cat >conftest.$ac_ext <<_ACEOF |
| 5360 | /* confdefs.h. */ |
| 5361 | _ACEOF |
| 5362 | cat confdefs.h >>conftest.$ac_ext |
| 5363 | cat >>conftest.$ac_ext <<_ACEOF |
| 5364 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5365 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5366 | int |
| 5367 | main () |
| 5368 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5369 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5370 | ; |
| 5371 | return 0; |
| 5372 | } |
| 5373 | _ACEOF |
| 5374 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5376 | (eval $ac_link) 2>conftest.er1 |
| 5377 | ac_status=$? |
| 5378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5379 | rm -f conftest.er1 |
| 5380 | cat conftest.err >&5 |
| 5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5382 | (exit $ac_status); } && |
| 5383 | { ac_try='test -z "$ac_c_werror_flag" |
| 5384 | || test ! -s conftest.err' |
| 5385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5386 | (eval $ac_try) 2>&5 |
| 5387 | ac_status=$? |
| 5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5389 | (exit $ac_status); }; } && |
| 5390 | { ac_try='test -s conftest$ac_exeext' |
| 5391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5392 | (eval $ac_try) 2>&5 |
| 5393 | ac_status=$? |
| 5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5395 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5396 | ac_R_nospace=yes |
| 5397 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5398 | echo "$as_me: failed program was:" >&5 |
| 5399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5400 | |
| 5401 | ac_R_nospace=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5402 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5403 | rm -f conftest.err conftest.$ac_objext \ |
| 5404 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5405 | if test $ac_R_nospace = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5406 | echo "$as_me:$LINENO: result: no" >&5 |
| 5407 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5408 | X_LIBS="$X_LIBS -R$x_libraries" |
| 5409 | else |
| 5410 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5411 | cat >conftest.$ac_ext <<_ACEOF |
| 5412 | /* confdefs.h. */ |
| 5413 | _ACEOF |
| 5414 | cat confdefs.h >>conftest.$ac_ext |
| 5415 | cat >>conftest.$ac_ext <<_ACEOF |
| 5416 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5417 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5418 | int |
| 5419 | main () |
| 5420 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5421 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5422 | ; |
| 5423 | return 0; |
| 5424 | } |
| 5425 | _ACEOF |
| 5426 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5428 | (eval $ac_link) 2>conftest.er1 |
| 5429 | ac_status=$? |
| 5430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5431 | rm -f conftest.er1 |
| 5432 | cat conftest.err >&5 |
| 5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5434 | (exit $ac_status); } && |
| 5435 | { ac_try='test -z "$ac_c_werror_flag" |
| 5436 | || test ! -s conftest.err' |
| 5437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5438 | (eval $ac_try) 2>&5 |
| 5439 | ac_status=$? |
| 5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5441 | (exit $ac_status); }; } && |
| 5442 | { ac_try='test -s conftest$ac_exeext' |
| 5443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5444 | (eval $ac_try) 2>&5 |
| 5445 | ac_status=$? |
| 5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5447 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5448 | ac_R_space=yes |
| 5449 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5450 | echo "$as_me: failed program was:" >&5 |
| 5451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5452 | |
| 5453 | ac_R_space=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5454 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5455 | rm -f conftest.err conftest.$ac_objext \ |
| 5456 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5457 | if test $ac_R_space = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5458 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5459 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5460 | X_LIBS="$X_LIBS -R $x_libraries" |
| 5461 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5462 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 5463 | echo "${ECHO_T}neither works" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5464 | fi |
| 5465 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5466 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5467 | esac |
| 5468 | fi |
| 5469 | |
| 5470 | # Check for system-dependent libraries X programs must link with. |
| 5471 | # Do this before checking for the system-independent R6 libraries |
| 5472 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 5473 | |
| 5474 | if test "$ISC" = yes; then |
| 5475 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 5476 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5477 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 5478 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5479 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5480 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 5481 | cat >conftest.$ac_ext <<_ACEOF |
| 5482 | /* confdefs.h. */ |
| 5483 | _ACEOF |
| 5484 | cat confdefs.h >>conftest.$ac_ext |
| 5485 | cat >>conftest.$ac_ext <<_ACEOF |
| 5486 | /* end confdefs.h. */ |
| 5487 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5488 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5489 | #ifdef __cplusplus |
| 5490 | extern "C" |
| 5491 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5492 | /* 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] | 5493 | builtin and then its argument prototype would still apply. */ |
| 5494 | char XOpenDisplay (); |
| 5495 | int |
| 5496 | main () |
| 5497 | { |
| 5498 | XOpenDisplay (); |
| 5499 | ; |
| 5500 | return 0; |
| 5501 | } |
| 5502 | _ACEOF |
| 5503 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5505 | (eval $ac_link) 2>conftest.er1 |
| 5506 | ac_status=$? |
| 5507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5508 | rm -f conftest.er1 |
| 5509 | cat conftest.err >&5 |
| 5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5511 | (exit $ac_status); } && |
| 5512 | { ac_try='test -z "$ac_c_werror_flag" |
| 5513 | || test ! -s conftest.err' |
| 5514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5515 | (eval $ac_try) 2>&5 |
| 5516 | ac_status=$? |
| 5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5518 | (exit $ac_status); }; } && |
| 5519 | { ac_try='test -s conftest$ac_exeext' |
| 5520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5521 | (eval $ac_try) 2>&5 |
| 5522 | ac_status=$? |
| 5523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5524 | (exit $ac_status); }; }; then |
| 5525 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5526 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5527 | echo "$as_me: failed program was:" >&5 |
| 5528 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5529 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5530 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 5531 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 5532 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 5533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5534 | else |
| 5535 | ac_check_lib_save_LIBS=$LIBS |
| 5536 | LIBS="-ldnet $LIBS" |
| 5537 | cat >conftest.$ac_ext <<_ACEOF |
| 5538 | /* confdefs.h. */ |
| 5539 | _ACEOF |
| 5540 | cat confdefs.h >>conftest.$ac_ext |
| 5541 | cat >>conftest.$ac_ext <<_ACEOF |
| 5542 | /* end confdefs.h. */ |
| 5543 | |
| 5544 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5545 | #ifdef __cplusplus |
| 5546 | extern "C" |
| 5547 | #endif |
| 5548 | /* We use char because int might match the return type of a gcc2 |
| 5549 | builtin and then its argument prototype would still apply. */ |
| 5550 | char dnet_ntoa (); |
| 5551 | int |
| 5552 | main () |
| 5553 | { |
| 5554 | dnet_ntoa (); |
| 5555 | ; |
| 5556 | return 0; |
| 5557 | } |
| 5558 | _ACEOF |
| 5559 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5561 | (eval $ac_link) 2>conftest.er1 |
| 5562 | ac_status=$? |
| 5563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5564 | rm -f conftest.er1 |
| 5565 | cat conftest.err >&5 |
| 5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5567 | (exit $ac_status); } && |
| 5568 | { ac_try='test -z "$ac_c_werror_flag" |
| 5569 | || test ! -s conftest.err' |
| 5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5571 | (eval $ac_try) 2>&5 |
| 5572 | ac_status=$? |
| 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5574 | (exit $ac_status); }; } && |
| 5575 | { ac_try='test -s conftest$ac_exeext' |
| 5576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5577 | (eval $ac_try) 2>&5 |
| 5578 | ac_status=$? |
| 5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5580 | (exit $ac_status); }; }; then |
| 5581 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 5582 | else |
| 5583 | echo "$as_me: failed program was:" >&5 |
| 5584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5585 | |
| 5586 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5587 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5588 | rm -f conftest.err conftest.$ac_objext \ |
| 5589 | conftest$ac_exeext conftest.$ac_ext |
| 5590 | LIBS=$ac_check_lib_save_LIBS |
| 5591 | fi |
| 5592 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 5593 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 5594 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5595 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5596 | fi |
| 5597 | |
| 5598 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5599 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 5600 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 5601 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 5602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5603 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5604 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5605 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5606 | cat >conftest.$ac_ext <<_ACEOF |
| 5607 | /* confdefs.h. */ |
| 5608 | _ACEOF |
| 5609 | cat confdefs.h >>conftest.$ac_ext |
| 5610 | cat >>conftest.$ac_ext <<_ACEOF |
| 5611 | /* end confdefs.h. */ |
| 5612 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5613 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5614 | #ifdef __cplusplus |
| 5615 | extern "C" |
| 5616 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5617 | /* 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] | 5618 | builtin and then its argument prototype would still apply. */ |
| 5619 | char dnet_ntoa (); |
| 5620 | int |
| 5621 | main () |
| 5622 | { |
| 5623 | dnet_ntoa (); |
| 5624 | ; |
| 5625 | return 0; |
| 5626 | } |
| 5627 | _ACEOF |
| 5628 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5630 | (eval $ac_link) 2>conftest.er1 |
| 5631 | ac_status=$? |
| 5632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5633 | rm -f conftest.er1 |
| 5634 | cat conftest.err >&5 |
| 5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5636 | (exit $ac_status); } && |
| 5637 | { ac_try='test -z "$ac_c_werror_flag" |
| 5638 | || test ! -s conftest.err' |
| 5639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5640 | (eval $ac_try) 2>&5 |
| 5641 | ac_status=$? |
| 5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5643 | (exit $ac_status); }; } && |
| 5644 | { ac_try='test -s conftest$ac_exeext' |
| 5645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5646 | (eval $ac_try) 2>&5 |
| 5647 | ac_status=$? |
| 5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5649 | (exit $ac_status); }; }; then |
| 5650 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5651 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5652 | echo "$as_me: failed program was:" >&5 |
| 5653 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5654 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5655 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5656 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5657 | rm -f conftest.err conftest.$ac_objext \ |
| 5658 | conftest$ac_exeext conftest.$ac_ext |
| 5659 | LIBS=$ac_check_lib_save_LIBS |
| 5660 | fi |
| 5661 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 5662 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 5663 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5664 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5665 | fi |
| 5666 | |
| 5667 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5668 | fi |
| 5669 | rm -f conftest.err conftest.$ac_objext \ |
| 5670 | conftest$ac_exeext conftest.$ac_ext |
| 5671 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5672 | |
| 5673 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 5674 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5675 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5676 | # needs -lnsl. |
| 5677 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5678 | # on Irix 5.2, according to T.E. Dickey. |
| 5679 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 5680 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 5681 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 5682 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 5683 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 5684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5685 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5686 | cat >conftest.$ac_ext <<_ACEOF |
| 5687 | /* confdefs.h. */ |
| 5688 | _ACEOF |
| 5689 | cat confdefs.h >>conftest.$ac_ext |
| 5690 | cat >>conftest.$ac_ext <<_ACEOF |
| 5691 | /* end confdefs.h. */ |
| 5692 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 5693 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5694 | #define gethostbyname innocuous_gethostbyname |
| 5695 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5696 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5697 | which can conflict with char gethostbyname (); below. |
| 5698 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5699 | <limits.h> exists even on freestanding compilers. */ |
| 5700 | |
| 5701 | #ifdef __STDC__ |
| 5702 | # include <limits.h> |
| 5703 | #else |
| 5704 | # include <assert.h> |
| 5705 | #endif |
| 5706 | |
| 5707 | #undef gethostbyname |
| 5708 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5709 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5710 | #ifdef __cplusplus |
| 5711 | extern "C" |
| 5712 | { |
| 5713 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5714 | /* 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] | 5715 | builtin and then its argument prototype would still apply. */ |
| 5716 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5717 | /* The GNU C library defines this for functions which it implements |
| 5718 | to always fail with ENOSYS. Some functions are actually named |
| 5719 | something starting with __ and the normal name is an alias. */ |
| 5720 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5721 | choke me |
| 5722 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5723 | char (*f) () = gethostbyname; |
| 5724 | #endif |
| 5725 | #ifdef __cplusplus |
| 5726 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5727 | #endif |
| 5728 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5729 | int |
| 5730 | main () |
| 5731 | { |
| 5732 | return f != gethostbyname; |
| 5733 | ; |
| 5734 | return 0; |
| 5735 | } |
| 5736 | _ACEOF |
| 5737 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5739 | (eval $ac_link) 2>conftest.er1 |
| 5740 | ac_status=$? |
| 5741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5742 | rm -f conftest.er1 |
| 5743 | cat conftest.err >&5 |
| 5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5745 | (exit $ac_status); } && |
| 5746 | { ac_try='test -z "$ac_c_werror_flag" |
| 5747 | || test ! -s conftest.err' |
| 5748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5749 | (eval $ac_try) 2>&5 |
| 5750 | ac_status=$? |
| 5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5752 | (exit $ac_status); }; } && |
| 5753 | { ac_try='test -s conftest$ac_exeext' |
| 5754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5755 | (eval $ac_try) 2>&5 |
| 5756 | ac_status=$? |
| 5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5758 | (exit $ac_status); }; }; then |
| 5759 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5760 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5761 | echo "$as_me: failed program was:" >&5 |
| 5762 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5763 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5764 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5765 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5766 | rm -f conftest.err conftest.$ac_objext \ |
| 5767 | conftest$ac_exeext conftest.$ac_ext |
| 5768 | fi |
| 5769 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 5770 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5771 | |
| 5772 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5773 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5774 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5775 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5777 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5778 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5779 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5780 | cat >conftest.$ac_ext <<_ACEOF |
| 5781 | /* confdefs.h. */ |
| 5782 | _ACEOF |
| 5783 | cat confdefs.h >>conftest.$ac_ext |
| 5784 | cat >>conftest.$ac_ext <<_ACEOF |
| 5785 | /* end confdefs.h. */ |
| 5786 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5787 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5788 | #ifdef __cplusplus |
| 5789 | extern "C" |
| 5790 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5791 | /* 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] | 5792 | builtin and then its argument prototype would still apply. */ |
| 5793 | char gethostbyname (); |
| 5794 | int |
| 5795 | main () |
| 5796 | { |
| 5797 | gethostbyname (); |
| 5798 | ; |
| 5799 | return 0; |
| 5800 | } |
| 5801 | _ACEOF |
| 5802 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5804 | (eval $ac_link) 2>conftest.er1 |
| 5805 | ac_status=$? |
| 5806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5807 | rm -f conftest.er1 |
| 5808 | cat conftest.err >&5 |
| 5809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5810 | (exit $ac_status); } && |
| 5811 | { ac_try='test -z "$ac_c_werror_flag" |
| 5812 | || test ! -s conftest.err' |
| 5813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5814 | (eval $ac_try) 2>&5 |
| 5815 | ac_status=$? |
| 5816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5817 | (exit $ac_status); }; } && |
| 5818 | { ac_try='test -s conftest$ac_exeext' |
| 5819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5820 | (eval $ac_try) 2>&5 |
| 5821 | ac_status=$? |
| 5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5823 | (exit $ac_status); }; }; then |
| 5824 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5825 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5826 | echo "$as_me: failed program was:" >&5 |
| 5827 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5828 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5829 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5830 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5831 | rm -f conftest.err conftest.$ac_objext \ |
| 5832 | conftest$ac_exeext conftest.$ac_ext |
| 5833 | LIBS=$ac_check_lib_save_LIBS |
| 5834 | fi |
| 5835 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5836 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5837 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5838 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5839 | fi |
| 5840 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5841 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 5842 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 5843 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 5844 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5846 | else |
| 5847 | ac_check_lib_save_LIBS=$LIBS |
| 5848 | LIBS="-lbsd $LIBS" |
| 5849 | cat >conftest.$ac_ext <<_ACEOF |
| 5850 | /* confdefs.h. */ |
| 5851 | _ACEOF |
| 5852 | cat confdefs.h >>conftest.$ac_ext |
| 5853 | cat >>conftest.$ac_ext <<_ACEOF |
| 5854 | /* end confdefs.h. */ |
| 5855 | |
| 5856 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5857 | #ifdef __cplusplus |
| 5858 | extern "C" |
| 5859 | #endif |
| 5860 | /* We use char because int might match the return type of a gcc2 |
| 5861 | builtin and then its argument prototype would still apply. */ |
| 5862 | char gethostbyname (); |
| 5863 | int |
| 5864 | main () |
| 5865 | { |
| 5866 | gethostbyname (); |
| 5867 | ; |
| 5868 | return 0; |
| 5869 | } |
| 5870 | _ACEOF |
| 5871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5873 | (eval $ac_link) 2>conftest.er1 |
| 5874 | ac_status=$? |
| 5875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5876 | rm -f conftest.er1 |
| 5877 | cat conftest.err >&5 |
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); } && |
| 5880 | { ac_try='test -z "$ac_c_werror_flag" |
| 5881 | || test ! -s conftest.err' |
| 5882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5883 | (eval $ac_try) 2>&5 |
| 5884 | ac_status=$? |
| 5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5886 | (exit $ac_status); }; } && |
| 5887 | { ac_try='test -s conftest$ac_exeext' |
| 5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5889 | (eval $ac_try) 2>&5 |
| 5890 | ac_status=$? |
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5892 | (exit $ac_status); }; }; then |
| 5893 | ac_cv_lib_bsd_gethostbyname=yes |
| 5894 | else |
| 5895 | echo "$as_me: failed program was:" >&5 |
| 5896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5897 | |
| 5898 | ac_cv_lib_bsd_gethostbyname=no |
| 5899 | fi |
| 5900 | rm -f conftest.err conftest.$ac_objext \ |
| 5901 | conftest$ac_exeext conftest.$ac_ext |
| 5902 | LIBS=$ac_check_lib_save_LIBS |
| 5903 | fi |
| 5904 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 5905 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 5906 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 5907 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 5908 | fi |
| 5909 | |
| 5910 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5911 | fi |
| 5912 | |
| 5913 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 5914 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 5915 | # 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] | 5916 | # on later versions), says Simon Leinen: it contains gethostby* |
| 5917 | # variants that don't use the name server (or something). -lsocket |
| 5918 | # must be given before -lnsl if both are needed. We assume that |
| 5919 | # if connect needs -lnsl, so does gethostbyname. |
| 5920 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 5921 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 5922 | if test "${ac_cv_func_connect+set}" = set; then |
| 5923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5924 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5925 | cat >conftest.$ac_ext <<_ACEOF |
| 5926 | /* confdefs.h. */ |
| 5927 | _ACEOF |
| 5928 | cat confdefs.h >>conftest.$ac_ext |
| 5929 | cat >>conftest.$ac_ext <<_ACEOF |
| 5930 | /* end confdefs.h. */ |
| 5931 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 5932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5933 | #define connect innocuous_connect |
| 5934 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5935 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5936 | which can conflict with char connect (); below. |
| 5937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5938 | <limits.h> exists even on freestanding compilers. */ |
| 5939 | |
| 5940 | #ifdef __STDC__ |
| 5941 | # include <limits.h> |
| 5942 | #else |
| 5943 | # include <assert.h> |
| 5944 | #endif |
| 5945 | |
| 5946 | #undef connect |
| 5947 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5948 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5949 | #ifdef __cplusplus |
| 5950 | extern "C" |
| 5951 | { |
| 5952 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5953 | /* 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] | 5954 | builtin and then its argument prototype would still apply. */ |
| 5955 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5956 | /* The GNU C library defines this for functions which it implements |
| 5957 | to always fail with ENOSYS. Some functions are actually named |
| 5958 | something starting with __ and the normal name is an alias. */ |
| 5959 | #if defined (__stub_connect) || defined (__stub___connect) |
| 5960 | choke me |
| 5961 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5962 | char (*f) () = connect; |
| 5963 | #endif |
| 5964 | #ifdef __cplusplus |
| 5965 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5966 | #endif |
| 5967 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5968 | int |
| 5969 | main () |
| 5970 | { |
| 5971 | return f != connect; |
| 5972 | ; |
| 5973 | return 0; |
| 5974 | } |
| 5975 | _ACEOF |
| 5976 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5978 | (eval $ac_link) 2>conftest.er1 |
| 5979 | ac_status=$? |
| 5980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5981 | rm -f conftest.er1 |
| 5982 | cat conftest.err >&5 |
| 5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5984 | (exit $ac_status); } && |
| 5985 | { ac_try='test -z "$ac_c_werror_flag" |
| 5986 | || test ! -s conftest.err' |
| 5987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5988 | (eval $ac_try) 2>&5 |
| 5989 | ac_status=$? |
| 5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5991 | (exit $ac_status); }; } && |
| 5992 | { ac_try='test -s conftest$ac_exeext' |
| 5993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5994 | (eval $ac_try) 2>&5 |
| 5995 | ac_status=$? |
| 5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5997 | (exit $ac_status); }; }; then |
| 5998 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5999 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6000 | echo "$as_me: failed program was:" >&5 |
| 6001 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6002 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6003 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6004 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6005 | rm -f conftest.err conftest.$ac_objext \ |
| 6006 | conftest$ac_exeext conftest.$ac_ext |
| 6007 | fi |
| 6008 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 6009 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6010 | |
| 6011 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6012 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 6013 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 6014 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6016 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6017 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6018 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6019 | cat >conftest.$ac_ext <<_ACEOF |
| 6020 | /* confdefs.h. */ |
| 6021 | _ACEOF |
| 6022 | cat confdefs.h >>conftest.$ac_ext |
| 6023 | cat >>conftest.$ac_ext <<_ACEOF |
| 6024 | /* end confdefs.h. */ |
| 6025 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6026 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6027 | #ifdef __cplusplus |
| 6028 | extern "C" |
| 6029 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6030 | /* 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] | 6031 | builtin and then its argument prototype would still apply. */ |
| 6032 | char connect (); |
| 6033 | int |
| 6034 | main () |
| 6035 | { |
| 6036 | connect (); |
| 6037 | ; |
| 6038 | return 0; |
| 6039 | } |
| 6040 | _ACEOF |
| 6041 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6043 | (eval $ac_link) 2>conftest.er1 |
| 6044 | ac_status=$? |
| 6045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6046 | rm -f conftest.er1 |
| 6047 | cat conftest.err >&5 |
| 6048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6049 | (exit $ac_status); } && |
| 6050 | { ac_try='test -z "$ac_c_werror_flag" |
| 6051 | || test ! -s conftest.err' |
| 6052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6053 | (eval $ac_try) 2>&5 |
| 6054 | ac_status=$? |
| 6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6056 | (exit $ac_status); }; } && |
| 6057 | { ac_try='test -s conftest$ac_exeext' |
| 6058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6059 | (eval $ac_try) 2>&5 |
| 6060 | ac_status=$? |
| 6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6062 | (exit $ac_status); }; }; then |
| 6063 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6064 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6065 | echo "$as_me: failed program was:" >&5 |
| 6066 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6067 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6068 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6069 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6070 | rm -f conftest.err conftest.$ac_objext \ |
| 6071 | conftest$ac_exeext conftest.$ac_ext |
| 6072 | LIBS=$ac_check_lib_save_LIBS |
| 6073 | fi |
| 6074 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 6075 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6076 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6077 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6078 | fi |
| 6079 | |
| 6080 | fi |
| 6081 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6082 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 6083 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 6084 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 6085 | if test "${ac_cv_func_remove+set}" = set; then |
| 6086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6087 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6088 | cat >conftest.$ac_ext <<_ACEOF |
| 6089 | /* confdefs.h. */ |
| 6090 | _ACEOF |
| 6091 | cat confdefs.h >>conftest.$ac_ext |
| 6092 | cat >>conftest.$ac_ext <<_ACEOF |
| 6093 | /* end confdefs.h. */ |
| 6094 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 6095 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6096 | #define remove innocuous_remove |
| 6097 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6098 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6099 | which can conflict with char remove (); below. |
| 6100 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6101 | <limits.h> exists even on freestanding compilers. */ |
| 6102 | |
| 6103 | #ifdef __STDC__ |
| 6104 | # include <limits.h> |
| 6105 | #else |
| 6106 | # include <assert.h> |
| 6107 | #endif |
| 6108 | |
| 6109 | #undef remove |
| 6110 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6111 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6112 | #ifdef __cplusplus |
| 6113 | extern "C" |
| 6114 | { |
| 6115 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6116 | /* 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] | 6117 | builtin and then its argument prototype would still apply. */ |
| 6118 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6119 | /* The GNU C library defines this for functions which it implements |
| 6120 | to always fail with ENOSYS. Some functions are actually named |
| 6121 | something starting with __ and the normal name is an alias. */ |
| 6122 | #if defined (__stub_remove) || defined (__stub___remove) |
| 6123 | choke me |
| 6124 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6125 | char (*f) () = remove; |
| 6126 | #endif |
| 6127 | #ifdef __cplusplus |
| 6128 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6129 | #endif |
| 6130 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6131 | int |
| 6132 | main () |
| 6133 | { |
| 6134 | return f != remove; |
| 6135 | ; |
| 6136 | return 0; |
| 6137 | } |
| 6138 | _ACEOF |
| 6139 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6141 | (eval $ac_link) 2>conftest.er1 |
| 6142 | ac_status=$? |
| 6143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6144 | rm -f conftest.er1 |
| 6145 | cat conftest.err >&5 |
| 6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6147 | (exit $ac_status); } && |
| 6148 | { ac_try='test -z "$ac_c_werror_flag" |
| 6149 | || test ! -s conftest.err' |
| 6150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6151 | (eval $ac_try) 2>&5 |
| 6152 | ac_status=$? |
| 6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6154 | (exit $ac_status); }; } && |
| 6155 | { ac_try='test -s conftest$ac_exeext' |
| 6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6157 | (eval $ac_try) 2>&5 |
| 6158 | ac_status=$? |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); }; }; then |
| 6161 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6162 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6163 | echo "$as_me: failed program was:" >&5 |
| 6164 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6165 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6166 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6167 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6168 | rm -f conftest.err conftest.$ac_objext \ |
| 6169 | conftest$ac_exeext conftest.$ac_ext |
| 6170 | fi |
| 6171 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 6172 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6173 | |
| 6174 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6175 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 6176 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 6177 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 6178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6179 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6180 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6181 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6182 | cat >conftest.$ac_ext <<_ACEOF |
| 6183 | /* confdefs.h. */ |
| 6184 | _ACEOF |
| 6185 | cat confdefs.h >>conftest.$ac_ext |
| 6186 | cat >>conftest.$ac_ext <<_ACEOF |
| 6187 | /* end confdefs.h. */ |
| 6188 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6189 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6190 | #ifdef __cplusplus |
| 6191 | extern "C" |
| 6192 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6193 | /* 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] | 6194 | builtin and then its argument prototype would still apply. */ |
| 6195 | char remove (); |
| 6196 | int |
| 6197 | main () |
| 6198 | { |
| 6199 | remove (); |
| 6200 | ; |
| 6201 | return 0; |
| 6202 | } |
| 6203 | _ACEOF |
| 6204 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6206 | (eval $ac_link) 2>conftest.er1 |
| 6207 | ac_status=$? |
| 6208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6209 | rm -f conftest.er1 |
| 6210 | cat conftest.err >&5 |
| 6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6212 | (exit $ac_status); } && |
| 6213 | { ac_try='test -z "$ac_c_werror_flag" |
| 6214 | || test ! -s conftest.err' |
| 6215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6216 | (eval $ac_try) 2>&5 |
| 6217 | ac_status=$? |
| 6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6219 | (exit $ac_status); }; } && |
| 6220 | { ac_try='test -s conftest$ac_exeext' |
| 6221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6222 | (eval $ac_try) 2>&5 |
| 6223 | ac_status=$? |
| 6224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6225 | (exit $ac_status); }; }; then |
| 6226 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6227 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6228 | echo "$as_me: failed program was:" >&5 |
| 6229 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6230 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6231 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6232 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6233 | rm -f conftest.err conftest.$ac_objext \ |
| 6234 | conftest$ac_exeext conftest.$ac_ext |
| 6235 | LIBS=$ac_check_lib_save_LIBS |
| 6236 | fi |
| 6237 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 6238 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 6239 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6240 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6241 | fi |
| 6242 | |
| 6243 | fi |
| 6244 | |
| 6245 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6246 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 6247 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 6248 | if test "${ac_cv_func_shmat+set}" = set; then |
| 6249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6250 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6251 | cat >conftest.$ac_ext <<_ACEOF |
| 6252 | /* confdefs.h. */ |
| 6253 | _ACEOF |
| 6254 | cat confdefs.h >>conftest.$ac_ext |
| 6255 | cat >>conftest.$ac_ext <<_ACEOF |
| 6256 | /* end confdefs.h. */ |
| 6257 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 6258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6259 | #define shmat innocuous_shmat |
| 6260 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6261 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6262 | which can conflict with char shmat (); below. |
| 6263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6264 | <limits.h> exists even on freestanding compilers. */ |
| 6265 | |
| 6266 | #ifdef __STDC__ |
| 6267 | # include <limits.h> |
| 6268 | #else |
| 6269 | # include <assert.h> |
| 6270 | #endif |
| 6271 | |
| 6272 | #undef shmat |
| 6273 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6274 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6275 | #ifdef __cplusplus |
| 6276 | extern "C" |
| 6277 | { |
| 6278 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6279 | /* 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] | 6280 | builtin and then its argument prototype would still apply. */ |
| 6281 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6282 | /* The GNU C library defines this for functions which it implements |
| 6283 | to always fail with ENOSYS. Some functions are actually named |
| 6284 | something starting with __ and the normal name is an alias. */ |
| 6285 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 6286 | choke me |
| 6287 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6288 | char (*f) () = shmat; |
| 6289 | #endif |
| 6290 | #ifdef __cplusplus |
| 6291 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6292 | #endif |
| 6293 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6294 | int |
| 6295 | main () |
| 6296 | { |
| 6297 | return f != shmat; |
| 6298 | ; |
| 6299 | return 0; |
| 6300 | } |
| 6301 | _ACEOF |
| 6302 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6304 | (eval $ac_link) 2>conftest.er1 |
| 6305 | ac_status=$? |
| 6306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6307 | rm -f conftest.er1 |
| 6308 | cat conftest.err >&5 |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); } && |
| 6311 | { ac_try='test -z "$ac_c_werror_flag" |
| 6312 | || test ! -s conftest.err' |
| 6313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6314 | (eval $ac_try) 2>&5 |
| 6315 | ac_status=$? |
| 6316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6317 | (exit $ac_status); }; } && |
| 6318 | { ac_try='test -s conftest$ac_exeext' |
| 6319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6320 | (eval $ac_try) 2>&5 |
| 6321 | ac_status=$? |
| 6322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6323 | (exit $ac_status); }; }; then |
| 6324 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6325 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6326 | echo "$as_me: failed program was:" >&5 |
| 6327 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6328 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6329 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6330 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6331 | rm -f conftest.err conftest.$ac_objext \ |
| 6332 | conftest$ac_exeext conftest.$ac_ext |
| 6333 | fi |
| 6334 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 6335 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6336 | |
| 6337 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6338 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 6339 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 6340 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 6341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6342 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6343 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6344 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6345 | cat >conftest.$ac_ext <<_ACEOF |
| 6346 | /* confdefs.h. */ |
| 6347 | _ACEOF |
| 6348 | cat confdefs.h >>conftest.$ac_ext |
| 6349 | cat >>conftest.$ac_ext <<_ACEOF |
| 6350 | /* end confdefs.h. */ |
| 6351 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6352 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6353 | #ifdef __cplusplus |
| 6354 | extern "C" |
| 6355 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6356 | /* 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] | 6357 | builtin and then its argument prototype would still apply. */ |
| 6358 | char shmat (); |
| 6359 | int |
| 6360 | main () |
| 6361 | { |
| 6362 | shmat (); |
| 6363 | ; |
| 6364 | return 0; |
| 6365 | } |
| 6366 | _ACEOF |
| 6367 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6369 | (eval $ac_link) 2>conftest.er1 |
| 6370 | ac_status=$? |
| 6371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6372 | rm -f conftest.er1 |
| 6373 | cat conftest.err >&5 |
| 6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6375 | (exit $ac_status); } && |
| 6376 | { ac_try='test -z "$ac_c_werror_flag" |
| 6377 | || test ! -s conftest.err' |
| 6378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6379 | (eval $ac_try) 2>&5 |
| 6380 | ac_status=$? |
| 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6382 | (exit $ac_status); }; } && |
| 6383 | { ac_try='test -s conftest$ac_exeext' |
| 6384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6385 | (eval $ac_try) 2>&5 |
| 6386 | ac_status=$? |
| 6387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6388 | (exit $ac_status); }; }; then |
| 6389 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6390 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6391 | echo "$as_me: failed program was:" >&5 |
| 6392 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6393 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6394 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6395 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6396 | rm -f conftest.err conftest.$ac_objext \ |
| 6397 | conftest$ac_exeext conftest.$ac_ext |
| 6398 | LIBS=$ac_check_lib_save_LIBS |
| 6399 | fi |
| 6400 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 6401 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 6402 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6403 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6404 | fi |
| 6405 | |
| 6406 | fi |
| 6407 | fi |
| 6408 | |
| 6409 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6410 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6411 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 6412 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 6413 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 6414 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 6415 | # These have to be linked with before -lX11, unlike the other |
| 6416 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6417 | # John Interrante, Karl Berry |
| 6418 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 6419 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 6420 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 6421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6422 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6423 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6424 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6425 | cat >conftest.$ac_ext <<_ACEOF |
| 6426 | /* confdefs.h. */ |
| 6427 | _ACEOF |
| 6428 | cat confdefs.h >>conftest.$ac_ext |
| 6429 | cat >>conftest.$ac_ext <<_ACEOF |
| 6430 | /* end confdefs.h. */ |
| 6431 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6432 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6433 | #ifdef __cplusplus |
| 6434 | extern "C" |
| 6435 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6436 | /* 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] | 6437 | builtin and then its argument prototype would still apply. */ |
| 6438 | char IceConnectionNumber (); |
| 6439 | int |
| 6440 | main () |
| 6441 | { |
| 6442 | IceConnectionNumber (); |
| 6443 | ; |
| 6444 | return 0; |
| 6445 | } |
| 6446 | _ACEOF |
| 6447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6449 | (eval $ac_link) 2>conftest.er1 |
| 6450 | ac_status=$? |
| 6451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6452 | rm -f conftest.er1 |
| 6453 | cat conftest.err >&5 |
| 6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6455 | (exit $ac_status); } && |
| 6456 | { ac_try='test -z "$ac_c_werror_flag" |
| 6457 | || test ! -s conftest.err' |
| 6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6459 | (eval $ac_try) 2>&5 |
| 6460 | ac_status=$? |
| 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6462 | (exit $ac_status); }; } && |
| 6463 | { ac_try='test -s conftest$ac_exeext' |
| 6464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6465 | (eval $ac_try) 2>&5 |
| 6466 | ac_status=$? |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); }; }; then |
| 6469 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6470 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6471 | echo "$as_me: failed program was:" >&5 |
| 6472 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6473 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6474 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6475 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6476 | rm -f conftest.err conftest.$ac_objext \ |
| 6477 | conftest$ac_exeext conftest.$ac_ext |
| 6478 | LIBS=$ac_check_lib_save_LIBS |
| 6479 | fi |
| 6480 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 6481 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 6482 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6483 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6484 | fi |
| 6485 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6486 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6487 | |
| 6488 | fi |
| 6489 | |
| 6490 | |
| 6491 | if test "$OS390Unix" = "yes"; then |
| 6492 | CFLAGS="$CFLAGS -W c,dll" |
| 6493 | LDFLAGS="$LDFLAGS -W l,dll" |
| 6494 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 6495 | fi |
| 6496 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6497 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6498 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 6499 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6500 | echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 6501 | echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6502 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6503 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 6504 | uname -r | grep '^5' >/dev/null; then |
| 6505 | X_LIBS="$X_LIBS -R $x_libraries" |
| 6506 | fi |
| 6507 | fi |
| 6508 | |
| 6509 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 6510 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6511 | echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 6512 | echo "${ECHO_T}Corrected X includes to $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6513 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6514 | fi |
| 6515 | |
| 6516 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 6517 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 6518 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 6519 | |
| 6520 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6521 | echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
| 6522 | 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] | 6523 | cflags_save=$CFLAGS |
| 6524 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6525 | cat >conftest.$ac_ext <<_ACEOF |
| 6526 | /* confdefs.h. */ |
| 6527 | _ACEOF |
| 6528 | cat confdefs.h >>conftest.$ac_ext |
| 6529 | cat >>conftest.$ac_ext <<_ACEOF |
| 6530 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6531 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6532 | int |
| 6533 | main () |
| 6534 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6535 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6536 | ; |
| 6537 | return 0; |
| 6538 | } |
| 6539 | _ACEOF |
| 6540 | rm -f conftest.$ac_objext |
| 6541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6542 | (eval $ac_compile) 2>conftest.er1 |
| 6543 | ac_status=$? |
| 6544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6545 | rm -f conftest.er1 |
| 6546 | cat conftest.err >&5 |
| 6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6548 | (exit $ac_status); } && |
| 6549 | { ac_try='test -z "$ac_c_werror_flag" |
| 6550 | || test ! -s conftest.err' |
| 6551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6552 | (eval $ac_try) 2>&5 |
| 6553 | ac_status=$? |
| 6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6555 | (exit $ac_status); }; } && |
| 6556 | { ac_try='test -s conftest.$ac_objext' |
| 6557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6558 | (eval $ac_try) 2>&5 |
| 6559 | ac_status=$? |
| 6560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6561 | (exit $ac_status); }; }; then |
| 6562 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6563 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6564 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6565 | echo "$as_me: failed program was:" >&5 |
| 6566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6567 | |
| 6568 | echo "$as_me:$LINENO: result: no" >&5 |
| 6569 | echo "${ECHO_T}no" >&6; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6570 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6572 | CFLAGS=$cflags_save |
| 6573 | |
| 6574 | if test "${no_x-no}" = yes; then |
| 6575 | with_x=no |
| 6576 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6577 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6578 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6579 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6580 | |
| 6581 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6582 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6583 | |
| 6584 | ac_save_LDFLAGS="$LDFLAGS" |
| 6585 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 6586 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6587 | echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 6588 | echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6 |
| 6589 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
| 6590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6591 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6592 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6593 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6594 | cat >conftest.$ac_ext <<_ACEOF |
| 6595 | /* confdefs.h. */ |
| 6596 | _ACEOF |
| 6597 | cat confdefs.h >>conftest.$ac_ext |
| 6598 | cat >>conftest.$ac_ext <<_ACEOF |
| 6599 | /* end confdefs.h. */ |
| 6600 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6601 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6602 | #ifdef __cplusplus |
| 6603 | extern "C" |
| 6604 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6605 | /* 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] | 6606 | builtin and then its argument prototype would still apply. */ |
| 6607 | char _XdmcpAuthDoIt (); |
| 6608 | int |
| 6609 | main () |
| 6610 | { |
| 6611 | _XdmcpAuthDoIt (); |
| 6612 | ; |
| 6613 | return 0; |
| 6614 | } |
| 6615 | _ACEOF |
| 6616 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6618 | (eval $ac_link) 2>conftest.er1 |
| 6619 | ac_status=$? |
| 6620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6621 | rm -f conftest.er1 |
| 6622 | cat conftest.err >&5 |
| 6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6624 | (exit $ac_status); } && |
| 6625 | { ac_try='test -z "$ac_c_werror_flag" |
| 6626 | || test ! -s conftest.err' |
| 6627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6628 | (eval $ac_try) 2>&5 |
| 6629 | ac_status=$? |
| 6630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6631 | (exit $ac_status); }; } && |
| 6632 | { ac_try='test -s conftest$ac_exeext' |
| 6633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6634 | (eval $ac_try) 2>&5 |
| 6635 | ac_status=$? |
| 6636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6637 | (exit $ac_status); }; }; then |
| 6638 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6639 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6640 | echo "$as_me: failed program was:" >&5 |
| 6641 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6642 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6643 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6644 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6645 | rm -f conftest.err conftest.$ac_objext \ |
| 6646 | conftest$ac_exeext conftest.$ac_ext |
| 6647 | LIBS=$ac_check_lib_save_LIBS |
| 6648 | fi |
| 6649 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 6650 | echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6 |
| 6651 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6652 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6653 | fi |
| 6654 | |
| 6655 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6656 | echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 6657 | echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6 |
| 6658 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
| 6659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6660 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6661 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6662 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6663 | cat >conftest.$ac_ext <<_ACEOF |
| 6664 | /* confdefs.h. */ |
| 6665 | _ACEOF |
| 6666 | cat confdefs.h >>conftest.$ac_ext |
| 6667 | cat >>conftest.$ac_ext <<_ACEOF |
| 6668 | /* end confdefs.h. */ |
| 6669 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6670 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6671 | #ifdef __cplusplus |
| 6672 | extern "C" |
| 6673 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6674 | /* 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] | 6675 | builtin and then its argument prototype would still apply. */ |
| 6676 | char IceOpenConnection (); |
| 6677 | int |
| 6678 | main () |
| 6679 | { |
| 6680 | IceOpenConnection (); |
| 6681 | ; |
| 6682 | return 0; |
| 6683 | } |
| 6684 | _ACEOF |
| 6685 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6687 | (eval $ac_link) 2>conftest.er1 |
| 6688 | ac_status=$? |
| 6689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6690 | rm -f conftest.er1 |
| 6691 | cat conftest.err >&5 |
| 6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6693 | (exit $ac_status); } && |
| 6694 | { ac_try='test -z "$ac_c_werror_flag" |
| 6695 | || test ! -s conftest.err' |
| 6696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6697 | (eval $ac_try) 2>&5 |
| 6698 | ac_status=$? |
| 6699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6700 | (exit $ac_status); }; } && |
| 6701 | { ac_try='test -s conftest$ac_exeext' |
| 6702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6703 | (eval $ac_try) 2>&5 |
| 6704 | ac_status=$? |
| 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6706 | (exit $ac_status); }; }; then |
| 6707 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6708 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6709 | echo "$as_me: failed program was:" >&5 |
| 6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6711 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6712 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6713 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6714 | rm -f conftest.err conftest.$ac_objext \ |
| 6715 | conftest$ac_exeext conftest.$ac_ext |
| 6716 | LIBS=$ac_check_lib_save_LIBS |
| 6717 | fi |
| 6718 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 6719 | echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6 |
| 6720 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6721 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6722 | fi |
| 6723 | |
| 6724 | |
| 6725 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6726 | echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 6727 | echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 |
| 6728 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
| 6729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6730 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6731 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6732 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6733 | cat >conftest.$ac_ext <<_ACEOF |
| 6734 | /* confdefs.h. */ |
| 6735 | _ACEOF |
| 6736 | cat confdefs.h >>conftest.$ac_ext |
| 6737 | cat >>conftest.$ac_ext <<_ACEOF |
| 6738 | /* end confdefs.h. */ |
| 6739 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6740 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6741 | #ifdef __cplusplus |
| 6742 | extern "C" |
| 6743 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6744 | /* 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] | 6745 | builtin and then its argument prototype would still apply. */ |
| 6746 | char XpmCreatePixmapFromData (); |
| 6747 | int |
| 6748 | main () |
| 6749 | { |
| 6750 | XpmCreatePixmapFromData (); |
| 6751 | ; |
| 6752 | return 0; |
| 6753 | } |
| 6754 | _ACEOF |
| 6755 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6757 | (eval $ac_link) 2>conftest.er1 |
| 6758 | ac_status=$? |
| 6759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6760 | rm -f conftest.er1 |
| 6761 | cat conftest.err >&5 |
| 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6763 | (exit $ac_status); } && |
| 6764 | { ac_try='test -z "$ac_c_werror_flag" |
| 6765 | || test ! -s conftest.err' |
| 6766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6767 | (eval $ac_try) 2>&5 |
| 6768 | ac_status=$? |
| 6769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6770 | (exit $ac_status); }; } && |
| 6771 | { ac_try='test -s conftest$ac_exeext' |
| 6772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6773 | (eval $ac_try) 2>&5 |
| 6774 | ac_status=$? |
| 6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6776 | (exit $ac_status); }; }; then |
| 6777 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
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 | echo "$as_me: failed program was:" >&5 |
| 6780 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6781 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6782 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6783 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6784 | rm -f conftest.err conftest.$ac_objext \ |
| 6785 | conftest$ac_exeext conftest.$ac_ext |
| 6786 | LIBS=$ac_check_lib_save_LIBS |
| 6787 | fi |
| 6788 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 6789 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 |
| 6790 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6791 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6792 | fi |
| 6793 | |
| 6794 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6795 | echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 6796 | 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] | 6797 | cflags_save=$CFLAGS |
| 6798 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6799 | cat >conftest.$ac_ext <<_ACEOF |
| 6800 | /* confdefs.h. */ |
| 6801 | _ACEOF |
| 6802 | cat confdefs.h >>conftest.$ac_ext |
| 6803 | cat >>conftest.$ac_ext <<_ACEOF |
| 6804 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6805 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6806 | int |
| 6807 | main () |
| 6808 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6809 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6810 | ; |
| 6811 | return 0; |
| 6812 | } |
| 6813 | _ACEOF |
| 6814 | rm -f conftest.$ac_objext |
| 6815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6816 | (eval $ac_compile) 2>conftest.er1 |
| 6817 | ac_status=$? |
| 6818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6819 | rm -f conftest.er1 |
| 6820 | cat conftest.err >&5 |
| 6821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6822 | (exit $ac_status); } && |
| 6823 | { ac_try='test -z "$ac_c_werror_flag" |
| 6824 | || test ! -s conftest.err' |
| 6825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6826 | (eval $ac_try) 2>&5 |
| 6827 | ac_status=$? |
| 6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6829 | (exit $ac_status); }; } && |
| 6830 | { ac_try='test -s conftest.$ac_objext' |
| 6831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6832 | (eval $ac_try) 2>&5 |
| 6833 | ac_status=$? |
| 6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6835 | (exit $ac_status); }; }; then |
| 6836 | echo "$as_me:$LINENO: result: no" >&5 |
| 6837 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6838 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6839 | echo "$as_me: failed program was:" >&5 |
| 6840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6841 | |
| 6842 | CFLAGS="$CFLAGS -Wno-implicit-int" |
| 6843 | cat >conftest.$ac_ext <<_ACEOF |
| 6844 | /* confdefs.h. */ |
| 6845 | _ACEOF |
| 6846 | cat confdefs.h >>conftest.$ac_ext |
| 6847 | cat >>conftest.$ac_ext <<_ACEOF |
| 6848 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6849 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6850 | int |
| 6851 | main () |
| 6852 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6853 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6854 | ; |
| 6855 | return 0; |
| 6856 | } |
| 6857 | _ACEOF |
| 6858 | rm -f conftest.$ac_objext |
| 6859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6860 | (eval $ac_compile) 2>conftest.er1 |
| 6861 | ac_status=$? |
| 6862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6863 | rm -f conftest.er1 |
| 6864 | cat conftest.err >&5 |
| 6865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6866 | (exit $ac_status); } && |
| 6867 | { ac_try='test -z "$ac_c_werror_flag" |
| 6868 | || test ! -s conftest.err' |
| 6869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6870 | (eval $ac_try) 2>&5 |
| 6871 | ac_status=$? |
| 6872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6873 | (exit $ac_status); }; } && |
| 6874 | { ac_try='test -s conftest.$ac_objext' |
| 6875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6876 | (eval $ac_try) 2>&5 |
| 6877 | ac_status=$? |
| 6878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6879 | (exit $ac_status); }; }; then |
| 6880 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6881 | echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6882 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6883 | echo "$as_me: failed program was:" >&5 |
| 6884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6885 | |
| 6886 | echo "$as_me:$LINENO: result: test failed" >&5 |
| 6887 | echo "${ECHO_T}test failed" >&6 |
| 6888 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6889 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6891 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6892 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6894 | CFLAGS=$cflags_save |
| 6895 | |
| 6896 | LDFLAGS="$ac_save_LDFLAGS" |
| 6897 | |
| 6898 | fi |
| 6899 | fi |
| 6900 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 6901 | 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] | 6902 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6903 | echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 6904 | echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6905 | # Check whether --enable-gui or --disable-gui was given. |
| 6906 | if test "${enable_gui+set}" = set; then |
| 6907 | enableval="$enable_gui" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6908 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6909 | else |
| 6910 | enable_gui="auto" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6911 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6912 | |
| 6913 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 6914 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 6915 | |
| 6916 | SKIP_GTK=YES |
| 6917 | SKIP_GTK2=YES |
| 6918 | SKIP_GNOME=YES |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame] | 6919 | SKIP_KDE=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6920 | SKIP_MOTIF=YES |
| 6921 | SKIP_ATHENA=YES |
| 6922 | SKIP_NEXTAW=YES |
| 6923 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6924 | SKIP_CARBON=YES |
| 6925 | GUITYPE=NONE |
| 6926 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6927 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6928 | SKIP_PHOTON= |
| 6929 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6930 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 6931 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6932 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6933 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 6934 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 6935 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 6936 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 6937 | photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 6938 | echo "${ECHO_T}Photon GUI support" >&6 ;; |
| 6939 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 6940 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6941 | SKIP_PHOTON=YES ;; |
| 6942 | esac |
| 6943 | |
| 6944 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 6945 | SKIP_CARBON= |
| 6946 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6947 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 6948 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6949 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6950 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 6951 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 6952 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 6953 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 6954 | carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 6955 | echo "${ECHO_T}Carbon GUI support" >&6 ;; |
| 6956 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 6957 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6958 | SKIP_CARBON=YES ;; |
| 6959 | esac |
| 6960 | |
| 6961 | else |
| 6962 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6963 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6964 | no|none) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 6965 | echo "${ECHO_T}no GUI support" >&6 ;; |
| 6966 | yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 6967 | echo "${ECHO_T}yes/auto - automatic GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6968 | SKIP_GTK= |
| 6969 | SKIP_GTK2= |
| 6970 | SKIP_GNOME= |
| 6971 | SKIP_MOTIF= |
| 6972 | SKIP_ATHENA= |
| 6973 | SKIP_NEXTAW= |
| 6974 | SKIP_CARBON=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6975 | kde|Kde|KDE) echo "$as_me:$LINENO: result: KDE 2.x or 3.x GUI support" >&5 |
| 6976 | echo "${ECHO_T}KDE 2.x or 3.x GUI support" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 6977 | SKIP_KDE=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6978 | gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 6979 | echo "${ECHO_T}GTK+ 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6980 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6981 | gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 6982 | echo "${ECHO_T}GTK+ 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6983 | SKIP_GTK= |
| 6984 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6985 | gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 6986 | echo "${ECHO_T}GNOME 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6987 | SKIP_GNOME= |
| 6988 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6989 | gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 6990 | echo "${ECHO_T}GNOME 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6991 | SKIP_GNOME= |
| 6992 | SKIP_GTK= |
| 6993 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6994 | motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 6995 | echo "${ECHO_T}Motif GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6996 | SKIP_MOTIF=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6997 | athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 6998 | echo "${ECHO_T}Athena GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6999 | SKIP_ATHENA=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7000 | nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 7001 | echo "${ECHO_T}neXtaw GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7002 | SKIP_NEXTAW=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7003 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7004 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7005 | esac |
| 7006 | |
| 7007 | fi |
| 7008 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7009 | if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7010 | echo "$as_me:$LINENO: checking whether or not to look for KDE" >&5 |
| 7011 | echo $ECHO_N "checking whether or not to look for KDE... $ECHO_C" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7012 | # Check whether --enable-kde-check or --disable-kde-check was given. |
| 7013 | if test "${enable_kde_check+set}" = set; then |
| 7014 | enableval="$enable_kde_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7015 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7016 | else |
| 7017 | enable_kde_check="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7018 | fi; |
| 7019 | echo "$as_me:$LINENO: result: $enable_kde_check" >&5 |
| 7020 | echo "${ECHO_T}$enable_kde_check" >&6; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7021 | if test "x$enable_kde_check" = "xno"; then |
| 7022 | SKIP_KDE=YES |
| 7023 | fi |
| 7024 | fi |
| 7025 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7026 | 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] | 7027 | echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 7028 | 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] | 7029 | # Check whether --enable-gtk-check or --disable-gtk-check was given. |
| 7030 | if test "${enable_gtk_check+set}" = set; then |
| 7031 | enableval="$enable_gtk_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7032 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7033 | else |
| 7034 | enable_gtk_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7035 | fi; |
| 7036 | echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 7037 | echo "${ECHO_T}$enable_gtk_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7038 | if test "x$enable_gtk_check" = "xno"; then |
| 7039 | SKIP_GTK=YES |
| 7040 | SKIP_GNOME=YES |
| 7041 | fi |
| 7042 | fi |
| 7043 | |
| 7044 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 7045 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7046 | echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 7047 | 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] | 7048 | # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
| 7049 | if test "${enable_gtk2_check+set}" = set; then |
| 7050 | enableval="$enable_gtk2_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7051 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7052 | else |
| 7053 | enable_gtk2_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7054 | fi; |
| 7055 | echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 7056 | echo "${ECHO_T}$enable_gtk2_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7057 | if test "x$enable_gtk2_check" = "xno"; then |
| 7058 | SKIP_GTK2=YES |
| 7059 | fi |
| 7060 | fi |
| 7061 | |
| 7062 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 7063 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7064 | echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 7065 | 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] | 7066 | # Check whether --enable-gnome-check or --disable-gnome-check was given. |
| 7067 | if test "${enable_gnome_check+set}" = set; then |
| 7068 | enableval="$enable_gnome_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7069 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7070 | else |
| 7071 | enable_gnome_check="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7072 | fi; |
| 7073 | echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 7074 | echo "${ECHO_T}$enable_gnome_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7075 | if test "x$enable_gnome_check" = "xno"; then |
| 7076 | SKIP_GNOME=YES |
| 7077 | fi |
| 7078 | fi |
| 7079 | |
| 7080 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7081 | echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 7082 | 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] | 7083 | # Check whether --enable-motif-check or --disable-motif-check was given. |
| 7084 | if test "${enable_motif_check+set}" = set; then |
| 7085 | enableval="$enable_motif_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7086 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7087 | else |
| 7088 | enable_motif_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7089 | fi; |
| 7090 | echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 7091 | echo "${ECHO_T}$enable_motif_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7092 | if test "x$enable_motif_check" = "xno"; then |
| 7093 | SKIP_MOTIF=YES |
| 7094 | fi |
| 7095 | fi |
| 7096 | |
| 7097 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7098 | echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 7099 | 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] | 7100 | # Check whether --enable-athena-check or --disable-athena-check was given. |
| 7101 | if test "${enable_athena_check+set}" = set; then |
| 7102 | enableval="$enable_athena_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7103 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7104 | else |
| 7105 | enable_athena_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7106 | fi; |
| 7107 | echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 7108 | echo "${ECHO_T}$enable_athena_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7109 | if test "x$enable_athena_check" = "xno"; then |
| 7110 | SKIP_ATHENA=YES |
| 7111 | fi |
| 7112 | fi |
| 7113 | |
| 7114 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7115 | echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 7116 | 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] | 7117 | # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
| 7118 | if test "${enable_nextaw_check+set}" = set; then |
| 7119 | enableval="$enable_nextaw_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7120 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7121 | else |
| 7122 | enable_nextaw_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7123 | fi; |
| 7124 | echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 7125 | echo "${ECHO_T}$enable_nextaw_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7126 | if test "x$enable_nextaw_check" = "xno"; then |
| 7127 | SKIP_NEXTAW=YES |
| 7128 | fi |
| 7129 | fi |
| 7130 | |
| 7131 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7132 | echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 7133 | 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] | 7134 | # Check whether --enable-carbon-check or --disable-carbon-check was given. |
| 7135 | if test "${enable_carbon_check+set}" = set; then |
| 7136 | enableval="$enable_carbon_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7137 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7138 | else |
| 7139 | enable_carbon_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7140 | fi; |
| 7141 | echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 7142 | echo "${ECHO_T}$enable_carbon_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7143 | if test "x$enable_carbon_check" = "xno"; then |
| 7144 | SKIP_CARBON=YES |
| 7145 | fi |
| 7146 | fi |
| 7147 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7148 | |
| 7149 | if test -z "$SKIP_KDE"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7150 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7151 | # Check whether --with-qt-dir or --without-qt-dir was given. |
| 7152 | if test "${with_qt_dir+set}" = set; then |
| 7153 | withval="$with_qt_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7154 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7155 | ROOTQT="$withval" |
| 7156 | MOC="$withval"/bin/moc |
| 7157 | QT_INCLUDES="$withval"/include |
| 7158 | QT_LIBS="$withval"/lib |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7159 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7160 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7161 | |
| 7162 | if test "x$ROOTQT" = "x"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7163 | if test -z "$QTDIR"; then |
| 7164 | # Extract the first word of "moc", so it can be a program name with args. |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7165 | set dummy moc; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7168 | if test "${ac_cv_path_MOC+set}" = set; then |
| 7169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7170 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7171 | case $MOC in |
| 7172 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7173 | ac_cv_path_MOC="$MOC" # Let the user override the test with a path. |
| 7174 | ;; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7175 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7177 | for as_dir in $PATH |
| 7178 | do |
| 7179 | IFS=$as_save_IFS |
| 7180 | test -z "$as_dir" && as_dir=. |
| 7181 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7182 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7183 | ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext" |
| 7184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7185 | break 2 |
| 7186 | fi |
| 7187 | done |
| 7188 | done |
| 7189 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7190 | test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no" |
| 7191 | ;; |
| 7192 | esac |
| 7193 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7194 | MOC=$ac_cv_path_MOC |
| 7195 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7196 | if test -n "$MOC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7197 | echo "$as_me:$LINENO: result: $MOC" >&5 |
| 7198 | echo "${ECHO_T}$MOC" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7199 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7200 | echo "$as_me:$LINENO: result: no" >&5 |
| 7201 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7202 | fi |
| 7203 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7204 | if test "x$MOC" = "xno"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7205 | { { echo "$as_me:$LINENO: error: could not find Qt directory" >&5 |
| 7206 | echo "$as_me: error: could not find Qt directory" >&2;} |
| 7207 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7208 | else |
| 7209 | ROOTQT=`echo $MOC | sed 's+/bin/moc++'` |
| 7210 | fi |
| 7211 | else |
| 7212 | ROOTQT="$QTDIR" |
| 7213 | fi |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7214 | fi |
| 7215 | MOC="$ROOTQT"/bin/moc |
| 7216 | QT_INCLUDES="$ROOTQT"/include |
| 7217 | QT_LIBS="$ROOTQT"/lib |
| 7218 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7219 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7220 | # Check whether --with-qt-includes or --without-qt-includes was given. |
| 7221 | if test "${with_qt_includes+set}" = set; then |
| 7222 | withval="$with_qt_includes" |
| 7223 | QT_INCLUDES="$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7224 | |
| 7225 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7226 | |
| 7227 | |
| 7228 | # Check whether --with-qt-libraries or --without-qt-libraries was given. |
| 7229 | if test "${with_qt_libraries+set}" = set; then |
| 7230 | withval="$with_qt_libraries" |
| 7231 | QT_LIBS="$withval" |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7232 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7233 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7234 | |
| 7235 | if test "x$QT_LIBS" = "x" ; then |
| 7236 | QT_LIBS="$ROOTQT"/lib |
| 7237 | fi |
| 7238 | if test "x$QT_INCLUDES" = "x" ; then |
| 7239 | QT_INCLUDES="$ROOTQT"/include |
| 7240 | fi |
| 7241 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7242 | echo "$as_me:$LINENO: checking whether or not to use a KDE Toolbar in KVim" >&5 |
| 7243 | echo $ECHO_N "checking whether or not to use a KDE Toolbar in KVim... $ECHO_C" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7244 | # Check whether --enable-kde-toolbar or --disable-kde-toolbar was given. |
| 7245 | if test "${enable_kde_toolbar+set}" = set; then |
| 7246 | enableval="$enable_kde_toolbar" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7247 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7248 | else |
| 7249 | enable_kde_toolbar="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7250 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7251 | if test "x$enable_kde_toolbar" != "xno"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7252 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7253 | #define FEAT_KDETOOLBAR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7254 | _ACEOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7255 | |
| 7256 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7257 | echo "$as_me:$LINENO: result: $enable_kde_toolbar" >&5 |
| 7258 | echo "${ECHO_T}$enable_kde_toolbar" >&6; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7259 | fi |
| 7260 | |
| 7261 | |
| 7262 | if test -z "$SKIP_KDE"; then |
| 7263 | |
| 7264 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7265 | |
| 7266 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7267 | echo "$as_me:$LINENO: checking --disable-rpath argument" >&5 |
| 7268 | echo $ECHO_N "checking --disable-rpath argument... $ECHO_C" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7269 | # Check whether --enable-rpath or --disable-rpath was given. |
| 7270 | if test "${enable_rpath+set}" = set; then |
| 7271 | enableval="$enable_rpath" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7272 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7273 | else |
| 7274 | enable_rpath="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7275 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7276 | if test "$enable_rpath" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7277 | echo "$as_me:$LINENO: result: no" >&5 |
| 7278 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7279 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7280 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7281 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7282 | fi |
| 7283 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7284 | echo "$as_me:$LINENO: checking --with-kde-prefix argument" >&5 |
| 7285 | echo $ECHO_N "checking --with-kde-prefix argument... $ECHO_C" >&6 |
| 7286 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7287 | # Check whether --with-kde-prefix or --without-kde-prefix was given. |
| 7288 | if test "${with_kde_prefix+set}" = set; then |
| 7289 | withval="$with_kde_prefix" |
| 7290 | kde_config_prefix="$withval"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7291 | echo "$as_me:$LINENO: result: $kde_config_prefix" >&5 |
| 7292 | echo "${ECHO_T}$kde_config_prefix" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7293 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7294 | kde_config_prefix="";echo "$as_me:$LINENO: result: no" >&5 |
| 7295 | echo "${ECHO_T}no" >&6 |
| 7296 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7297 | |
| 7298 | |
| 7299 | # Check whether --with-kde-includes or --without-kde-includes was given. |
| 7300 | if test "${with_kde_includes+set}" = set; then |
| 7301 | withval="$with_kde_includes" |
| 7302 | KDE_INCLUDES="$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7303 | |
| 7304 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7305 | |
| 7306 | |
| 7307 | # Check whether --with-kde-libraries or --without-kde-libraries was given. |
| 7308 | if test "${with_kde_libraries+set}" = set; then |
| 7309 | withval="$with_kde_libraries" |
| 7310 | KDE_LIBS="$withval" |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7311 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7312 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7313 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7314 | echo "$as_me:$LINENO: checking --disable-kdetest argument" >&5 |
| 7315 | echo $ECHO_N "checking --disable-kdetest argument... $ECHO_C" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7316 | # Check whether --enable-kdetest or --disable-kdetest was given. |
| 7317 | if test "${enable_kdetest+set}" = set; then |
| 7318 | enableval="$enable_kdetest" |
| 7319 | enable_kdetest=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7320 | fi; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7321 | |
| 7322 | if test "x$enable_kdetest" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7323 | echo "$as_me:$LINENO: result: kde test enabled" >&5 |
| 7324 | echo "${ECHO_T}kde test enabled" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7325 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7326 | echo "$as_me:$LINENO: result: kde test disabled" >&5 |
| 7327 | echo "${ECHO_T}kde test disabled" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7328 | fi |
| 7329 | |
| 7330 | if test "x$kde_config_prefix" != "x" ; then |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7331 | KDE_CONFIG=$kde_config_prefix/bin/kde-config |
| 7332 | fi |
| 7333 | |
| 7334 | if test "X$KDE_CONFIG" = "X"; then |
| 7335 | # Extract the first word of "kde-config", so it can be a program name with args. |
| 7336 | set dummy kde-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7337 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7339 | if test "${ac_cv_path_KDE_CONFIG+set}" = set; then |
| 7340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7341 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7342 | case $KDE_CONFIG in |
| 7343 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7344 | ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path. |
| 7345 | ;; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7346 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7348 | for as_dir in $PATH |
| 7349 | do |
| 7350 | IFS=$as_save_IFS |
| 7351 | test -z "$as_dir" && as_dir=. |
| 7352 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7353 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7354 | ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7356 | break 2 |
| 7357 | fi |
| 7358 | done |
| 7359 | done |
| 7360 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7361 | test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no" |
| 7362 | ;; |
| 7363 | esac |
| 7364 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7365 | KDE_CONFIG=$ac_cv_path_KDE_CONFIG |
| 7366 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7367 | if test -n "$KDE_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7368 | echo "$as_me:$LINENO: result: $KDE_CONFIG" >&5 |
| 7369 | echo "${ECHO_T}$KDE_CONFIG" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7370 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7371 | echo "$as_me:$LINENO: result: no" >&5 |
| 7372 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7373 | fi |
| 7374 | |
| 7375 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7376 | echo "$as_me:$LINENO: result: Using KDE configuration program $KDE_CONFIG" >&5 |
| 7377 | echo "${ECHO_T}Using KDE configuration program $KDE_CONFIG" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7378 | fi |
| 7379 | |
| 7380 | if test "X$KDE_CONFIG" != "X" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7381 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7382 | if test "X$KDE_CONFIG" != "X"; then |
| 7383 | min_kde_version=2.0.0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7384 | echo "$as_me:$LINENO: checking for KDE version >= $min_kde_version" >&5 |
| 7385 | echo $ECHO_N "checking for KDE version >= $min_kde_version... $ECHO_C" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7386 | no_kde="" |
| 7387 | if test "$KDE_CONFIG" = "no" ; then |
| 7388 | no_kde=yes |
| 7389 | else |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7390 | KDE_PREFIX=`$KDE_CONFIG --prefix` |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7391 | if test "x$KDE_LIBS" = "x"; then |
| 7392 | KDE_LIBS="$KDE_PREFIX/lib" |
| 7393 | fi |
| 7394 | if test "x$KDE_INCLUDES" = "x"; then |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame] | 7395 | KDE_INCLUDES="$KDE_PREFIX/include" |
| 7396 | if test -d "$KDE_INCLUDES/kde"; then |
| 7397 | KDE_INCLUDES="$KDE_INCLUDES/kde" |
| 7398 | fi |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7399 | fi |
| 7400 | kde_major_version=`$KDE_CONFIG --version | grep KDE | \ |
| 7401 | sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'` |
| 7402 | kde_minor_version=`$KDE_CONFIG --version | grep KDE | \ |
| 7403 | sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7404 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7405 | qt_major_version=`$KDE_CONFIG --version | grep Qt | sed -e \ |
| 7406 | 's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'` |
| 7407 | qt_minor_version=`$KDE_CONFIG --version | grep Qt | sed -e \ |
| 7408 | 's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7409 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7410 | if test "x$enable-kdetest" = "xyes" ; then |
| 7411 | ac_save_LIBS="$LIBS" |
| 7412 | LIBS="$LIBS $KDE_LIBS" |
| 7413 | |
| 7414 | if test "$cross_compiling" = yes; then |
| 7415 | echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)" |
| 7416 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7417 | cat >conftest.$ac_ext <<_ACEOF |
| 7418 | /* confdefs.h. */ |
| 7419 | _ACEOF |
| 7420 | cat confdefs.h >>conftest.$ac_ext |
| 7421 | cat >>conftest.$ac_ext <<_ACEOF |
| 7422 | /* end confdefs.h. */ |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7423 | |
| 7424 | #include <stdio.h> |
| 7425 | int |
| 7426 | main() |
| 7427 | { return 0; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7428 | |
| 7429 | _ACEOF |
| 7430 | rm -f conftest$ac_exeext |
| 7431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7432 | (eval $ac_link) 2>&5 |
| 7433 | ac_status=$? |
| 7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7435 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7437 | (eval $ac_try) 2>&5 |
| 7438 | ac_status=$? |
| 7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7440 | (exit $ac_status); }; }; then |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7441 | : |
| 7442 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7443 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7444 | echo "$as_me: failed program was:" >&5 |
| 7445 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7446 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7447 | ( exit $ac_status ) |
| 7448 | no_kde=yes |
| 7449 | fi |
| 7450 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7451 | fi |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7452 | LIBS="$ac_save_LIBS" |
| 7453 | fi |
| 7454 | fi |
| 7455 | if test "x$no_kde" = x ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7456 | echo "$as_me:$LINENO: result: found KDE $kde_major_version.$kde_minor_version" >&5 |
| 7457 | echo "${ECHO_T}found KDE $kde_major_version.$kde_minor_version" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7458 | GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP" |
| 7459 | GUI_INC_LOC="-I$KDE_INCLUDES" |
| 7460 | KDEDIR="$KDE_PREFIX" |
| 7461 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7462 | echo "$as_me:$LINENO: result: no" >&5 |
| 7463 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7464 | KDE_LIBS="" |
| 7465 | : |
| 7466 | fi |
| 7467 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7468 | echo "$as_me:$LINENO: result: no" >&5 |
| 7469 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7470 | KDE_LIBS="" |
| 7471 | : |
| 7472 | fi |
| 7473 | |
| 7474 | |
| 7475 | |
| 7476 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7477 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7478 | if test "x$KDE_PREFIX" != "x"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7479 | echo "$as_me:$LINENO: checking for QT version $qt_major_version.x" >&5 |
| 7480 | echo $ECHO_N "checking for QT version $qt_major_version.x... $ECHO_C" >&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7481 | if test "x$ROOTQT" != "x" ; then |
| 7482 | GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC" |
| 7483 | if test $qt_major_version -lt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7484 | { { echo "$as_me:$LINENO: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&5 |
| 7485 | echo "$as_me: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&2;} |
| 7486 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7487 | fi |
| 7488 | if test "`(uname) 2>/dev/null`" = "FreeBSD"; then |
| 7489 | CFLAGS="$CFLAGS -D_THREAD_SAFE" |
| 7490 | CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE" |
| 7491 | GUI_LIB_LOC="$GUI_LIB_LOC -pthread" |
| 7492 | LIBS="$LIBS -pthread" |
| 7493 | fi |
| 7494 | |
| 7495 | if test "x$enable_rpath" = "xyes"; then |
| 7496 | if test $qt_major_version = 2; then |
| 7497 | GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC \ |
| 7498 | -Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS" |
| 7499 | else |
| 7500 | GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC \ |
| 7501 | -Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS" |
| 7502 | fi |
| 7503 | else |
| 7504 | if test $qt_major_version = 2; then |
| 7505 | GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC" |
| 7506 | else |
| 7507 | GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC" |
| 7508 | fi |
| 7509 | fi |
| 7510 | |
| 7511 | GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`" |
| 7512 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7513 | echo "$as_me:$LINENO: result: found $qt_major_version.$qt_minor_version in $ROOTQT" >&5 |
| 7514 | echo "${ECHO_T}found $qt_major_version.$qt_minor_version in $ROOTQT" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7515 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7516 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7517 | qt_incdir=NO |
| 7518 | for i in $QT_INCLUDES; |
| 7519 | do |
| 7520 | for j in qstyle.h; |
| 7521 | do |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 7522 | echo "configure: 7522: $i/$j" >&5 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7523 | if test -r "$i/$j"; then |
| 7524 | echo "taking that" >&5 |
| 7525 | qt_incdir=$i |
| 7526 | break 2 |
| 7527 | fi |
| 7528 | done |
| 7529 | done |
| 7530 | |
| 7531 | if test "x$qt_incdir" = "xNO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7532 | { { echo "$as_me:$LINENO: error: Could not find Qt headers in $QT_INCLUDES" >&5 |
| 7533 | echo "$as_me: error: Could not find Qt headers in $QT_INCLUDES" >&2;} |
| 7534 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7535 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7536 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7537 | kde_incdir=NO |
| 7538 | for i in $KDE_INCLUDES; |
| 7539 | do |
| 7540 | for j in kapplication.h; |
| 7541 | do |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 7542 | echo "configure: 7542: $i/$j" >&5 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7543 | if test -r "$i/$j"; then |
| 7544 | echo "taking that" >&5 |
| 7545 | kde_incdir=$i |
| 7546 | break 2 |
| 7547 | fi |
| 7548 | done |
| 7549 | done |
| 7550 | |
| 7551 | if test "x$kde_incdir" = "xNO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7552 | { { echo "$as_me:$LINENO: error: Could not find KDE headers in $KDE_INCLUDES" >&5 |
| 7553 | echo "$as_me: error: Could not find KDE headers in $KDE_INCLUDES" >&2;} |
| 7554 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7555 | fi |
| 7556 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7557 | |
| 7558 | |
| 7559 | ac_ext=cc |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7560 | ac_cpp='$CXXCPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7561 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7562 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7563 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7564 | |
| 7565 | ac_ext=cc |
| 7566 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7567 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7568 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7569 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7570 | if test -n "$ac_tool_prefix"; then |
| 7571 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 7572 | do |
| 7573 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7574 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7577 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 7578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7579 | else |
| 7580 | if test -n "$CXX"; then |
| 7581 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 7582 | else |
| 7583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7584 | for as_dir in $PATH |
| 7585 | do |
| 7586 | IFS=$as_save_IFS |
| 7587 | test -z "$as_dir" && as_dir=. |
| 7588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7589 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7590 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 7591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7592 | break 2 |
| 7593 | fi |
| 7594 | done |
| 7595 | done |
| 7596 | |
| 7597 | fi |
| 7598 | fi |
| 7599 | CXX=$ac_cv_prog_CXX |
| 7600 | if test -n "$CXX"; then |
| 7601 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 7602 | echo "${ECHO_T}$CXX" >&6 |
| 7603 | else |
| 7604 | echo "$as_me:$LINENO: result: no" >&5 |
| 7605 | echo "${ECHO_T}no" >&6 |
| 7606 | fi |
| 7607 | |
| 7608 | test -n "$CXX" && break |
| 7609 | done |
| 7610 | fi |
| 7611 | if test -z "$CXX"; then |
| 7612 | ac_ct_CXX=$CXX |
| 7613 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 7614 | do |
| 7615 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7616 | set dummy $ac_prog; ac_word=$2 |
| 7617 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7619 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 7620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7621 | else |
| 7622 | if test -n "$ac_ct_CXX"; then |
| 7623 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 7624 | else |
| 7625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7626 | for as_dir in $PATH |
| 7627 | do |
| 7628 | IFS=$as_save_IFS |
| 7629 | test -z "$as_dir" && as_dir=. |
| 7630 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7631 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7632 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 7633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7634 | break 2 |
| 7635 | fi |
| 7636 | done |
| 7637 | done |
| 7638 | |
| 7639 | fi |
| 7640 | fi |
| 7641 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 7642 | if test -n "$ac_ct_CXX"; then |
| 7643 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 7644 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 7645 | else |
| 7646 | echo "$as_me:$LINENO: result: no" >&5 |
| 7647 | echo "${ECHO_T}no" >&6 |
| 7648 | fi |
| 7649 | |
| 7650 | test -n "$ac_ct_CXX" && break |
| 7651 | done |
| 7652 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 7653 | |
| 7654 | CXX=$ac_ct_CXX |
| 7655 | fi |
| 7656 | |
| 7657 | |
| 7658 | # Provide some information about the compiler. |
| 7659 | echo "$as_me:$LINENO:" \ |
| 7660 | "checking for C++ compiler version" >&5 |
| 7661 | ac_compiler=`set X $ac_compile; echo $2` |
| 7662 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 7663 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 7664 | ac_status=$? |
| 7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7666 | (exit $ac_status); } |
| 7667 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 7668 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 7669 | ac_status=$? |
| 7670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7671 | (exit $ac_status); } |
| 7672 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 7673 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 7674 | ac_status=$? |
| 7675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7676 | (exit $ac_status); } |
| 7677 | |
| 7678 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 7679 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 7680 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 7681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7682 | else |
| 7683 | cat >conftest.$ac_ext <<_ACEOF |
| 7684 | /* confdefs.h. */ |
| 7685 | _ACEOF |
| 7686 | cat confdefs.h >>conftest.$ac_ext |
| 7687 | cat >>conftest.$ac_ext <<_ACEOF |
| 7688 | /* end confdefs.h. */ |
| 7689 | |
| 7690 | int |
| 7691 | main () |
| 7692 | { |
| 7693 | #ifndef __GNUC__ |
| 7694 | choke me |
| 7695 | #endif |
| 7696 | |
| 7697 | ; |
| 7698 | return 0; |
| 7699 | } |
| 7700 | _ACEOF |
| 7701 | rm -f conftest.$ac_objext |
| 7702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7703 | (eval $ac_compile) 2>conftest.er1 |
| 7704 | ac_status=$? |
| 7705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7706 | rm -f conftest.er1 |
| 7707 | cat conftest.err >&5 |
| 7708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7709 | (exit $ac_status); } && |
| 7710 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7711 | || test ! -s conftest.err' |
| 7712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7713 | (eval $ac_try) 2>&5 |
| 7714 | ac_status=$? |
| 7715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7716 | (exit $ac_status); }; } && |
| 7717 | { ac_try='test -s conftest.$ac_objext' |
| 7718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7719 | (eval $ac_try) 2>&5 |
| 7720 | ac_status=$? |
| 7721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7722 | (exit $ac_status); }; }; then |
| 7723 | ac_compiler_gnu=yes |
| 7724 | else |
| 7725 | echo "$as_me: failed program was:" >&5 |
| 7726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7727 | |
| 7728 | ac_compiler_gnu=no |
| 7729 | fi |
| 7730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7731 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 7732 | |
| 7733 | fi |
| 7734 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 7735 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 7736 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 7737 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 7738 | ac_save_CXXFLAGS=$CXXFLAGS |
| 7739 | CXXFLAGS="-g" |
| 7740 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 7741 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 7742 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 7743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7744 | else |
| 7745 | cat >conftest.$ac_ext <<_ACEOF |
| 7746 | /* confdefs.h. */ |
| 7747 | _ACEOF |
| 7748 | cat confdefs.h >>conftest.$ac_ext |
| 7749 | cat >>conftest.$ac_ext <<_ACEOF |
| 7750 | /* end confdefs.h. */ |
| 7751 | |
| 7752 | int |
| 7753 | main () |
| 7754 | { |
| 7755 | |
| 7756 | ; |
| 7757 | return 0; |
| 7758 | } |
| 7759 | _ACEOF |
| 7760 | rm -f conftest.$ac_objext |
| 7761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7762 | (eval $ac_compile) 2>conftest.er1 |
| 7763 | ac_status=$? |
| 7764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7765 | rm -f conftest.er1 |
| 7766 | cat conftest.err >&5 |
| 7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7768 | (exit $ac_status); } && |
| 7769 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7770 | || test ! -s conftest.err' |
| 7771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7772 | (eval $ac_try) 2>&5 |
| 7773 | ac_status=$? |
| 7774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7775 | (exit $ac_status); }; } && |
| 7776 | { ac_try='test -s conftest.$ac_objext' |
| 7777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7778 | (eval $ac_try) 2>&5 |
| 7779 | ac_status=$? |
| 7780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7781 | (exit $ac_status); }; }; then |
| 7782 | ac_cv_prog_cxx_g=yes |
| 7783 | else |
| 7784 | echo "$as_me: failed program was:" >&5 |
| 7785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7786 | |
| 7787 | ac_cv_prog_cxx_g=no |
| 7788 | fi |
| 7789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7790 | fi |
| 7791 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 7792 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 7793 | if test "$ac_test_CXXFLAGS" = set; then |
| 7794 | CXXFLAGS=$ac_save_CXXFLAGS |
| 7795 | elif test $ac_cv_prog_cxx_g = yes; then |
| 7796 | if test "$GXX" = yes; then |
| 7797 | CXXFLAGS="-g -O2" |
| 7798 | else |
| 7799 | CXXFLAGS="-g" |
| 7800 | fi |
| 7801 | else |
| 7802 | if test "$GXX" = yes; then |
| 7803 | CXXFLAGS="-O2" |
| 7804 | else |
| 7805 | CXXFLAGS= |
| 7806 | fi |
| 7807 | fi |
| 7808 | for ac_declaration in \ |
| 7809 | '' \ |
| 7810 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 7811 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 7812 | 'extern "C" void exit (int) throw ();' \ |
| 7813 | 'extern "C" void exit (int);' \ |
| 7814 | 'void exit (int);' |
| 7815 | do |
| 7816 | cat >conftest.$ac_ext <<_ACEOF |
| 7817 | /* confdefs.h. */ |
| 7818 | _ACEOF |
| 7819 | cat confdefs.h >>conftest.$ac_ext |
| 7820 | cat >>conftest.$ac_ext <<_ACEOF |
| 7821 | /* end confdefs.h. */ |
| 7822 | $ac_declaration |
| 7823 | #include <stdlib.h> |
| 7824 | int |
| 7825 | main () |
| 7826 | { |
| 7827 | exit (42); |
| 7828 | ; |
| 7829 | return 0; |
| 7830 | } |
| 7831 | _ACEOF |
| 7832 | rm -f conftest.$ac_objext |
| 7833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7834 | (eval $ac_compile) 2>conftest.er1 |
| 7835 | ac_status=$? |
| 7836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7837 | rm -f conftest.er1 |
| 7838 | cat conftest.err >&5 |
| 7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7840 | (exit $ac_status); } && |
| 7841 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7842 | || test ! -s conftest.err' |
| 7843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7844 | (eval $ac_try) 2>&5 |
| 7845 | ac_status=$? |
| 7846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7847 | (exit $ac_status); }; } && |
| 7848 | { ac_try='test -s conftest.$ac_objext' |
| 7849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7850 | (eval $ac_try) 2>&5 |
| 7851 | ac_status=$? |
| 7852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7853 | (exit $ac_status); }; }; then |
| 7854 | : |
| 7855 | else |
| 7856 | echo "$as_me: failed program was:" >&5 |
| 7857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7858 | |
| 7859 | continue |
| 7860 | fi |
| 7861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7862 | cat >conftest.$ac_ext <<_ACEOF |
| 7863 | /* confdefs.h. */ |
| 7864 | _ACEOF |
| 7865 | cat confdefs.h >>conftest.$ac_ext |
| 7866 | cat >>conftest.$ac_ext <<_ACEOF |
| 7867 | /* end confdefs.h. */ |
| 7868 | $ac_declaration |
| 7869 | int |
| 7870 | main () |
| 7871 | { |
| 7872 | exit (42); |
| 7873 | ; |
| 7874 | return 0; |
| 7875 | } |
| 7876 | _ACEOF |
| 7877 | rm -f conftest.$ac_objext |
| 7878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7879 | (eval $ac_compile) 2>conftest.er1 |
| 7880 | ac_status=$? |
| 7881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7882 | rm -f conftest.er1 |
| 7883 | cat conftest.err >&5 |
| 7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7885 | (exit $ac_status); } && |
| 7886 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7887 | || test ! -s conftest.err' |
| 7888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7889 | (eval $ac_try) 2>&5 |
| 7890 | ac_status=$? |
| 7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7892 | (exit $ac_status); }; } && |
| 7893 | { ac_try='test -s conftest.$ac_objext' |
| 7894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7895 | (eval $ac_try) 2>&5 |
| 7896 | ac_status=$? |
| 7897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7898 | (exit $ac_status); }; }; then |
| 7899 | break |
| 7900 | else |
| 7901 | echo "$as_me: failed program was:" >&5 |
| 7902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7903 | |
| 7904 | fi |
| 7905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7906 | done |
| 7907 | rm -f conftest* |
| 7908 | if test -n "$ac_declaration"; then |
| 7909 | echo '#ifdef __cplusplus' >>confdefs.h |
| 7910 | echo $ac_declaration >>confdefs.h |
| 7911 | echo '#endif' >>confdefs.h |
| 7912 | fi |
| 7913 | |
| 7914 | ac_ext=cc |
| 7915 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7916 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7917 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7918 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7919 | |
| 7920 | ac_save_LIBS="$LIBS" |
| 7921 | LIBS="$GUI_LIB_LOC" |
| 7922 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 7923 | CXXFLAGS="$CXXFLAGS $GUI_INC_LOC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7924 | echo "$as_me:$LINENO: checking whether Qt libraries are usable" >&5 |
| 7925 | echo $ECHO_N "checking whether Qt libraries are usable... $ECHO_C" >&6 |
| 7926 | |
| 7927 | cat >conftest.$ac_ext <<_ACEOF |
| 7928 | /* confdefs.h. */ |
| 7929 | _ACEOF |
| 7930 | cat confdefs.h >>conftest.$ac_ext |
| 7931 | cat >>conftest.$ac_ext <<_ACEOF |
| 7932 | /* end confdefs.h. */ |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7933 | #include <qapplication.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7934 | int |
| 7935 | main () |
| 7936 | { |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7937 | |
| 7938 | int argc; |
| 7939 | char** argv; |
| 7940 | QApplication app(argc, argv); |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7941 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7942 | ; |
| 7943 | return 0; |
| 7944 | } |
| 7945 | _ACEOF |
| 7946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7948 | (eval $ac_link) 2>conftest.er1 |
| 7949 | ac_status=$? |
| 7950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7951 | rm -f conftest.er1 |
| 7952 | cat conftest.err >&5 |
| 7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7954 | (exit $ac_status); } && |
| 7955 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7956 | || test ! -s conftest.err' |
| 7957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7958 | (eval $ac_try) 2>&5 |
| 7959 | ac_status=$? |
| 7960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7961 | (exit $ac_status); }; } && |
| 7962 | { ac_try='test -s conftest$ac_exeext' |
| 7963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7964 | (eval $ac_try) 2>&5 |
| 7965 | ac_status=$? |
| 7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7967 | (exit $ac_status); }; }; then |
| 7968 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7969 | echo "${ECHO_T}yes" >&6 |
| 7970 | else |
| 7971 | echo "$as_me: failed program was:" >&5 |
| 7972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7973 | |
| 7974 | echo "$as_me:$LINENO: result: no" >&5 |
| 7975 | echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: Qt fails to link a simple application" >&5 |
| 7976 | echo "$as_me: error: Qt fails to link a simple application" >&2;} |
| 7977 | { (exit check your installation and settings); exit check your installation and settings; }; } |
| 7978 | fi |
| 7979 | rm -f conftest.err conftest.$ac_objext \ |
| 7980 | conftest$ac_exeext conftest.$ac_ext |
| 7981 | |
| 7982 | echo "$as_me:$LINENO: checking whether KDE libraries are usable" >&5 |
| 7983 | echo $ECHO_N "checking whether KDE libraries are usable... $ECHO_C" >&6 |
| 7984 | cat >conftest.$ac_ext <<_ACEOF |
| 7985 | /* confdefs.h. */ |
| 7986 | _ACEOF |
| 7987 | cat confdefs.h >>conftest.$ac_ext |
| 7988 | cat >>conftest.$ac_ext <<_ACEOF |
| 7989 | /* end confdefs.h. */ |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7990 | #include <kapplication.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7991 | int |
| 7992 | main () |
| 7993 | { |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 7994 | |
| 7995 | int argc; |
| 7996 | char** argv; |
| 7997 | KApplication app(argc, argv); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7998 | |
| 7999 | ; |
| 8000 | return 0; |
| 8001 | } |
| 8002 | _ACEOF |
| 8003 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8005 | (eval $ac_link) 2>conftest.er1 |
| 8006 | ac_status=$? |
| 8007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8008 | rm -f conftest.er1 |
| 8009 | cat conftest.err >&5 |
| 8010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8011 | (exit $ac_status); } && |
| 8012 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8013 | || test ! -s conftest.err' |
| 8014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8015 | (eval $ac_try) 2>&5 |
| 8016 | ac_status=$? |
| 8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8018 | (exit $ac_status); }; } && |
| 8019 | { ac_try='test -s conftest$ac_exeext' |
| 8020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8021 | (eval $ac_try) 2>&5 |
| 8022 | ac_status=$? |
| 8023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8024 | (exit $ac_status); }; }; then |
| 8025 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8026 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8027 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8028 | echo "$as_me: failed program was:" >&5 |
| 8029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8030 | |
| 8031 | echo "$as_me:$LINENO: result: no" >&5 |
| 8032 | echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: KDE fails to link a simple application" >&5 |
| 8033 | echo "$as_me: error: KDE fails to link a simple application" >&2;} |
| 8034 | { (exit check your installation and settings); exit check your installation and settings; }; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8035 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8036 | rm -f conftest.err conftest.$ac_objext \ |
| 8037 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8038 | |
| 8039 | LIBS="$ac_save_LIBS" |
| 8040 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 8041 | ac_ext=c |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8042 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8046 | |
| 8047 | |
| 8048 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8049 | SKIP_GTK=YES |
| 8050 | SKIP_ATHENA=YES |
| 8051 | SKIP_MOTIF=YES |
| 8052 | GUITYPE=KDE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8053 | |
| 8054 | |
| 8055 | |
| 8056 | |
| 8057 | |
| 8058 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8059 | #define FEAT_GUI_KDE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8060 | _ACEOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8061 | |
| 8062 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8063 | { { echo "$as_me:$LINENO: error: Detected QT version mismatched" >&5 |
| 8064 | echo "$as_me: error: Detected QT version mismatched" >&2;} |
| 8065 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8066 | fi |
| 8067 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8068 | { { echo "$as_me:$LINENO: error: Could not find KDE installation prefix" >&5 |
| 8069 | echo "$as_me: error: Could not find KDE installation prefix" >&2;} |
| 8070 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8071 | fi |
| 8072 | fi |
| 8073 | fi |
| 8074 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8075 | 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] | 8076 | echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 8077 | echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6 |
| 8078 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8079 | echo "${ECHO_T}yes" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8080 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 8081 | if test "$VIMNAME" = "vim"; then |
| 8082 | VIMNAME=Vim |
| 8083 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8084 | SKIP_GTK=YES; |
| 8085 | SKIP_GTK2=YES; |
| 8086 | SKIP_GNOME=YES; |
| 8087 | SKIP_MOTIF=YES; |
| 8088 | SKIP_ATHENA=YES; |
| 8089 | SKIP_NEXTAW=YES; |
| 8090 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8091 | SKIP_CARBON=YES |
| 8092 | fi |
| 8093 | |
| 8094 | |
| 8095 | |
| 8096 | |
| 8097 | |
| 8098 | |
| 8099 | |
| 8100 | |
| 8101 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8102 | if test -z "$SKIP_GTK"; then |
| 8103 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8104 | echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 8105 | echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 |
| 8106 | |
| 8107 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8108 | if test "${with_gtk_prefix+set}" = set; then |
| 8109 | withval="$with_gtk_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8110 | gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8111 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8112 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8113 | gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 8114 | echo "${ECHO_T}no" >&6 |
| 8115 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8116 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8117 | echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 8118 | echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8119 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8120 | # 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] | 8121 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 8122 | withval="$with_gtk_exec_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8123 | gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8124 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8125 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8126 | gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 8127 | echo "${ECHO_T}no" >&6 |
| 8128 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8129 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8130 | echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 8131 | echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8132 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 8133 | if test "${enable_gtktest+set}" = set; then |
| 8134 | enableval="$enable_gtktest" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8135 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8136 | else |
| 8137 | enable_gtktest=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8138 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8139 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8140 | echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 8141 | echo "${ECHO_T}gtk test enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8142 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8143 | echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 8144 | echo "${ECHO_T}gtk test disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8145 | fi |
| 8146 | |
| 8147 | if test "x$gtk_config_prefix" != "x" ; then |
| 8148 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 8149 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 8150 | fi |
| 8151 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 8152 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 8153 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 8154 | fi |
| 8155 | if test "X$GTK_CONFIG" = "X"; then |
| 8156 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 8157 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8160 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
| 8161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8162 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8163 | case $GTK_CONFIG in |
| 8164 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8165 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 8166 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8167 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8169 | for as_dir in $PATH |
| 8170 | do |
| 8171 | IFS=$as_save_IFS |
| 8172 | test -z "$as_dir" && as_dir=. |
| 8173 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8175 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8177 | break 2 |
| 8178 | fi |
| 8179 | done |
| 8180 | done |
| 8181 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8182 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 8183 | ;; |
| 8184 | esac |
| 8185 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8186 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
| 8187 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8188 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8189 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 8190 | echo "${ECHO_T}$GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8191 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8192 | echo "$as_me:$LINENO: result: no" >&5 |
| 8193 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8194 | fi |
| 8195 | |
| 8196 | if test "X$GTK_CONFIG" = "Xno"; then |
| 8197 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 8198 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8201 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
| 8202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8203 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8204 | case $GTK12_CONFIG in |
| 8205 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8206 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 8207 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8208 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8210 | for as_dir in $PATH |
| 8211 | do |
| 8212 | IFS=$as_save_IFS |
| 8213 | test -z "$as_dir" && as_dir=. |
| 8214 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8216 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8218 | break 2 |
| 8219 | fi |
| 8220 | done |
| 8221 | done |
| 8222 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8223 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 8224 | ;; |
| 8225 | esac |
| 8226 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8227 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
| 8228 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8229 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8230 | echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 8231 | echo "${ECHO_T}$GTK12_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8232 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8233 | echo "$as_me:$LINENO: result: no" >&5 |
| 8234 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8235 | fi |
| 8236 | |
| 8237 | GTK_CONFIG="$GTK12_CONFIG" |
| 8238 | fi |
| 8239 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8240 | echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 8241 | echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8242 | fi |
| 8243 | if test "X$PKG_CONFIG" = "X"; then |
| 8244 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8245 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8246 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8248 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 8249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8250 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8251 | case $PKG_CONFIG in |
| 8252 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8253 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8254 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8255 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8257 | for as_dir in $PATH |
| 8258 | do |
| 8259 | IFS=$as_save_IFS |
| 8260 | test -z "$as_dir" && as_dir=. |
| 8261 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8263 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8265 | break 2 |
| 8266 | fi |
| 8267 | done |
| 8268 | done |
| 8269 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8270 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8271 | ;; |
| 8272 | esac |
| 8273 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8274 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8275 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8276 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8277 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 8278 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8279 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8280 | echo "$as_me:$LINENO: result: no" >&5 |
| 8281 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8282 | fi |
| 8283 | |
| 8284 | fi |
| 8285 | |
| 8286 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 8287 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8288 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8289 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8290 | { |
| 8291 | min_gtk_version=2.2.0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8292 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8293 | 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] | 8294 | no_gtk="" |
| 8295 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8296 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8297 | { |
| 8298 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8299 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8300 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8301 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8302 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8303 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8304 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8305 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8306 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8307 | } |
| 8308 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8309 | { |
| 8310 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8311 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8312 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8313 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8314 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8315 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8316 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8317 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8318 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8319 | } |
| 8320 | else |
| 8321 | no_gtk=yes |
| 8322 | fi |
| 8323 | |
| 8324 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8325 | { |
| 8326 | ac_save_CFLAGS="$CFLAGS" |
| 8327 | ac_save_LIBS="$LIBS" |
| 8328 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8329 | LIBS="$LIBS $GTK_LIBS" |
| 8330 | |
| 8331 | rm -f conf.gtktest |
| 8332 | if test "$cross_compiling" = yes; then |
| 8333 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8334 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8335 | cat >conftest.$ac_ext <<_ACEOF |
| 8336 | /* confdefs.h. */ |
| 8337 | _ACEOF |
| 8338 | cat confdefs.h >>conftest.$ac_ext |
| 8339 | cat >>conftest.$ac_ext <<_ACEOF |
| 8340 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8341 | |
| 8342 | #include <gtk/gtk.h> |
| 8343 | #include <stdio.h> |
| 8344 | |
| 8345 | int |
| 8346 | main () |
| 8347 | { |
| 8348 | int major, minor, micro; |
| 8349 | char *tmp_version; |
| 8350 | |
| 8351 | system ("touch conf.gtktest"); |
| 8352 | |
| 8353 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8354 | tmp_version = g_strdup("$min_gtk_version"); |
| 8355 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8356 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8357 | exit(1); |
| 8358 | } |
| 8359 | |
| 8360 | if ((gtk_major_version > major) || |
| 8361 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8362 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8363 | (gtk_micro_version >= micro))) |
| 8364 | { |
| 8365 | return 0; |
| 8366 | } |
| 8367 | return 1; |
| 8368 | } |
| 8369 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8370 | _ACEOF |
| 8371 | rm -f conftest$ac_exeext |
| 8372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8373 | (eval $ac_link) 2>&5 |
| 8374 | ac_status=$? |
| 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8378 | (eval $ac_try) 2>&5 |
| 8379 | ac_status=$? |
| 8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8381 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8382 | : |
| 8383 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8384 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8385 | echo "$as_me: failed program was:" >&5 |
| 8386 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8387 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8388 | ( exit $ac_status ) |
| 8389 | no_gtk=yes |
| 8390 | fi |
| 8391 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8392 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8393 | CFLAGS="$ac_save_CFLAGS" |
| 8394 | LIBS="$ac_save_LIBS" |
| 8395 | } |
| 8396 | fi |
| 8397 | if test "x$no_gtk" = x ; then |
| 8398 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8399 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8400 | 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] | 8401 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8402 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8403 | 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] | 8404 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8405 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 8406 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8407 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8408 | else |
| 8409 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8410 | echo "$as_me:$LINENO: result: no" >&5 |
| 8411 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8412 | GTK_CFLAGS="" |
| 8413 | GTK_LIBS="" |
| 8414 | : |
| 8415 | } |
| 8416 | fi |
| 8417 | } |
| 8418 | else |
| 8419 | GTK_CFLAGS="" |
| 8420 | GTK_LIBS="" |
| 8421 | : |
| 8422 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8423 | |
| 8424 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8425 | rm -f conf.gtktest |
| 8426 | |
| 8427 | if test "x$GTK_CFLAGS" != "x"; then |
| 8428 | SKIP_ATHENA=YES |
| 8429 | SKIP_NEXTAW=YES |
| 8430 | SKIP_MOTIF=YES |
| 8431 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8432 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8433 | fi |
| 8434 | fi |
| 8435 | |
| 8436 | if test "x$GUITYPE" != "xGTK"; then |
| 8437 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8438 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8439 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8440 | { |
| 8441 | min_gtk_version=1.1.16 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8442 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8443 | 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] | 8444 | no_gtk="" |
| 8445 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8446 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8447 | { |
| 8448 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8449 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8450 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8451 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8452 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8453 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8454 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8455 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8456 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8457 | } |
| 8458 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8459 | { |
| 8460 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8461 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8462 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8463 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8464 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8465 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8466 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8467 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8468 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8469 | } |
| 8470 | else |
| 8471 | no_gtk=yes |
| 8472 | fi |
| 8473 | |
| 8474 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8475 | { |
| 8476 | ac_save_CFLAGS="$CFLAGS" |
| 8477 | ac_save_LIBS="$LIBS" |
| 8478 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8479 | LIBS="$LIBS $GTK_LIBS" |
| 8480 | |
| 8481 | rm -f conf.gtktest |
| 8482 | if test "$cross_compiling" = yes; then |
| 8483 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8484 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8485 | cat >conftest.$ac_ext <<_ACEOF |
| 8486 | /* confdefs.h. */ |
| 8487 | _ACEOF |
| 8488 | cat confdefs.h >>conftest.$ac_ext |
| 8489 | cat >>conftest.$ac_ext <<_ACEOF |
| 8490 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8491 | |
| 8492 | #include <gtk/gtk.h> |
| 8493 | #include <stdio.h> |
| 8494 | |
| 8495 | int |
| 8496 | main () |
| 8497 | { |
| 8498 | int major, minor, micro; |
| 8499 | char *tmp_version; |
| 8500 | |
| 8501 | system ("touch conf.gtktest"); |
| 8502 | |
| 8503 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8504 | tmp_version = g_strdup("$min_gtk_version"); |
| 8505 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8506 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8507 | exit(1); |
| 8508 | } |
| 8509 | |
| 8510 | if ((gtk_major_version > major) || |
| 8511 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8512 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8513 | (gtk_micro_version >= micro))) |
| 8514 | { |
| 8515 | return 0; |
| 8516 | } |
| 8517 | return 1; |
| 8518 | } |
| 8519 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8520 | _ACEOF |
| 8521 | rm -f conftest$ac_exeext |
| 8522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8523 | (eval $ac_link) 2>&5 |
| 8524 | ac_status=$? |
| 8525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8526 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8528 | (eval $ac_try) 2>&5 |
| 8529 | ac_status=$? |
| 8530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8531 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8532 | : |
| 8533 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8534 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8535 | echo "$as_me: failed program was:" >&5 |
| 8536 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8537 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8538 | ( exit $ac_status ) |
| 8539 | no_gtk=yes |
| 8540 | fi |
| 8541 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8542 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8543 | CFLAGS="$ac_save_CFLAGS" |
| 8544 | LIBS="$ac_save_LIBS" |
| 8545 | } |
| 8546 | fi |
| 8547 | if test "x$no_gtk" = x ; then |
| 8548 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8549 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8550 | 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] | 8551 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8552 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8553 | 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] | 8554 | fi |
| 8555 | GTK_LIBNAME="$GTK_LIBS" |
| 8556 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8557 | else |
| 8558 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8559 | echo "$as_me:$LINENO: result: no" >&5 |
| 8560 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8561 | GTK_CFLAGS="" |
| 8562 | GTK_LIBS="" |
| 8563 | : |
| 8564 | } |
| 8565 | fi |
| 8566 | } |
| 8567 | else |
| 8568 | GTK_CFLAGS="" |
| 8569 | GTK_LIBS="" |
| 8570 | : |
| 8571 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8572 | |
| 8573 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8574 | rm -f conf.gtktest |
| 8575 | |
| 8576 | if test "x$GTK_CFLAGS" != "x"; then |
| 8577 | SKIP_ATHENA=YES |
| 8578 | SKIP_NEXTAW=YES |
| 8579 | SKIP_MOTIF=YES |
| 8580 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8581 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8582 | fi |
| 8583 | fi |
| 8584 | fi |
| 8585 | if test "x$GUITYPE" = "xGTK"; then |
| 8586 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 8587 | -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] | 8588 | echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 8589 | 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] | 8590 | else |
| 8591 | { |
| 8592 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8593 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8594 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8595 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8596 | |
| 8597 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 8598 | || test "0$gtk_minor_version" -ge 2 \ |
| 8599 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8600 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8601 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8602 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8603 | |
| 8604 | fi |
| 8605 | fi |
| 8606 | if test -z "$SKIP_GNOME"; then |
| 8607 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8608 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8609 | |
| 8610 | |
| 8611 | |
| 8612 | |
| 8613 | |
| 8614 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8615 | if test "${with_gnome_includes+set}" = set; then |
| 8616 | withval="$with_gnome_includes" |
| 8617 | CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8618 | |
| 8619 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8620 | |
| 8621 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8622 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8623 | if test "${with_gnome_libs+set}" = set; then |
| 8624 | withval="$with_gnome_libs" |
| 8625 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8626 | |
| 8627 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8628 | |
| 8629 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8630 | # Check whether --with-gnome or --without-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8631 | if test "${with_gnome+set}" = set; then |
| 8632 | withval="$with_gnome" |
| 8633 | if test x$withval = xyes; then |
| 8634 | want_gnome=yes |
| 8635 | have_gnome=yes |
| 8636 | else |
| 8637 | if test "x$withval" = xno; then |
| 8638 | want_gnome=no |
| 8639 | else |
| 8640 | want_gnome=yes |
| 8641 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 8642 | CFLAGS="$CFLAGS -I$withval/include" |
| 8643 | gnome_prefix=$withval/lib |
| 8644 | fi |
| 8645 | fi |
| 8646 | else |
| 8647 | want_gnome=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8648 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8649 | |
| 8650 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 8651 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8652 | echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 8653 | echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8654 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8655 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8656 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8657 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 8658 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 8659 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
| 8660 | have_gnome=yes |
| 8661 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8662 | echo "$as_me:$LINENO: result: not found" >&5 |
| 8663 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8664 | if test "x" = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8665 | { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 8666 | echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
| 8667 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8668 | fi |
| 8669 | fi |
| 8670 | } |
| 8671 | elif test "x$want_gnome" = xyes; then |
| 8672 | { |
| 8673 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 8674 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8677 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
| 8678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8679 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8680 | case $GNOME_CONFIG in |
| 8681 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8682 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 8683 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8684 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8686 | for as_dir in $PATH |
| 8687 | do |
| 8688 | IFS=$as_save_IFS |
| 8689 | test -z "$as_dir" && as_dir=. |
| 8690 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8692 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8694 | break 2 |
| 8695 | fi |
| 8696 | done |
| 8697 | done |
| 8698 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8699 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 8700 | ;; |
| 8701 | esac |
| 8702 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8703 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
| 8704 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8705 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8706 | echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 8707 | echo "${ECHO_T}$GNOME_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8708 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8709 | echo "$as_me:$LINENO: result: no" >&5 |
| 8710 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8711 | fi |
| 8712 | |
| 8713 | if test "$GNOME_CONFIG" = "no"; then |
| 8714 | no_gnome_config="yes" |
| 8715 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8716 | echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 8717 | echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8718 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8719 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8720 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8721 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 8722 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 8723 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 8724 | have_gnome=yes |
| 8725 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8726 | echo "$as_me:$LINENO: result: no" >&5 |
| 8727 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8728 | no_gnome_config="yes" |
| 8729 | fi |
| 8730 | fi |
| 8731 | |
| 8732 | if test x$exec_prefix = xNONE; then |
| 8733 | if test x$prefix = xNONE; then |
| 8734 | gnome_prefix=$ac_default_prefix/lib |
| 8735 | else |
| 8736 | gnome_prefix=$prefix/lib |
| 8737 | fi |
| 8738 | else |
| 8739 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 8740 | fi |
| 8741 | |
| 8742 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8743 | echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 8744 | 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] | 8745 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8746 | echo "$as_me:$LINENO: result: found" >&5 |
| 8747 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8748 | echo "loading gnome configuration from" \ |
| 8749 | "$gnome_prefix/gnomeConf.sh" |
| 8750 | . $gnome_prefix/gnomeConf.sh |
| 8751 | have_gnome=yes |
| 8752 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8753 | echo "$as_me:$LINENO: result: not found" >&5 |
| 8754 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8755 | if test x = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8756 | { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 8757 | echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
| 8758 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8759 | fi |
| 8760 | fi |
| 8761 | fi |
| 8762 | } |
| 8763 | fi |
| 8764 | |
| 8765 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8766 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8767 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8768 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8769 | |
| 8770 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 8771 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 8772 | fi |
| 8773 | } |
| 8774 | fi |
| 8775 | } |
| 8776 | fi |
| 8777 | fi |
| 8778 | fi |
| 8779 | |
| 8780 | |
| 8781 | if test -z "$SKIP_MOTIF"; then |
| 8782 | 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" |
| 8783 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 8784 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8785 | echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 8786 | 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] | 8787 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 8788 | GUI_INC_LOC= |
| 8789 | for try in $gui_includes; do |
| 8790 | if test -f "$try/Xm/Xm.h"; then |
| 8791 | GUI_INC_LOC=$try |
| 8792 | fi |
| 8793 | done |
| 8794 | if test -n "$GUI_INC_LOC"; then |
| 8795 | if test "$GUI_INC_LOC" = /usr/include; then |
| 8796 | GUI_INC_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8797 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8798 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8799 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8800 | echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 8801 | echo "${ECHO_T}$GUI_INC_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8802 | fi |
| 8803 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8804 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8805 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8806 | SKIP_MOTIF=YES |
| 8807 | fi |
| 8808 | fi |
| 8809 | |
| 8810 | |
| 8811 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8812 | echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 8813 | echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 |
| 8814 | |
| 8815 | # Check whether --with-motif-lib or --without-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8816 | if test "${with_motif_lib+set}" = set; then |
| 8817 | withval="$with_motif_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8818 | MOTIF_LIBNAME="${withval}" |
| 8819 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8820 | |
| 8821 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8822 | echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 8823 | echo "${ECHO_T}$MOTIF_LIBNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8824 | GUI_LIB_LOC= |
| 8825 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8826 | echo "$as_me:$LINENO: result: no" >&5 |
| 8827 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8828 | |
| 8829 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 8830 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8831 | echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 8832 | 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] | 8833 | 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" |
| 8834 | GUI_LIB_LOC= |
| 8835 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8836 | 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] | 8837 | if test -f "$libtry"; then |
| 8838 | GUI_LIB_LOC=$try |
| 8839 | fi |
| 8840 | done |
| 8841 | done |
| 8842 | if test -n "$GUI_LIB_LOC"; then |
| 8843 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 8844 | GUI_LIB_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8845 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8846 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8847 | else |
| 8848 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8849 | echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 8850 | echo "${ECHO_T}$GUI_LIB_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8851 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 8852 | uname -r | grep '^5' >/dev/null; then |
| 8853 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 8854 | fi |
| 8855 | fi |
| 8856 | fi |
| 8857 | MOTIF_LIBNAME=-lXm |
| 8858 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8859 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8860 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8861 | SKIP_MOTIF=YES |
| 8862 | fi |
| 8863 | fi |
| 8864 | fi |
| 8865 | |
| 8866 | if test -z "$SKIP_MOTIF"; then |
| 8867 | SKIP_ATHENA=YES |
| 8868 | SKIP_NEXTAW=YES |
| 8869 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8870 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8871 | fi |
| 8872 | |
| 8873 | |
| 8874 | GUI_X_LIBS= |
| 8875 | |
| 8876 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8877 | echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 8878 | 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] | 8879 | cflags_save=$CFLAGS |
| 8880 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8881 | cat >conftest.$ac_ext <<_ACEOF |
| 8882 | /* confdefs.h. */ |
| 8883 | _ACEOF |
| 8884 | cat confdefs.h >>conftest.$ac_ext |
| 8885 | cat >>conftest.$ac_ext <<_ACEOF |
| 8886 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8887 | |
| 8888 | #include <X11/Intrinsic.h> |
| 8889 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8890 | int |
| 8891 | main () |
| 8892 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8893 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8894 | ; |
| 8895 | return 0; |
| 8896 | } |
| 8897 | _ACEOF |
| 8898 | rm -f conftest.$ac_objext |
| 8899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8900 | (eval $ac_compile) 2>conftest.er1 |
| 8901 | ac_status=$? |
| 8902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8903 | rm -f conftest.er1 |
| 8904 | cat conftest.err >&5 |
| 8905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8906 | (exit $ac_status); } && |
| 8907 | { ac_try='test -z "$ac_c_werror_flag" |
| 8908 | || test ! -s conftest.err' |
| 8909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8910 | (eval $ac_try) 2>&5 |
| 8911 | ac_status=$? |
| 8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8913 | (exit $ac_status); }; } && |
| 8914 | { ac_try='test -s conftest.$ac_objext' |
| 8915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8916 | (eval $ac_try) 2>&5 |
| 8917 | ac_status=$? |
| 8918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8919 | (exit $ac_status); }; }; then |
| 8920 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8921 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8922 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8923 | echo "$as_me: failed program was:" >&5 |
| 8924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8925 | |
| 8926 | echo "$as_me:$LINENO: result: no" >&5 |
| 8927 | echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8928 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8930 | CFLAGS=$cflags_save |
| 8931 | fi |
| 8932 | |
| 8933 | if test -z "$SKIP_ATHENA"; then |
| 8934 | GUITYPE=ATHENA |
| 8935 | fi |
| 8936 | |
| 8937 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8938 | echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 8939 | 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] | 8940 | cflags_save=$CFLAGS |
| 8941 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8942 | cat >conftest.$ac_ext <<_ACEOF |
| 8943 | /* confdefs.h. */ |
| 8944 | _ACEOF |
| 8945 | cat confdefs.h >>conftest.$ac_ext |
| 8946 | cat >>conftest.$ac_ext <<_ACEOF |
| 8947 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8948 | |
| 8949 | #include <X11/Intrinsic.h> |
| 8950 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8951 | int |
| 8952 | main () |
| 8953 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8954 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8955 | ; |
| 8956 | return 0; |
| 8957 | } |
| 8958 | _ACEOF |
| 8959 | rm -f conftest.$ac_objext |
| 8960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8961 | (eval $ac_compile) 2>conftest.er1 |
| 8962 | ac_status=$? |
| 8963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8964 | rm -f conftest.er1 |
| 8965 | cat conftest.err >&5 |
| 8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8967 | (exit $ac_status); } && |
| 8968 | { ac_try='test -z "$ac_c_werror_flag" |
| 8969 | || test ! -s conftest.err' |
| 8970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8971 | (eval $ac_try) 2>&5 |
| 8972 | ac_status=$? |
| 8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8974 | (exit $ac_status); }; } && |
| 8975 | { ac_try='test -s conftest.$ac_objext' |
| 8976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8977 | (eval $ac_try) 2>&5 |
| 8978 | ac_status=$? |
| 8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8980 | (exit $ac_status); }; }; then |
| 8981 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8982 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8983 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8984 | echo "$as_me: failed program was:" >&5 |
| 8985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8986 | |
| 8987 | echo "$as_me:$LINENO: result: no" >&5 |
| 8988 | echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8989 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8991 | CFLAGS=$cflags_save |
| 8992 | fi |
| 8993 | |
| 8994 | if test -z "$SKIP_NEXTAW"; then |
| 8995 | GUITYPE=NEXTAW |
| 8996 | fi |
| 8997 | |
| 8998 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8999 | if test -n "$GUI_INC_LOC"; then |
| 9000 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 9001 | fi |
| 9002 | if test -n "$GUI_LIB_LOC"; then |
| 9003 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 9004 | fi |
| 9005 | |
| 9006 | ldflags_save=$LDFLAGS |
| 9007 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9008 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9009 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 9010 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 9011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9012 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9013 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9014 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9015 | cat >conftest.$ac_ext <<_ACEOF |
| 9016 | /* confdefs.h. */ |
| 9017 | _ACEOF |
| 9018 | cat confdefs.h >>conftest.$ac_ext |
| 9019 | cat >>conftest.$ac_ext <<_ACEOF |
| 9020 | /* end confdefs.h. */ |
| 9021 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9022 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9023 | #ifdef __cplusplus |
| 9024 | extern "C" |
| 9025 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9026 | /* 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] | 9027 | builtin and then its argument prototype would still apply. */ |
| 9028 | char XShapeQueryExtension (); |
| 9029 | int |
| 9030 | main () |
| 9031 | { |
| 9032 | XShapeQueryExtension (); |
| 9033 | ; |
| 9034 | return 0; |
| 9035 | } |
| 9036 | _ACEOF |
| 9037 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9039 | (eval $ac_link) 2>conftest.er1 |
| 9040 | ac_status=$? |
| 9041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9042 | rm -f conftest.er1 |
| 9043 | cat conftest.err >&5 |
| 9044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9045 | (exit $ac_status); } && |
| 9046 | { ac_try='test -z "$ac_c_werror_flag" |
| 9047 | || test ! -s conftest.err' |
| 9048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9049 | (eval $ac_try) 2>&5 |
| 9050 | ac_status=$? |
| 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9052 | (exit $ac_status); }; } && |
| 9053 | { ac_try='test -s conftest$ac_exeext' |
| 9054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9055 | (eval $ac_try) 2>&5 |
| 9056 | ac_status=$? |
| 9057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9058 | (exit $ac_status); }; }; then |
| 9059 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9060 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9061 | echo "$as_me: failed program was:" >&5 |
| 9062 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9063 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9064 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9065 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9066 | rm -f conftest.err conftest.$ac_objext \ |
| 9067 | conftest$ac_exeext conftest.$ac_ext |
| 9068 | LIBS=$ac_check_lib_save_LIBS |
| 9069 | fi |
| 9070 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9071 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 9072 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9073 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9074 | fi |
| 9075 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9076 | echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 9077 | echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 |
| 9078 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
| 9079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9080 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9081 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9082 | 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] | 9083 | cat >conftest.$ac_ext <<_ACEOF |
| 9084 | /* confdefs.h. */ |
| 9085 | _ACEOF |
| 9086 | cat confdefs.h >>conftest.$ac_ext |
| 9087 | cat >>conftest.$ac_ext <<_ACEOF |
| 9088 | /* end confdefs.h. */ |
| 9089 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9090 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9091 | #ifdef __cplusplus |
| 9092 | extern "C" |
| 9093 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9094 | /* 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] | 9095 | builtin and then its argument prototype would still apply. */ |
| 9096 | char wslen (); |
| 9097 | int |
| 9098 | main () |
| 9099 | { |
| 9100 | wslen (); |
| 9101 | ; |
| 9102 | return 0; |
| 9103 | } |
| 9104 | _ACEOF |
| 9105 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9107 | (eval $ac_link) 2>conftest.er1 |
| 9108 | ac_status=$? |
| 9109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9110 | rm -f conftest.er1 |
| 9111 | cat conftest.err >&5 |
| 9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9113 | (exit $ac_status); } && |
| 9114 | { ac_try='test -z "$ac_c_werror_flag" |
| 9115 | || test ! -s conftest.err' |
| 9116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9117 | (eval $ac_try) 2>&5 |
| 9118 | ac_status=$? |
| 9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9120 | (exit $ac_status); }; } && |
| 9121 | { ac_try='test -s conftest$ac_exeext' |
| 9122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9123 | (eval $ac_try) 2>&5 |
| 9124 | ac_status=$? |
| 9125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9126 | (exit $ac_status); }; }; then |
| 9127 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9128 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9129 | echo "$as_me: failed program was:" >&5 |
| 9130 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9131 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9132 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9133 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9134 | rm -f conftest.err conftest.$ac_objext \ |
| 9135 | conftest$ac_exeext conftest.$ac_ext |
| 9136 | LIBS=$ac_check_lib_save_LIBS |
| 9137 | fi |
| 9138 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 9139 | echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 |
| 9140 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9141 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9142 | fi |
| 9143 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9144 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 9145 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
| 9146 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
| 9147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9148 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9149 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9150 | 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] | 9151 | cat >conftest.$ac_ext <<_ACEOF |
| 9152 | /* confdefs.h. */ |
| 9153 | _ACEOF |
| 9154 | cat confdefs.h >>conftest.$ac_ext |
| 9155 | cat >>conftest.$ac_ext <<_ACEOF |
| 9156 | /* end confdefs.h. */ |
| 9157 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9158 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9159 | #ifdef __cplusplus |
| 9160 | extern "C" |
| 9161 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9162 | /* 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] | 9163 | builtin and then its argument prototype would still apply. */ |
| 9164 | char dlsym (); |
| 9165 | int |
| 9166 | main () |
| 9167 | { |
| 9168 | dlsym (); |
| 9169 | ; |
| 9170 | return 0; |
| 9171 | } |
| 9172 | _ACEOF |
| 9173 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9175 | (eval $ac_link) 2>conftest.er1 |
| 9176 | ac_status=$? |
| 9177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9178 | rm -f conftest.er1 |
| 9179 | cat conftest.err >&5 |
| 9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9181 | (exit $ac_status); } && |
| 9182 | { ac_try='test -z "$ac_c_werror_flag" |
| 9183 | || test ! -s conftest.err' |
| 9184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9185 | (eval $ac_try) 2>&5 |
| 9186 | ac_status=$? |
| 9187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9188 | (exit $ac_status); }; } && |
| 9189 | { ac_try='test -s conftest$ac_exeext' |
| 9190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9191 | (eval $ac_try) 2>&5 |
| 9192 | ac_status=$? |
| 9193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9194 | (exit $ac_status); }; }; then |
| 9195 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9196 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9197 | echo "$as_me: failed program was:" >&5 |
| 9198 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9199 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9200 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9201 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9202 | rm -f conftest.err conftest.$ac_objext \ |
| 9203 | conftest$ac_exeext conftest.$ac_ext |
| 9204 | LIBS=$ac_check_lib_save_LIBS |
| 9205 | fi |
| 9206 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 9207 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 |
| 9208 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9209 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9210 | fi |
| 9211 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9212 | echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 9213 | echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 |
| 9214 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
| 9215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9216 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9217 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9218 | 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] | 9219 | cat >conftest.$ac_ext <<_ACEOF |
| 9220 | /* confdefs.h. */ |
| 9221 | _ACEOF |
| 9222 | cat confdefs.h >>conftest.$ac_ext |
| 9223 | cat >>conftest.$ac_ext <<_ACEOF |
| 9224 | /* end confdefs.h. */ |
| 9225 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9226 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9227 | #ifdef __cplusplus |
| 9228 | extern "C" |
| 9229 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9230 | /* 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] | 9231 | builtin and then its argument prototype would still apply. */ |
| 9232 | char XmuCreateStippledPixmap (); |
| 9233 | int |
| 9234 | main () |
| 9235 | { |
| 9236 | XmuCreateStippledPixmap (); |
| 9237 | ; |
| 9238 | return 0; |
| 9239 | } |
| 9240 | _ACEOF |
| 9241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9243 | (eval $ac_link) 2>conftest.er1 |
| 9244 | ac_status=$? |
| 9245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9246 | rm -f conftest.er1 |
| 9247 | cat conftest.err >&5 |
| 9248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9249 | (exit $ac_status); } && |
| 9250 | { ac_try='test -z "$ac_c_werror_flag" |
| 9251 | || test ! -s conftest.err' |
| 9252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9253 | (eval $ac_try) 2>&5 |
| 9254 | ac_status=$? |
| 9255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9256 | (exit $ac_status); }; } && |
| 9257 | { ac_try='test -s conftest$ac_exeext' |
| 9258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9259 | (eval $ac_try) 2>&5 |
| 9260 | ac_status=$? |
| 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9262 | (exit $ac_status); }; }; then |
| 9263 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9264 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9265 | echo "$as_me: failed program was:" >&5 |
| 9266 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9267 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9268 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9269 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9270 | rm -f conftest.err conftest.$ac_objext \ |
| 9271 | conftest$ac_exeext conftest.$ac_ext |
| 9272 | LIBS=$ac_check_lib_save_LIBS |
| 9273 | fi |
| 9274 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 9275 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 |
| 9276 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9277 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9278 | fi |
| 9279 | |
| 9280 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9281 | echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 9282 | echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 |
| 9283 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
| 9284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9285 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9286 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9287 | 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] | 9288 | cat >conftest.$ac_ext <<_ACEOF |
| 9289 | /* confdefs.h. */ |
| 9290 | _ACEOF |
| 9291 | cat confdefs.h >>conftest.$ac_ext |
| 9292 | cat >>conftest.$ac_ext <<_ACEOF |
| 9293 | /* end confdefs.h. */ |
| 9294 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9295 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9296 | #ifdef __cplusplus |
| 9297 | extern "C" |
| 9298 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9299 | /* 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] | 9300 | builtin and then its argument prototype would still apply. */ |
| 9301 | char XpEndJob (); |
| 9302 | int |
| 9303 | main () |
| 9304 | { |
| 9305 | XpEndJob (); |
| 9306 | ; |
| 9307 | return 0; |
| 9308 | } |
| 9309 | _ACEOF |
| 9310 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9312 | (eval $ac_link) 2>conftest.er1 |
| 9313 | ac_status=$? |
| 9314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9315 | rm -f conftest.er1 |
| 9316 | cat conftest.err >&5 |
| 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9318 | (exit $ac_status); } && |
| 9319 | { ac_try='test -z "$ac_c_werror_flag" |
| 9320 | || test ! -s conftest.err' |
| 9321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9322 | (eval $ac_try) 2>&5 |
| 9323 | ac_status=$? |
| 9324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9325 | (exit $ac_status); }; } && |
| 9326 | { ac_try='test -s conftest$ac_exeext' |
| 9327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9328 | (eval $ac_try) 2>&5 |
| 9329 | ac_status=$? |
| 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9331 | (exit $ac_status); }; }; then |
| 9332 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9333 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9334 | echo "$as_me: failed program was:" >&5 |
| 9335 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9336 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9337 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9338 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9339 | rm -f conftest.err conftest.$ac_objext \ |
| 9340 | conftest$ac_exeext conftest.$ac_ext |
| 9341 | LIBS=$ac_check_lib_save_LIBS |
| 9342 | fi |
| 9343 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 9344 | echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 |
| 9345 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9346 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9347 | fi |
| 9348 | |
| 9349 | fi |
| 9350 | LDFLAGS=$ldflags_save |
| 9351 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9352 | echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 9353 | echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9354 | NARROW_PROTO= |
| 9355 | rm -fr conftestdir |
| 9356 | if mkdir conftestdir; then |
| 9357 | cd conftestdir |
| 9358 | cat > Imakefile <<'EOF' |
| 9359 | acfindx: |
| 9360 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 9361 | EOF |
| 9362 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9363 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 9364 | fi |
| 9365 | cd .. |
| 9366 | rm -fr conftestdir |
| 9367 | fi |
| 9368 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9369 | echo "$as_me:$LINENO: result: no" >&5 |
| 9370 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9371 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9372 | echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 9373 | echo "${ECHO_T}$NARROW_PROTO" >&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 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9376 | fi |
| 9377 | |
| 9378 | if test "$enable_xsmp" = "yes"; then |
| 9379 | cppflags_save=$CPPFLAGS |
| 9380 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9381 | |
| 9382 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9383 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9384 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9386 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9387 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9390 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9393 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9394 | # Is the header compilable? |
| 9395 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9396 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9397 | cat >conftest.$ac_ext <<_ACEOF |
| 9398 | /* confdefs.h. */ |
| 9399 | _ACEOF |
| 9400 | cat confdefs.h >>conftest.$ac_ext |
| 9401 | cat >>conftest.$ac_ext <<_ACEOF |
| 9402 | /* end confdefs.h. */ |
| 9403 | $ac_includes_default |
| 9404 | #include <$ac_header> |
| 9405 | _ACEOF |
| 9406 | rm -f conftest.$ac_objext |
| 9407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9408 | (eval $ac_compile) 2>conftest.er1 |
| 9409 | ac_status=$? |
| 9410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9411 | rm -f conftest.er1 |
| 9412 | cat conftest.err >&5 |
| 9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9414 | (exit $ac_status); } && |
| 9415 | { ac_try='test -z "$ac_c_werror_flag" |
| 9416 | || test ! -s conftest.err' |
| 9417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9418 | (eval $ac_try) 2>&5 |
| 9419 | ac_status=$? |
| 9420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9421 | (exit $ac_status); }; } && |
| 9422 | { ac_try='test -s conftest.$ac_objext' |
| 9423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9424 | (eval $ac_try) 2>&5 |
| 9425 | ac_status=$? |
| 9426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9427 | (exit $ac_status); }; }; then |
| 9428 | ac_header_compiler=yes |
| 9429 | else |
| 9430 | echo "$as_me: failed program was:" >&5 |
| 9431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9432 | |
| 9433 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9434 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9436 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9437 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9438 | |
| 9439 | # Is the header present? |
| 9440 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9441 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9442 | cat >conftest.$ac_ext <<_ACEOF |
| 9443 | /* confdefs.h. */ |
| 9444 | _ACEOF |
| 9445 | cat confdefs.h >>conftest.$ac_ext |
| 9446 | cat >>conftest.$ac_ext <<_ACEOF |
| 9447 | /* end confdefs.h. */ |
| 9448 | #include <$ac_header> |
| 9449 | _ACEOF |
| 9450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9452 | ac_status=$? |
| 9453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9454 | rm -f conftest.er1 |
| 9455 | cat conftest.err >&5 |
| 9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9457 | (exit $ac_status); } >/dev/null; then |
| 9458 | if test -s conftest.err; then |
| 9459 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9461 | else |
| 9462 | ac_cpp_err= |
| 9463 | fi |
| 9464 | else |
| 9465 | ac_cpp_err=yes |
| 9466 | fi |
| 9467 | if test -z "$ac_cpp_err"; then |
| 9468 | ac_header_preproc=yes |
| 9469 | else |
| 9470 | echo "$as_me: failed program was:" >&5 |
| 9471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9472 | |
| 9473 | ac_header_preproc=no |
| 9474 | fi |
| 9475 | rm -f conftest.err conftest.$ac_ext |
| 9476 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9477 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9478 | |
| 9479 | # So? What about this header? |
| 9480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9481 | yes:no: ) |
| 9482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9486 | ac_header_preproc=yes |
| 9487 | ;; |
| 9488 | no:yes:* ) |
| 9489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9501 | ( |
| 9502 | cat <<\_ASBOX |
| 9503 | ## ------------------------------------------ ## |
| 9504 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9505 | ## ------------------------------------------ ## |
| 9506 | _ASBOX |
| 9507 | ) | |
| 9508 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9509 | ;; |
| 9510 | esac |
| 9511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9515 | else |
| 9516 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9517 | fi |
| 9518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9520 | |
| 9521 | fi |
| 9522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9523 | cat >>confdefs.h <<_ACEOF |
| 9524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9525 | _ACEOF |
| 9526 | |
| 9527 | fi |
| 9528 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9529 | done |
| 9530 | |
| 9531 | CPPFLAGS=$cppflags_save |
| 9532 | fi |
| 9533 | |
| 9534 | |
| 9535 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 9536 | cppflags_save=$CPPFLAGS |
| 9537 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9538 | |
| 9539 | |
| 9540 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9541 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9542 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9543 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9544 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9548 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9551 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9552 | # Is the header compilable? |
| 9553 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9554 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9555 | cat >conftest.$ac_ext <<_ACEOF |
| 9556 | /* confdefs.h. */ |
| 9557 | _ACEOF |
| 9558 | cat confdefs.h >>conftest.$ac_ext |
| 9559 | cat >>conftest.$ac_ext <<_ACEOF |
| 9560 | /* end confdefs.h. */ |
| 9561 | $ac_includes_default |
| 9562 | #include <$ac_header> |
| 9563 | _ACEOF |
| 9564 | rm -f conftest.$ac_objext |
| 9565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9566 | (eval $ac_compile) 2>conftest.er1 |
| 9567 | ac_status=$? |
| 9568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9569 | rm -f conftest.er1 |
| 9570 | cat conftest.err >&5 |
| 9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9572 | (exit $ac_status); } && |
| 9573 | { ac_try='test -z "$ac_c_werror_flag" |
| 9574 | || test ! -s conftest.err' |
| 9575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9576 | (eval $ac_try) 2>&5 |
| 9577 | ac_status=$? |
| 9578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9579 | (exit $ac_status); }; } && |
| 9580 | { ac_try='test -s conftest.$ac_objext' |
| 9581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9582 | (eval $ac_try) 2>&5 |
| 9583 | ac_status=$? |
| 9584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9585 | (exit $ac_status); }; }; then |
| 9586 | ac_header_compiler=yes |
| 9587 | else |
| 9588 | echo "$as_me: failed program was:" >&5 |
| 9589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9590 | |
| 9591 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9592 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9594 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9595 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9596 | |
| 9597 | # Is the header present? |
| 9598 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9599 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9600 | cat >conftest.$ac_ext <<_ACEOF |
| 9601 | /* confdefs.h. */ |
| 9602 | _ACEOF |
| 9603 | cat confdefs.h >>conftest.$ac_ext |
| 9604 | cat >>conftest.$ac_ext <<_ACEOF |
| 9605 | /* end confdefs.h. */ |
| 9606 | #include <$ac_header> |
| 9607 | _ACEOF |
| 9608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9610 | ac_status=$? |
| 9611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9612 | rm -f conftest.er1 |
| 9613 | cat conftest.err >&5 |
| 9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9615 | (exit $ac_status); } >/dev/null; then |
| 9616 | if test -s conftest.err; then |
| 9617 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9618 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9619 | else |
| 9620 | ac_cpp_err= |
| 9621 | fi |
| 9622 | else |
| 9623 | ac_cpp_err=yes |
| 9624 | fi |
| 9625 | if test -z "$ac_cpp_err"; then |
| 9626 | ac_header_preproc=yes |
| 9627 | else |
| 9628 | echo "$as_me: failed program was:" >&5 |
| 9629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9630 | |
| 9631 | ac_header_preproc=no |
| 9632 | fi |
| 9633 | rm -f conftest.err conftest.$ac_ext |
| 9634 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9635 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9636 | |
| 9637 | # So? What about this header? |
| 9638 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9639 | yes:no: ) |
| 9640 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9641 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9643 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9644 | ac_header_preproc=yes |
| 9645 | ;; |
| 9646 | no:yes:* ) |
| 9647 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9648 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9649 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9650 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9651 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9652 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9653 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9654 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9656 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9657 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9658 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9659 | ( |
| 9660 | cat <<\_ASBOX |
| 9661 | ## ------------------------------------------ ## |
| 9662 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9663 | ## ------------------------------------------ ## |
| 9664 | _ASBOX |
| 9665 | ) | |
| 9666 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9667 | ;; |
| 9668 | esac |
| 9669 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9670 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9671 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9673 | else |
| 9674 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9675 | fi |
| 9676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9677 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9678 | |
| 9679 | fi |
| 9680 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9681 | cat >>confdefs.h <<_ACEOF |
| 9682 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9683 | _ACEOF |
| 9684 | |
| 9685 | fi |
| 9686 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9687 | done |
| 9688 | |
| 9689 | |
| 9690 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9691 | echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 9692 | echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 |
| 9693 | cat >conftest.$ac_ext <<_ACEOF |
| 9694 | /* confdefs.h. */ |
| 9695 | _ACEOF |
| 9696 | cat confdefs.h >>conftest.$ac_ext |
| 9697 | cat >>conftest.$ac_ext <<_ACEOF |
| 9698 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9699 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9700 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9702 | $EGREP "XIMText" >/dev/null 2>&1; then |
| 9703 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9704 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9705 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9706 | echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 9707 | echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9708 | fi |
| 9709 | rm -f conftest* |
| 9710 | |
| 9711 | fi |
| 9712 | CPPFLAGS=$cppflags_save |
| 9713 | |
| 9714 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 9715 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9716 | echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 9717 | echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9718 | enable_xim="yes" |
| 9719 | fi |
| 9720 | fi |
| 9721 | |
| 9722 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9723 | cppflags_save=$CPPFLAGS |
| 9724 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9725 | echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 9726 | echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6 |
| 9727 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9728 | /* confdefs.h. */ |
| 9729 | _ACEOF |
| 9730 | cat confdefs.h >>conftest.$ac_ext |
| 9731 | cat >>conftest.$ac_ext <<_ACEOF |
| 9732 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9733 | |
| 9734 | #include <X11/Intrinsic.h> |
| 9735 | #include <X11/Xmu/Editres.h> |
| 9736 | int |
| 9737 | main () |
| 9738 | { |
| 9739 | int i; i = 0; |
| 9740 | ; |
| 9741 | return 0; |
| 9742 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9743 | _ACEOF |
| 9744 | rm -f conftest.$ac_objext |
| 9745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9746 | (eval $ac_compile) 2>conftest.er1 |
| 9747 | ac_status=$? |
| 9748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9749 | rm -f conftest.er1 |
| 9750 | cat conftest.err >&5 |
| 9751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9752 | (exit $ac_status); } && |
| 9753 | { ac_try='test -z "$ac_c_werror_flag" |
| 9754 | || test ! -s conftest.err' |
| 9755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9756 | (eval $ac_try) 2>&5 |
| 9757 | ac_status=$? |
| 9758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9759 | (exit $ac_status); }; } && |
| 9760 | { ac_try='test -s conftest.$ac_objext' |
| 9761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9762 | (eval $ac_try) 2>&5 |
| 9763 | ac_status=$? |
| 9764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9765 | (exit $ac_status); }; }; then |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9766 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9767 | echo "${ECHO_T}yes" >&6 |
| 9768 | cat >>confdefs.h <<\_ACEOF |
| 9769 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 9770 | _ACEOF |
| 9771 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9772 | else |
| 9773 | echo "$as_me: failed program was:" >&5 |
| 9774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9775 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9776 | echo "$as_me:$LINENO: result: no" >&5 |
| 9777 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9778 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9780 | CPPFLAGS=$cppflags_save |
| 9781 | fi |
| 9782 | |
| 9783 | if test -z "$SKIP_MOTIF"; then |
| 9784 | cppflags_save=$CPPFLAGS |
| 9785 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9786 | |
| 9787 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9788 | |
| 9789 | |
| 9790 | |
| 9791 | |
| 9792 | for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ |
| 9793 | Xm/UnhighlightT.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9794 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9801 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9804 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9805 | # Is the header compilable? |
| 9806 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9807 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9808 | cat >conftest.$ac_ext <<_ACEOF |
| 9809 | /* confdefs.h. */ |
| 9810 | _ACEOF |
| 9811 | cat confdefs.h >>conftest.$ac_ext |
| 9812 | cat >>conftest.$ac_ext <<_ACEOF |
| 9813 | /* end confdefs.h. */ |
| 9814 | $ac_includes_default |
| 9815 | #include <$ac_header> |
| 9816 | _ACEOF |
| 9817 | rm -f conftest.$ac_objext |
| 9818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9819 | (eval $ac_compile) 2>conftest.er1 |
| 9820 | ac_status=$? |
| 9821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9822 | rm -f conftest.er1 |
| 9823 | cat conftest.err >&5 |
| 9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9825 | (exit $ac_status); } && |
| 9826 | { ac_try='test -z "$ac_c_werror_flag" |
| 9827 | || test ! -s conftest.err' |
| 9828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9829 | (eval $ac_try) 2>&5 |
| 9830 | ac_status=$? |
| 9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9832 | (exit $ac_status); }; } && |
| 9833 | { ac_try='test -s conftest.$ac_objext' |
| 9834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9835 | (eval $ac_try) 2>&5 |
| 9836 | ac_status=$? |
| 9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9838 | (exit $ac_status); }; }; then |
| 9839 | ac_header_compiler=yes |
| 9840 | else |
| 9841 | echo "$as_me: failed program was:" >&5 |
| 9842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9843 | |
| 9844 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9845 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9847 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9848 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9849 | |
| 9850 | # Is the header present? |
| 9851 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9852 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 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 | #include <$ac_header> |
| 9860 | _ACEOF |
| 9861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9863 | ac_status=$? |
| 9864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9865 | rm -f conftest.er1 |
| 9866 | cat conftest.err >&5 |
| 9867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9868 | (exit $ac_status); } >/dev/null; then |
| 9869 | if test -s conftest.err; then |
| 9870 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9872 | else |
| 9873 | ac_cpp_err= |
| 9874 | fi |
| 9875 | else |
| 9876 | ac_cpp_err=yes |
| 9877 | fi |
| 9878 | if test -z "$ac_cpp_err"; then |
| 9879 | ac_header_preproc=yes |
| 9880 | else |
| 9881 | echo "$as_me: failed program was:" >&5 |
| 9882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9883 | |
| 9884 | ac_header_preproc=no |
| 9885 | fi |
| 9886 | rm -f conftest.err conftest.$ac_ext |
| 9887 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9888 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9889 | |
| 9890 | # So? What about this header? |
| 9891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9892 | yes:no: ) |
| 9893 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9894 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9896 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9897 | ac_header_preproc=yes |
| 9898 | ;; |
| 9899 | no:yes:* ) |
| 9900 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9901 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9902 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9903 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9904 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9905 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9906 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9907 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9910 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9911 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9912 | ( |
| 9913 | cat <<\_ASBOX |
| 9914 | ## ------------------------------------------ ## |
| 9915 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9916 | ## ------------------------------------------ ## |
| 9917 | _ASBOX |
| 9918 | ) | |
| 9919 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9920 | ;; |
| 9921 | esac |
| 9922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9926 | else |
| 9927 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9928 | fi |
| 9929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9931 | |
| 9932 | fi |
| 9933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9934 | cat >>confdefs.h <<_ACEOF |
| 9935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9936 | _ACEOF |
| 9937 | |
| 9938 | fi |
| 9939 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9940 | done |
| 9941 | |
| 9942 | CPPFLAGS=$cppflags_save |
| 9943 | fi |
| 9944 | |
| 9945 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9946 | echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 9947 | echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9948 | enable_xim="no" |
| 9949 | fi |
| 9950 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9951 | echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 9952 | echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9953 | enable_fontset="no" |
| 9954 | fi |
| 9955 | 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] | 9956 | echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 9957 | echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9958 | enable_fontset="no" |
| 9959 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9960 | if test "x$GUITYPE:$enable_fontset" = "xKDE:yes"; then |
| 9961 | echo "$as_me:$LINENO: result: KDE GUI selected; fontset has been disabled" >&5 |
| 9962 | echo "${ECHO_T}KDE GUI selected; fontset has been disabled" >&6 |
| 9963 | enable_fontset="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9964 | fi |
| 9965 | |
| 9966 | if test -z "$SKIP_PHOTON"; then |
| 9967 | GUITYPE=PHOTONGUI |
| 9968 | fi |
| 9969 | |
| 9970 | |
| 9971 | |
| 9972 | |
| 9973 | |
| 9974 | |
| 9975 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9976 | { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 9977 | echo "$as_me: error: cannot use workshop without Motif" >&2;} |
| 9978 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9979 | fi |
| 9980 | |
| 9981 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9982 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9983 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9984 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9985 | |
| 9986 | fi |
| 9987 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9988 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9989 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9990 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9991 | |
| 9992 | fi |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | if test "$enable_hangulinput" = "yes"; then |
| 9998 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9999 | echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 10000 | echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10001 | enable_hangulinput=no |
| 10002 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10003 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10004 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10005 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10006 | |
| 10007 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10008 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10009 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10010 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10011 | fi |
| 10012 | fi |
| 10013 | |
| 10014 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10015 | echo "$as_me:$LINENO: checking quality of toupper" >&5 |
| 10016 | echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10017 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10018 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 10019 | echo "$as_me: error: failed to compile test program" >&2;} |
| 10020 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10021 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10022 | cat >conftest.$ac_ext <<_ACEOF |
| 10023 | /* confdefs.h. */ |
| 10024 | _ACEOF |
| 10025 | cat confdefs.h >>conftest.$ac_ext |
| 10026 | cat >>conftest.$ac_ext <<_ACEOF |
| 10027 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10028 | #include <ctype.h> |
| 10029 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10030 | _ACEOF |
| 10031 | rm -f conftest$ac_exeext |
| 10032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10033 | (eval $ac_link) 2>&5 |
| 10034 | ac_status=$? |
| 10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10036 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10038 | (eval $ac_try) 2>&5 |
| 10039 | ac_status=$? |
| 10040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10041 | (exit $ac_status); }; }; then |
| 10042 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10043 | #define BROKEN_TOUPPER 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10044 | _ACEOF |
| 10045 | echo "$as_me:$LINENO: result: bad" >&5 |
| 10046 | echo "${ECHO_T}bad" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10047 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10048 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10049 | echo "$as_me: failed program was:" >&5 |
| 10050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10051 | |
| 10052 | ( exit $ac_status ) |
| 10053 | echo "$as_me:$LINENO: result: good" >&5 |
| 10054 | echo "${ECHO_T}good" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10055 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10056 | 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] | 10057 | fi |
| 10058 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10059 | echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 10060 | echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 |
| 10061 | cat >conftest.$ac_ext <<_ACEOF |
| 10062 | /* confdefs.h. */ |
| 10063 | _ACEOF |
| 10064 | cat confdefs.h >>conftest.$ac_ext |
| 10065 | cat >>conftest.$ac_ext <<_ACEOF |
| 10066 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10067 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10068 | int |
| 10069 | main () |
| 10070 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10071 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10072 | ; |
| 10073 | return 0; |
| 10074 | } |
| 10075 | _ACEOF |
| 10076 | rm -f conftest.$ac_objext |
| 10077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10078 | (eval $ac_compile) 2>conftest.er1 |
| 10079 | ac_status=$? |
| 10080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10081 | rm -f conftest.er1 |
| 10082 | cat conftest.err >&5 |
| 10083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10084 | (exit $ac_status); } && |
| 10085 | { ac_try='test -z "$ac_c_werror_flag" |
| 10086 | || test ! -s conftest.err' |
| 10087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10088 | (eval $ac_try) 2>&5 |
| 10089 | ac_status=$? |
| 10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10091 | (exit $ac_status); }; } && |
| 10092 | { ac_try='test -s conftest.$ac_objext' |
| 10093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10094 | (eval $ac_try) 2>&5 |
| 10095 | ac_status=$? |
| 10096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10097 | (exit $ac_status); }; }; then |
| 10098 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10099 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10100 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10101 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10102 | |
| 10103 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10104 | echo "$as_me: failed program was:" >&5 |
| 10105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10106 | |
| 10107 | echo "$as_me:$LINENO: result: no" >&5 |
| 10108 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10109 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10111 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10112 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 10113 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10114 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 10115 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 10116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10117 | fi |
| 10118 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10119 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10120 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10121 | # Is the header compilable? |
| 10122 | echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 10123 | echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 |
| 10124 | cat >conftest.$ac_ext <<_ACEOF |
| 10125 | /* confdefs.h. */ |
| 10126 | _ACEOF |
| 10127 | cat confdefs.h >>conftest.$ac_ext |
| 10128 | cat >>conftest.$ac_ext <<_ACEOF |
| 10129 | /* end confdefs.h. */ |
| 10130 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10131 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10132 | _ACEOF |
| 10133 | rm -f conftest.$ac_objext |
| 10134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10135 | (eval $ac_compile) 2>conftest.er1 |
| 10136 | ac_status=$? |
| 10137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10138 | rm -f conftest.er1 |
| 10139 | cat conftest.err >&5 |
| 10140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10141 | (exit $ac_status); } && |
| 10142 | { ac_try='test -z "$ac_c_werror_flag" |
| 10143 | || test ! -s conftest.err' |
| 10144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10145 | (eval $ac_try) 2>&5 |
| 10146 | ac_status=$? |
| 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10148 | (exit $ac_status); }; } && |
| 10149 | { ac_try='test -s conftest.$ac_objext' |
| 10150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10151 | (eval $ac_try) 2>&5 |
| 10152 | ac_status=$? |
| 10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10154 | (exit $ac_status); }; }; then |
| 10155 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10156 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10157 | echo "$as_me: failed program was:" >&5 |
| 10158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10159 | |
| 10160 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10161 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10163 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10164 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10165 | |
| 10166 | # Is the header present? |
| 10167 | echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 10168 | echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 |
| 10169 | cat >conftest.$ac_ext <<_ACEOF |
| 10170 | /* confdefs.h. */ |
| 10171 | _ACEOF |
| 10172 | cat confdefs.h >>conftest.$ac_ext |
| 10173 | cat >>conftest.$ac_ext <<_ACEOF |
| 10174 | /* end confdefs.h. */ |
| 10175 | #include <elf.h> |
| 10176 | _ACEOF |
| 10177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10179 | ac_status=$? |
| 10180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10181 | rm -f conftest.er1 |
| 10182 | cat conftest.err >&5 |
| 10183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10184 | (exit $ac_status); } >/dev/null; then |
| 10185 | if test -s conftest.err; then |
| 10186 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10187 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10188 | else |
| 10189 | ac_cpp_err= |
| 10190 | fi |
| 10191 | else |
| 10192 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10193 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10194 | if test -z "$ac_cpp_err"; then |
| 10195 | ac_header_preproc=yes |
| 10196 | else |
| 10197 | echo "$as_me: failed program was:" >&5 |
| 10198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10199 | |
| 10200 | ac_header_preproc=no |
| 10201 | fi |
| 10202 | rm -f conftest.err conftest.$ac_ext |
| 10203 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10204 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10205 | |
| 10206 | # So? What about this header? |
| 10207 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10208 | yes:no: ) |
| 10209 | { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10210 | echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10211 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 10212 | echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
| 10213 | ac_header_preproc=yes |
| 10214 | ;; |
| 10215 | no:yes:* ) |
| 10216 | { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 10217 | echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 10218 | { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 10219 | echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 10220 | { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 10221 | echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 10222 | { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10223 | echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10224 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 10225 | echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 10226 | { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 10227 | echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 10228 | ( |
| 10229 | cat <<\_ASBOX |
| 10230 | ## ------------------------------------------ ## |
| 10231 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10232 | ## ------------------------------------------ ## |
| 10233 | _ASBOX |
| 10234 | ) | |
| 10235 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10236 | ;; |
| 10237 | esac |
| 10238 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10239 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 10240 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 10241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10242 | else |
| 10243 | ac_cv_header_elf_h=$ac_header_preproc |
| 10244 | fi |
| 10245 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10246 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
| 10247 | |
| 10248 | fi |
| 10249 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10250 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10251 | fi |
| 10252 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10253 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10254 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10255 | |
| 10256 | echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 10257 | echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 |
| 10258 | if test "${ac_cv_lib_elf_main+set}" = set; then |
| 10259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10260 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10261 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10262 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10263 | cat >conftest.$ac_ext <<_ACEOF |
| 10264 | /* confdefs.h. */ |
| 10265 | _ACEOF |
| 10266 | cat confdefs.h >>conftest.$ac_ext |
| 10267 | cat >>conftest.$ac_ext <<_ACEOF |
| 10268 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10269 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10270 | |
| 10271 | int |
| 10272 | main () |
| 10273 | { |
| 10274 | main (); |
| 10275 | ; |
| 10276 | return 0; |
| 10277 | } |
| 10278 | _ACEOF |
| 10279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10281 | (eval $ac_link) 2>conftest.er1 |
| 10282 | ac_status=$? |
| 10283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10284 | rm -f conftest.er1 |
| 10285 | cat conftest.err >&5 |
| 10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10287 | (exit $ac_status); } && |
| 10288 | { ac_try='test -z "$ac_c_werror_flag" |
| 10289 | || test ! -s conftest.err' |
| 10290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10291 | (eval $ac_try) 2>&5 |
| 10292 | ac_status=$? |
| 10293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10294 | (exit $ac_status); }; } && |
| 10295 | { ac_try='test -s conftest$ac_exeext' |
| 10296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10297 | (eval $ac_try) 2>&5 |
| 10298 | ac_status=$? |
| 10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10300 | (exit $ac_status); }; }; then |
| 10301 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10302 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10303 | echo "$as_me: failed program was:" >&5 |
| 10304 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10305 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10306 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10307 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10308 | rm -f conftest.err conftest.$ac_objext \ |
| 10309 | conftest$ac_exeext conftest.$ac_ext |
| 10310 | LIBS=$ac_check_lib_save_LIBS |
| 10311 | fi |
| 10312 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 10313 | echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 |
| 10314 | if test $ac_cv_lib_elf_main = yes; then |
| 10315 | cat >>confdefs.h <<_ACEOF |
| 10316 | #define HAVE_LIBELF 1 |
| 10317 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10318 | |
| 10319 | LIBS="-lelf $LIBS" |
| 10320 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10321 | fi |
| 10322 | |
| 10323 | fi |
| 10324 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10325 | |
| 10326 | |
| 10327 | |
| 10328 | |
| 10329 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10330 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10331 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 10332 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10333 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 10334 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 10335 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10337 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10338 | cat >conftest.$ac_ext <<_ACEOF |
| 10339 | /* confdefs.h. */ |
| 10340 | _ACEOF |
| 10341 | cat confdefs.h >>conftest.$ac_ext |
| 10342 | cat >>conftest.$ac_ext <<_ACEOF |
| 10343 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10344 | #include <sys/types.h> |
| 10345 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10346 | |
| 10347 | int |
| 10348 | main () |
| 10349 | { |
| 10350 | if ((DIR *) 0) |
| 10351 | return 0; |
| 10352 | ; |
| 10353 | return 0; |
| 10354 | } |
| 10355 | _ACEOF |
| 10356 | rm -f conftest.$ac_objext |
| 10357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10358 | (eval $ac_compile) 2>conftest.er1 |
| 10359 | ac_status=$? |
| 10360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10361 | rm -f conftest.er1 |
| 10362 | cat conftest.err >&5 |
| 10363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10364 | (exit $ac_status); } && |
| 10365 | { ac_try='test -z "$ac_c_werror_flag" |
| 10366 | || test ! -s conftest.err' |
| 10367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10368 | (eval $ac_try) 2>&5 |
| 10369 | ac_status=$? |
| 10370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10371 | (exit $ac_status); }; } && |
| 10372 | { ac_try='test -s conftest.$ac_objext' |
| 10373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10374 | (eval $ac_try) 2>&5 |
| 10375 | ac_status=$? |
| 10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10377 | (exit $ac_status); }; }; then |
| 10378 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10379 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10380 | echo "$as_me: failed program was:" >&5 |
| 10381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10382 | |
| 10383 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10384 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10386 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10388 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10389 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10390 | cat >>confdefs.h <<_ACEOF |
| 10391 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 10392 | _ACEOF |
| 10393 | |
| 10394 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10395 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10396 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10397 | done |
| 10398 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10399 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10400 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10401 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 10402 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10404 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10405 | ac_func_search_save_LIBS=$LIBS |
| 10406 | ac_cv_search_opendir=no |
| 10407 | cat >conftest.$ac_ext <<_ACEOF |
| 10408 | /* confdefs.h. */ |
| 10409 | _ACEOF |
| 10410 | cat confdefs.h >>conftest.$ac_ext |
| 10411 | cat >>conftest.$ac_ext <<_ACEOF |
| 10412 | /* end confdefs.h. */ |
| 10413 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10414 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10415 | #ifdef __cplusplus |
| 10416 | extern "C" |
| 10417 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10418 | /* 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] | 10419 | builtin and then its argument prototype would still apply. */ |
| 10420 | char opendir (); |
| 10421 | int |
| 10422 | main () |
| 10423 | { |
| 10424 | opendir (); |
| 10425 | ; |
| 10426 | return 0; |
| 10427 | } |
| 10428 | _ACEOF |
| 10429 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10431 | (eval $ac_link) 2>conftest.er1 |
| 10432 | ac_status=$? |
| 10433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10434 | rm -f conftest.er1 |
| 10435 | cat conftest.err >&5 |
| 10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10437 | (exit $ac_status); } && |
| 10438 | { ac_try='test -z "$ac_c_werror_flag" |
| 10439 | || test ! -s conftest.err' |
| 10440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10441 | (eval $ac_try) 2>&5 |
| 10442 | ac_status=$? |
| 10443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10444 | (exit $ac_status); }; } && |
| 10445 | { ac_try='test -s conftest$ac_exeext' |
| 10446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10447 | (eval $ac_try) 2>&5 |
| 10448 | ac_status=$? |
| 10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10450 | (exit $ac_status); }; }; then |
| 10451 | ac_cv_search_opendir="none required" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10452 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10453 | echo "$as_me: failed program was:" >&5 |
| 10454 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10455 | |
| 10456 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10457 | rm -f conftest.err conftest.$ac_objext \ |
| 10458 | conftest$ac_exeext conftest.$ac_ext |
| 10459 | if test "$ac_cv_search_opendir" = no; then |
| 10460 | for ac_lib in dir; do |
| 10461 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10462 | cat >conftest.$ac_ext <<_ACEOF |
| 10463 | /* confdefs.h. */ |
| 10464 | _ACEOF |
| 10465 | cat confdefs.h >>conftest.$ac_ext |
| 10466 | cat >>conftest.$ac_ext <<_ACEOF |
| 10467 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10468 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10469 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10470 | #ifdef __cplusplus |
| 10471 | extern "C" |
| 10472 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10473 | /* 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] | 10474 | builtin and then its argument prototype would still apply. */ |
| 10475 | char opendir (); |
| 10476 | int |
| 10477 | main () |
| 10478 | { |
| 10479 | opendir (); |
| 10480 | ; |
| 10481 | return 0; |
| 10482 | } |
| 10483 | _ACEOF |
| 10484 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10486 | (eval $ac_link) 2>conftest.er1 |
| 10487 | ac_status=$? |
| 10488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10489 | rm -f conftest.er1 |
| 10490 | cat conftest.err >&5 |
| 10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10492 | (exit $ac_status); } && |
| 10493 | { ac_try='test -z "$ac_c_werror_flag" |
| 10494 | || test ! -s conftest.err' |
| 10495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10496 | (eval $ac_try) 2>&5 |
| 10497 | ac_status=$? |
| 10498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10499 | (exit $ac_status); }; } && |
| 10500 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 10506 | ac_cv_search_opendir="-l$ac_lib" |
| 10507 | break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10508 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10509 | echo "$as_me: failed program was:" >&5 |
| 10510 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10511 | |
| 10512 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10513 | rm -f conftest.err conftest.$ac_objext \ |
| 10514 | conftest$ac_exeext conftest.$ac_ext |
| 10515 | done |
| 10516 | fi |
| 10517 | LIBS=$ac_func_search_save_LIBS |
| 10518 | fi |
| 10519 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10520 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 10521 | if test "$ac_cv_search_opendir" != no; then |
| 10522 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 10523 | |
| 10524 | fi |
| 10525 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10526 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10527 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10528 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 10529 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10531 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10532 | ac_func_search_save_LIBS=$LIBS |
| 10533 | ac_cv_search_opendir=no |
| 10534 | cat >conftest.$ac_ext <<_ACEOF |
| 10535 | /* confdefs.h. */ |
| 10536 | _ACEOF |
| 10537 | cat confdefs.h >>conftest.$ac_ext |
| 10538 | cat >>conftest.$ac_ext <<_ACEOF |
| 10539 | /* end confdefs.h. */ |
| 10540 | |
| 10541 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10542 | #ifdef __cplusplus |
| 10543 | extern "C" |
| 10544 | #endif |
| 10545 | /* We use char because int might match the return type of a gcc2 |
| 10546 | builtin and then its argument prototype would still apply. */ |
| 10547 | char opendir (); |
| 10548 | int |
| 10549 | main () |
| 10550 | { |
| 10551 | opendir (); |
| 10552 | ; |
| 10553 | return 0; |
| 10554 | } |
| 10555 | _ACEOF |
| 10556 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10558 | (eval $ac_link) 2>conftest.er1 |
| 10559 | ac_status=$? |
| 10560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10561 | rm -f conftest.er1 |
| 10562 | cat conftest.err >&5 |
| 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10564 | (exit $ac_status); } && |
| 10565 | { ac_try='test -z "$ac_c_werror_flag" |
| 10566 | || test ! -s conftest.err' |
| 10567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10568 | (eval $ac_try) 2>&5 |
| 10569 | ac_status=$? |
| 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10571 | (exit $ac_status); }; } && |
| 10572 | { ac_try='test -s conftest$ac_exeext' |
| 10573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10574 | (eval $ac_try) 2>&5 |
| 10575 | ac_status=$? |
| 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10577 | (exit $ac_status); }; }; then |
| 10578 | ac_cv_search_opendir="none required" |
| 10579 | else |
| 10580 | echo "$as_me: failed program was:" >&5 |
| 10581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10582 | |
| 10583 | fi |
| 10584 | rm -f conftest.err conftest.$ac_objext \ |
| 10585 | conftest$ac_exeext conftest.$ac_ext |
| 10586 | if test "$ac_cv_search_opendir" = no; then |
| 10587 | for ac_lib in x; do |
| 10588 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10589 | cat >conftest.$ac_ext <<_ACEOF |
| 10590 | /* confdefs.h. */ |
| 10591 | _ACEOF |
| 10592 | cat confdefs.h >>conftest.$ac_ext |
| 10593 | cat >>conftest.$ac_ext <<_ACEOF |
| 10594 | /* end confdefs.h. */ |
| 10595 | |
| 10596 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10597 | #ifdef __cplusplus |
| 10598 | extern "C" |
| 10599 | #endif |
| 10600 | /* We use char because int might match the return type of a gcc2 |
| 10601 | builtin and then its argument prototype would still apply. */ |
| 10602 | char opendir (); |
| 10603 | int |
| 10604 | main () |
| 10605 | { |
| 10606 | opendir (); |
| 10607 | ; |
| 10608 | return 0; |
| 10609 | } |
| 10610 | _ACEOF |
| 10611 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10613 | (eval $ac_link) 2>conftest.er1 |
| 10614 | ac_status=$? |
| 10615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10616 | rm -f conftest.er1 |
| 10617 | cat conftest.err >&5 |
| 10618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10619 | (exit $ac_status); } && |
| 10620 | { ac_try='test -z "$ac_c_werror_flag" |
| 10621 | || test ! -s conftest.err' |
| 10622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10623 | (eval $ac_try) 2>&5 |
| 10624 | ac_status=$? |
| 10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10626 | (exit $ac_status); }; } && |
| 10627 | { ac_try='test -s conftest$ac_exeext' |
| 10628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10629 | (eval $ac_try) 2>&5 |
| 10630 | ac_status=$? |
| 10631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10632 | (exit $ac_status); }; }; then |
| 10633 | ac_cv_search_opendir="-l$ac_lib" |
| 10634 | break |
| 10635 | else |
| 10636 | echo "$as_me: failed program was:" >&5 |
| 10637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10638 | |
| 10639 | fi |
| 10640 | rm -f conftest.err conftest.$ac_objext \ |
| 10641 | conftest$ac_exeext conftest.$ac_ext |
| 10642 | done |
| 10643 | fi |
| 10644 | LIBS=$ac_func_search_save_LIBS |
| 10645 | fi |
| 10646 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10647 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 10648 | if test "$ac_cv_search_opendir" != no; then |
| 10649 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 10650 | |
| 10651 | fi |
| 10652 | |
| 10653 | fi |
| 10654 | |
| 10655 | |
| 10656 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 10657 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 10658 | if test "${ac_cv_header_stdc+set}" = set; then |
| 10659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10660 | else |
| 10661 | cat >conftest.$ac_ext <<_ACEOF |
| 10662 | /* confdefs.h. */ |
| 10663 | _ACEOF |
| 10664 | cat confdefs.h >>conftest.$ac_ext |
| 10665 | cat >>conftest.$ac_ext <<_ACEOF |
| 10666 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10667 | #include <stdlib.h> |
| 10668 | #include <stdarg.h> |
| 10669 | #include <string.h> |
| 10670 | #include <float.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10671 | |
| 10672 | int |
| 10673 | main () |
| 10674 | { |
| 10675 | |
| 10676 | ; |
| 10677 | return 0; |
| 10678 | } |
| 10679 | _ACEOF |
| 10680 | rm -f conftest.$ac_objext |
| 10681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10682 | (eval $ac_compile) 2>conftest.er1 |
| 10683 | ac_status=$? |
| 10684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10685 | rm -f conftest.er1 |
| 10686 | cat conftest.err >&5 |
| 10687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10688 | (exit $ac_status); } && |
| 10689 | { ac_try='test -z "$ac_c_werror_flag" |
| 10690 | || test ! -s conftest.err' |
| 10691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10692 | (eval $ac_try) 2>&5 |
| 10693 | ac_status=$? |
| 10694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10695 | (exit $ac_status); }; } && |
| 10696 | { ac_try='test -s conftest.$ac_objext' |
| 10697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10698 | (eval $ac_try) 2>&5 |
| 10699 | ac_status=$? |
| 10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10701 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10702 | ac_cv_header_stdc=yes |
| 10703 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10704 | echo "$as_me: failed program was:" >&5 |
| 10705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10706 | |
| 10707 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10708 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10710 | |
| 10711 | if test $ac_cv_header_stdc = yes; then |
| 10712 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10713 | cat >conftest.$ac_ext <<_ACEOF |
| 10714 | /* confdefs.h. */ |
| 10715 | _ACEOF |
| 10716 | cat confdefs.h >>conftest.$ac_ext |
| 10717 | cat >>conftest.$ac_ext <<_ACEOF |
| 10718 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10719 | #include <string.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10720 | |
| 10721 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10722 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10723 | $EGREP "memchr" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10724 | : |
| 10725 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10726 | ac_cv_header_stdc=no |
| 10727 | fi |
| 10728 | rm -f conftest* |
| 10729 | |
| 10730 | fi |
| 10731 | |
| 10732 | if test $ac_cv_header_stdc = yes; then |
| 10733 | # 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] | 10734 | cat >conftest.$ac_ext <<_ACEOF |
| 10735 | /* confdefs.h. */ |
| 10736 | _ACEOF |
| 10737 | cat confdefs.h >>conftest.$ac_ext |
| 10738 | cat >>conftest.$ac_ext <<_ACEOF |
| 10739 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10740 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10741 | |
| 10742 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10744 | $EGREP "free" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10745 | : |
| 10746 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10747 | ac_cv_header_stdc=no |
| 10748 | fi |
| 10749 | rm -f conftest* |
| 10750 | |
| 10751 | fi |
| 10752 | |
| 10753 | if test $ac_cv_header_stdc = yes; then |
| 10754 | # /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] | 10755 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10756 | : |
| 10757 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10758 | cat >conftest.$ac_ext <<_ACEOF |
| 10759 | /* confdefs.h. */ |
| 10760 | _ACEOF |
| 10761 | cat confdefs.h >>conftest.$ac_ext |
| 10762 | cat >>conftest.$ac_ext <<_ACEOF |
| 10763 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10764 | #include <ctype.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10765 | #if ((' ' & 0x0FF) == 0x020) |
| 10766 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 10767 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 10768 | #else |
| 10769 | # define ISLOWER(c) \ |
| 10770 | (('a' <= (c) && (c) <= 'i') \ |
| 10771 | || ('j' <= (c) && (c) <= 'r') \ |
| 10772 | || ('s' <= (c) && (c) <= 'z')) |
| 10773 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 10774 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10775 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10776 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 10777 | int |
| 10778 | main () |
| 10779 | { |
| 10780 | int i; |
| 10781 | for (i = 0; i < 256; i++) |
| 10782 | if (XOR (islower (i), ISLOWER (i)) |
| 10783 | || toupper (i) != TOUPPER (i)) |
| 10784 | exit(2); |
| 10785 | exit (0); |
| 10786 | } |
| 10787 | _ACEOF |
| 10788 | rm -f conftest$ac_exeext |
| 10789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10790 | (eval $ac_link) 2>&5 |
| 10791 | ac_status=$? |
| 10792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10795 | (eval $ac_try) 2>&5 |
| 10796 | ac_status=$? |
| 10797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10798 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10799 | : |
| 10800 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10801 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10802 | echo "$as_me: failed program was:" >&5 |
| 10803 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10804 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10805 | ( exit $ac_status ) |
| 10806 | ac_cv_header_stdc=no |
| 10807 | fi |
| 10808 | 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] | 10809 | fi |
| 10810 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10811 | fi |
| 10812 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 10813 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10814 | if test $ac_cv_header_stdc = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10815 | |
| 10816 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10817 | #define STDC_HEADERS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10818 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10819 | |
| 10820 | fi |
| 10821 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10822 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 10823 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 10824 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 10825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10826 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10827 | cat >conftest.$ac_ext <<_ACEOF |
| 10828 | /* confdefs.h. */ |
| 10829 | _ACEOF |
| 10830 | cat confdefs.h >>conftest.$ac_ext |
| 10831 | cat >>conftest.$ac_ext <<_ACEOF |
| 10832 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10833 | #include <sys/types.h> |
| 10834 | #include <sys/wait.h> |
| 10835 | #ifndef WEXITSTATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10836 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10837 | #endif |
| 10838 | #ifndef WIFEXITED |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10839 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10840 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10841 | |
| 10842 | int |
| 10843 | main () |
| 10844 | { |
| 10845 | int s; |
| 10846 | wait (&s); |
| 10847 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 10848 | ; |
| 10849 | return 0; |
| 10850 | } |
| 10851 | _ACEOF |
| 10852 | rm -f conftest.$ac_objext |
| 10853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10854 | (eval $ac_compile) 2>conftest.er1 |
| 10855 | ac_status=$? |
| 10856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10857 | rm -f conftest.er1 |
| 10858 | cat conftest.err >&5 |
| 10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10860 | (exit $ac_status); } && |
| 10861 | { ac_try='test -z "$ac_c_werror_flag" |
| 10862 | || test ! -s conftest.err' |
| 10863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10864 | (eval $ac_try) 2>&5 |
| 10865 | ac_status=$? |
| 10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10867 | (exit $ac_status); }; } && |
| 10868 | { ac_try='test -s conftest.$ac_objext' |
| 10869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10870 | (eval $ac_try) 2>&5 |
| 10871 | ac_status=$? |
| 10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10873 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10874 | ac_cv_header_sys_wait_h=yes |
| 10875 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10876 | echo "$as_me: failed program was:" >&5 |
| 10877 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10878 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10879 | ac_cv_header_sys_wait_h=no |
| 10880 | fi |
| 10881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10882 | fi |
| 10883 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 10884 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10885 | if test $ac_cv_header_sys_wait_h = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10886 | |
| 10887 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10888 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10889 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10890 | |
| 10891 | fi |
| 10892 | |
| 10893 | |
| 10894 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10895 | echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10896 | echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 |
| 10897 | cat >conftest.$ac_ext <<_ACEOF |
| 10898 | /* confdefs.h. */ |
| 10899 | _ACEOF |
| 10900 | cat confdefs.h >>conftest.$ac_ext |
| 10901 | cat >>conftest.$ac_ext <<_ACEOF |
| 10902 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10903 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10904 | int |
| 10905 | main () |
| 10906 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10907 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10908 | ; |
| 10909 | return 0; |
| 10910 | } |
| 10911 | _ACEOF |
| 10912 | rm -f conftest.$ac_objext |
| 10913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10914 | (eval $ac_compile) 2>conftest.er1 |
| 10915 | ac_status=$? |
| 10916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10917 | rm -f conftest.er1 |
| 10918 | cat conftest.err >&5 |
| 10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10920 | (exit $ac_status); } && |
| 10921 | { ac_try='test -z "$ac_c_werror_flag" |
| 10922 | || test ! -s conftest.err' |
| 10923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10924 | (eval $ac_try) 2>&5 |
| 10925 | ac_status=$? |
| 10926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10927 | (exit $ac_status); }; } && |
| 10928 | { ac_try='test -s conftest.$ac_objext' |
| 10929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10930 | (eval $ac_try) 2>&5 |
| 10931 | ac_status=$? |
| 10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10933 | (exit $ac_status); }; }; then |
| 10934 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10935 | echo "${ECHO_T}yes" >&6 |
| 10936 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10937 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10938 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10939 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10940 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10941 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10942 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10943 | |
| 10944 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10945 | echo "$as_me: failed program was:" >&5 |
| 10946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10947 | |
| 10948 | echo "$as_me:$LINENO: result: no" >&5 |
| 10949 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10950 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10952 | fi |
| 10953 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10954 | |
| 10955 | |
| 10956 | |
| 10957 | |
| 10958 | |
| 10959 | |
| 10960 | |
| 10961 | |
| 10962 | |
| 10963 | |
| 10964 | |
| 10965 | |
| 10966 | |
| 10967 | |
| 10968 | |
| 10969 | |
| 10970 | |
| 10971 | |
| 10972 | |
| 10973 | |
| 10974 | |
| 10975 | |
| 10976 | |
| 10977 | |
| 10978 | |
| 10979 | |
| 10980 | |
| 10981 | |
| 10982 | |
| 10983 | |
| 10984 | |
| 10985 | |
| 10986 | |
| 10987 | |
| 10988 | |
| 10989 | |
| 10990 | |
| 10991 | |
| 10992 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10993 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10994 | for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10995 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ |
| 10996 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 10997 | sys/resource.h sys/systeminfo.h locale.h \ |
| 10998 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 10999 | 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] | 11000 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 11001 | 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] | 11002 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11003 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11005 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11006 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11009 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11012 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11013 | # Is the header compilable? |
| 11014 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11015 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11016 | cat >conftest.$ac_ext <<_ACEOF |
| 11017 | /* confdefs.h. */ |
| 11018 | _ACEOF |
| 11019 | cat confdefs.h >>conftest.$ac_ext |
| 11020 | cat >>conftest.$ac_ext <<_ACEOF |
| 11021 | /* end confdefs.h. */ |
| 11022 | $ac_includes_default |
| 11023 | #include <$ac_header> |
| 11024 | _ACEOF |
| 11025 | rm -f conftest.$ac_objext |
| 11026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11027 | (eval $ac_compile) 2>conftest.er1 |
| 11028 | ac_status=$? |
| 11029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11030 | rm -f conftest.er1 |
| 11031 | cat conftest.err >&5 |
| 11032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11033 | (exit $ac_status); } && |
| 11034 | { ac_try='test -z "$ac_c_werror_flag" |
| 11035 | || test ! -s conftest.err' |
| 11036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11037 | (eval $ac_try) 2>&5 |
| 11038 | ac_status=$? |
| 11039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11040 | (exit $ac_status); }; } && |
| 11041 | { ac_try='test -s conftest.$ac_objext' |
| 11042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11043 | (eval $ac_try) 2>&5 |
| 11044 | ac_status=$? |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); }; }; then |
| 11047 | ac_header_compiler=yes |
| 11048 | else |
| 11049 | echo "$as_me: failed program was:" >&5 |
| 11050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11051 | |
| 11052 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11053 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11055 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11056 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11057 | |
| 11058 | # Is the header present? |
| 11059 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11060 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11061 | cat >conftest.$ac_ext <<_ACEOF |
| 11062 | /* confdefs.h. */ |
| 11063 | _ACEOF |
| 11064 | cat confdefs.h >>conftest.$ac_ext |
| 11065 | cat >>conftest.$ac_ext <<_ACEOF |
| 11066 | /* end confdefs.h. */ |
| 11067 | #include <$ac_header> |
| 11068 | _ACEOF |
| 11069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11070 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then |
| 11077 | if test -s conftest.err; then |
| 11078 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11079 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11080 | else |
| 11081 | ac_cpp_err= |
| 11082 | fi |
| 11083 | else |
| 11084 | ac_cpp_err=yes |
| 11085 | fi |
| 11086 | if test -z "$ac_cpp_err"; then |
| 11087 | ac_header_preproc=yes |
| 11088 | else |
| 11089 | echo "$as_me: failed program was:" >&5 |
| 11090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11091 | |
| 11092 | ac_header_preproc=no |
| 11093 | fi |
| 11094 | rm -f conftest.err conftest.$ac_ext |
| 11095 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11096 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11097 | |
| 11098 | # So? What about this header? |
| 11099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11100 | yes:no: ) |
| 11101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11105 | ac_header_preproc=yes |
| 11106 | ;; |
| 11107 | no:yes:* ) |
| 11108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11120 | ( |
| 11121 | cat <<\_ASBOX |
| 11122 | ## ------------------------------------------ ## |
| 11123 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11124 | ## ------------------------------------------ ## |
| 11125 | _ASBOX |
| 11126 | ) | |
| 11127 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11128 | ;; |
| 11129 | esac |
| 11130 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11134 | else |
| 11135 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11136 | fi |
| 11137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11139 | |
| 11140 | fi |
| 11141 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11142 | cat >>confdefs.h <<_ACEOF |
| 11143 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11144 | _ACEOF |
| 11145 | |
| 11146 | fi |
| 11147 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11148 | done |
| 11149 | |
| 11150 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11151 | echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 11152 | echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 |
| 11153 | cat >conftest.$ac_ext <<_ACEOF |
| 11154 | /* confdefs.h. */ |
| 11155 | _ACEOF |
| 11156 | cat confdefs.h >>conftest.$ac_ext |
| 11157 | cat >>conftest.$ac_ext <<_ACEOF |
| 11158 | /* end confdefs.h. */ |
| 11159 | |
| 11160 | #include <pthread.h> |
| 11161 | #include <pthread_np.h> |
| 11162 | int |
| 11163 | main () |
| 11164 | { |
| 11165 | int i; i = 0; |
| 11166 | ; |
| 11167 | return 0; |
| 11168 | } |
| 11169 | _ACEOF |
| 11170 | rm -f conftest.$ac_objext |
| 11171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11172 | (eval $ac_compile) 2>conftest.er1 |
| 11173 | ac_status=$? |
| 11174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11175 | rm -f conftest.er1 |
| 11176 | cat conftest.err >&5 |
| 11177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11178 | (exit $ac_status); } && |
| 11179 | { ac_try='test -z "$ac_c_werror_flag" |
| 11180 | || test ! -s conftest.err' |
| 11181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11182 | (eval $ac_try) 2>&5 |
| 11183 | ac_status=$? |
| 11184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11185 | (exit $ac_status); }; } && |
| 11186 | { ac_try='test -s conftest.$ac_objext' |
| 11187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11188 | (eval $ac_try) 2>&5 |
| 11189 | ac_status=$? |
| 11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11191 | (exit $ac_status); }; }; then |
| 11192 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11193 | echo "${ECHO_T}yes" >&6 |
| 11194 | cat >>confdefs.h <<\_ACEOF |
| 11195 | #define HAVE_PTHREAD_NP_H 1 |
| 11196 | _ACEOF |
| 11197 | |
| 11198 | else |
| 11199 | echo "$as_me: failed program was:" >&5 |
| 11200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11201 | |
| 11202 | echo "$as_me:$LINENO: result: no" >&5 |
| 11203 | echo "${ECHO_T}no" >&6 |
| 11204 | fi |
| 11205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11206 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11207 | |
| 11208 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11209 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11210 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11216 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 | # Is the header compilable? |
| 11221 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11222 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11223 | cat >conftest.$ac_ext <<_ACEOF |
| 11224 | /* confdefs.h. */ |
| 11225 | _ACEOF |
| 11226 | cat confdefs.h >>conftest.$ac_ext |
| 11227 | cat >>conftest.$ac_ext <<_ACEOF |
| 11228 | /* end confdefs.h. */ |
| 11229 | $ac_includes_default |
| 11230 | #include <$ac_header> |
| 11231 | _ACEOF |
| 11232 | rm -f conftest.$ac_objext |
| 11233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11234 | (eval $ac_compile) 2>conftest.er1 |
| 11235 | ac_status=$? |
| 11236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11237 | rm -f conftest.er1 |
| 11238 | cat conftest.err >&5 |
| 11239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11240 | (exit $ac_status); } && |
| 11241 | { ac_try='test -z "$ac_c_werror_flag" |
| 11242 | || test ! -s conftest.err' |
| 11243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11244 | (eval $ac_try) 2>&5 |
| 11245 | ac_status=$? |
| 11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11247 | (exit $ac_status); }; } && |
| 11248 | { ac_try='test -s conftest.$ac_objext' |
| 11249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11250 | (eval $ac_try) 2>&5 |
| 11251 | ac_status=$? |
| 11252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11253 | (exit $ac_status); }; }; then |
| 11254 | ac_header_compiler=yes |
| 11255 | else |
| 11256 | echo "$as_me: failed program was:" >&5 |
| 11257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11258 | |
| 11259 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11260 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11262 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11263 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11264 | |
| 11265 | # Is the header present? |
| 11266 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11267 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11268 | cat >conftest.$ac_ext <<_ACEOF |
| 11269 | /* confdefs.h. */ |
| 11270 | _ACEOF |
| 11271 | cat confdefs.h >>conftest.$ac_ext |
| 11272 | cat >>conftest.$ac_ext <<_ACEOF |
| 11273 | /* end confdefs.h. */ |
| 11274 | #include <$ac_header> |
| 11275 | _ACEOF |
| 11276 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11277 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11278 | ac_status=$? |
| 11279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11280 | rm -f conftest.er1 |
| 11281 | cat conftest.err >&5 |
| 11282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11283 | (exit $ac_status); } >/dev/null; then |
| 11284 | if test -s conftest.err; then |
| 11285 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11286 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11287 | else |
| 11288 | ac_cpp_err= |
| 11289 | fi |
| 11290 | else |
| 11291 | ac_cpp_err=yes |
| 11292 | fi |
| 11293 | if test -z "$ac_cpp_err"; then |
| 11294 | ac_header_preproc=yes |
| 11295 | else |
| 11296 | echo "$as_me: failed program was:" >&5 |
| 11297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11298 | |
| 11299 | ac_header_preproc=no |
| 11300 | fi |
| 11301 | rm -f conftest.err conftest.$ac_ext |
| 11302 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11303 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11304 | |
| 11305 | # So? What about this header? |
| 11306 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11307 | yes:no: ) |
| 11308 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11309 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11311 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11312 | ac_header_preproc=yes |
| 11313 | ;; |
| 11314 | no:yes:* ) |
| 11315 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11316 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11317 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11318 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11319 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11320 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11321 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11322 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11323 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11324 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11325 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11326 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11327 | ( |
| 11328 | cat <<\_ASBOX |
| 11329 | ## ------------------------------------------ ## |
| 11330 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11331 | ## ------------------------------------------ ## |
| 11332 | _ASBOX |
| 11333 | ) | |
| 11334 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11335 | ;; |
| 11336 | esac |
| 11337 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11338 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11339 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11341 | else |
| 11342 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11343 | fi |
| 11344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11346 | |
| 11347 | fi |
| 11348 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11349 | cat >>confdefs.h <<_ACEOF |
| 11350 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11351 | _ACEOF |
| 11352 | |
| 11353 | fi |
| 11354 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11355 | done |
| 11356 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11357 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11358 | echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 11359 | 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] | 11360 | cppflags_save=$CPPFLAGS |
| 11361 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11362 | cat >conftest.$ac_ext <<_ACEOF |
| 11363 | /* confdefs.h. */ |
| 11364 | _ACEOF |
| 11365 | cat confdefs.h >>conftest.$ac_ext |
| 11366 | cat >>conftest.$ac_ext <<_ACEOF |
| 11367 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11368 | |
| 11369 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 11370 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 11371 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 11372 | #endif |
| 11373 | #ifdef HAVE_XM_XM_H |
| 11374 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 11375 | #endif |
| 11376 | #ifdef HAVE_STRING_H |
| 11377 | # include <string.h> |
| 11378 | #endif |
| 11379 | #if defined(HAVE_STRINGS_H) |
| 11380 | # include <strings.h> |
| 11381 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11382 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11383 | int |
| 11384 | main () |
| 11385 | { |
| 11386 | int i; i = 0; |
| 11387 | ; |
| 11388 | return 0; |
| 11389 | } |
| 11390 | _ACEOF |
| 11391 | rm -f conftest.$ac_objext |
| 11392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11393 | (eval $ac_compile) 2>conftest.er1 |
| 11394 | ac_status=$? |
| 11395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11396 | rm -f conftest.er1 |
| 11397 | cat conftest.err >&5 |
| 11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11399 | (exit $ac_status); } && |
| 11400 | { ac_try='test -z "$ac_c_werror_flag" |
| 11401 | || test ! -s conftest.err' |
| 11402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11403 | (eval $ac_try) 2>&5 |
| 11404 | ac_status=$? |
| 11405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11406 | (exit $ac_status); }; } && |
| 11407 | { ac_try='test -s conftest.$ac_objext' |
| 11408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11409 | (eval $ac_try) 2>&5 |
| 11410 | ac_status=$? |
| 11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11412 | (exit $ac_status); }; }; then |
| 11413 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11414 | echo "${ECHO_T}yes" >&6 |
| 11415 | else |
| 11416 | echo "$as_me: failed program was:" >&5 |
| 11417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11418 | |
| 11419 | cat >>confdefs.h <<\_ACEOF |
| 11420 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11421 | _ACEOF |
| 11422 | |
| 11423 | echo "$as_me:$LINENO: result: no" >&5 |
| 11424 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11425 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11427 | CPPFLAGS=$cppflags_save |
| 11428 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11429 | if test $ac_cv_c_compiler_gnu = yes; then |
| 11430 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 11431 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 11432 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 11433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11434 | else |
| 11435 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11436 | cat >conftest.$ac_ext <<_ACEOF |
| 11437 | /* confdefs.h. */ |
| 11438 | _ACEOF |
| 11439 | cat confdefs.h >>conftest.$ac_ext |
| 11440 | cat >>conftest.$ac_ext <<_ACEOF |
| 11441 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11442 | #include <sgtty.h> |
| 11443 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11444 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11446 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11447 | ac_cv_prog_gcc_traditional=yes |
| 11448 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11449 | ac_cv_prog_gcc_traditional=no |
| 11450 | fi |
| 11451 | rm -f conftest* |
| 11452 | |
| 11453 | |
| 11454 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11455 | cat >conftest.$ac_ext <<_ACEOF |
| 11456 | /* confdefs.h. */ |
| 11457 | _ACEOF |
| 11458 | cat confdefs.h >>conftest.$ac_ext |
| 11459 | cat >>conftest.$ac_ext <<_ACEOF |
| 11460 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11461 | #include <termio.h> |
| 11462 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11463 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11465 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11466 | ac_cv_prog_gcc_traditional=yes |
| 11467 | fi |
| 11468 | rm -f conftest* |
| 11469 | |
| 11470 | fi |
| 11471 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11472 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 11473 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11474 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 11475 | CC="$CC -traditional" |
| 11476 | fi |
| 11477 | fi |
| 11478 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11479 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 11480 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 11481 | if test "${ac_cv_c_const+set}" = set; then |
| 11482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11483 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11484 | cat >conftest.$ac_ext <<_ACEOF |
| 11485 | /* confdefs.h. */ |
| 11486 | _ACEOF |
| 11487 | cat confdefs.h >>conftest.$ac_ext |
| 11488 | cat >>conftest.$ac_ext <<_ACEOF |
| 11489 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11490 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11491 | int |
| 11492 | main () |
| 11493 | { |
| 11494 | /* FIXME: Include the comments suggested by Paul. */ |
| 11495 | #ifndef __cplusplus |
| 11496 | /* Ultrix mips cc rejects this. */ |
| 11497 | typedef int charset[2]; |
| 11498 | const charset x; |
| 11499 | /* SunOS 4.1.1 cc rejects this. */ |
| 11500 | char const *const *ccp; |
| 11501 | char **p; |
| 11502 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11503 | struct point {int x, y;}; |
| 11504 | static struct point const zero = {0,0}; |
| 11505 | /* AIX XL C 1.02.0.0 rejects this. |
| 11506 | It does not let you subtract one const X* pointer from another in |
| 11507 | an arm of an if-expression whose if-part is not a constant |
| 11508 | expression */ |
| 11509 | const char *g = "string"; |
| 11510 | ccp = &g + (g ? g-g : 0); |
| 11511 | /* HPUX 7.0 cc rejects these. */ |
| 11512 | ++ccp; |
| 11513 | p = (char**) ccp; |
| 11514 | ccp = (char const *const *) p; |
| 11515 | { /* SCO 3.2v4 cc rejects this. */ |
| 11516 | char *t; |
| 11517 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11518 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11519 | *t++ = 0; |
| 11520 | } |
| 11521 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11522 | int x[] = {25, 17}; |
| 11523 | const int *foo = &x[0]; |
| 11524 | ++foo; |
| 11525 | } |
| 11526 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11527 | typedef const int *iptr; |
| 11528 | iptr p = 0; |
| 11529 | ++p; |
| 11530 | } |
| 11531 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11532 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11533 | struct s { int j; const int *ap[3]; }; |
| 11534 | struct s *b; b->j = 5; |
| 11535 | } |
| 11536 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11537 | const int foo = 10; |
| 11538 | } |
| 11539 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11540 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11541 | ; |
| 11542 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11543 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11544 | _ACEOF |
| 11545 | rm -f conftest.$ac_objext |
| 11546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11547 | (eval $ac_compile) 2>conftest.er1 |
| 11548 | ac_status=$? |
| 11549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11550 | rm -f conftest.er1 |
| 11551 | cat conftest.err >&5 |
| 11552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11553 | (exit $ac_status); } && |
| 11554 | { ac_try='test -z "$ac_c_werror_flag" |
| 11555 | || test ! -s conftest.err' |
| 11556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11557 | (eval $ac_try) 2>&5 |
| 11558 | ac_status=$? |
| 11559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11560 | (exit $ac_status); }; } && |
| 11561 | { ac_try='test -s conftest.$ac_objext' |
| 11562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11563 | (eval $ac_try) 2>&5 |
| 11564 | ac_status=$? |
| 11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11566 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11567 | ac_cv_c_const=yes |
| 11568 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11569 | echo "$as_me: failed program was:" >&5 |
| 11570 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11571 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11572 | ac_cv_c_const=no |
| 11573 | fi |
| 11574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11575 | fi |
| 11576 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 11577 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11578 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11579 | |
| 11580 | cat >>confdefs.h <<\_ACEOF |
| 11581 | #define const |
| 11582 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11583 | |
| 11584 | fi |
| 11585 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11586 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 11587 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 11588 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 11589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11590 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11591 | cat >conftest.$ac_ext <<_ACEOF |
| 11592 | /* confdefs.h. */ |
| 11593 | _ACEOF |
| 11594 | cat confdefs.h >>conftest.$ac_ext |
| 11595 | cat >>conftest.$ac_ext <<_ACEOF |
| 11596 | /* end confdefs.h. */ |
| 11597 | $ac_includes_default |
| 11598 | int |
| 11599 | main () |
| 11600 | { |
| 11601 | if ((mode_t *) 0) |
| 11602 | return 0; |
| 11603 | if (sizeof (mode_t)) |
| 11604 | return 0; |
| 11605 | ; |
| 11606 | return 0; |
| 11607 | } |
| 11608 | _ACEOF |
| 11609 | rm -f conftest.$ac_objext |
| 11610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11611 | (eval $ac_compile) 2>conftest.er1 |
| 11612 | ac_status=$? |
| 11613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11614 | rm -f conftest.er1 |
| 11615 | cat conftest.err >&5 |
| 11616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11617 | (exit $ac_status); } && |
| 11618 | { ac_try='test -z "$ac_c_werror_flag" |
| 11619 | || test ! -s conftest.err' |
| 11620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11621 | (eval $ac_try) 2>&5 |
| 11622 | ac_status=$? |
| 11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11624 | (exit $ac_status); }; } && |
| 11625 | { ac_try='test -s conftest.$ac_objext' |
| 11626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11627 | (eval $ac_try) 2>&5 |
| 11628 | ac_status=$? |
| 11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11630 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11631 | ac_cv_type_mode_t=yes |
| 11632 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11633 | echo "$as_me: failed program was:" >&5 |
| 11634 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11635 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11636 | ac_cv_type_mode_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11637 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11639 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11640 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 11641 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 11642 | if test $ac_cv_type_mode_t = yes; then |
| 11643 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11644 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11645 | |
| 11646 | cat >>confdefs.h <<_ACEOF |
| 11647 | #define mode_t int |
| 11648 | _ACEOF |
| 11649 | |
| 11650 | fi |
| 11651 | |
| 11652 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 11653 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 11654 | if test "${ac_cv_type_off_t+set}" = set; then |
| 11655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11656 | else |
| 11657 | cat >conftest.$ac_ext <<_ACEOF |
| 11658 | /* confdefs.h. */ |
| 11659 | _ACEOF |
| 11660 | cat confdefs.h >>conftest.$ac_ext |
| 11661 | cat >>conftest.$ac_ext <<_ACEOF |
| 11662 | /* end confdefs.h. */ |
| 11663 | $ac_includes_default |
| 11664 | int |
| 11665 | main () |
| 11666 | { |
| 11667 | if ((off_t *) 0) |
| 11668 | return 0; |
| 11669 | if (sizeof (off_t)) |
| 11670 | return 0; |
| 11671 | ; |
| 11672 | return 0; |
| 11673 | } |
| 11674 | _ACEOF |
| 11675 | rm -f conftest.$ac_objext |
| 11676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11677 | (eval $ac_compile) 2>conftest.er1 |
| 11678 | ac_status=$? |
| 11679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11680 | rm -f conftest.er1 |
| 11681 | cat conftest.err >&5 |
| 11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11683 | (exit $ac_status); } && |
| 11684 | { ac_try='test -z "$ac_c_werror_flag" |
| 11685 | || test ! -s conftest.err' |
| 11686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11687 | (eval $ac_try) 2>&5 |
| 11688 | ac_status=$? |
| 11689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11690 | (exit $ac_status); }; } && |
| 11691 | { ac_try='test -s conftest.$ac_objext' |
| 11692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11693 | (eval $ac_try) 2>&5 |
| 11694 | ac_status=$? |
| 11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11696 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11697 | ac_cv_type_off_t=yes |
| 11698 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11699 | echo "$as_me: failed program was:" >&5 |
| 11700 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11701 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11702 | ac_cv_type_off_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11703 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11705 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11706 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 11707 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 11708 | if test $ac_cv_type_off_t = yes; then |
| 11709 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11710 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11711 | |
| 11712 | cat >>confdefs.h <<_ACEOF |
| 11713 | #define off_t long |
| 11714 | _ACEOF |
| 11715 | |
| 11716 | fi |
| 11717 | |
| 11718 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 11719 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 11720 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 11721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11722 | else |
| 11723 | cat >conftest.$ac_ext <<_ACEOF |
| 11724 | /* confdefs.h. */ |
| 11725 | _ACEOF |
| 11726 | cat confdefs.h >>conftest.$ac_ext |
| 11727 | cat >>conftest.$ac_ext <<_ACEOF |
| 11728 | /* end confdefs.h. */ |
| 11729 | $ac_includes_default |
| 11730 | int |
| 11731 | main () |
| 11732 | { |
| 11733 | if ((pid_t *) 0) |
| 11734 | return 0; |
| 11735 | if (sizeof (pid_t)) |
| 11736 | return 0; |
| 11737 | ; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | _ACEOF |
| 11741 | rm -f conftest.$ac_objext |
| 11742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11743 | (eval $ac_compile) 2>conftest.er1 |
| 11744 | ac_status=$? |
| 11745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11746 | rm -f conftest.er1 |
| 11747 | cat conftest.err >&5 |
| 11748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11749 | (exit $ac_status); } && |
| 11750 | { ac_try='test -z "$ac_c_werror_flag" |
| 11751 | || test ! -s conftest.err' |
| 11752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11753 | (eval $ac_try) 2>&5 |
| 11754 | ac_status=$? |
| 11755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11756 | (exit $ac_status); }; } && |
| 11757 | { ac_try='test -s conftest.$ac_objext' |
| 11758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11759 | (eval $ac_try) 2>&5 |
| 11760 | ac_status=$? |
| 11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11762 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11763 | ac_cv_type_pid_t=yes |
| 11764 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11765 | echo "$as_me: failed program was:" >&5 |
| 11766 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11767 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11768 | ac_cv_type_pid_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11769 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11771 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11772 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 11773 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 11774 | if test $ac_cv_type_pid_t = yes; then |
| 11775 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11776 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11777 | |
| 11778 | cat >>confdefs.h <<_ACEOF |
| 11779 | #define pid_t int |
| 11780 | _ACEOF |
| 11781 | |
| 11782 | fi |
| 11783 | |
| 11784 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 11785 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 11786 | if test "${ac_cv_type_size_t+set}" = set; then |
| 11787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11788 | else |
| 11789 | cat >conftest.$ac_ext <<_ACEOF |
| 11790 | /* confdefs.h. */ |
| 11791 | _ACEOF |
| 11792 | cat confdefs.h >>conftest.$ac_ext |
| 11793 | cat >>conftest.$ac_ext <<_ACEOF |
| 11794 | /* end confdefs.h. */ |
| 11795 | $ac_includes_default |
| 11796 | int |
| 11797 | main () |
| 11798 | { |
| 11799 | if ((size_t *) 0) |
| 11800 | return 0; |
| 11801 | if (sizeof (size_t)) |
| 11802 | return 0; |
| 11803 | ; |
| 11804 | return 0; |
| 11805 | } |
| 11806 | _ACEOF |
| 11807 | rm -f conftest.$ac_objext |
| 11808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11809 | (eval $ac_compile) 2>conftest.er1 |
| 11810 | ac_status=$? |
| 11811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11812 | rm -f conftest.er1 |
| 11813 | cat conftest.err >&5 |
| 11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11815 | (exit $ac_status); } && |
| 11816 | { ac_try='test -z "$ac_c_werror_flag" |
| 11817 | || test ! -s conftest.err' |
| 11818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11819 | (eval $ac_try) 2>&5 |
| 11820 | ac_status=$? |
| 11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11822 | (exit $ac_status); }; } && |
| 11823 | { ac_try='test -s conftest.$ac_objext' |
| 11824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11825 | (eval $ac_try) 2>&5 |
| 11826 | ac_status=$? |
| 11827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11828 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11829 | ac_cv_type_size_t=yes |
| 11830 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11831 | echo "$as_me: failed program was:" >&5 |
| 11832 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11833 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11834 | ac_cv_type_size_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11835 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11837 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11838 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11839 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 11840 | if test $ac_cv_type_size_t = yes; then |
| 11841 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11842 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11843 | |
| 11844 | cat >>confdefs.h <<_ACEOF |
| 11845 | #define size_t unsigned |
| 11846 | _ACEOF |
| 11847 | |
| 11848 | fi |
| 11849 | |
| 11850 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11851 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 11852 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 11853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11854 | else |
| 11855 | cat >conftest.$ac_ext <<_ACEOF |
| 11856 | /* confdefs.h. */ |
| 11857 | _ACEOF |
| 11858 | cat confdefs.h >>conftest.$ac_ext |
| 11859 | cat >>conftest.$ac_ext <<_ACEOF |
| 11860 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11861 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11862 | |
| 11863 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11865 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11866 | ac_cv_type_uid_t=yes |
| 11867 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11868 | ac_cv_type_uid_t=no |
| 11869 | fi |
| 11870 | rm -f conftest* |
| 11871 | |
| 11872 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11873 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 11874 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11875 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11876 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11877 | cat >>confdefs.h <<\_ACEOF |
| 11878 | #define uid_t int |
| 11879 | _ACEOF |
| 11880 | |
| 11881 | |
| 11882 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11883 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11884 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11885 | |
| 11886 | fi |
| 11887 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11888 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 11889 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 11890 | if test "${ac_cv_header_time+set}" = set; then |
| 11891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11892 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11893 | cat >conftest.$ac_ext <<_ACEOF |
| 11894 | /* confdefs.h. */ |
| 11895 | _ACEOF |
| 11896 | cat confdefs.h >>conftest.$ac_ext |
| 11897 | cat >>conftest.$ac_ext <<_ACEOF |
| 11898 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11899 | #include <sys/types.h> |
| 11900 | #include <sys/time.h> |
| 11901 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11902 | |
| 11903 | int |
| 11904 | main () |
| 11905 | { |
| 11906 | if ((struct tm *) 0) |
| 11907 | return 0; |
| 11908 | ; |
| 11909 | return 0; |
| 11910 | } |
| 11911 | _ACEOF |
| 11912 | rm -f conftest.$ac_objext |
| 11913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11914 | (eval $ac_compile) 2>conftest.er1 |
| 11915 | ac_status=$? |
| 11916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11917 | rm -f conftest.er1 |
| 11918 | cat conftest.err >&5 |
| 11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11920 | (exit $ac_status); } && |
| 11921 | { ac_try='test -z "$ac_c_werror_flag" |
| 11922 | || test ! -s conftest.err' |
| 11923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11924 | (eval $ac_try) 2>&5 |
| 11925 | ac_status=$? |
| 11926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11927 | (exit $ac_status); }; } && |
| 11928 | { ac_try='test -s conftest.$ac_objext' |
| 11929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11930 | (eval $ac_try) 2>&5 |
| 11931 | ac_status=$? |
| 11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11933 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11934 | ac_cv_header_time=yes |
| 11935 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11936 | echo "$as_me: failed program was:" >&5 |
| 11937 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11938 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11939 | ac_cv_header_time=no |
| 11940 | fi |
| 11941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11942 | fi |
| 11943 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 11944 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11945 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11946 | |
| 11947 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11948 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11949 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11950 | |
| 11951 | fi |
| 11952 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11953 | echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 11954 | echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 |
| 11955 | if test "${ac_cv_type_ino_t+set}" = set; then |
| 11956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11957 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11958 | cat >conftest.$ac_ext <<_ACEOF |
| 11959 | /* confdefs.h. */ |
| 11960 | _ACEOF |
| 11961 | cat confdefs.h >>conftest.$ac_ext |
| 11962 | cat >>conftest.$ac_ext <<_ACEOF |
| 11963 | /* end confdefs.h. */ |
| 11964 | $ac_includes_default |
| 11965 | int |
| 11966 | main () |
| 11967 | { |
| 11968 | if ((ino_t *) 0) |
| 11969 | return 0; |
| 11970 | if (sizeof (ino_t)) |
| 11971 | return 0; |
| 11972 | ; |
| 11973 | return 0; |
| 11974 | } |
| 11975 | _ACEOF |
| 11976 | rm -f conftest.$ac_objext |
| 11977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11978 | (eval $ac_compile) 2>conftest.er1 |
| 11979 | ac_status=$? |
| 11980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11981 | rm -f conftest.er1 |
| 11982 | cat conftest.err >&5 |
| 11983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11984 | (exit $ac_status); } && |
| 11985 | { ac_try='test -z "$ac_c_werror_flag" |
| 11986 | || test ! -s conftest.err' |
| 11987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11988 | (eval $ac_try) 2>&5 |
| 11989 | ac_status=$? |
| 11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11991 | (exit $ac_status); }; } && |
| 11992 | { ac_try='test -s conftest.$ac_objext' |
| 11993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11994 | (eval $ac_try) 2>&5 |
| 11995 | ac_status=$? |
| 11996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11997 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11998 | ac_cv_type_ino_t=yes |
| 11999 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12000 | echo "$as_me: failed program was:" >&5 |
| 12001 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12002 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12003 | ac_cv_type_ino_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12004 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12006 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12007 | echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 12008 | echo "${ECHO_T}$ac_cv_type_ino_t" >&6 |
| 12009 | if test $ac_cv_type_ino_t = yes; then |
| 12010 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12011 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12012 | |
| 12013 | cat >>confdefs.h <<_ACEOF |
| 12014 | #define ino_t long |
| 12015 | _ACEOF |
| 12016 | |
| 12017 | fi |
| 12018 | |
| 12019 | echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 12020 | echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 |
| 12021 | if test "${ac_cv_type_dev_t+set}" = set; then |
| 12022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12023 | else |
| 12024 | cat >conftest.$ac_ext <<_ACEOF |
| 12025 | /* confdefs.h. */ |
| 12026 | _ACEOF |
| 12027 | cat confdefs.h >>conftest.$ac_ext |
| 12028 | cat >>conftest.$ac_ext <<_ACEOF |
| 12029 | /* end confdefs.h. */ |
| 12030 | $ac_includes_default |
| 12031 | int |
| 12032 | main () |
| 12033 | { |
| 12034 | if ((dev_t *) 0) |
| 12035 | return 0; |
| 12036 | if (sizeof (dev_t)) |
| 12037 | return 0; |
| 12038 | ; |
| 12039 | return 0; |
| 12040 | } |
| 12041 | _ACEOF |
| 12042 | rm -f conftest.$ac_objext |
| 12043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12044 | (eval $ac_compile) 2>conftest.er1 |
| 12045 | ac_status=$? |
| 12046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12047 | rm -f conftest.er1 |
| 12048 | cat conftest.err >&5 |
| 12049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12050 | (exit $ac_status); } && |
| 12051 | { ac_try='test -z "$ac_c_werror_flag" |
| 12052 | || test ! -s conftest.err' |
| 12053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12054 | (eval $ac_try) 2>&5 |
| 12055 | ac_status=$? |
| 12056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12057 | (exit $ac_status); }; } && |
| 12058 | { ac_try='test -s conftest.$ac_objext' |
| 12059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12060 | (eval $ac_try) 2>&5 |
| 12061 | ac_status=$? |
| 12062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12063 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12064 | ac_cv_type_dev_t=yes |
| 12065 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12066 | echo "$as_me: failed program was:" >&5 |
| 12067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12068 | |
| 12069 | ac_cv_type_dev_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12070 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12072 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12073 | echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 12074 | echo "${ECHO_T}$ac_cv_type_dev_t" >&6 |
| 12075 | if test $ac_cv_type_dev_t = yes; then |
| 12076 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12077 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12078 | |
| 12079 | cat >>confdefs.h <<_ACEOF |
| 12080 | #define dev_t unsigned |
| 12081 | _ACEOF |
| 12082 | |
| 12083 | fi |
| 12084 | |
| 12085 | |
| 12086 | echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 12087 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 |
| 12088 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 12089 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 12090 | echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 |
| 12091 | else |
| 12092 | cat >conftest.$ac_ext <<_ACEOF |
| 12093 | /* confdefs.h. */ |
| 12094 | _ACEOF |
| 12095 | cat confdefs.h >>conftest.$ac_ext |
| 12096 | cat >>conftest.$ac_ext <<_ACEOF |
| 12097 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12098 | |
| 12099 | #include <sys/types.h> |
| 12100 | #if STDC_HEADERS |
| 12101 | #include <stdlib.h> |
| 12102 | #include <stddef.h> |
| 12103 | #endif |
| 12104 | #ifdef HAVE_SYS_RESOURCE_H |
| 12105 | #include <sys/resource.h> |
| 12106 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12107 | |
| 12108 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12109 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12110 | $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] | 12111 | ac_cv_type_rlim_t=yes |
| 12112 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12113 | ac_cv_type_rlim_t=no |
| 12114 | fi |
| 12115 | rm -f conftest* |
| 12116 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12117 | echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 12118 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12119 | fi |
| 12120 | if test $ac_cv_type_rlim_t = no; then |
| 12121 | cat >> confdefs.h <<\EOF |
| 12122 | #define rlim_t unsigned long |
| 12123 | EOF |
| 12124 | fi |
| 12125 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12126 | echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 12127 | echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12128 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12129 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 12130 | echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12131 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12132 | cat >conftest.$ac_ext <<_ACEOF |
| 12133 | /* confdefs.h. */ |
| 12134 | _ACEOF |
| 12135 | cat confdefs.h >>conftest.$ac_ext |
| 12136 | cat >>conftest.$ac_ext <<_ACEOF |
| 12137 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12138 | |
| 12139 | #include <sys/types.h> |
| 12140 | #if STDC_HEADERS |
| 12141 | #include <stdlib.h> |
| 12142 | #include <stddef.h> |
| 12143 | #endif |
| 12144 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12145 | |
| 12146 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12147 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12148 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12149 | ac_cv_type_stack_t=yes |
| 12150 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12151 | ac_cv_type_stack_t=no |
| 12152 | fi |
| 12153 | rm -f conftest* |
| 12154 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12155 | echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 12156 | echo "${ECHO_T}$ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12157 | fi |
| 12158 | if test $ac_cv_type_stack_t = no; then |
| 12159 | cat >> confdefs.h <<\EOF |
| 12160 | #define stack_t struct sigaltstack |
| 12161 | EOF |
| 12162 | fi |
| 12163 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12164 | echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 12165 | echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 |
| 12166 | cat >conftest.$ac_ext <<_ACEOF |
| 12167 | /* confdefs.h. */ |
| 12168 | _ACEOF |
| 12169 | cat confdefs.h >>conftest.$ac_ext |
| 12170 | cat >>conftest.$ac_ext <<_ACEOF |
| 12171 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12172 | |
| 12173 | #include <sys/types.h> |
| 12174 | #if STDC_HEADERS |
| 12175 | #include <stdlib.h> |
| 12176 | #include <stddef.h> |
| 12177 | #endif |
| 12178 | #include <signal.h> |
| 12179 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12180 | |
| 12181 | int |
| 12182 | main () |
| 12183 | { |
| 12184 | stack_t sigstk; sigstk.ss_base = 0; |
| 12185 | ; |
| 12186 | return 0; |
| 12187 | } |
| 12188 | _ACEOF |
| 12189 | rm -f conftest.$ac_objext |
| 12190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12191 | (eval $ac_compile) 2>conftest.er1 |
| 12192 | ac_status=$? |
| 12193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12194 | rm -f conftest.er1 |
| 12195 | cat conftest.err >&5 |
| 12196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12197 | (exit $ac_status); } && |
| 12198 | { ac_try='test -z "$ac_c_werror_flag" |
| 12199 | || test ! -s conftest.err' |
| 12200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12201 | (eval $ac_try) 2>&5 |
| 12202 | ac_status=$? |
| 12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12204 | (exit $ac_status); }; } && |
| 12205 | { ac_try='test -s conftest.$ac_objext' |
| 12206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12207 | (eval $ac_try) 2>&5 |
| 12208 | ac_status=$? |
| 12209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12210 | (exit $ac_status); }; }; then |
| 12211 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12212 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12213 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12214 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12215 | |
| 12216 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12217 | echo "$as_me: failed program was:" >&5 |
| 12218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12219 | |
| 12220 | echo "$as_me:$LINENO: result: no" >&5 |
| 12221 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12222 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12224 | |
| 12225 | olibs="$LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12226 | echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 12227 | echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 |
| 12228 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12229 | # Check whether --with-tlib or --without-tlib was given. |
| 12230 | if test "${with_tlib+set}" = set; then |
| 12231 | withval="$with_tlib" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12232 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12233 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12234 | if test -n "$with_tlib"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12235 | echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 12236 | echo "${ECHO_T}$with_tlib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12237 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12238 | echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 12239 | echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 |
| 12240 | cat >conftest.$ac_ext <<_ACEOF |
| 12241 | /* confdefs.h. */ |
| 12242 | _ACEOF |
| 12243 | cat confdefs.h >>conftest.$ac_ext |
| 12244 | cat >>conftest.$ac_ext <<_ACEOF |
| 12245 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12246 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12247 | int |
| 12248 | main () |
| 12249 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12250 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12251 | ; |
| 12252 | return 0; |
| 12253 | } |
| 12254 | _ACEOF |
| 12255 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12257 | (eval $ac_link) 2>conftest.er1 |
| 12258 | ac_status=$? |
| 12259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12260 | rm -f conftest.er1 |
| 12261 | cat conftest.err >&5 |
| 12262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12263 | (exit $ac_status); } && |
| 12264 | { ac_try='test -z "$ac_c_werror_flag" |
| 12265 | || test ! -s conftest.err' |
| 12266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12267 | (eval $ac_try) 2>&5 |
| 12268 | ac_status=$? |
| 12269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12270 | (exit $ac_status); }; } && |
| 12271 | { ac_try='test -s conftest$ac_exeext' |
| 12272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12273 | (eval $ac_try) 2>&5 |
| 12274 | ac_status=$? |
| 12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12276 | (exit $ac_status); }; }; then |
| 12277 | echo "$as_me:$LINENO: result: OK" >&5 |
| 12278 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12279 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12280 | echo "$as_me: failed program was:" >&5 |
| 12281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12282 | |
| 12283 | { { echo "$as_me:$LINENO: error: FAILED" >&5 |
| 12284 | echo "$as_me: error: FAILED" >&2;} |
| 12285 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12286 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12287 | rm -f conftest.err conftest.$ac_objext \ |
| 12288 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12289 | olibs="$LIBS" |
| 12290 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12291 | echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 12292 | echo "${ECHO_T}empty: automatic terminal library selection" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12293 | case "`uname -s 2>/dev/null`" in |
| 12294 | OSF1) tlibs="ncurses curses termlib termcap";; |
| 12295 | *) tlibs="ncurses termlib termcap curses";; |
| 12296 | esac |
| 12297 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12298 | |
| 12299 | as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 12300 | echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 12301 | echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 |
| 12302 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
| 12303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12304 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12305 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12306 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12307 | cat >conftest.$ac_ext <<_ACEOF |
| 12308 | /* confdefs.h. */ |
| 12309 | _ACEOF |
| 12310 | cat confdefs.h >>conftest.$ac_ext |
| 12311 | cat >>conftest.$ac_ext <<_ACEOF |
| 12312 | /* end confdefs.h. */ |
| 12313 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12314 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12315 | #ifdef __cplusplus |
| 12316 | extern "C" |
| 12317 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12318 | /* 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] | 12319 | builtin and then its argument prototype would still apply. */ |
| 12320 | char tgetent (); |
| 12321 | int |
| 12322 | main () |
| 12323 | { |
| 12324 | tgetent (); |
| 12325 | ; |
| 12326 | return 0; |
| 12327 | } |
| 12328 | _ACEOF |
| 12329 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12331 | (eval $ac_link) 2>conftest.er1 |
| 12332 | ac_status=$? |
| 12333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12334 | rm -f conftest.er1 |
| 12335 | cat conftest.err >&5 |
| 12336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12337 | (exit $ac_status); } && |
| 12338 | { ac_try='test -z "$ac_c_werror_flag" |
| 12339 | || test ! -s conftest.err' |
| 12340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12341 | (eval $ac_try) 2>&5 |
| 12342 | ac_status=$? |
| 12343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12344 | (exit $ac_status); }; } && |
| 12345 | { ac_try='test -s conftest$ac_exeext' |
| 12346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12347 | (eval $ac_try) 2>&5 |
| 12348 | ac_status=$? |
| 12349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12350 | (exit $ac_status); }; }; then |
| 12351 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12352 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12353 | echo "$as_me: failed program was:" >&5 |
| 12354 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12355 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12356 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12357 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12358 | rm -f conftest.err conftest.$ac_objext \ |
| 12359 | conftest$ac_exeext conftest.$ac_ext |
| 12360 | LIBS=$ac_check_lib_save_LIBS |
| 12361 | fi |
| 12362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
| 12363 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
| 12364 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
| 12365 | cat >>confdefs.h <<_ACEOF |
| 12366 | #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
| 12367 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12368 | |
| 12369 | LIBS="-l${libname} $LIBS" |
| 12370 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12371 | fi |
| 12372 | |
| 12373 | if test "x$olibs" != "x$LIBS"; then |
| 12374 | if test "$cross_compiling" = yes; then |
| 12375 | res="FAIL" |
| 12376 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12377 | cat >conftest.$ac_ext <<_ACEOF |
| 12378 | /* confdefs.h. */ |
| 12379 | _ACEOF |
| 12380 | cat confdefs.h >>conftest.$ac_ext |
| 12381 | cat >>conftest.$ac_ext <<_ACEOF |
| 12382 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12383 | |
| 12384 | #ifdef HAVE_TERMCAP_H |
| 12385 | # include <termcap.h> |
| 12386 | #endif |
| 12387 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12388 | _ACEOF |
| 12389 | rm -f conftest$ac_exeext |
| 12390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12391 | (eval $ac_link) 2>&5 |
| 12392 | ac_status=$? |
| 12393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12394 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12396 | (eval $ac_try) 2>&5 |
| 12397 | ac_status=$? |
| 12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12399 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12400 | res="OK" |
| 12401 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12402 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12403 | echo "$as_me: failed program was:" >&5 |
| 12404 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12405 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12406 | ( exit $ac_status ) |
| 12407 | res="FAIL" |
| 12408 | fi |
| 12409 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12410 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12411 | if test "$res" = "OK"; then |
| 12412 | break |
| 12413 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12414 | echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 12415 | echo "${ECHO_T}$libname library is not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12416 | LIBS="$olibs" |
| 12417 | fi |
| 12418 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12419 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12420 | echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 12421 | echo "${ECHO_T}no terminal library found" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12422 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12423 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12424 | |
| 12425 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12426 | echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 12427 | echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 |
| 12428 | cat >conftest.$ac_ext <<_ACEOF |
| 12429 | /* confdefs.h. */ |
| 12430 | _ACEOF |
| 12431 | cat confdefs.h >>conftest.$ac_ext |
| 12432 | cat >>conftest.$ac_ext <<_ACEOF |
| 12433 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12434 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12435 | int |
| 12436 | main () |
| 12437 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12438 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12439 | ; |
| 12440 | return 0; |
| 12441 | } |
| 12442 | _ACEOF |
| 12443 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12445 | (eval $ac_link) 2>conftest.er1 |
| 12446 | ac_status=$? |
| 12447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12448 | rm -f conftest.er1 |
| 12449 | cat conftest.err >&5 |
| 12450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12451 | (exit $ac_status); } && |
| 12452 | { ac_try='test -z "$ac_c_werror_flag" |
| 12453 | || test ! -s conftest.err' |
| 12454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12455 | (eval $ac_try) 2>&5 |
| 12456 | ac_status=$? |
| 12457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12458 | (exit $ac_status); }; } && |
| 12459 | { ac_try='test -s conftest$ac_exeext' |
| 12460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12461 | (eval $ac_try) 2>&5 |
| 12462 | ac_status=$? |
| 12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12464 | (exit $ac_status); }; }; then |
| 12465 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12466 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12467 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12468 | echo "$as_me: failed program was:" >&5 |
| 12469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12470 | |
| 12471 | { { echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12472 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12473 | Or specify the name of the library with --with-tlib." >&5 |
| 12474 | echo "$as_me: error: NOT FOUND! |
| 12475 | You need to install a terminal library; for example ncurses. |
| 12476 | Or specify the name of the library with --with-tlib." >&2;} |
| 12477 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12478 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12479 | rm -f conftest.err conftest.$ac_objext \ |
| 12480 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12481 | fi |
| 12482 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12483 | echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 12484 | echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12485 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12486 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 12487 | echo "$as_me: error: failed to compile test program." >&2;} |
| 12488 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12489 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12490 | cat >conftest.$ac_ext <<_ACEOF |
| 12491 | /* confdefs.h. */ |
| 12492 | _ACEOF |
| 12493 | cat confdefs.h >>conftest.$ac_ext |
| 12494 | cat >>conftest.$ac_ext <<_ACEOF |
| 12495 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12496 | |
| 12497 | #ifdef HAVE_TERMCAP_H |
| 12498 | # include <termcap.h> |
| 12499 | #endif |
| 12500 | main() |
| 12501 | {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] | 12502 | _ACEOF |
| 12503 | rm -f conftest$ac_exeext |
| 12504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12505 | (eval $ac_link) 2>&5 |
| 12506 | ac_status=$? |
| 12507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12510 | (eval $ac_try) 2>&5 |
| 12511 | ac_status=$? |
| 12512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12513 | (exit $ac_status); }; }; then |
| 12514 | echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 |
| 12515 | echo "${ECHO_T}no -- we are in termcap land" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12516 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12517 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12518 | echo "$as_me: failed program was:" >&5 |
| 12519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12520 | |
| 12521 | ( exit $ac_status ) |
| 12522 | echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 |
| 12523 | echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12524 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12525 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12526 | |
| 12527 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12528 | 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] | 12529 | fi |
| 12530 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12531 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12532 | echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 12533 | 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] | 12534 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12535 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 12536 | echo "$as_me: error: failed to compile test program." >&2;} |
| 12537 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12538 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12539 | cat >conftest.$ac_ext <<_ACEOF |
| 12540 | /* confdefs.h. */ |
| 12541 | _ACEOF |
| 12542 | cat confdefs.h >>conftest.$ac_ext |
| 12543 | cat >>conftest.$ac_ext <<_ACEOF |
| 12544 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12545 | |
| 12546 | #ifdef HAVE_TERMCAP_H |
| 12547 | # include <termcap.h> |
| 12548 | #endif |
| 12549 | main() |
| 12550 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12551 | _ACEOF |
| 12552 | rm -f conftest$ac_exeext |
| 12553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12554 | (eval $ac_link) 2>&5 |
| 12555 | ac_status=$? |
| 12556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12557 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12559 | (eval $ac_try) 2>&5 |
| 12560 | ac_status=$? |
| 12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12562 | (exit $ac_status); }; }; then |
| 12563 | echo "$as_me:$LINENO: result: zero" >&5 |
| 12564 | echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12565 | #define TGETENT_ZERO_ERR 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12566 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12567 | |
| 12568 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12569 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12570 | echo "$as_me: failed program was:" >&5 |
| 12571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12572 | |
| 12573 | ( exit $ac_status ) |
| 12574 | echo "$as_me:$LINENO: result: non-zero" >&5 |
| 12575 | echo "${ECHO_T}non-zero" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12576 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12577 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12578 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12579 | fi |
| 12580 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12581 | echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 12582 | echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 |
| 12583 | cat >conftest.$ac_ext <<_ACEOF |
| 12584 | /* confdefs.h. */ |
| 12585 | _ACEOF |
| 12586 | cat confdefs.h >>conftest.$ac_ext |
| 12587 | cat >>conftest.$ac_ext <<_ACEOF |
| 12588 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12589 | |
| 12590 | #ifdef HAVE_TERMCAP_H |
| 12591 | # include <termcap.h> |
| 12592 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12593 | |
| 12594 | int |
| 12595 | main () |
| 12596 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12597 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12598 | ; |
| 12599 | return 0; |
| 12600 | } |
| 12601 | _ACEOF |
| 12602 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12604 | (eval $ac_link) 2>conftest.er1 |
| 12605 | ac_status=$? |
| 12606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12607 | rm -f conftest.er1 |
| 12608 | cat conftest.err >&5 |
| 12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12610 | (exit $ac_status); } && |
| 12611 | { ac_try='test -z "$ac_c_werror_flag" |
| 12612 | || test ! -s conftest.err' |
| 12613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12614 | (eval $ac_try) 2>&5 |
| 12615 | ac_status=$? |
| 12616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12617 | (exit $ac_status); }; } && |
| 12618 | { ac_try='test -s conftest$ac_exeext' |
| 12619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12620 | (eval $ac_try) 2>&5 |
| 12621 | ac_status=$? |
| 12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12623 | (exit $ac_status); }; }; then |
| 12624 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12625 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12626 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12627 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12628 | |
| 12629 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12630 | echo "$as_me: failed program was:" >&5 |
| 12631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12632 | |
| 12633 | echo "$as_me:$LINENO: result: no" >&5 |
| 12634 | echo "${ECHO_T}no" >&6 |
| 12635 | echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 12636 | echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 |
| 12637 | cat >conftest.$ac_ext <<_ACEOF |
| 12638 | /* confdefs.h. */ |
| 12639 | _ACEOF |
| 12640 | cat confdefs.h >>conftest.$ac_ext |
| 12641 | cat >>conftest.$ac_ext <<_ACEOF |
| 12642 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12643 | |
| 12644 | #ifdef HAVE_TERMCAP_H |
| 12645 | # include <termcap.h> |
| 12646 | #endif |
| 12647 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12648 | |
| 12649 | int |
| 12650 | main () |
| 12651 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12652 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12653 | ; |
| 12654 | return 0; |
| 12655 | } |
| 12656 | _ACEOF |
| 12657 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12659 | (eval $ac_link) 2>conftest.er1 |
| 12660 | ac_status=$? |
| 12661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12662 | rm -f conftest.er1 |
| 12663 | cat conftest.err >&5 |
| 12664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12665 | (exit $ac_status); } && |
| 12666 | { ac_try='test -z "$ac_c_werror_flag" |
| 12667 | || test ! -s conftest.err' |
| 12668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12669 | (eval $ac_try) 2>&5 |
| 12670 | ac_status=$? |
| 12671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12672 | (exit $ac_status); }; } && |
| 12673 | { ac_try='test -s conftest$ac_exeext' |
| 12674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12675 | (eval $ac_try) 2>&5 |
| 12676 | ac_status=$? |
| 12677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12678 | (exit $ac_status); }; }; then |
| 12679 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12680 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12681 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12682 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12683 | |
| 12684 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12685 | echo "$as_me: failed program was:" >&5 |
| 12686 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12687 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12688 | echo "$as_me:$LINENO: result: no" >&5 |
| 12689 | echo "${ECHO_T}no" >&6 |
| 12690 | fi |
| 12691 | rm -f conftest.err conftest.$ac_objext \ |
| 12692 | conftest$ac_exeext conftest.$ac_ext |
| 12693 | |
| 12694 | fi |
| 12695 | rm -f conftest.err conftest.$ac_objext \ |
| 12696 | conftest$ac_exeext conftest.$ac_ext |
| 12697 | |
| 12698 | echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 12699 | echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 |
| 12700 | cat >conftest.$ac_ext <<_ACEOF |
| 12701 | /* confdefs.h. */ |
| 12702 | _ACEOF |
| 12703 | cat confdefs.h >>conftest.$ac_ext |
| 12704 | cat >>conftest.$ac_ext <<_ACEOF |
| 12705 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12706 | |
| 12707 | #ifdef HAVE_TERMCAP_H |
| 12708 | # include <termcap.h> |
| 12709 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12710 | |
| 12711 | int |
| 12712 | main () |
| 12713 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12714 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12715 | ; |
| 12716 | return 0; |
| 12717 | } |
| 12718 | _ACEOF |
| 12719 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12721 | (eval $ac_link) 2>conftest.er1 |
| 12722 | ac_status=$? |
| 12723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12724 | rm -f conftest.er1 |
| 12725 | cat conftest.err >&5 |
| 12726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12727 | (exit $ac_status); } && |
| 12728 | { ac_try='test -z "$ac_c_werror_flag" |
| 12729 | || test ! -s conftest.err' |
| 12730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12731 | (eval $ac_try) 2>&5 |
| 12732 | ac_status=$? |
| 12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12734 | (exit $ac_status); }; } && |
| 12735 | { ac_try='test -s conftest$ac_exeext' |
| 12736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12737 | (eval $ac_try) 2>&5 |
| 12738 | ac_status=$? |
| 12739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12740 | (exit $ac_status); }; }; then |
| 12741 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12742 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12743 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12744 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12745 | |
| 12746 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12747 | echo "$as_me: failed program was:" >&5 |
| 12748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12749 | |
| 12750 | echo "$as_me:$LINENO: result: no" >&5 |
| 12751 | echo "${ECHO_T}no" >&6 |
| 12752 | echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 12753 | echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 |
| 12754 | cat >conftest.$ac_ext <<_ACEOF |
| 12755 | /* confdefs.h. */ |
| 12756 | _ACEOF |
| 12757 | cat confdefs.h >>conftest.$ac_ext |
| 12758 | cat >>conftest.$ac_ext <<_ACEOF |
| 12759 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12760 | |
| 12761 | #ifdef HAVE_TERMCAP_H |
| 12762 | # include <termcap.h> |
| 12763 | #endif |
| 12764 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12765 | |
| 12766 | int |
| 12767 | main () |
| 12768 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12769 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12770 | ; |
| 12771 | return 0; |
| 12772 | } |
| 12773 | _ACEOF |
| 12774 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12776 | (eval $ac_link) 2>conftest.er1 |
| 12777 | ac_status=$? |
| 12778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12779 | rm -f conftest.er1 |
| 12780 | cat conftest.err >&5 |
| 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12782 | (exit $ac_status); } && |
| 12783 | { ac_try='test -z "$ac_c_werror_flag" |
| 12784 | || test ! -s conftest.err' |
| 12785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12786 | (eval $ac_try) 2>&5 |
| 12787 | ac_status=$? |
| 12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12789 | (exit $ac_status); }; } && |
| 12790 | { ac_try='test -s conftest$ac_exeext' |
| 12791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12792 | (eval $ac_try) 2>&5 |
| 12793 | ac_status=$? |
| 12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12795 | (exit $ac_status); }; }; then |
| 12796 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12797 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12798 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12799 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12800 | |
| 12801 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12802 | echo "$as_me: failed program was:" >&5 |
| 12803 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12804 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12805 | echo "$as_me:$LINENO: result: no" >&5 |
| 12806 | echo "${ECHO_T}no" >&6 |
| 12807 | fi |
| 12808 | rm -f conftest.err conftest.$ac_objext \ |
| 12809 | conftest$ac_exeext conftest.$ac_ext |
| 12810 | |
| 12811 | fi |
| 12812 | rm -f conftest.err conftest.$ac_objext \ |
| 12813 | conftest$ac_exeext conftest.$ac_ext |
| 12814 | |
| 12815 | echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 12816 | echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 |
| 12817 | cat >conftest.$ac_ext <<_ACEOF |
| 12818 | /* confdefs.h. */ |
| 12819 | _ACEOF |
| 12820 | cat confdefs.h >>conftest.$ac_ext |
| 12821 | cat >>conftest.$ac_ext <<_ACEOF |
| 12822 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12823 | |
| 12824 | #ifdef HAVE_TERMCAP_H |
| 12825 | # include <termcap.h> |
| 12826 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12827 | |
| 12828 | int |
| 12829 | main () |
| 12830 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12831 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12832 | ; |
| 12833 | return 0; |
| 12834 | } |
| 12835 | _ACEOF |
| 12836 | rm -f conftest.$ac_objext |
| 12837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12838 | (eval $ac_compile) 2>conftest.er1 |
| 12839 | ac_status=$? |
| 12840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12841 | rm -f conftest.er1 |
| 12842 | cat conftest.err >&5 |
| 12843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12844 | (exit $ac_status); } && |
| 12845 | { ac_try='test -z "$ac_c_werror_flag" |
| 12846 | || test ! -s conftest.err' |
| 12847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12848 | (eval $ac_try) 2>&5 |
| 12849 | ac_status=$? |
| 12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12851 | (exit $ac_status); }; } && |
| 12852 | { ac_try='test -s conftest.$ac_objext' |
| 12853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12854 | (eval $ac_try) 2>&5 |
| 12855 | ac_status=$? |
| 12856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12857 | (exit $ac_status); }; }; then |
| 12858 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12859 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12860 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12861 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12862 | |
| 12863 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12864 | echo "$as_me: failed program was:" >&5 |
| 12865 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12866 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12867 | echo "$as_me:$LINENO: result: no" >&5 |
| 12868 | echo "${ECHO_T}no" >&6 |
| 12869 | fi |
| 12870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12871 | |
| 12872 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12873 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12874 | cat >conftest.$ac_ext <<_ACEOF |
| 12875 | /* confdefs.h. */ |
| 12876 | _ACEOF |
| 12877 | cat confdefs.h >>conftest.$ac_ext |
| 12878 | cat >>conftest.$ac_ext <<_ACEOF |
| 12879 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12880 | |
| 12881 | #include <sys/types.h> |
| 12882 | #include <sys/time.h> |
| 12883 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12884 | int |
| 12885 | main () |
| 12886 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12887 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12888 | ; |
| 12889 | return 0; |
| 12890 | } |
| 12891 | _ACEOF |
| 12892 | rm -f conftest.$ac_objext |
| 12893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12894 | (eval $ac_compile) 2>conftest.er1 |
| 12895 | ac_status=$? |
| 12896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12897 | rm -f conftest.er1 |
| 12898 | cat conftest.err >&5 |
| 12899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12900 | (exit $ac_status); } && |
| 12901 | { ac_try='test -z "$ac_c_werror_flag" |
| 12902 | || test ! -s conftest.err' |
| 12903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12904 | (eval $ac_try) 2>&5 |
| 12905 | ac_status=$? |
| 12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12907 | (exit $ac_status); }; } && |
| 12908 | { ac_try='test -s conftest.$ac_objext' |
| 12909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12910 | (eval $ac_try) 2>&5 |
| 12911 | ac_status=$? |
| 12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12913 | (exit $ac_status); }; }; then |
| 12914 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12915 | echo "${ECHO_T}yes" >&6 |
| 12916 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12917 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12918 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12919 | |
| 12920 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12921 | echo "$as_me: failed program was:" >&5 |
| 12922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12923 | |
| 12924 | echo "$as_me:$LINENO: result: no" >&5 |
| 12925 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12926 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12928 | |
| 12929 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12930 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 12931 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12932 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12933 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12934 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12935 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12936 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12937 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12938 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12939 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12940 | echo "$as_me:$LINENO: result: no" >&5 |
| 12941 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12942 | fi |
| 12943 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12944 | echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 12945 | echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12946 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12947 | cat >conftest.$ac_ext <<_ACEOF |
| 12948 | /* confdefs.h. */ |
| 12949 | _ACEOF |
| 12950 | cat confdefs.h >>conftest.$ac_ext |
| 12951 | cat >>conftest.$ac_ext <<_ACEOF |
| 12952 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12953 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12954 | int |
| 12955 | main () |
| 12956 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12957 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12958 | ; |
| 12959 | return 0; |
| 12960 | } |
| 12961 | _ACEOF |
| 12962 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12964 | (eval $ac_link) 2>conftest.er1 |
| 12965 | ac_status=$? |
| 12966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12967 | rm -f conftest.er1 |
| 12968 | cat conftest.err >&5 |
| 12969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12970 | (exit $ac_status); } && |
| 12971 | { ac_try='test -z "$ac_c_werror_flag" |
| 12972 | || test ! -s conftest.err' |
| 12973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12974 | (eval $ac_try) 2>&5 |
| 12975 | ac_status=$? |
| 12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12977 | (exit $ac_status); }; } && |
| 12978 | { ac_try='test -s conftest$ac_exeext' |
| 12979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12980 | (eval $ac_try) 2>&5 |
| 12981 | ac_status=$? |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12983 | (exit $ac_status); }; }; then |
| 12984 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12985 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12986 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12987 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12988 | |
| 12989 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12990 | echo "$as_me: failed program was:" >&5 |
| 12991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12992 | |
| 12993 | echo "$as_me:$LINENO: result: no" >&5 |
| 12994 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12995 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12996 | rm -f conftest.err conftest.$ac_objext \ |
| 12997 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12998 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12999 | echo "$as_me:$LINENO: result: no" >&5 |
| 13000 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13001 | fi |
| 13002 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13003 | echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 13004 | echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13005 | if test -d /dev/ptym ; then |
| 13006 | pdir='/dev/ptym' |
| 13007 | else |
| 13008 | pdir='/dev' |
| 13009 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13010 | cat >conftest.$ac_ext <<_ACEOF |
| 13011 | /* confdefs.h. */ |
| 13012 | _ACEOF |
| 13013 | cat confdefs.h >>conftest.$ac_ext |
| 13014 | cat >>conftest.$ac_ext <<_ACEOF |
| 13015 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13016 | #ifdef M_UNIX |
| 13017 | yes; |
| 13018 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13019 | |
| 13020 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13021 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13022 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13023 | ptys=`echo /dev/ptyp??` |
| 13024 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13025 | ptys=`echo $pdir/pty??` |
| 13026 | fi |
| 13027 | rm -f conftest* |
| 13028 | |
| 13029 | if test "$ptys" != "$pdir/pty??" ; then |
| 13030 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 13031 | p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13032 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13033 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13034 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13035 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13036 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13037 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13038 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13039 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13040 | echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 13041 | echo "${ECHO_T}$p0 / $p1" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13042 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13043 | echo "$as_me:$LINENO: result: don't know" >&5 |
| 13044 | echo "${ECHO_T}don't know" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13045 | fi |
| 13046 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13047 | echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 13048 | echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13049 | rm -f conftest_grp |
| 13050 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13051 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13052 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13053 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13054 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13055 | cat >conftest.$ac_ext <<_ACEOF |
| 13056 | /* confdefs.h. */ |
| 13057 | _ACEOF |
| 13058 | cat confdefs.h >>conftest.$ac_ext |
| 13059 | cat >>conftest.$ac_ext <<_ACEOF |
| 13060 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13061 | |
| 13062 | #include <sys/types.h> |
| 13063 | #include <sys/stat.h> |
| 13064 | #include <stdio.h> |
| 13065 | main() |
| 13066 | { |
| 13067 | struct stat sb; |
| 13068 | char *x,*ttyname(); |
| 13069 | int om, m; |
| 13070 | FILE *fp; |
| 13071 | |
| 13072 | if (!(x = ttyname(0))) exit(1); |
| 13073 | if (stat(x, &sb)) exit(1); |
| 13074 | om = sb.st_mode; |
| 13075 | if (om & 002) exit(0); |
| 13076 | m = system("mesg y"); |
| 13077 | if (m == -1 || m == 127) exit(1); |
| 13078 | if (stat(x, &sb)) exit(1); |
| 13079 | m = sb.st_mode; |
| 13080 | if (chmod(x, om)) exit(1); |
| 13081 | if (m & 002) exit(0); |
| 13082 | if (sb.st_gid == getgid()) exit(1); |
| 13083 | if (!(fp=fopen("conftest_grp", "w"))) |
| 13084 | exit(1); |
| 13085 | fprintf(fp, "%d\n", sb.st_gid); |
| 13086 | fclose(fp); |
| 13087 | exit(0); |
| 13088 | } |
| 13089 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13090 | _ACEOF |
| 13091 | rm -f conftest$ac_exeext |
| 13092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13093 | (eval $ac_link) 2>&5 |
| 13094 | ac_status=$? |
| 13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13098 | (eval $ac_try) 2>&5 |
| 13099 | ac_status=$? |
| 13100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13101 | (exit $ac_status); }; }; then |
| 13102 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13103 | if test -f conftest_grp; then |
| 13104 | ptygrp=`cat conftest_grp` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13105 | echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 |
| 13106 | echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 |
| 13107 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13108 | #define PTYMODE 0620 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13109 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13110 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13111 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13112 | #define PTYGROUP $ptygrp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13113 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13114 | |
| 13115 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13116 | echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 13117 | echo "${ECHO_T}ptys are world accessable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13118 | fi |
| 13119 | |
| 13120 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13121 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13122 | echo "$as_me: failed program was:" >&5 |
| 13123 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13124 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13125 | ( exit $ac_status ) |
| 13126 | echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 13127 | echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 |
| 13128 | fi |
| 13129 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13130 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13131 | rm -f conftest_grp |
| 13132 | |
| 13133 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13134 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 13135 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 13136 | if test "${ac_cv_type_signal+set}" = set; then |
| 13137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13138 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13139 | cat >conftest.$ac_ext <<_ACEOF |
| 13140 | /* confdefs.h. */ |
| 13141 | _ACEOF |
| 13142 | cat confdefs.h >>conftest.$ac_ext |
| 13143 | cat >>conftest.$ac_ext <<_ACEOF |
| 13144 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13145 | #include <sys/types.h> |
| 13146 | #include <signal.h> |
| 13147 | #ifdef signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13148 | # undef signal |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13149 | #endif |
| 13150 | #ifdef __cplusplus |
| 13151 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 13152 | #else |
| 13153 | void (*signal ()) (); |
| 13154 | #endif |
| 13155 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13156 | int |
| 13157 | main () |
| 13158 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13159 | int i; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13160 | ; |
| 13161 | return 0; |
| 13162 | } |
| 13163 | _ACEOF |
| 13164 | rm -f conftest.$ac_objext |
| 13165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13166 | (eval $ac_compile) 2>conftest.er1 |
| 13167 | ac_status=$? |
| 13168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13169 | rm -f conftest.er1 |
| 13170 | cat conftest.err >&5 |
| 13171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13172 | (exit $ac_status); } && |
| 13173 | { ac_try='test -z "$ac_c_werror_flag" |
| 13174 | || test ! -s conftest.err' |
| 13175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13176 | (eval $ac_try) 2>&5 |
| 13177 | ac_status=$? |
| 13178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13179 | (exit $ac_status); }; } && |
| 13180 | { ac_try='test -s conftest.$ac_objext' |
| 13181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13182 | (eval $ac_try) 2>&5 |
| 13183 | ac_status=$? |
| 13184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13185 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13186 | ac_cv_type_signal=void |
| 13187 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13188 | echo "$as_me: failed program was:" >&5 |
| 13189 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13190 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13191 | ac_cv_type_signal=int |
| 13192 | fi |
| 13193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13194 | fi |
| 13195 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 13196 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 13197 | |
| 13198 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13199 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13200 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13201 | |
| 13202 | |
| 13203 | |
| 13204 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13205 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13206 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13207 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13208 | |
| 13209 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13210 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13211 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13212 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13213 | |
| 13214 | fi |
| 13215 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13216 | echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 13217 | echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 |
| 13218 | cat >conftest.$ac_ext <<_ACEOF |
| 13219 | /* confdefs.h. */ |
| 13220 | _ACEOF |
| 13221 | cat confdefs.h >>conftest.$ac_ext |
| 13222 | cat >>conftest.$ac_ext <<_ACEOF |
| 13223 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13224 | |
| 13225 | #include <signal.h> |
| 13226 | test_sig() |
| 13227 | { |
| 13228 | struct sigcontext *scont; |
| 13229 | scont = (struct sigcontext *)0; |
| 13230 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13231 | } |
| 13232 | int |
| 13233 | main () |
| 13234 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13235 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13236 | ; |
| 13237 | return 0; |
| 13238 | } |
| 13239 | _ACEOF |
| 13240 | rm -f conftest.$ac_objext |
| 13241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13242 | (eval $ac_compile) 2>conftest.er1 |
| 13243 | ac_status=$? |
| 13244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13245 | rm -f conftest.er1 |
| 13246 | cat conftest.err >&5 |
| 13247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13248 | (exit $ac_status); } && |
| 13249 | { ac_try='test -z "$ac_c_werror_flag" |
| 13250 | || test ! -s conftest.err' |
| 13251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13252 | (eval $ac_try) 2>&5 |
| 13253 | ac_status=$? |
| 13254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13255 | (exit $ac_status); }; } && |
| 13256 | { ac_try='test -s conftest.$ac_objext' |
| 13257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13258 | (eval $ac_try) 2>&5 |
| 13259 | ac_status=$? |
| 13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13261 | (exit $ac_status); }; }; then |
| 13262 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13263 | echo "${ECHO_T}yes" >&6 |
| 13264 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13265 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13266 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13267 | |
| 13268 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13269 | echo "$as_me: failed program was:" >&5 |
| 13270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13271 | |
| 13272 | echo "$as_me:$LINENO: result: no" >&5 |
| 13273 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13274 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13276 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13277 | echo "$as_me:$LINENO: checking getcwd implementation" >&5 |
| 13278 | echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13279 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13280 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13281 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13282 | { (exit 1); exit 1; }; } |
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 | cat >conftest.$ac_ext <<_ACEOF |
| 13285 | /* confdefs.h. */ |
| 13286 | _ACEOF |
| 13287 | cat confdefs.h >>conftest.$ac_ext |
| 13288 | cat >>conftest.$ac_ext <<_ACEOF |
| 13289 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13290 | |
| 13291 | char *dagger[] = { "IFS=pwd", 0 }; |
| 13292 | main() |
| 13293 | { |
| 13294 | char buffer[500]; |
| 13295 | extern char **environ; |
| 13296 | environ = dagger; |
| 13297 | return getcwd(buffer, 500) ? 0 : 1; |
| 13298 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13299 | _ACEOF |
| 13300 | rm -f conftest$ac_exeext |
| 13301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13302 | (eval $ac_link) 2>&5 |
| 13303 | ac_status=$? |
| 13304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13307 | (eval $ac_try) 2>&5 |
| 13308 | ac_status=$? |
| 13309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13310 | (exit $ac_status); }; }; then |
| 13311 | echo "$as_me:$LINENO: result: it is usable" >&5 |
| 13312 | echo "${ECHO_T}it is usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13313 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13314 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13315 | echo "$as_me: failed program was:" >&5 |
| 13316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13317 | |
| 13318 | ( exit $ac_status ) |
| 13319 | echo "$as_me:$LINENO: result: it stinks" >&5 |
| 13320 | echo "${ECHO_T}it stinks" >&6 |
| 13321 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13322 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13323 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13324 | |
| 13325 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13326 | 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] | 13327 | fi |
| 13328 | |
| 13329 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13330 | |
| 13331 | |
| 13332 | |
| 13333 | |
| 13334 | |
| 13335 | |
| 13336 | |
| 13337 | |
| 13338 | |
| 13339 | |
| 13340 | |
| 13341 | |
| 13342 | |
| 13343 | |
| 13344 | |
| 13345 | |
| 13346 | |
| 13347 | |
| 13348 | |
| 13349 | |
| 13350 | |
| 13351 | |
| 13352 | |
| 13353 | |
| 13354 | |
| 13355 | |
| 13356 | |
| 13357 | |
| 13358 | |
| 13359 | |
| 13360 | |
| 13361 | |
| 13362 | |
| 13363 | |
| 13364 | |
| 13365 | |
| 13366 | |
| 13367 | |
| 13368 | |
| 13369 | |
| 13370 | |
| 13371 | |
| 13372 | |
| 13373 | |
| 13374 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13375 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 13376 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 13377 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 13378 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 13379 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 13380 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 13381 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13382 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13383 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13384 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13385 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13386 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13388 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13389 | cat >conftest.$ac_ext <<_ACEOF |
| 13390 | /* confdefs.h. */ |
| 13391 | _ACEOF |
| 13392 | cat confdefs.h >>conftest.$ac_ext |
| 13393 | cat >>conftest.$ac_ext <<_ACEOF |
| 13394 | /* end confdefs.h. */ |
| 13395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13397 | #define $ac_func innocuous_$ac_func |
| 13398 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13399 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13400 | which can conflict with char $ac_func (); below. |
| 13401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13402 | <limits.h> exists even on freestanding compilers. */ |
| 13403 | |
| 13404 | #ifdef __STDC__ |
| 13405 | # include <limits.h> |
| 13406 | #else |
| 13407 | # include <assert.h> |
| 13408 | #endif |
| 13409 | |
| 13410 | #undef $ac_func |
| 13411 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13412 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13413 | #ifdef __cplusplus |
| 13414 | extern "C" |
| 13415 | { |
| 13416 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13417 | /* 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] | 13418 | builtin and then its argument prototype would still apply. */ |
| 13419 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13420 | /* The GNU C library defines this for functions which it implements |
| 13421 | to always fail with ENOSYS. Some functions are actually named |
| 13422 | something starting with __ and the normal name is an alias. */ |
| 13423 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13424 | choke me |
| 13425 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13426 | char (*f) () = $ac_func; |
| 13427 | #endif |
| 13428 | #ifdef __cplusplus |
| 13429 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13430 | #endif |
| 13431 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13432 | int |
| 13433 | main () |
| 13434 | { |
| 13435 | return f != $ac_func; |
| 13436 | ; |
| 13437 | return 0; |
| 13438 | } |
| 13439 | _ACEOF |
| 13440 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13442 | (eval $ac_link) 2>conftest.er1 |
| 13443 | ac_status=$? |
| 13444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13445 | rm -f conftest.er1 |
| 13446 | cat conftest.err >&5 |
| 13447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13448 | (exit $ac_status); } && |
| 13449 | { ac_try='test -z "$ac_c_werror_flag" |
| 13450 | || test ! -s conftest.err' |
| 13451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13452 | (eval $ac_try) 2>&5 |
| 13453 | ac_status=$? |
| 13454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13455 | (exit $ac_status); }; } && |
| 13456 | { ac_try='test -s conftest$ac_exeext' |
| 13457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13458 | (eval $ac_try) 2>&5 |
| 13459 | ac_status=$? |
| 13460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13461 | (exit $ac_status); }; }; then |
| 13462 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13463 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13464 | echo "$as_me: failed program was:" >&5 |
| 13465 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13466 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13467 | eval "$as_ac_var=no" |
| 13468 | fi |
| 13469 | rm -f conftest.err conftest.$ac_objext \ |
| 13470 | conftest$ac_exeext conftest.$ac_ext |
| 13471 | fi |
| 13472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13473 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13474 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13475 | cat >>confdefs.h <<_ACEOF |
| 13476 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13477 | _ACEOF |
| 13478 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13479 | fi |
| 13480 | done |
| 13481 | |
| 13482 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13483 | echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 13484 | echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 |
| 13485 | cat >conftest.$ac_ext <<_ACEOF |
| 13486 | /* confdefs.h. */ |
| 13487 | _ACEOF |
| 13488 | cat confdefs.h >>conftest.$ac_ext |
| 13489 | cat >>conftest.$ac_ext <<_ACEOF |
| 13490 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13491 | #include <sys/types.h> |
| 13492 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13493 | int |
| 13494 | main () |
| 13495 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13496 | struct stat st; |
| 13497 | int n; |
| 13498 | |
| 13499 | stat("/", &st); |
| 13500 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13501 | ; |
| 13502 | return 0; |
| 13503 | } |
| 13504 | _ACEOF |
| 13505 | rm -f conftest.$ac_objext |
| 13506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13507 | (eval $ac_compile) 2>conftest.er1 |
| 13508 | ac_status=$? |
| 13509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13510 | rm -f conftest.er1 |
| 13511 | cat conftest.err >&5 |
| 13512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13513 | (exit $ac_status); } && |
| 13514 | { ac_try='test -z "$ac_c_werror_flag" |
| 13515 | || test ! -s conftest.err' |
| 13516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13517 | (eval $ac_try) 2>&5 |
| 13518 | ac_status=$? |
| 13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13520 | (exit $ac_status); }; } && |
| 13521 | { ac_try='test -s conftest.$ac_objext' |
| 13522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13523 | (eval $ac_try) 2>&5 |
| 13524 | ac_status=$? |
| 13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13526 | (exit $ac_status); }; }; then |
| 13527 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13528 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13529 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13530 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13531 | |
| 13532 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13533 | echo "$as_me: failed program was:" >&5 |
| 13534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13535 | |
| 13536 | echo "$as_me:$LINENO: result: no" >&5 |
| 13537 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13538 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13540 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13541 | echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 13542 | 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] | 13543 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13544 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13545 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13546 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13547 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13548 | cat >conftest.$ac_ext <<_ACEOF |
| 13549 | /* confdefs.h. */ |
| 13550 | _ACEOF |
| 13551 | cat confdefs.h >>conftest.$ac_ext |
| 13552 | cat >>conftest.$ac_ext <<_ACEOF |
| 13553 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13554 | #include <sys/types.h> |
| 13555 | #include <sys/stat.h> |
| 13556 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13557 | _ACEOF |
| 13558 | rm -f conftest$ac_exeext |
| 13559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13560 | (eval $ac_link) 2>&5 |
| 13561 | ac_status=$? |
| 13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13563 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13565 | (eval $ac_try) 2>&5 |
| 13566 | ac_status=$? |
| 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13568 | (exit $ac_status); }; }; then |
| 13569 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13570 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13571 | #define STAT_IGNORES_SLASH 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13572 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13573 | |
| 13574 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13575 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13576 | echo "$as_me: failed program was:" >&5 |
| 13577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13578 | |
| 13579 | ( exit $ac_status ) |
| 13580 | echo "$as_me:$LINENO: result: no" >&5 |
| 13581 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13582 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13583 | 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] | 13584 | fi |
| 13585 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13586 | echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 13587 | echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13588 | save_LIBS="$LIBS" |
| 13589 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13590 | cat >conftest.$ac_ext <<_ACEOF |
| 13591 | /* confdefs.h. */ |
| 13592 | _ACEOF |
| 13593 | cat confdefs.h >>conftest.$ac_ext |
| 13594 | cat >>conftest.$ac_ext <<_ACEOF |
| 13595 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13596 | |
| 13597 | #ifdef HAVE_ICONV_H |
| 13598 | # include <iconv.h> |
| 13599 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13600 | |
| 13601 | int |
| 13602 | main () |
| 13603 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13604 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13605 | ; |
| 13606 | return 0; |
| 13607 | } |
| 13608 | _ACEOF |
| 13609 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13611 | (eval $ac_link) 2>conftest.er1 |
| 13612 | ac_status=$? |
| 13613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13614 | rm -f conftest.er1 |
| 13615 | cat conftest.err >&5 |
| 13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13617 | (exit $ac_status); } && |
| 13618 | { ac_try='test -z "$ac_c_werror_flag" |
| 13619 | || test ! -s conftest.err' |
| 13620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13621 | (eval $ac_try) 2>&5 |
| 13622 | ac_status=$? |
| 13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13624 | (exit $ac_status); }; } && |
| 13625 | { ac_try='test -s conftest$ac_exeext' |
| 13626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13627 | (eval $ac_try) 2>&5 |
| 13628 | ac_status=$? |
| 13629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13630 | (exit $ac_status); }; }; then |
| 13631 | echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 13632 | echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13633 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13634 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13635 | |
| 13636 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13637 | echo "$as_me: failed program was:" >&5 |
| 13638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13639 | |
| 13640 | LIBS="$save_LIBS" |
| 13641 | cat >conftest.$ac_ext <<_ACEOF |
| 13642 | /* confdefs.h. */ |
| 13643 | _ACEOF |
| 13644 | cat confdefs.h >>conftest.$ac_ext |
| 13645 | cat >>conftest.$ac_ext <<_ACEOF |
| 13646 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13647 | |
| 13648 | #ifdef HAVE_ICONV_H |
| 13649 | # include <iconv.h> |
| 13650 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13651 | |
| 13652 | int |
| 13653 | main () |
| 13654 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13655 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13656 | ; |
| 13657 | return 0; |
| 13658 | } |
| 13659 | _ACEOF |
| 13660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13662 | (eval $ac_link) 2>conftest.er1 |
| 13663 | ac_status=$? |
| 13664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13665 | rm -f conftest.er1 |
| 13666 | cat conftest.err >&5 |
| 13667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13668 | (exit $ac_status); } && |
| 13669 | { ac_try='test -z "$ac_c_werror_flag" |
| 13670 | || test ! -s conftest.err' |
| 13671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13672 | (eval $ac_try) 2>&5 |
| 13673 | ac_status=$? |
| 13674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13675 | (exit $ac_status); }; } && |
| 13676 | { ac_try='test -s conftest$ac_exeext' |
| 13677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13678 | (eval $ac_try) 2>&5 |
| 13679 | ac_status=$? |
| 13680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13681 | (exit $ac_status); }; }; then |
| 13682 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13683 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13684 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13685 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13686 | |
| 13687 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13688 | echo "$as_me: failed program was:" >&5 |
| 13689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13690 | |
| 13691 | echo "$as_me:$LINENO: result: no" >&5 |
| 13692 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13693 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13694 | rm -f conftest.err conftest.$ac_objext \ |
| 13695 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13696 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13697 | rm -f conftest.err conftest.$ac_objext \ |
| 13698 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13699 | |
| 13700 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13701 | echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 13702 | echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 |
| 13703 | cat >conftest.$ac_ext <<_ACEOF |
| 13704 | /* confdefs.h. */ |
| 13705 | _ACEOF |
| 13706 | cat confdefs.h >>conftest.$ac_ext |
| 13707 | cat >>conftest.$ac_ext <<_ACEOF |
| 13708 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13709 | |
| 13710 | #ifdef HAVE_LANGINFO_H |
| 13711 | # include <langinfo.h> |
| 13712 | #endif |
| 13713 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13714 | int |
| 13715 | main () |
| 13716 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13717 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13718 | ; |
| 13719 | return 0; |
| 13720 | } |
| 13721 | _ACEOF |
| 13722 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13724 | (eval $ac_link) 2>conftest.er1 |
| 13725 | ac_status=$? |
| 13726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13727 | rm -f conftest.er1 |
| 13728 | cat conftest.err >&5 |
| 13729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13730 | (exit $ac_status); } && |
| 13731 | { ac_try='test -z "$ac_c_werror_flag" |
| 13732 | || test ! -s conftest.err' |
| 13733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13734 | (eval $ac_try) 2>&5 |
| 13735 | ac_status=$? |
| 13736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13737 | (exit $ac_status); }; } && |
| 13738 | { ac_try='test -s conftest$ac_exeext' |
| 13739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13740 | (eval $ac_try) 2>&5 |
| 13741 | ac_status=$? |
| 13742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13743 | (exit $ac_status); }; }; then |
| 13744 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13745 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13746 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13747 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13748 | |
| 13749 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13750 | echo "$as_me: failed program was:" >&5 |
| 13751 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13752 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13753 | echo "$as_me:$LINENO: result: no" >&5 |
| 13754 | echo "${ECHO_T}no" >&6 |
| 13755 | fi |
| 13756 | rm -f conftest.err conftest.$ac_objext \ |
| 13757 | conftest$ac_exeext conftest.$ac_ext |
| 13758 | |
| 13759 | echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 13760 | echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13761 | # Check whether --enable-acl or --disable-acl was given. |
| 13762 | if test "${enable_acl+set}" = set; then |
| 13763 | enableval="$enable_acl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13764 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13765 | else |
| 13766 | enable_acl="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13767 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13768 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13769 | echo "$as_me:$LINENO: result: no" >&5 |
| 13770 | echo "${ECHO_T}no" >&6 |
| 13771 | echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 13772 | echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 |
| 13773 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
| 13774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13775 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13776 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13777 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13778 | cat >conftest.$ac_ext <<_ACEOF |
| 13779 | /* confdefs.h. */ |
| 13780 | _ACEOF |
| 13781 | cat confdefs.h >>conftest.$ac_ext |
| 13782 | cat >>conftest.$ac_ext <<_ACEOF |
| 13783 | /* end confdefs.h. */ |
| 13784 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13785 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13786 | #ifdef __cplusplus |
| 13787 | extern "C" |
| 13788 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13789 | /* 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] | 13790 | builtin and then its argument prototype would still apply. */ |
| 13791 | char acl_get_file (); |
| 13792 | int |
| 13793 | main () |
| 13794 | { |
| 13795 | acl_get_file (); |
| 13796 | ; |
| 13797 | return 0; |
| 13798 | } |
| 13799 | _ACEOF |
| 13800 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13802 | (eval $ac_link) 2>conftest.er1 |
| 13803 | ac_status=$? |
| 13804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13805 | rm -f conftest.er1 |
| 13806 | cat conftest.err >&5 |
| 13807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13808 | (exit $ac_status); } && |
| 13809 | { ac_try='test -z "$ac_c_werror_flag" |
| 13810 | || test ! -s conftest.err' |
| 13811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13812 | (eval $ac_try) 2>&5 |
| 13813 | ac_status=$? |
| 13814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13815 | (exit $ac_status); }; } && |
| 13816 | { ac_try='test -s conftest$ac_exeext' |
| 13817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13818 | (eval $ac_try) 2>&5 |
| 13819 | ac_status=$? |
| 13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13821 | (exit $ac_status); }; }; then |
| 13822 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13823 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13824 | echo "$as_me: failed program was:" >&5 |
| 13825 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13826 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13827 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13828 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13829 | rm -f conftest.err conftest.$ac_objext \ |
| 13830 | conftest$ac_exeext conftest.$ac_ext |
| 13831 | LIBS=$ac_check_lib_save_LIBS |
| 13832 | fi |
| 13833 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 13834 | echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 |
| 13835 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13836 | LIBS="$LIBS -lposix1e" |
| 13837 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13838 | echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 13839 | echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 |
| 13840 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
| 13841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13842 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13843 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13844 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13845 | cat >conftest.$ac_ext <<_ACEOF |
| 13846 | /* confdefs.h. */ |
| 13847 | _ACEOF |
| 13848 | cat confdefs.h >>conftest.$ac_ext |
| 13849 | cat >>conftest.$ac_ext <<_ACEOF |
| 13850 | /* end confdefs.h. */ |
| 13851 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13852 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13853 | #ifdef __cplusplus |
| 13854 | extern "C" |
| 13855 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13856 | /* 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] | 13857 | builtin and then its argument prototype would still apply. */ |
| 13858 | char acl_get_file (); |
| 13859 | int |
| 13860 | main () |
| 13861 | { |
| 13862 | acl_get_file (); |
| 13863 | ; |
| 13864 | return 0; |
| 13865 | } |
| 13866 | _ACEOF |
| 13867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13869 | (eval $ac_link) 2>conftest.er1 |
| 13870 | ac_status=$? |
| 13871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13872 | rm -f conftest.er1 |
| 13873 | cat conftest.err >&5 |
| 13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13875 | (exit $ac_status); } && |
| 13876 | { ac_try='test -z "$ac_c_werror_flag" |
| 13877 | || test ! -s conftest.err' |
| 13878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13879 | (eval $ac_try) 2>&5 |
| 13880 | ac_status=$? |
| 13881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13882 | (exit $ac_status); }; } && |
| 13883 | { ac_try='test -s conftest$ac_exeext' |
| 13884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13885 | (eval $ac_try) 2>&5 |
| 13886 | ac_status=$? |
| 13887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13888 | (exit $ac_status); }; }; then |
| 13889 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13890 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13891 | echo "$as_me: failed program was:" >&5 |
| 13892 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13893 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13894 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13895 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13896 | rm -f conftest.err conftest.$ac_objext \ |
| 13897 | conftest$ac_exeext conftest.$ac_ext |
| 13898 | LIBS=$ac_check_lib_save_LIBS |
| 13899 | fi |
| 13900 | echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 13901 | echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 |
| 13902 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13903 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13904 | echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 13905 | echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 |
| 13906 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
| 13907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13908 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13909 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13910 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13911 | cat >conftest.$ac_ext <<_ACEOF |
| 13912 | /* confdefs.h. */ |
| 13913 | _ACEOF |
| 13914 | cat confdefs.h >>conftest.$ac_ext |
| 13915 | cat >>conftest.$ac_ext <<_ACEOF |
| 13916 | /* end confdefs.h. */ |
| 13917 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13918 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13919 | #ifdef __cplusplus |
| 13920 | extern "C" |
| 13921 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13922 | /* 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] | 13923 | builtin and then its argument prototype would still apply. */ |
| 13924 | char fgetxattr (); |
| 13925 | int |
| 13926 | main () |
| 13927 | { |
| 13928 | fgetxattr (); |
| 13929 | ; |
| 13930 | return 0; |
| 13931 | } |
| 13932 | _ACEOF |
| 13933 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13935 | (eval $ac_link) 2>conftest.er1 |
| 13936 | ac_status=$? |
| 13937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13938 | rm -f conftest.er1 |
| 13939 | cat conftest.err >&5 |
| 13940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13941 | (exit $ac_status); } && |
| 13942 | { ac_try='test -z "$ac_c_werror_flag" |
| 13943 | || test ! -s conftest.err' |
| 13944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13945 | (eval $ac_try) 2>&5 |
| 13946 | ac_status=$? |
| 13947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13948 | (exit $ac_status); }; } && |
| 13949 | { ac_try='test -s conftest$ac_exeext' |
| 13950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13951 | (eval $ac_try) 2>&5 |
| 13952 | ac_status=$? |
| 13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13954 | (exit $ac_status); }; }; then |
| 13955 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13956 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13957 | echo "$as_me: failed program was:" >&5 |
| 13958 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13959 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13960 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13961 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13962 | rm -f conftest.err conftest.$ac_objext \ |
| 13963 | conftest$ac_exeext conftest.$ac_ext |
| 13964 | LIBS=$ac_check_lib_save_LIBS |
| 13965 | fi |
| 13966 | echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 13967 | echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 |
| 13968 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13969 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13970 | fi |
| 13971 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13972 | fi |
| 13973 | |
| 13974 | fi |
| 13975 | |
| 13976 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13977 | echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 13978 | echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 |
| 13979 | cat >conftest.$ac_ext <<_ACEOF |
| 13980 | /* confdefs.h. */ |
| 13981 | _ACEOF |
| 13982 | cat confdefs.h >>conftest.$ac_ext |
| 13983 | cat >>conftest.$ac_ext <<_ACEOF |
| 13984 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13985 | |
| 13986 | #include <sys/types.h> |
| 13987 | #ifdef HAVE_SYS_ACL_H |
| 13988 | # include <sys/acl.h> |
| 13989 | #endif |
| 13990 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13991 | int |
| 13992 | main () |
| 13993 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13994 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 13995 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 13996 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13997 | ; |
| 13998 | return 0; |
| 13999 | } |
| 14000 | _ACEOF |
| 14001 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14003 | (eval $ac_link) 2>conftest.er1 |
| 14004 | ac_status=$? |
| 14005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14006 | rm -f conftest.er1 |
| 14007 | cat conftest.err >&5 |
| 14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14009 | (exit $ac_status); } && |
| 14010 | { ac_try='test -z "$ac_c_werror_flag" |
| 14011 | || test ! -s conftest.err' |
| 14012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14013 | (eval $ac_try) 2>&5 |
| 14014 | ac_status=$? |
| 14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14016 | (exit $ac_status); }; } && |
| 14017 | { ac_try='test -s conftest$ac_exeext' |
| 14018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14019 | (eval $ac_try) 2>&5 |
| 14020 | ac_status=$? |
| 14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14022 | (exit $ac_status); }; }; then |
| 14023 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14024 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14025 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14026 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14027 | |
| 14028 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14029 | echo "$as_me: failed program was:" >&5 |
| 14030 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14031 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14032 | echo "$as_me:$LINENO: result: no" >&5 |
| 14033 | echo "${ECHO_T}no" >&6 |
| 14034 | fi |
| 14035 | rm -f conftest.err conftest.$ac_objext \ |
| 14036 | conftest$ac_exeext conftest.$ac_ext |
| 14037 | |
| 14038 | echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 14039 | echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 |
| 14040 | cat >conftest.$ac_ext <<_ACEOF |
| 14041 | /* confdefs.h. */ |
| 14042 | _ACEOF |
| 14043 | cat confdefs.h >>conftest.$ac_ext |
| 14044 | cat >>conftest.$ac_ext <<_ACEOF |
| 14045 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14046 | |
| 14047 | #ifdef HAVE_SYS_ACL_H |
| 14048 | # include <sys/acl.h> |
| 14049 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14050 | int |
| 14051 | main () |
| 14052 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14053 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14054 | |
| 14055 | ; |
| 14056 | return 0; |
| 14057 | } |
| 14058 | _ACEOF |
| 14059 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14061 | (eval $ac_link) 2>conftest.er1 |
| 14062 | ac_status=$? |
| 14063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14064 | rm -f conftest.er1 |
| 14065 | cat conftest.err >&5 |
| 14066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14067 | (exit $ac_status); } && |
| 14068 | { ac_try='test -z "$ac_c_werror_flag" |
| 14069 | || test ! -s conftest.err' |
| 14070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14071 | (eval $ac_try) 2>&5 |
| 14072 | ac_status=$? |
| 14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14074 | (exit $ac_status); }; } && |
| 14075 | { ac_try='test -s conftest$ac_exeext' |
| 14076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14077 | (eval $ac_try) 2>&5 |
| 14078 | ac_status=$? |
| 14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14080 | (exit $ac_status); }; }; then |
| 14081 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14082 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14083 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14084 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14085 | |
| 14086 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14087 | echo "$as_me: failed program was:" >&5 |
| 14088 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14089 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14090 | echo "$as_me:$LINENO: result: no" >&5 |
| 14091 | echo "${ECHO_T}no" >&6 |
| 14092 | fi |
| 14093 | rm -f conftest.err conftest.$ac_objext \ |
| 14094 | conftest$ac_exeext conftest.$ac_ext |
| 14095 | |
| 14096 | echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 14097 | echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 |
| 14098 | cat >conftest.$ac_ext <<_ACEOF |
| 14099 | /* confdefs.h. */ |
| 14100 | _ACEOF |
| 14101 | cat confdefs.h >>conftest.$ac_ext |
| 14102 | cat >>conftest.$ac_ext <<_ACEOF |
| 14103 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14104 | |
| 14105 | #ifdef HAVE_SYS_ACL_H |
| 14106 | # include <sys/acl.h> |
| 14107 | #endif |
| 14108 | #ifdef HAVE_SYS_ACCESS_H |
| 14109 | # include <sys/access.h> |
| 14110 | #endif |
| 14111 | #define _ALL_SOURCE |
| 14112 | |
| 14113 | #include <sys/stat.h> |
| 14114 | |
| 14115 | int aclsize; |
| 14116 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14117 | int |
| 14118 | main () |
| 14119 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14120 | aclsize = sizeof(struct acl); |
| 14121 | aclent = (void *)malloc(aclsize); |
| 14122 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14123 | |
| 14124 | ; |
| 14125 | return 0; |
| 14126 | } |
| 14127 | _ACEOF |
| 14128 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14130 | (eval $ac_link) 2>conftest.er1 |
| 14131 | ac_status=$? |
| 14132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14133 | rm -f conftest.er1 |
| 14134 | cat conftest.err >&5 |
| 14135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14136 | (exit $ac_status); } && |
| 14137 | { ac_try='test -z "$ac_c_werror_flag" |
| 14138 | || test ! -s conftest.err' |
| 14139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14140 | (eval $ac_try) 2>&5 |
| 14141 | ac_status=$? |
| 14142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14143 | (exit $ac_status); }; } && |
| 14144 | { ac_try='test -s conftest$ac_exeext' |
| 14145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14146 | (eval $ac_try) 2>&5 |
| 14147 | ac_status=$? |
| 14148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14149 | (exit $ac_status); }; }; then |
| 14150 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14151 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14152 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14153 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14154 | |
| 14155 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14156 | echo "$as_me: failed program was:" >&5 |
| 14157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14158 | |
| 14159 | echo "$as_me:$LINENO: result: no" >&5 |
| 14160 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14161 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14162 | rm -f conftest.err conftest.$ac_objext \ |
| 14163 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14164 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14165 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14166 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14167 | fi |
| 14168 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14169 | echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 14170 | echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14171 | # Check whether --enable-gpm or --disable-gpm was given. |
| 14172 | if test "${enable_gpm+set}" = set; then |
| 14173 | enableval="$enable_gpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14174 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14175 | else |
| 14176 | enable_gpm="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14177 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14178 | |
| 14179 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14180 | echo "$as_me:$LINENO: result: no" >&5 |
| 14181 | echo "${ECHO_T}no" >&6 |
| 14182 | echo "$as_me:$LINENO: checking for gpm" >&5 |
| 14183 | echo $ECHO_N "checking for gpm... $ECHO_C" >&6 |
| 14184 | if test "${vi_cv_have_gpm+set}" = set; then |
| 14185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14186 | else |
| 14187 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14188 | cat >conftest.$ac_ext <<_ACEOF |
| 14189 | /* confdefs.h. */ |
| 14190 | _ACEOF |
| 14191 | cat confdefs.h >>conftest.$ac_ext |
| 14192 | cat >>conftest.$ac_ext <<_ACEOF |
| 14193 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14194 | #include <gpm.h> |
| 14195 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14196 | int |
| 14197 | main () |
| 14198 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14199 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14200 | ; |
| 14201 | return 0; |
| 14202 | } |
| 14203 | _ACEOF |
| 14204 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14206 | (eval $ac_link) 2>conftest.er1 |
| 14207 | ac_status=$? |
| 14208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14209 | rm -f conftest.er1 |
| 14210 | cat conftest.err >&5 |
| 14211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14212 | (exit $ac_status); } && |
| 14213 | { ac_try='test -z "$ac_c_werror_flag" |
| 14214 | || test ! -s conftest.err' |
| 14215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14216 | (eval $ac_try) 2>&5 |
| 14217 | ac_status=$? |
| 14218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14219 | (exit $ac_status); }; } && |
| 14220 | { ac_try='test -s conftest$ac_exeext' |
| 14221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14222 | (eval $ac_try) 2>&5 |
| 14223 | ac_status=$? |
| 14224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14225 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14226 | vi_cv_have_gpm=yes |
| 14227 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14228 | echo "$as_me: failed program was:" >&5 |
| 14229 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14230 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14231 | vi_cv_have_gpm=no |
| 14232 | fi |
| 14233 | rm -f conftest.err conftest.$ac_objext \ |
| 14234 | conftest$ac_exeext conftest.$ac_ext |
| 14235 | LIBS="$olibs" |
| 14236 | |
| 14237 | fi |
| 14238 | echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 14239 | echo "${ECHO_T}$vi_cv_have_gpm" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14240 | if test $vi_cv_have_gpm = yes; then |
| 14241 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14242 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14243 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14244 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14245 | |
| 14246 | fi |
| 14247 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14248 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14249 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14250 | fi |
| 14251 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14252 | echo "$as_me:$LINENO: checking for rename" >&5 |
| 14253 | echo $ECHO_N "checking for rename... $ECHO_C" >&6 |
| 14254 | cat >conftest.$ac_ext <<_ACEOF |
| 14255 | /* confdefs.h. */ |
| 14256 | _ACEOF |
| 14257 | cat confdefs.h >>conftest.$ac_ext |
| 14258 | cat >>conftest.$ac_ext <<_ACEOF |
| 14259 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14260 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14261 | int |
| 14262 | main () |
| 14263 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14264 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14265 | ; |
| 14266 | return 0; |
| 14267 | } |
| 14268 | _ACEOF |
| 14269 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14271 | (eval $ac_link) 2>conftest.er1 |
| 14272 | ac_status=$? |
| 14273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14274 | rm -f conftest.er1 |
| 14275 | cat conftest.err >&5 |
| 14276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14277 | (exit $ac_status); } && |
| 14278 | { ac_try='test -z "$ac_c_werror_flag" |
| 14279 | || test ! -s conftest.err' |
| 14280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14281 | (eval $ac_try) 2>&5 |
| 14282 | ac_status=$? |
| 14283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14284 | (exit $ac_status); }; } && |
| 14285 | { ac_try='test -s conftest$ac_exeext' |
| 14286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14287 | (eval $ac_try) 2>&5 |
| 14288 | ac_status=$? |
| 14289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14290 | (exit $ac_status); }; }; then |
| 14291 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14292 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14293 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14294 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14295 | |
| 14296 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14297 | echo "$as_me: failed program was:" >&5 |
| 14298 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14299 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14300 | echo "$as_me:$LINENO: result: no" >&5 |
| 14301 | echo "${ECHO_T}no" >&6 |
| 14302 | fi |
| 14303 | rm -f conftest.err conftest.$ac_objext \ |
| 14304 | conftest$ac_exeext conftest.$ac_ext |
| 14305 | |
| 14306 | echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 14307 | echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 |
| 14308 | cat >conftest.$ac_ext <<_ACEOF |
| 14309 | /* confdefs.h. */ |
| 14310 | _ACEOF |
| 14311 | cat confdefs.h >>conftest.$ac_ext |
| 14312 | cat >>conftest.$ac_ext <<_ACEOF |
| 14313 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14314 | #include <sys/types.h> |
| 14315 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14316 | int |
| 14317 | main () |
| 14318 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14319 | int mib[2], r; |
| 14320 | size_t len; |
| 14321 | |
| 14322 | mib[0] = CTL_HW; |
| 14323 | mib[1] = HW_USERMEM; |
| 14324 | len = sizeof(r); |
| 14325 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14326 | |
| 14327 | ; |
| 14328 | return 0; |
| 14329 | } |
| 14330 | _ACEOF |
| 14331 | rm -f conftest.$ac_objext |
| 14332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14333 | (eval $ac_compile) 2>conftest.er1 |
| 14334 | ac_status=$? |
| 14335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14336 | rm -f conftest.er1 |
| 14337 | cat conftest.err >&5 |
| 14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14339 | (exit $ac_status); } && |
| 14340 | { ac_try='test -z "$ac_c_werror_flag" |
| 14341 | || test ! -s conftest.err' |
| 14342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14343 | (eval $ac_try) 2>&5 |
| 14344 | ac_status=$? |
| 14345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14346 | (exit $ac_status); }; } && |
| 14347 | { ac_try='test -s conftest.$ac_objext' |
| 14348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14349 | (eval $ac_try) 2>&5 |
| 14350 | ac_status=$? |
| 14351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14352 | (exit $ac_status); }; }; then |
| 14353 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14354 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14355 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14356 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14357 | |
| 14358 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14359 | echo "$as_me: failed program was:" >&5 |
| 14360 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14361 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14362 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 14363 | echo "${ECHO_T}not usable" >&6 |
| 14364 | fi |
| 14365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14366 | |
| 14367 | echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 14368 | echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 |
| 14369 | cat >conftest.$ac_ext <<_ACEOF |
| 14370 | /* confdefs.h. */ |
| 14371 | _ACEOF |
| 14372 | cat confdefs.h >>conftest.$ac_ext |
| 14373 | cat >>conftest.$ac_ext <<_ACEOF |
| 14374 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14375 | #include <sys/types.h> |
| 14376 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14377 | int |
| 14378 | main () |
| 14379 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14380 | struct sysinfo sinfo; |
| 14381 | int t; |
| 14382 | |
| 14383 | (void)sysinfo(&sinfo); |
| 14384 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14385 | |
| 14386 | ; |
| 14387 | return 0; |
| 14388 | } |
| 14389 | _ACEOF |
| 14390 | rm -f conftest.$ac_objext |
| 14391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14392 | (eval $ac_compile) 2>conftest.er1 |
| 14393 | ac_status=$? |
| 14394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14395 | rm -f conftest.er1 |
| 14396 | cat conftest.err >&5 |
| 14397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14398 | (exit $ac_status); } && |
| 14399 | { ac_try='test -z "$ac_c_werror_flag" |
| 14400 | || test ! -s conftest.err' |
| 14401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14402 | (eval $ac_try) 2>&5 |
| 14403 | ac_status=$? |
| 14404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14405 | (exit $ac_status); }; } && |
| 14406 | { ac_try='test -s conftest.$ac_objext' |
| 14407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14408 | (eval $ac_try) 2>&5 |
| 14409 | ac_status=$? |
| 14410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14411 | (exit $ac_status); }; }; then |
| 14412 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14413 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14414 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14415 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14416 | |
| 14417 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14418 | echo "$as_me: failed program was:" >&5 |
| 14419 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14420 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14421 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 14422 | echo "${ECHO_T}not usable" >&6 |
| 14423 | fi |
| 14424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14425 | |
| 14426 | echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 14427 | echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 |
| 14428 | cat >conftest.$ac_ext <<_ACEOF |
| 14429 | /* confdefs.h. */ |
| 14430 | _ACEOF |
| 14431 | cat confdefs.h >>conftest.$ac_ext |
| 14432 | cat >>conftest.$ac_ext <<_ACEOF |
| 14433 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14434 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14435 | int |
| 14436 | main () |
| 14437 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14438 | (void)sysconf(_SC_PAGESIZE); |
| 14439 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14440 | |
| 14441 | ; |
| 14442 | return 0; |
| 14443 | } |
| 14444 | _ACEOF |
| 14445 | rm -f conftest.$ac_objext |
| 14446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14447 | (eval $ac_compile) 2>conftest.er1 |
| 14448 | ac_status=$? |
| 14449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14450 | rm -f conftest.er1 |
| 14451 | cat conftest.err >&5 |
| 14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14453 | (exit $ac_status); } && |
| 14454 | { ac_try='test -z "$ac_c_werror_flag" |
| 14455 | || test ! -s conftest.err' |
| 14456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14457 | (eval $ac_try) 2>&5 |
| 14458 | ac_status=$? |
| 14459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14460 | (exit $ac_status); }; } && |
| 14461 | { ac_try='test -s conftest.$ac_objext' |
| 14462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14463 | (eval $ac_try) 2>&5 |
| 14464 | ac_status=$? |
| 14465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14466 | (exit $ac_status); }; }; then |
| 14467 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14468 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14469 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14470 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14471 | |
| 14472 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14473 | echo "$as_me: failed program was:" >&5 |
| 14474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14475 | |
| 14476 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 14477 | echo "${ECHO_T}not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14478 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14480 | |
| 14481 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14482 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 14483 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 14484 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 14485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14486 | else |
| 14487 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14488 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 14489 | echo "$as_me: error: failed to compile test program" >&2;} |
| 14490 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14491 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14492 | cat >conftest.$ac_ext <<_ACEOF |
| 14493 | /* confdefs.h. */ |
| 14494 | _ACEOF |
| 14495 | cat confdefs.h >>conftest.$ac_ext |
| 14496 | cat >>conftest.$ac_ext <<_ACEOF |
| 14497 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14498 | #include <stdio.h> |
| 14499 | main() |
| 14500 | { |
| 14501 | FILE *f=fopen("conftestval", "w"); |
| 14502 | if (!f) exit(1); |
| 14503 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 14504 | exit(0); |
| 14505 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14506 | _ACEOF |
| 14507 | rm -f conftest$ac_exeext |
| 14508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14509 | (eval $ac_link) 2>&5 |
| 14510 | ac_status=$? |
| 14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14514 | (eval $ac_try) 2>&5 |
| 14515 | ac_status=$? |
| 14516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14517 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14518 | ac_cv_sizeof_int=`cat conftestval` |
| 14519 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14520 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14521 | echo "$as_me: failed program was:" >&5 |
| 14522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14523 | |
| 14524 | ( exit $ac_status ) |
| 14525 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14526 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14527 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14528 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14529 | fi |
| 14530 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14531 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 14532 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 14533 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14534 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14535 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14536 | |
| 14537 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14538 | echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
| 14539 | 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] | 14540 | bcopy_test_prog=' |
| 14541 | main() { |
| 14542 | char buf[10]; |
| 14543 | strcpy(buf, "abcdefghi"); |
| 14544 | mch_memmove(buf, buf + 2, 3); |
| 14545 | if (strncmp(buf, "ababcf", 6)) |
| 14546 | exit(1); |
| 14547 | strcpy(buf, "abcdefghi"); |
| 14548 | mch_memmove(buf + 2, buf, 3); |
| 14549 | if (strncmp(buf, "cdedef", 6)) |
| 14550 | exit(1); |
| 14551 | exit(0); /* libc version works properly. */ |
| 14552 | }' |
| 14553 | |
| 14554 | |
| 14555 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14556 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 14557 | echo "$as_me: error: failed to compile test program" >&2;} |
| 14558 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14559 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14560 | cat >conftest.$ac_ext <<_ACEOF |
| 14561 | /* confdefs.h. */ |
| 14562 | _ACEOF |
| 14563 | cat confdefs.h >>conftest.$ac_ext |
| 14564 | cat >>conftest.$ac_ext <<_ACEOF |
| 14565 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14566 | #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] | 14567 | _ACEOF |
| 14568 | rm -f conftest$ac_exeext |
| 14569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14570 | (eval $ac_link) 2>&5 |
| 14571 | ac_status=$? |
| 14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14573 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14575 | (eval $ac_try) 2>&5 |
| 14576 | ac_status=$? |
| 14577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14578 | (exit $ac_status); }; }; then |
| 14579 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14580 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14581 | _ACEOF |
| 14582 | echo "$as_me:$LINENO: result: memmove does" >&5 |
| 14583 | echo "${ECHO_T}memmove does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14584 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14585 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14586 | echo "$as_me: failed program was:" >&5 |
| 14587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14588 | |
| 14589 | ( exit $ac_status ) |
| 14590 | if test "$cross_compiling" = yes; then |
| 14591 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 14592 | echo "$as_me: error: failed to compile test program" >&2;} |
| 14593 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14594 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14595 | cat >conftest.$ac_ext <<_ACEOF |
| 14596 | /* confdefs.h. */ |
| 14597 | _ACEOF |
| 14598 | cat confdefs.h >>conftest.$ac_ext |
| 14599 | cat >>conftest.$ac_ext <<_ACEOF |
| 14600 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14601 | #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] | 14602 | _ACEOF |
| 14603 | rm -f conftest$ac_exeext |
| 14604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14605 | (eval $ac_link) 2>&5 |
| 14606 | ac_status=$? |
| 14607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14610 | (eval $ac_try) 2>&5 |
| 14611 | ac_status=$? |
| 14612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14613 | (exit $ac_status); }; }; then |
| 14614 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14615 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14616 | _ACEOF |
| 14617 | echo "$as_me:$LINENO: result: bcopy does" >&5 |
| 14618 | echo "${ECHO_T}bcopy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14619 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14620 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14621 | echo "$as_me: failed program was:" >&5 |
| 14622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14623 | |
| 14624 | ( exit $ac_status ) |
| 14625 | if test "$cross_compiling" = yes; then |
| 14626 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 14627 | echo "$as_me: error: failed to compile test program" >&2;} |
| 14628 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14629 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14630 | cat >conftest.$ac_ext <<_ACEOF |
| 14631 | /* confdefs.h. */ |
| 14632 | _ACEOF |
| 14633 | cat confdefs.h >>conftest.$ac_ext |
| 14634 | cat >>conftest.$ac_ext <<_ACEOF |
| 14635 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14636 | #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] | 14637 | _ACEOF |
| 14638 | rm -f conftest$ac_exeext |
| 14639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14640 | (eval $ac_link) 2>&5 |
| 14641 | ac_status=$? |
| 14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14643 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14650 | #define USEMEMCPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14651 | _ACEOF |
| 14652 | echo "$as_me:$LINENO: result: memcpy does" >&5 |
| 14653 | echo "${ECHO_T}memcpy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14654 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14655 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14656 | echo "$as_me: failed program was:" >&5 |
| 14657 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14658 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14659 | ( exit $ac_status ) |
| 14660 | echo "$as_me:$LINENO: result: no" >&5 |
| 14661 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14662 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14663 | 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] | 14664 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14665 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14666 | 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] | 14667 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14668 | fi |
| 14669 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14670 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14671 | |
| 14672 | |
| 14673 | if test "$enable_multibyte" = "yes"; then |
| 14674 | cflags_save=$CFLAGS |
| 14675 | ldflags_save=$LDFLAGS |
| 14676 | if test -n "$x_includes" ; then |
| 14677 | CFLAGS="$CFLAGS -I$x_includes" |
| 14678 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14679 | echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 14680 | echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 |
| 14681 | cat >conftest.$ac_ext <<_ACEOF |
| 14682 | /* confdefs.h. */ |
| 14683 | _ACEOF |
| 14684 | cat confdefs.h >>conftest.$ac_ext |
| 14685 | cat >>conftest.$ac_ext <<_ACEOF |
| 14686 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14687 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14688 | int |
| 14689 | main () |
| 14690 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14691 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14692 | ; |
| 14693 | return 0; |
| 14694 | } |
| 14695 | _ACEOF |
| 14696 | rm -f conftest.$ac_objext |
| 14697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14698 | (eval $ac_compile) 2>conftest.er1 |
| 14699 | ac_status=$? |
| 14700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14701 | rm -f conftest.er1 |
| 14702 | cat conftest.err >&5 |
| 14703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14704 | (exit $ac_status); } && |
| 14705 | { ac_try='test -z "$ac_c_werror_flag" |
| 14706 | || test ! -s conftest.err' |
| 14707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14708 | (eval $ac_try) 2>&5 |
| 14709 | ac_status=$? |
| 14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14711 | (exit $ac_status); }; } && |
| 14712 | { ac_try='test -s conftest.$ac_objext' |
| 14713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14714 | (eval $ac_try) 2>&5 |
| 14715 | ac_status=$? |
| 14716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14717 | (exit $ac_status); }; }; then |
| 14718 | cat >conftest.$ac_ext <<_ACEOF |
| 14719 | /* confdefs.h. */ |
| 14720 | _ACEOF |
| 14721 | cat confdefs.h >>conftest.$ac_ext |
| 14722 | cat >>conftest.$ac_ext <<_ACEOF |
| 14723 | /* end confdefs.h. */ |
| 14724 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14725 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14726 | #ifdef __cplusplus |
| 14727 | extern "C" |
| 14728 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14729 | /* 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] | 14730 | builtin and then its argument prototype would still apply. */ |
| 14731 | char _Xsetlocale (); |
| 14732 | int |
| 14733 | main () |
| 14734 | { |
| 14735 | _Xsetlocale (); |
| 14736 | ; |
| 14737 | return 0; |
| 14738 | } |
| 14739 | _ACEOF |
| 14740 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14742 | (eval $ac_link) 2>conftest.er1 |
| 14743 | ac_status=$? |
| 14744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14745 | rm -f conftest.er1 |
| 14746 | cat conftest.err >&5 |
| 14747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14748 | (exit $ac_status); } && |
| 14749 | { ac_try='test -z "$ac_c_werror_flag" |
| 14750 | || test ! -s conftest.err' |
| 14751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14752 | (eval $ac_try) 2>&5 |
| 14753 | ac_status=$? |
| 14754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14755 | (exit $ac_status); }; } && |
| 14756 | { ac_try='test -s conftest$ac_exeext' |
| 14757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14758 | (eval $ac_try) 2>&5 |
| 14759 | ac_status=$? |
| 14760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14761 | (exit $ac_status); }; }; then |
| 14762 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14763 | echo "${ECHO_T}yes" >&6 |
| 14764 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14765 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14766 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14767 | |
| 14768 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14769 | echo "$as_me: failed program was:" >&5 |
| 14770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14771 | |
| 14772 | echo "$as_me:$LINENO: result: no" >&5 |
| 14773 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14774 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14775 | rm -f conftest.err conftest.$ac_objext \ |
| 14776 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14777 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14778 | echo "$as_me: failed program was:" >&5 |
| 14779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14780 | |
| 14781 | echo "$as_me:$LINENO: result: no" >&5 |
| 14782 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14783 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14785 | fi |
| 14786 | CFLAGS=$cflags_save |
| 14787 | LDFLAGS=$ldflags_save |
| 14788 | fi |
| 14789 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14790 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 14791 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 14792 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 14793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14794 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14795 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14796 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14797 | cat >conftest.$ac_ext <<_ACEOF |
| 14798 | /* confdefs.h. */ |
| 14799 | _ACEOF |
| 14800 | cat confdefs.h >>conftest.$ac_ext |
| 14801 | cat >>conftest.$ac_ext <<_ACEOF |
| 14802 | /* end confdefs.h. */ |
| 14803 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14804 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14805 | #ifdef __cplusplus |
| 14806 | extern "C" |
| 14807 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14808 | /* 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] | 14809 | builtin and then its argument prototype would still apply. */ |
| 14810 | char _xpg4_setrunelocale (); |
| 14811 | int |
| 14812 | main () |
| 14813 | { |
| 14814 | _xpg4_setrunelocale (); |
| 14815 | ; |
| 14816 | return 0; |
| 14817 | } |
| 14818 | _ACEOF |
| 14819 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14821 | (eval $ac_link) 2>conftest.er1 |
| 14822 | ac_status=$? |
| 14823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14824 | rm -f conftest.er1 |
| 14825 | cat conftest.err >&5 |
| 14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14827 | (exit $ac_status); } && |
| 14828 | { ac_try='test -z "$ac_c_werror_flag" |
| 14829 | || test ! -s conftest.err' |
| 14830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14831 | (eval $ac_try) 2>&5 |
| 14832 | ac_status=$? |
| 14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14834 | (exit $ac_status); }; } && |
| 14835 | { ac_try='test -s conftest$ac_exeext' |
| 14836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14837 | (eval $ac_try) 2>&5 |
| 14838 | ac_status=$? |
| 14839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14840 | (exit $ac_status); }; }; then |
| 14841 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14842 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14843 | echo "$as_me: failed program was:" >&5 |
| 14844 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14845 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14846 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14847 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14848 | rm -f conftest.err conftest.$ac_objext \ |
| 14849 | conftest$ac_exeext conftest.$ac_ext |
| 14850 | LIBS=$ac_check_lib_save_LIBS |
| 14851 | fi |
| 14852 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 14853 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 14854 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14855 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14856 | fi |
| 14857 | |
| 14858 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14859 | echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 14860 | echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14861 | test -f tags && mv tags tags.save |
| 14862 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | 78984f5 | 2005-08-01 07:19:10 +0000 | [diff] [blame] | 14863 | TAGPRG="ctags -I INIT+" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14864 | else |
| 14865 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 14866 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 14867 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 14868 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 14869 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 14870 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 14871 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 14872 | fi |
| 14873 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14874 | echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 14875 | echo "${ECHO_T}$TAGPRG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14876 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14877 | echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 14878 | 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] | 14879 | MANDEF="man" |
| 14880 | (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14881 | echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 14882 | echo "${ECHO_T}$MANDEF" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14883 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14884 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14885 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14886 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14887 | |
| 14888 | fi |
| 14889 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14890 | echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 14891 | echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14892 | # Check whether --enable-nls or --disable-nls was given. |
| 14893 | if test "${enable_nls+set}" = set; then |
| 14894 | enableval="$enable_nls" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14895 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14896 | else |
| 14897 | enable_nls="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14898 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14899 | |
| 14900 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14901 | echo "$as_me:$LINENO: result: no" >&5 |
| 14902 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14903 | |
| 14904 | INSTALL_LANGS=install-languages |
| 14905 | |
| 14906 | INSTALL_TOOL_LANGS=install-tool-languages |
| 14907 | |
| 14908 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14909 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 14910 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14911 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14913 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
| 14914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14915 | else |
| 14916 | if test -n "$MSGFMT"; then |
| 14917 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 14918 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14920 | for as_dir in $PATH |
| 14921 | do |
| 14922 | IFS=$as_save_IFS |
| 14923 | test -z "$as_dir" && as_dir=. |
| 14924 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14926 | ac_cv_prog_MSGFMT="msgfmt" |
| 14927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14928 | break 2 |
| 14929 | fi |
| 14930 | done |
| 14931 | done |
| 14932 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14933 | fi |
| 14934 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14935 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14936 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14937 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 14938 | echo "${ECHO_T}$MSGFMT" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14939 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14940 | echo "$as_me:$LINENO: result: no" >&5 |
| 14941 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14942 | fi |
| 14943 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14944 | echo "$as_me:$LINENO: checking for NLS" >&5 |
| 14945 | echo $ECHO_N "checking for NLS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14946 | if test -f po/Makefile; then |
| 14947 | have_gettext="no" |
| 14948 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14949 | cat >conftest.$ac_ext <<_ACEOF |
| 14950 | /* confdefs.h. */ |
| 14951 | _ACEOF |
| 14952 | cat confdefs.h >>conftest.$ac_ext |
| 14953 | cat >>conftest.$ac_ext <<_ACEOF |
| 14954 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14955 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14956 | int |
| 14957 | main () |
| 14958 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14959 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14960 | ; |
| 14961 | return 0; |
| 14962 | } |
| 14963 | _ACEOF |
| 14964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14966 | (eval $ac_link) 2>conftest.er1 |
| 14967 | ac_status=$? |
| 14968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14969 | rm -f conftest.er1 |
| 14970 | cat conftest.err >&5 |
| 14971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14972 | (exit $ac_status); } && |
| 14973 | { ac_try='test -z "$ac_c_werror_flag" |
| 14974 | || test ! -s conftest.err' |
| 14975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14976 | (eval $ac_try) 2>&5 |
| 14977 | ac_status=$? |
| 14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14979 | (exit $ac_status); }; } && |
| 14980 | { ac_try='test -s conftest$ac_exeext' |
| 14981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14982 | (eval $ac_try) 2>&5 |
| 14983 | ac_status=$? |
| 14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14985 | (exit $ac_status); }; }; then |
| 14986 | echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 14987 | echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14988 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14989 | echo "$as_me: failed program was:" >&5 |
| 14990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14991 | |
| 14992 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14993 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14994 | cat >conftest.$ac_ext <<_ACEOF |
| 14995 | /* confdefs.h. */ |
| 14996 | _ACEOF |
| 14997 | cat confdefs.h >>conftest.$ac_ext |
| 14998 | cat >>conftest.$ac_ext <<_ACEOF |
| 14999 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15000 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15001 | int |
| 15002 | main () |
| 15003 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15004 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15005 | ; |
| 15006 | return 0; |
| 15007 | } |
| 15008 | _ACEOF |
| 15009 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15011 | (eval $ac_link) 2>conftest.er1 |
| 15012 | ac_status=$? |
| 15013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15014 | rm -f conftest.er1 |
| 15015 | cat conftest.err >&5 |
| 15016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15017 | (exit $ac_status); } && |
| 15018 | { ac_try='test -z "$ac_c_werror_flag" |
| 15019 | || test ! -s conftest.err' |
| 15020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15021 | (eval $ac_try) 2>&5 |
| 15022 | ac_status=$? |
| 15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15024 | (exit $ac_status); }; } && |
| 15025 | { ac_try='test -s conftest$ac_exeext' |
| 15026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15027 | (eval $ac_try) 2>&5 |
| 15028 | ac_status=$? |
| 15029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15030 | (exit $ac_status); }; }; then |
| 15031 | echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 15032 | echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15033 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15034 | echo "$as_me: failed program was:" >&5 |
| 15035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15036 | |
| 15037 | echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 15038 | echo "${ECHO_T}gettext() doesn't work" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15039 | LIBS=$olibs |
| 15040 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15041 | rm -f conftest.err conftest.$ac_objext \ |
| 15042 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15043 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15044 | rm -f conftest.err conftest.$ac_objext \ |
| 15045 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15046 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15047 | echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 15048 | echo "${ECHO_T}msgfmt not found - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15049 | fi |
| 15050 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15051 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15052 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15053 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15054 | |
| 15055 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15056 | |
| 15057 | |
| 15058 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15059 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15060 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15061 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15062 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15063 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15065 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15066 | cat >conftest.$ac_ext <<_ACEOF |
| 15067 | /* confdefs.h. */ |
| 15068 | _ACEOF |
| 15069 | cat confdefs.h >>conftest.$ac_ext |
| 15070 | cat >>conftest.$ac_ext <<_ACEOF |
| 15071 | /* end confdefs.h. */ |
| 15072 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15073 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15074 | #define $ac_func innocuous_$ac_func |
| 15075 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15076 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15077 | which can conflict with char $ac_func (); below. |
| 15078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15079 | <limits.h> exists even on freestanding compilers. */ |
| 15080 | |
| 15081 | #ifdef __STDC__ |
| 15082 | # include <limits.h> |
| 15083 | #else |
| 15084 | # include <assert.h> |
| 15085 | #endif |
| 15086 | |
| 15087 | #undef $ac_func |
| 15088 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15089 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15090 | #ifdef __cplusplus |
| 15091 | extern "C" |
| 15092 | { |
| 15093 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15094 | /* 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] | 15095 | builtin and then its argument prototype would still apply. */ |
| 15096 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15097 | /* The GNU C library defines this for functions which it implements |
| 15098 | to always fail with ENOSYS. Some functions are actually named |
| 15099 | something starting with __ and the normal name is an alias. */ |
| 15100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15101 | choke me |
| 15102 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15103 | char (*f) () = $ac_func; |
| 15104 | #endif |
| 15105 | #ifdef __cplusplus |
| 15106 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15107 | #endif |
| 15108 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15109 | int |
| 15110 | main () |
| 15111 | { |
| 15112 | return f != $ac_func; |
| 15113 | ; |
| 15114 | return 0; |
| 15115 | } |
| 15116 | _ACEOF |
| 15117 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15119 | (eval $ac_link) 2>conftest.er1 |
| 15120 | ac_status=$? |
| 15121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15122 | rm -f conftest.er1 |
| 15123 | cat conftest.err >&5 |
| 15124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15125 | (exit $ac_status); } && |
| 15126 | { ac_try='test -z "$ac_c_werror_flag" |
| 15127 | || test ! -s conftest.err' |
| 15128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15129 | (eval $ac_try) 2>&5 |
| 15130 | ac_status=$? |
| 15131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15132 | (exit $ac_status); }; } && |
| 15133 | { ac_try='test -s conftest$ac_exeext' |
| 15134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15135 | (eval $ac_try) 2>&5 |
| 15136 | ac_status=$? |
| 15137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15138 | (exit $ac_status); }; }; then |
| 15139 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15140 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15141 | echo "$as_me: failed program was:" >&5 |
| 15142 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15143 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15144 | eval "$as_ac_var=no" |
| 15145 | fi |
| 15146 | rm -f conftest.err conftest.$ac_objext \ |
| 15147 | conftest$ac_exeext conftest.$ac_ext |
| 15148 | fi |
| 15149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15150 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15151 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15152 | cat >>confdefs.h <<_ACEOF |
| 15153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15154 | _ACEOF |
| 15155 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15156 | fi |
| 15157 | done |
| 15158 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15159 | echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 15160 | echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 |
| 15161 | cat >conftest.$ac_ext <<_ACEOF |
| 15162 | /* confdefs.h. */ |
| 15163 | _ACEOF |
| 15164 | cat confdefs.h >>conftest.$ac_ext |
| 15165 | cat >>conftest.$ac_ext <<_ACEOF |
| 15166 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15167 | #include <libintl.h> |
| 15168 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15169 | int |
| 15170 | main () |
| 15171 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15172 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15173 | ; |
| 15174 | return 0; |
| 15175 | } |
| 15176 | _ACEOF |
| 15177 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15179 | (eval $ac_link) 2>conftest.er1 |
| 15180 | ac_status=$? |
| 15181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15182 | rm -f conftest.er1 |
| 15183 | cat conftest.err >&5 |
| 15184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15185 | (exit $ac_status); } && |
| 15186 | { ac_try='test -z "$ac_c_werror_flag" |
| 15187 | || test ! -s conftest.err' |
| 15188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15189 | (eval $ac_try) 2>&5 |
| 15190 | ac_status=$? |
| 15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15192 | (exit $ac_status); }; } && |
| 15193 | { ac_try='test -s conftest$ac_exeext' |
| 15194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15195 | (eval $ac_try) 2>&5 |
| 15196 | ac_status=$? |
| 15197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15198 | (exit $ac_status); }; }; then |
| 15199 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15200 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15201 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15202 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15203 | |
| 15204 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15205 | echo "$as_me: failed program was:" >&5 |
| 15206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15207 | |
| 15208 | echo "$as_me:$LINENO: result: no" >&5 |
| 15209 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15210 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15211 | rm -f conftest.err conftest.$ac_objext \ |
| 15212 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15213 | fi |
| 15214 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15215 | echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 15216 | echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15217 | fi |
| 15218 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15219 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15220 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15221 | fi |
| 15222 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15223 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 15224 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 15225 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 15226 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 15227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15228 | fi |
| 15229 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 15230 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15231 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15232 | # Is the header compilable? |
| 15233 | echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 15234 | echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
| 15235 | cat >conftest.$ac_ext <<_ACEOF |
| 15236 | /* confdefs.h. */ |
| 15237 | _ACEOF |
| 15238 | cat confdefs.h >>conftest.$ac_ext |
| 15239 | cat >>conftest.$ac_ext <<_ACEOF |
| 15240 | /* end confdefs.h. */ |
| 15241 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15242 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15243 | _ACEOF |
| 15244 | rm -f conftest.$ac_objext |
| 15245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15246 | (eval $ac_compile) 2>conftest.er1 |
| 15247 | ac_status=$? |
| 15248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15249 | rm -f conftest.er1 |
| 15250 | cat conftest.err >&5 |
| 15251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15252 | (exit $ac_status); } && |
| 15253 | { ac_try='test -z "$ac_c_werror_flag" |
| 15254 | || test ! -s conftest.err' |
| 15255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15256 | (eval $ac_try) 2>&5 |
| 15257 | ac_status=$? |
| 15258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15259 | (exit $ac_status); }; } && |
| 15260 | { ac_try='test -s conftest.$ac_objext' |
| 15261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15262 | (eval $ac_try) 2>&5 |
| 15263 | ac_status=$? |
| 15264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15265 | (exit $ac_status); }; }; then |
| 15266 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15267 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15268 | echo "$as_me: failed program was:" >&5 |
| 15269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15270 | |
| 15271 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15272 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15274 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15275 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15276 | |
| 15277 | # Is the header present? |
| 15278 | echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 15279 | echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
| 15280 | cat >conftest.$ac_ext <<_ACEOF |
| 15281 | /* confdefs.h. */ |
| 15282 | _ACEOF |
| 15283 | cat confdefs.h >>conftest.$ac_ext |
| 15284 | cat >>conftest.$ac_ext <<_ACEOF |
| 15285 | /* end confdefs.h. */ |
| 15286 | #include <dlfcn.h> |
| 15287 | _ACEOF |
| 15288 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15289 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15290 | ac_status=$? |
| 15291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15292 | rm -f conftest.er1 |
| 15293 | cat conftest.err >&5 |
| 15294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15295 | (exit $ac_status); } >/dev/null; then |
| 15296 | if test -s conftest.err; then |
| 15297 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15298 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15299 | else |
| 15300 | ac_cpp_err= |
| 15301 | fi |
| 15302 | else |
| 15303 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15304 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15305 | if test -z "$ac_cpp_err"; then |
| 15306 | ac_header_preproc=yes |
| 15307 | else |
| 15308 | echo "$as_me: failed program was:" >&5 |
| 15309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15310 | |
| 15311 | ac_header_preproc=no |
| 15312 | fi |
| 15313 | rm -f conftest.err conftest.$ac_ext |
| 15314 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15315 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15316 | |
| 15317 | # So? What about this header? |
| 15318 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15319 | yes:no: ) |
| 15320 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15321 | echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15322 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 15323 | echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
| 15324 | ac_header_preproc=yes |
| 15325 | ;; |
| 15326 | no:yes:* ) |
| 15327 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 15328 | echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 15329 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 15330 | echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 15331 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 15332 | echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 15333 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15334 | echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15335 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 15336 | echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 15337 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 15338 | echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 15339 | ( |
| 15340 | cat <<\_ASBOX |
| 15341 | ## ------------------------------------------ ## |
| 15342 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15343 | ## ------------------------------------------ ## |
| 15344 | _ASBOX |
| 15345 | ) | |
| 15346 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15347 | ;; |
| 15348 | esac |
| 15349 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 15350 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 15351 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 15352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15353 | else |
| 15354 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 15355 | fi |
| 15356 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 15357 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 15358 | |
| 15359 | fi |
| 15360 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15361 | DLL=dlfcn.h |
| 15362 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15363 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 15364 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 15365 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 15366 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 15367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15368 | fi |
| 15369 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 15370 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15371 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15372 | # Is the header compilable? |
| 15373 | echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 15374 | echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 |
| 15375 | cat >conftest.$ac_ext <<_ACEOF |
| 15376 | /* confdefs.h. */ |
| 15377 | _ACEOF |
| 15378 | cat confdefs.h >>conftest.$ac_ext |
| 15379 | cat >>conftest.$ac_ext <<_ACEOF |
| 15380 | /* end confdefs.h. */ |
| 15381 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15382 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15383 | _ACEOF |
| 15384 | rm -f conftest.$ac_objext |
| 15385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15386 | (eval $ac_compile) 2>conftest.er1 |
| 15387 | ac_status=$? |
| 15388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15389 | rm -f conftest.er1 |
| 15390 | cat conftest.err >&5 |
| 15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15392 | (exit $ac_status); } && |
| 15393 | { ac_try='test -z "$ac_c_werror_flag" |
| 15394 | || test ! -s conftest.err' |
| 15395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15396 | (eval $ac_try) 2>&5 |
| 15397 | ac_status=$? |
| 15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15399 | (exit $ac_status); }; } && |
| 15400 | { ac_try='test -s conftest.$ac_objext' |
| 15401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15402 | (eval $ac_try) 2>&5 |
| 15403 | ac_status=$? |
| 15404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15405 | (exit $ac_status); }; }; then |
| 15406 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15407 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15408 | echo "$as_me: failed program was:" >&5 |
| 15409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15410 | |
| 15411 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15412 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15414 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15415 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15416 | |
| 15417 | # Is the header present? |
| 15418 | echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 15419 | echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 |
| 15420 | cat >conftest.$ac_ext <<_ACEOF |
| 15421 | /* confdefs.h. */ |
| 15422 | _ACEOF |
| 15423 | cat confdefs.h >>conftest.$ac_ext |
| 15424 | cat >>conftest.$ac_ext <<_ACEOF |
| 15425 | /* end confdefs.h. */ |
| 15426 | #include <dl.h> |
| 15427 | _ACEOF |
| 15428 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15429 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15430 | ac_status=$? |
| 15431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15432 | rm -f conftest.er1 |
| 15433 | cat conftest.err >&5 |
| 15434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15435 | (exit $ac_status); } >/dev/null; then |
| 15436 | if test -s conftest.err; then |
| 15437 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15438 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15439 | else |
| 15440 | ac_cpp_err= |
| 15441 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15442 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15443 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15444 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15445 | if test -z "$ac_cpp_err"; then |
| 15446 | ac_header_preproc=yes |
| 15447 | else |
| 15448 | echo "$as_me: failed program was:" >&5 |
| 15449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15450 | |
| 15451 | ac_header_preproc=no |
| 15452 | fi |
| 15453 | rm -f conftest.err conftest.$ac_ext |
| 15454 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15455 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15456 | |
| 15457 | # So? What about this header? |
| 15458 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15459 | yes:no: ) |
| 15460 | { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15461 | echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15462 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 15463 | echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
| 15464 | ac_header_preproc=yes |
| 15465 | ;; |
| 15466 | no:yes:* ) |
| 15467 | { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 15468 | echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 15469 | { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 15470 | echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 15471 | { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 15472 | echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 15473 | { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15474 | echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15475 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 15476 | echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 15477 | { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 15478 | echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 15479 | ( |
| 15480 | cat <<\_ASBOX |
| 15481 | ## ------------------------------------------ ## |
| 15482 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15483 | ## ------------------------------------------ ## |
| 15484 | _ASBOX |
| 15485 | ) | |
| 15486 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15487 | ;; |
| 15488 | esac |
| 15489 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 15490 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 15491 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 15492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15493 | else |
| 15494 | ac_cv_header_dl_h=$ac_header_preproc |
| 15495 | fi |
| 15496 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 15497 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15498 | |
| 15499 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15500 | if test $ac_cv_header_dl_h = yes; then |
| 15501 | DLL=dl.h |
| 15502 | fi |
| 15503 | |
| 15504 | |
| 15505 | fi |
| 15506 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15507 | |
| 15508 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15509 | |
| 15510 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15511 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15512 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15513 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15514 | echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 15515 | echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 |
| 15516 | cat >conftest.$ac_ext <<_ACEOF |
| 15517 | /* confdefs.h. */ |
| 15518 | _ACEOF |
| 15519 | cat confdefs.h >>conftest.$ac_ext |
| 15520 | cat >>conftest.$ac_ext <<_ACEOF |
| 15521 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15522 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15523 | int |
| 15524 | main () |
| 15525 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15526 | |
| 15527 | extern void* dlopen(); |
| 15528 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15529 | |
| 15530 | ; |
| 15531 | return 0; |
| 15532 | } |
| 15533 | _ACEOF |
| 15534 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15536 | (eval $ac_link) 2>conftest.er1 |
| 15537 | ac_status=$? |
| 15538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15539 | rm -f conftest.er1 |
| 15540 | cat conftest.err >&5 |
| 15541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15542 | (exit $ac_status); } && |
| 15543 | { ac_try='test -z "$ac_c_werror_flag" |
| 15544 | || test ! -s conftest.err' |
| 15545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15546 | (eval $ac_try) 2>&5 |
| 15547 | ac_status=$? |
| 15548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15549 | (exit $ac_status); }; } && |
| 15550 | { ac_try='test -s conftest$ac_exeext' |
| 15551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15552 | (eval $ac_try) 2>&5 |
| 15553 | ac_status=$? |
| 15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15555 | (exit $ac_status); }; }; then |
| 15556 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15557 | echo "${ECHO_T}yes" >&6; |
| 15558 | |
| 15559 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15560 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15561 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15562 | |
| 15563 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15564 | echo "$as_me: failed program was:" >&5 |
| 15565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15566 | |
| 15567 | echo "$as_me:$LINENO: result: no" >&5 |
| 15568 | echo "${ECHO_T}no" >&6; |
| 15569 | echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 15570 | echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15571 | olibs=$LIBS |
| 15572 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15573 | cat >conftest.$ac_ext <<_ACEOF |
| 15574 | /* confdefs.h. */ |
| 15575 | _ACEOF |
| 15576 | cat confdefs.h >>conftest.$ac_ext |
| 15577 | cat >>conftest.$ac_ext <<_ACEOF |
| 15578 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15579 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15580 | int |
| 15581 | main () |
| 15582 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15583 | |
| 15584 | extern void* dlopen(); |
| 15585 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15586 | |
| 15587 | ; |
| 15588 | return 0; |
| 15589 | } |
| 15590 | _ACEOF |
| 15591 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15593 | (eval $ac_link) 2>conftest.er1 |
| 15594 | ac_status=$? |
| 15595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15596 | rm -f conftest.er1 |
| 15597 | cat conftest.err >&5 |
| 15598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15599 | (exit $ac_status); } && |
| 15600 | { ac_try='test -z "$ac_c_werror_flag" |
| 15601 | || test ! -s conftest.err' |
| 15602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15603 | (eval $ac_try) 2>&5 |
| 15604 | ac_status=$? |
| 15605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15606 | (exit $ac_status); }; } && |
| 15607 | { ac_try='test -s conftest$ac_exeext' |
| 15608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15609 | (eval $ac_try) 2>&5 |
| 15610 | ac_status=$? |
| 15611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15612 | (exit $ac_status); }; }; then |
| 15613 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15614 | echo "${ECHO_T}yes" >&6; |
| 15615 | |
| 15616 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15617 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15618 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15619 | |
| 15620 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15621 | echo "$as_me: failed program was:" >&5 |
| 15622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15623 | |
| 15624 | echo "$as_me:$LINENO: result: no" >&5 |
| 15625 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15626 | LIBS=$olibs |
| 15627 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15628 | rm -f conftest.err conftest.$ac_objext \ |
| 15629 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15630 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15631 | rm -f conftest.err conftest.$ac_objext \ |
| 15632 | conftest$ac_exeext conftest.$ac_ext |
| 15633 | echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 15634 | echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 |
| 15635 | cat >conftest.$ac_ext <<_ACEOF |
| 15636 | /* confdefs.h. */ |
| 15637 | _ACEOF |
| 15638 | cat confdefs.h >>conftest.$ac_ext |
| 15639 | cat >>conftest.$ac_ext <<_ACEOF |
| 15640 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15641 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15642 | int |
| 15643 | main () |
| 15644 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15645 | |
| 15646 | extern void* dlsym(); |
| 15647 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15648 | |
| 15649 | ; |
| 15650 | return 0; |
| 15651 | } |
| 15652 | _ACEOF |
| 15653 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15655 | (eval $ac_link) 2>conftest.er1 |
| 15656 | ac_status=$? |
| 15657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15658 | rm -f conftest.er1 |
| 15659 | cat conftest.err >&5 |
| 15660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15661 | (exit $ac_status); } && |
| 15662 | { ac_try='test -z "$ac_c_werror_flag" |
| 15663 | || test ! -s conftest.err' |
| 15664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15665 | (eval $ac_try) 2>&5 |
| 15666 | ac_status=$? |
| 15667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15668 | (exit $ac_status); }; } && |
| 15669 | { ac_try='test -s conftest$ac_exeext' |
| 15670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15671 | (eval $ac_try) 2>&5 |
| 15672 | ac_status=$? |
| 15673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15674 | (exit $ac_status); }; }; then |
| 15675 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15676 | echo "${ECHO_T}yes" >&6; |
| 15677 | |
| 15678 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15679 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15680 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15681 | |
| 15682 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15683 | echo "$as_me: failed program was:" >&5 |
| 15684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15685 | |
| 15686 | echo "$as_me:$LINENO: result: no" >&5 |
| 15687 | echo "${ECHO_T}no" >&6; |
| 15688 | echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 15689 | echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15690 | olibs=$LIBS |
| 15691 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15692 | cat >conftest.$ac_ext <<_ACEOF |
| 15693 | /* confdefs.h. */ |
| 15694 | _ACEOF |
| 15695 | cat confdefs.h >>conftest.$ac_ext |
| 15696 | cat >>conftest.$ac_ext <<_ACEOF |
| 15697 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15698 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15699 | int |
| 15700 | main () |
| 15701 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15702 | |
| 15703 | extern void* dlsym(); |
| 15704 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15705 | |
| 15706 | ; |
| 15707 | return 0; |
| 15708 | } |
| 15709 | _ACEOF |
| 15710 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15712 | (eval $ac_link) 2>conftest.er1 |
| 15713 | ac_status=$? |
| 15714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15715 | rm -f conftest.er1 |
| 15716 | cat conftest.err >&5 |
| 15717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15718 | (exit $ac_status); } && |
| 15719 | { ac_try='test -z "$ac_c_werror_flag" |
| 15720 | || test ! -s conftest.err' |
| 15721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15722 | (eval $ac_try) 2>&5 |
| 15723 | ac_status=$? |
| 15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15725 | (exit $ac_status); }; } && |
| 15726 | { ac_try='test -s conftest$ac_exeext' |
| 15727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15728 | (eval $ac_try) 2>&5 |
| 15729 | ac_status=$? |
| 15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15731 | (exit $ac_status); }; }; then |
| 15732 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15733 | echo "${ECHO_T}yes" >&6; |
| 15734 | |
| 15735 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15736 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15737 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15738 | |
| 15739 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15740 | echo "$as_me: failed program was:" >&5 |
| 15741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15742 | |
| 15743 | echo "$as_me:$LINENO: result: no" >&5 |
| 15744 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15745 | LIBS=$olibs |
| 15746 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15747 | rm -f conftest.err conftest.$ac_objext \ |
| 15748 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15749 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15750 | rm -f conftest.err conftest.$ac_objext \ |
| 15751 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15752 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15753 | |
| 15754 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15755 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15756 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15757 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15758 | echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 15759 | echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 |
| 15760 | cat >conftest.$ac_ext <<_ACEOF |
| 15761 | /* confdefs.h. */ |
| 15762 | _ACEOF |
| 15763 | cat confdefs.h >>conftest.$ac_ext |
| 15764 | cat >>conftest.$ac_ext <<_ACEOF |
| 15765 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15766 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15767 | int |
| 15768 | main () |
| 15769 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15770 | |
| 15771 | extern void* shl_load(); |
| 15772 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15773 | |
| 15774 | ; |
| 15775 | return 0; |
| 15776 | } |
| 15777 | _ACEOF |
| 15778 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15780 | (eval $ac_link) 2>conftest.er1 |
| 15781 | ac_status=$? |
| 15782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15783 | rm -f conftest.er1 |
| 15784 | cat conftest.err >&5 |
| 15785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15786 | (exit $ac_status); } && |
| 15787 | { ac_try='test -z "$ac_c_werror_flag" |
| 15788 | || test ! -s conftest.err' |
| 15789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15790 | (eval $ac_try) 2>&5 |
| 15791 | ac_status=$? |
| 15792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15793 | (exit $ac_status); }; } && |
| 15794 | { ac_try='test -s conftest$ac_exeext' |
| 15795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15796 | (eval $ac_try) 2>&5 |
| 15797 | ac_status=$? |
| 15798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15799 | (exit $ac_status); }; }; then |
| 15800 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15801 | echo "${ECHO_T}yes" >&6; |
| 15802 | |
| 15803 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15804 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15805 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15806 | |
| 15807 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15808 | echo "$as_me: failed program was:" >&5 |
| 15809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15810 | |
| 15811 | echo "$as_me:$LINENO: result: no" >&5 |
| 15812 | echo "${ECHO_T}no" >&6; |
| 15813 | echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 15814 | echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15815 | olibs=$LIBS |
| 15816 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15817 | cat >conftest.$ac_ext <<_ACEOF |
| 15818 | /* confdefs.h. */ |
| 15819 | _ACEOF |
| 15820 | cat confdefs.h >>conftest.$ac_ext |
| 15821 | cat >>conftest.$ac_ext <<_ACEOF |
| 15822 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15823 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15824 | int |
| 15825 | main () |
| 15826 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15827 | |
| 15828 | extern void* shl_load(); |
| 15829 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15830 | |
| 15831 | ; |
| 15832 | return 0; |
| 15833 | } |
| 15834 | _ACEOF |
| 15835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15837 | (eval $ac_link) 2>conftest.er1 |
| 15838 | ac_status=$? |
| 15839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15840 | rm -f conftest.er1 |
| 15841 | cat conftest.err >&5 |
| 15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15843 | (exit $ac_status); } && |
| 15844 | { ac_try='test -z "$ac_c_werror_flag" |
| 15845 | || test ! -s conftest.err' |
| 15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15847 | (eval $ac_try) 2>&5 |
| 15848 | ac_status=$? |
| 15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15850 | (exit $ac_status); }; } && |
| 15851 | { ac_try='test -s conftest$ac_exeext' |
| 15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15853 | (eval $ac_try) 2>&5 |
| 15854 | ac_status=$? |
| 15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15856 | (exit $ac_status); }; }; then |
| 15857 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15858 | echo "${ECHO_T}yes" >&6; |
| 15859 | |
| 15860 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15861 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15862 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15863 | |
| 15864 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15865 | echo "$as_me: failed program was:" >&5 |
| 15866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15867 | |
| 15868 | echo "$as_me:$LINENO: result: no" >&5 |
| 15869 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15870 | LIBS=$olibs |
| 15871 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15872 | rm -f conftest.err conftest.$ac_objext \ |
| 15873 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15874 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15875 | rm -f conftest.err conftest.$ac_objext \ |
| 15876 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15877 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15878 | |
| 15879 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15880 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15881 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15883 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15885 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15887 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15889 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15890 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15891 | # Is the header compilable? |
| 15892 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15893 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15894 | cat >conftest.$ac_ext <<_ACEOF |
| 15895 | /* confdefs.h. */ |
| 15896 | _ACEOF |
| 15897 | cat confdefs.h >>conftest.$ac_ext |
| 15898 | cat >>conftest.$ac_ext <<_ACEOF |
| 15899 | /* end confdefs.h. */ |
| 15900 | $ac_includes_default |
| 15901 | #include <$ac_header> |
| 15902 | _ACEOF |
| 15903 | rm -f conftest.$ac_objext |
| 15904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15905 | (eval $ac_compile) 2>conftest.er1 |
| 15906 | ac_status=$? |
| 15907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15908 | rm -f conftest.er1 |
| 15909 | cat conftest.err >&5 |
| 15910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15911 | (exit $ac_status); } && |
| 15912 | { ac_try='test -z "$ac_c_werror_flag" |
| 15913 | || test ! -s conftest.err' |
| 15914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15915 | (eval $ac_try) 2>&5 |
| 15916 | ac_status=$? |
| 15917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15918 | (exit $ac_status); }; } && |
| 15919 | { ac_try='test -s conftest.$ac_objext' |
| 15920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15921 | (eval $ac_try) 2>&5 |
| 15922 | ac_status=$? |
| 15923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15924 | (exit $ac_status); }; }; then |
| 15925 | ac_header_compiler=yes |
| 15926 | else |
| 15927 | echo "$as_me: failed program was:" >&5 |
| 15928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15929 | |
| 15930 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15931 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15933 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15934 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15935 | |
| 15936 | # Is the header present? |
| 15937 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15938 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15939 | cat >conftest.$ac_ext <<_ACEOF |
| 15940 | /* confdefs.h. */ |
| 15941 | _ACEOF |
| 15942 | cat confdefs.h >>conftest.$ac_ext |
| 15943 | cat >>conftest.$ac_ext <<_ACEOF |
| 15944 | /* end confdefs.h. */ |
| 15945 | #include <$ac_header> |
| 15946 | _ACEOF |
| 15947 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15948 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15949 | ac_status=$? |
| 15950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15951 | rm -f conftest.er1 |
| 15952 | cat conftest.err >&5 |
| 15953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15954 | (exit $ac_status); } >/dev/null; then |
| 15955 | if test -s conftest.err; then |
| 15956 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15957 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15958 | else |
| 15959 | ac_cpp_err= |
| 15960 | fi |
| 15961 | else |
| 15962 | ac_cpp_err=yes |
| 15963 | fi |
| 15964 | if test -z "$ac_cpp_err"; then |
| 15965 | ac_header_preproc=yes |
| 15966 | else |
| 15967 | echo "$as_me: failed program was:" >&5 |
| 15968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15969 | |
| 15970 | ac_header_preproc=no |
| 15971 | fi |
| 15972 | rm -f conftest.err conftest.$ac_ext |
| 15973 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15974 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15975 | |
| 15976 | # So? What about this header? |
| 15977 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15978 | yes:no: ) |
| 15979 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15980 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15981 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15982 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15983 | ac_header_preproc=yes |
| 15984 | ;; |
| 15985 | no:yes:* ) |
| 15986 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15987 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15988 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15989 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15990 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15991 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15992 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15993 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15994 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15995 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15996 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15997 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15998 | ( |
| 15999 | cat <<\_ASBOX |
| 16000 | ## ------------------------------------------ ## |
| 16001 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16002 | ## ------------------------------------------ ## |
| 16003 | _ASBOX |
| 16004 | ) | |
| 16005 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16006 | ;; |
| 16007 | esac |
| 16008 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16009 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16010 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16012 | else |
| 16013 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16014 | fi |
| 16015 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16016 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16017 | |
| 16018 | fi |
| 16019 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16020 | cat >>confdefs.h <<_ACEOF |
| 16021 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16022 | _ACEOF |
| 16023 | |
| 16024 | fi |
| 16025 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16026 | done |
| 16027 | |
| 16028 | |
| 16029 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 16030 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 16031 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 16032 | PERL_LIBS="$PERL_LIBS -ldl" |
| 16033 | fi |
| 16034 | fi |
| 16035 | |
| 16036 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 16037 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16038 | echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 16039 | echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16040 | if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ |
| 16041 | || test "x$features" = "xhuge"; then |
| 16042 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16043 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16044 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16045 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16046 | echo "$as_me:$LINENO: result: no" >&5 |
| 16047 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16048 | fi |
| 16049 | fi |
| 16050 | |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16051 | echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 16052 | echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6 |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16053 | DEPEND_CFLAGS_FILTER= |
| 16054 | if test "$GCC" = yes; then |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16055 | gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([1-9]\)\.[0-9.]*.*$/\1/g'` |
| 16056 | if test "$gccmajor" > "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16057 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 16058 | fi |
| 16059 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16060 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
| 16061 | echo "$as_me:$LINENO: result: no" >&5 |
| 16062 | echo "${ECHO_T}no" >&6 |
| 16063 | else |
| 16064 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16065 | echo "${ECHO_T}yes" >&6 |
| 16066 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16067 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16068 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16069 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 16070 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16071 | # This file is a shell script that caches the results of configure |
| 16072 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16073 | # scripts and configure runs, see configure's option --config-cache. |
| 16074 | # It is not useful on other systems. If it contains results you don't |
| 16075 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16076 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16077 | # config.status only pays attention to the cache file if you give it |
| 16078 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16079 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16080 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16081 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16082 | # following values. |
| 16083 | |
| 16084 | _ACEOF |
| 16085 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16086 | # The following way of writing the cache mishandles newlines in values, |
| 16087 | # but we know of no workaround that is simple, portable, and efficient. |
| 16088 | # So, don't put newlines in cache variables' values. |
| 16089 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16090 | # 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] | 16091 | { |
| 16092 | (set) 2>&1 | |
| 16093 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16094 | *ac_space=\ *) |
| 16095 | # `set' does not quote correctly, so add quotes (double-quote |
| 16096 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16097 | sed -n \ |
| 16098 | "s/'/'\\\\''/g; |
| 16099 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16100 | ;; |
| 16101 | *) |
| 16102 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16103 | sed -n \ |
| 16104 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16105 | ;; |
| 16106 | esac; |
| 16107 | } | |
| 16108 | sed ' |
| 16109 | t clear |
| 16110 | : clear |
| 16111 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16112 | t end |
| 16113 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16114 | : end' >>confcache |
| 16115 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16116 | if test -w $cache_file; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16117 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16118 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16119 | else |
| 16120 | echo "not updating unwritable cache $cache_file" |
| 16121 | fi |
| 16122 | fi |
| 16123 | rm -f confcache |
| 16124 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16125 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16126 | # Let make expand exec_prefix. |
| 16127 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16128 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16129 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16130 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16131 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16132 | # (actually we leave an empty line to preserve line numbers). |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16133 | if test "x$srcdir" = x.; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16134 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16135 | s/:*\$(srcdir):*/:/; |
| 16136 | s/:*\${srcdir}:*/:/; |
| 16137 | s/:*@srcdir@:*/:/; |
| 16138 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16139 | s/:*$//; |
| 16140 | s/^[^=]*=[ ]*$//; |
| 16141 | }' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16142 | fi |
| 16143 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16144 | DEFS=-DHAVE_CONFIG_H |
| 16145 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16146 | ac_libobjs= |
| 16147 | ac_ltlibobjs= |
| 16148 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16149 | # 1. Remove the extension, and $U if already installed. |
| 16150 | ac_i=`echo "$ac_i" | |
| 16151 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 16152 | # 2. Add them. |
| 16153 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 16154 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 16155 | done |
| 16156 | LIBOBJS=$ac_libobjs |
| 16157 | |
| 16158 | LTLIBOBJS=$ac_ltlibobjs |
| 16159 | |
| 16160 | |
| 16161 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16162 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16163 | ac_clean_files_save=$ac_clean_files |
| 16164 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16165 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16166 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16167 | cat >$CONFIG_STATUS <<_ACEOF |
| 16168 | #! $SHELL |
| 16169 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16170 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16171 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16172 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16173 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16174 | debug=false |
| 16175 | ac_cs_recheck=false |
| 16176 | ac_cs_silent=false |
| 16177 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16178 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16179 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16180 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16181 | ## --------------------- ## |
| 16182 | ## M4sh Initialization. ## |
| 16183 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16184 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16185 | # Be Bourne compatible |
| 16186 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16187 | emulate sh |
| 16188 | NULLCMD=: |
| 16189 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 16190 | # is contrary to our usage. Disable this feature. |
| 16191 | alias -g '${1+"$@"}'='"$@"' |
| 16192 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16193 | set -o posix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16194 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16195 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16196 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16197 | # Support unset when possible. |
| 16198 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 16199 | as_unset=unset |
| 16200 | else |
| 16201 | as_unset=false |
| 16202 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16203 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16204 | |
| 16205 | # Work around bugs in pre-3.0 UWIN ksh. |
| 16206 | $as_unset ENV MAIL MAILPATH |
| 16207 | PS1='$ ' |
| 16208 | PS2='> ' |
| 16209 | PS4='+ ' |
| 16210 | |
| 16211 | # NLS nuisances. |
| 16212 | for as_var in \ |
| 16213 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 16214 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 16215 | LC_TELEPHONE LC_TIME |
| 16216 | do |
| 16217 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 16218 | eval $as_var=C; export $as_var |
| 16219 | else |
| 16220 | $as_unset $as_var |
| 16221 | fi |
| 16222 | done |
| 16223 | |
| 16224 | # Required to use basename. |
| 16225 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16226 | as_expr=expr |
| 16227 | else |
| 16228 | as_expr=false |
| 16229 | fi |
| 16230 | |
| 16231 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 16232 | as_basename=basename |
| 16233 | else |
| 16234 | as_basename=false |
| 16235 | fi |
| 16236 | |
| 16237 | |
| 16238 | # Name of the executable. |
| 16239 | as_me=`$as_basename "$0" || |
| 16240 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16241 | X"$0" : 'X\(//\)$' \| \ |
| 16242 | X"$0" : 'X\(/\)$' \| \ |
| 16243 | . : '\(.\)' 2>/dev/null || |
| 16244 | echo X/"$0" | |
| 16245 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16246 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16247 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16248 | s/.*/./; q'` |
| 16249 | |
| 16250 | |
| 16251 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16252 | # Avoid depending upon Character Ranges. |
| 16253 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16254 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16255 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16256 | as_cr_digits='0123456789' |
| 16257 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16258 | |
| 16259 | # The user is always right. |
| 16260 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16261 | echo "#! /bin/sh" >conf$$.sh |
| 16262 | echo "exit 0" >>conf$$.sh |
| 16263 | chmod +x conf$$.sh |
| 16264 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 16265 | PATH_SEPARATOR=';' |
| 16266 | else |
| 16267 | PATH_SEPARATOR=: |
| 16268 | fi |
| 16269 | rm -f conf$$.sh |
| 16270 | fi |
| 16271 | |
| 16272 | |
| 16273 | as_lineno_1=$LINENO |
| 16274 | as_lineno_2=$LINENO |
| 16275 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16276 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16277 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16278 | # Find who we are. Look in the path if we contain no path at all |
| 16279 | # relative or not. |
| 16280 | case $0 in |
| 16281 | *[\\/]* ) as_myself=$0 ;; |
| 16282 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16283 | for as_dir in $PATH |
| 16284 | do |
| 16285 | IFS=$as_save_IFS |
| 16286 | test -z "$as_dir" && as_dir=. |
| 16287 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16288 | done |
| 16289 | |
| 16290 | ;; |
| 16291 | esac |
| 16292 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16293 | # in which case we are not to be found in the path. |
| 16294 | if test "x$as_myself" = x; then |
| 16295 | as_myself=$0 |
| 16296 | fi |
| 16297 | if test ! -f "$as_myself"; then |
| 16298 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16299 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16300 | { (exit 1); exit 1; }; } |
| 16301 | fi |
| 16302 | case $CONFIG_SHELL in |
| 16303 | '') |
| 16304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16305 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16306 | do |
| 16307 | IFS=$as_save_IFS |
| 16308 | test -z "$as_dir" && as_dir=. |
| 16309 | for as_base in sh bash ksh sh5; do |
| 16310 | case $as_dir in |
| 16311 | /*) |
| 16312 | if ("$as_dir/$as_base" -c ' |
| 16313 | as_lineno_1=$LINENO |
| 16314 | as_lineno_2=$LINENO |
| 16315 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16316 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16317 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16318 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 16319 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 16320 | CONFIG_SHELL=$as_dir/$as_base |
| 16321 | export CONFIG_SHELL |
| 16322 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16323 | fi;; |
| 16324 | esac |
| 16325 | done |
| 16326 | done |
| 16327 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16328 | esac |
| 16329 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16330 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16331 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16332 | # line-number line before each line; the second 'sed' does the real |
| 16333 | # work. The second script uses 'N' to pair each line-number line |
| 16334 | # with the numbered line, and appends trailing '-' during |
| 16335 | # substitution so that $LINENO is not a special case at line end. |
| 16336 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16337 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16338 | sed '=' <$as_myself | |
| 16339 | sed ' |
| 16340 | N |
| 16341 | s,$,-, |
| 16342 | : loop |
| 16343 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16344 | t loop |
| 16345 | s,-$,, |
| 16346 | s,^['$as_cr_digits']*\n,, |
| 16347 | ' >$as_me.lineno && |
| 16348 | chmod +x $as_me.lineno || |
| 16349 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16350 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16351 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16353 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16354 | # (the dirname of $[0] is not the place where we might find the |
| 16355 | # original and so on. Autoconf is especially sensible to this). |
| 16356 | . ./$as_me.lineno |
| 16357 | # Exit status is that of the last command. |
| 16358 | exit |
| 16359 | } |
| 16360 | |
| 16361 | |
| 16362 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16363 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16364 | ' ECHO_T=' ' ;; |
| 16365 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16366 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16367 | esac |
| 16368 | |
| 16369 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16370 | as_expr=expr |
| 16371 | else |
| 16372 | as_expr=false |
| 16373 | fi |
| 16374 | |
| 16375 | rm -f conf$$ conf$$.exe conf$$.file |
| 16376 | echo >conf$$.file |
| 16377 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16378 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16379 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16380 | if test -f conf$$.exe; then |
| 16381 | # Don't use ln at all; we don't have any links |
| 16382 | as_ln_s='cp -p' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16383 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16384 | as_ln_s='ln -s' |
| 16385 | fi |
| 16386 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16387 | as_ln_s=ln |
| 16388 | else |
| 16389 | as_ln_s='cp -p' |
| 16390 | fi |
| 16391 | rm -f conf$$ conf$$.exe conf$$.file |
| 16392 | |
| 16393 | if mkdir -p . 2>/dev/null; then |
| 16394 | as_mkdir_p=: |
| 16395 | else |
| 16396 | test -d ./-p && rmdir ./-p |
| 16397 | as_mkdir_p=false |
| 16398 | fi |
| 16399 | |
| 16400 | as_executable_p="test -f" |
| 16401 | |
| 16402 | # Sed expression to map a string onto a valid CPP name. |
| 16403 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 16404 | |
| 16405 | # Sed expression to map a string onto a valid variable name. |
| 16406 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 16407 | |
| 16408 | |
| 16409 | # IFS |
| 16410 | # We need space, tab and new line, in precisely that order. |
| 16411 | as_nl=' |
| 16412 | ' |
| 16413 | IFS=" $as_nl" |
| 16414 | |
| 16415 | # CDPATH. |
| 16416 | $as_unset CDPATH |
| 16417 | |
| 16418 | exec 6>&1 |
| 16419 | |
| 16420 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16421 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16422 | # values after options handling. Logging --version etc. is OK. |
Bram Moolenaar | 78984f5 | 2005-08-01 07:19:10 +0000 | [diff] [blame] | 16423 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16424 | { |
| 16425 | echo |
| 16426 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16427 | ## Running $as_me. ## |
| 16428 | _ASBOX |
| 16429 | } >&5 |
| 16430 | cat >&5 <<_CSEOF |
| 16431 | |
| 16432 | This file was extended by $as_me, which was |
| 16433 | generated by GNU Autoconf 2.59. Invocation command line was |
| 16434 | |
| 16435 | CONFIG_FILES = $CONFIG_FILES |
| 16436 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16437 | CONFIG_LINKS = $CONFIG_LINKS |
| 16438 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16439 | $ $0 $@ |
| 16440 | |
| 16441 | _CSEOF |
| 16442 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16443 | echo >&5 |
| 16444 | _ACEOF |
| 16445 | |
| 16446 | # Files that config.status was made for. |
| 16447 | if test -n "$ac_config_files"; then |
| 16448 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16449 | fi |
| 16450 | |
| 16451 | if test -n "$ac_config_headers"; then |
| 16452 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16453 | fi |
| 16454 | |
| 16455 | if test -n "$ac_config_links"; then |
| 16456 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16457 | fi |
| 16458 | |
| 16459 | if test -n "$ac_config_commands"; then |
| 16460 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16461 | fi |
| 16462 | |
| 16463 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16464 | |
| 16465 | ac_cs_usage="\ |
| 16466 | \`$as_me' instantiates files from templates according to the |
| 16467 | current configuration. |
| 16468 | |
| 16469 | Usage: $0 [OPTIONS] [FILE]... |
| 16470 | |
| 16471 | -h, --help print this help, then exit |
| 16472 | -V, --version print version number, then exit |
| 16473 | -q, --quiet do not print progress messages |
| 16474 | -d, --debug don't remove temporary files |
| 16475 | --recheck update $as_me by reconfiguring in the same conditions |
| 16476 | --file=FILE[:TEMPLATE] |
| 16477 | instantiate the configuration file FILE |
| 16478 | --header=FILE[:TEMPLATE] |
| 16479 | instantiate the configuration header FILE |
| 16480 | |
| 16481 | Configuration files: |
| 16482 | $config_files |
| 16483 | |
| 16484 | Configuration headers: |
| 16485 | $config_headers |
| 16486 | |
| 16487 | Report bugs to <bug-autoconf@gnu.org>." |
| 16488 | _ACEOF |
| 16489 | |
| 16490 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16491 | ac_cs_version="\\ |
| 16492 | config.status |
| 16493 | configured by $0, generated by GNU Autoconf 2.59, |
| 16494 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16495 | |
| 16496 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 16497 | This config.status script is free software; the Free Software Foundation |
| 16498 | gives unlimited permission to copy, distribute and modify it." |
| 16499 | srcdir=$srcdir |
| 16500 | _ACEOF |
| 16501 | |
| 16502 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16503 | # If no file are specified by the user, then we need to provide default |
| 16504 | # value. By we need to know if files were specified by the user. |
| 16505 | ac_need_defaults=: |
| 16506 | while test $# != 0 |
| 16507 | do |
| 16508 | case $1 in |
| 16509 | --*=*) |
| 16510 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16511 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16512 | ac_shift=: |
| 16513 | ;; |
| 16514 | -*) |
| 16515 | ac_option=$1 |
| 16516 | ac_optarg=$2 |
| 16517 | ac_shift=shift |
| 16518 | ;; |
| 16519 | *) # This is not an option, so the user has probably given explicit |
| 16520 | # arguments. |
| 16521 | ac_option=$1 |
| 16522 | ac_need_defaults=false;; |
| 16523 | esac |
| 16524 | |
| 16525 | case $ac_option in |
| 16526 | # Handling of the options. |
| 16527 | _ACEOF |
| 16528 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16529 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16530 | ac_cs_recheck=: ;; |
| 16531 | --version | --vers* | -V ) |
| 16532 | echo "$ac_cs_version"; exit 0 ;; |
| 16533 | --he | --h) |
| 16534 | # Conflict between --help and --header |
| 16535 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16536 | Try \`$0 --help' for more information." >&5 |
| 16537 | echo "$as_me: error: ambiguous option: $1 |
| 16538 | Try \`$0 --help' for more information." >&2;} |
| 16539 | { (exit 1); exit 1; }; };; |
| 16540 | --help | --hel | -h ) |
| 16541 | echo "$ac_cs_usage"; exit 0 ;; |
| 16542 | --debug | --d* | -d ) |
| 16543 | debug=: ;; |
| 16544 | --file | --fil | --fi | --f ) |
| 16545 | $ac_shift |
| 16546 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 16547 | ac_need_defaults=false;; |
| 16548 | --header | --heade | --head | --hea ) |
| 16549 | $ac_shift |
| 16550 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 16551 | ac_need_defaults=false;; |
| 16552 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16553 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16554 | ac_cs_silent=: ;; |
| 16555 | |
| 16556 | # This is an error. |
| 16557 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16558 | Try \`$0 --help' for more information." >&5 |
| 16559 | echo "$as_me: error: unrecognized option: $1 |
| 16560 | Try \`$0 --help' for more information." >&2;} |
| 16561 | { (exit 1); exit 1; }; } ;; |
| 16562 | |
| 16563 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16564 | |
| 16565 | esac |
| 16566 | shift |
| 16567 | done |
| 16568 | |
| 16569 | ac_configure_extra_args= |
| 16570 | |
| 16571 | if $ac_cs_silent; then |
| 16572 | exec 6>/dev/null |
| 16573 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16574 | fi |
| 16575 | |
| 16576 | _ACEOF |
| 16577 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16578 | if \$ac_cs_recheck; then |
| 16579 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 16580 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16581 | fi |
| 16582 | |
| 16583 | _ACEOF |
| 16584 | |
| 16585 | |
| 16586 | |
| 16587 | |
| 16588 | |
| 16589 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16590 | for ac_config_target in $ac_config_targets |
| 16591 | do |
| 16592 | case "$ac_config_target" in |
| 16593 | # Handling of arguments. |
| 16594 | "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 16595 | "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 16596 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16597 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16598 | { (exit 1); exit 1; }; };; |
| 16599 | esac |
| 16600 | done |
| 16601 | |
| 16602 | # If the user did not use the arguments to specify the items to instantiate, |
| 16603 | # then the envvar interface is used. Set only those that are not. |
| 16604 | # We use the long form for the default assignment because of an extremely |
| 16605 | # bizarre bug on SunOS 4.1.3. |
| 16606 | if $ac_need_defaults; then |
| 16607 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16608 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16609 | fi |
| 16610 | |
| 16611 | # Have a temporary directory for convenience. Make it in the build tree |
| 16612 | # simply because there is no reason to put it here, and in addition, |
| 16613 | # creating and moving files from /tmp can sometimes cause problems. |
| 16614 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16615 | $debug || |
| 16616 | { |
| 16617 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16618 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16619 | } |
| 16620 | |
| 16621 | # Create a (secure) tmp directory for tmp files. |
| 16622 | |
| 16623 | { |
| 16624 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 16625 | test -n "$tmp" && test -d "$tmp" |
| 16626 | } || |
| 16627 | { |
| 16628 | tmp=./confstat$$-$RANDOM |
| 16629 | (umask 077 && mkdir $tmp) |
| 16630 | } || |
| 16631 | { |
| 16632 | echo "$me: cannot create a temporary directory in ." >&2 |
| 16633 | { (exit 1); exit 1; } |
| 16634 | } |
| 16635 | |
| 16636 | _ACEOF |
| 16637 | |
| 16638 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16639 | |
| 16640 | # |
| 16641 | # CONFIG_FILES section. |
| 16642 | # |
| 16643 | |
| 16644 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16645 | # This happens for instance when ./config.status config.h |
| 16646 | if test -n "\$CONFIG_FILES"; then |
| 16647 | # Protect against being on the right side of a sed subst in config.status. |
| 16648 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16649 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16650 | s,@SHELL@,$SHELL,;t t |
| 16651 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16652 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16653 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16654 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16655 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16656 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16657 | s,@exec_prefix@,$exec_prefix,;t t |
| 16658 | s,@prefix@,$prefix,;t t |
| 16659 | s,@program_transform_name@,$program_transform_name,;t t |
| 16660 | s,@bindir@,$bindir,;t t |
| 16661 | s,@sbindir@,$sbindir,;t t |
| 16662 | s,@libexecdir@,$libexecdir,;t t |
| 16663 | s,@datadir@,$datadir,;t t |
| 16664 | s,@sysconfdir@,$sysconfdir,;t t |
| 16665 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16666 | s,@localstatedir@,$localstatedir,;t t |
| 16667 | s,@libdir@,$libdir,;t t |
| 16668 | s,@includedir@,$includedir,;t t |
| 16669 | s,@oldincludedir@,$oldincludedir,;t t |
| 16670 | s,@infodir@,$infodir,;t t |
| 16671 | s,@mandir@,$mandir,;t t |
| 16672 | s,@build_alias@,$build_alias,;t t |
| 16673 | s,@host_alias@,$host_alias,;t t |
| 16674 | s,@target_alias@,$target_alias,;t t |
| 16675 | s,@DEFS@,$DEFS,;t t |
| 16676 | s,@ECHO_C@,$ECHO_C,;t t |
| 16677 | s,@ECHO_N@,$ECHO_N,;t t |
| 16678 | s,@ECHO_T@,$ECHO_T,;t t |
| 16679 | s,@LIBS@,$LIBS,;t t |
| 16680 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 16681 | s,@CC@,$CC,;t t |
| 16682 | s,@CFLAGS@,$CFLAGS,;t t |
| 16683 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16684 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16685 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16686 | s,@EXEEXT@,$EXEEXT,;t t |
| 16687 | s,@OBJEXT@,$OBJEXT,;t t |
| 16688 | s,@CPP@,$CPP,;t t |
| 16689 | s,@EGREP@,$EGREP,;t t |
| 16690 | s,@AWK@,$AWK,;t t |
| 16691 | s,@STRIP@,$STRIP,;t t |
| 16692 | s,@CPP_MM@,$CPP_MM,;t t |
| 16693 | s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t |
| 16694 | s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t |
| 16695 | s,@VIMNAME@,$VIMNAME,;t t |
| 16696 | s,@EXNAME@,$EXNAME,;t t |
| 16697 | s,@VIEWNAME@,$VIEWNAME,;t t |
| 16698 | s,@line_break@,$line_break,;t t |
| 16699 | s,@dovimdiff@,$dovimdiff,;t t |
| 16700 | s,@dogvimdiff@,$dogvimdiff,;t t |
| 16701 | s,@compiledby@,$compiledby,;t t |
| 16702 | s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t |
| 16703 | s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t |
| 16704 | s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t |
| 16705 | s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t |
| 16706 | s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t |
| 16707 | s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t |
| 16708 | s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t |
| 16709 | s,@vi_cv_perllib@,$vi_cv_perllib,;t t |
| 16710 | s,@shrpenv@,$shrpenv,;t t |
| 16711 | s,@PERL_SRC@,$PERL_SRC,;t t |
| 16712 | s,@PERL_OBJ@,$PERL_OBJ,;t t |
| 16713 | s,@PERL_PRO@,$PERL_PRO,;t t |
| 16714 | s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t |
| 16715 | s,@PERL_LIBS@,$PERL_LIBS,;t t |
| 16716 | s,@vi_cv_path_python@,$vi_cv_path_python,;t t |
| 16717 | s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t |
| 16718 | s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t |
| 16719 | s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t |
| 16720 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
| 16721 | s,@PYTHON_SRC@,$PYTHON_SRC,;t t |
| 16722 | s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t |
| 16723 | s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t |
| 16724 | s,@TCL_SRC@,$TCL_SRC,;t t |
| 16725 | s,@TCL_OBJ@,$TCL_OBJ,;t t |
| 16726 | s,@TCL_PRO@,$TCL_PRO,;t t |
| 16727 | s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t |
| 16728 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 16729 | s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t |
| 16730 | s,@RUBY_SRC@,$RUBY_SRC,;t t |
| 16731 | s,@RUBY_OBJ@,$RUBY_OBJ,;t t |
| 16732 | s,@RUBY_PRO@,$RUBY_PRO,;t t |
| 16733 | s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t |
| 16734 | s,@RUBY_LIBS@,$RUBY_LIBS,;t t |
| 16735 | s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t |
| 16736 | s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t |
| 16737 | s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t |
| 16738 | s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t |
| 16739 | s,@SNIFF_SRC@,$SNIFF_SRC,;t t |
| 16740 | s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t |
| 16741 | s,@xmkmfpath@,$xmkmfpath,;t t |
| 16742 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 16743 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 16744 | s,@X_LIBS@,$X_LIBS,;t t |
| 16745 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 16746 | s,@X_LIB@,$X_LIB,;t t |
| 16747 | s,@MOC@,$MOC,;t t |
| 16748 | s,@KDE_CONFIG@,$KDE_CONFIG,;t t |
| 16749 | s,@KDE_LIBS@,$KDE_LIBS,;t t |
| 16750 | s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t |
| 16751 | s,@KDE_PREFIX@,$KDE_PREFIX,;t t |
| 16752 | s,@CXX@,$CXX,;t t |
| 16753 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 16754 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 16755 | s,@QT_LIBS@,$QT_LIBS,;t t |
| 16756 | s,@QT_INCLUDES@,$QT_INCLUDES,;t t |
| 16757 | s,@ROOTQT@,$ROOTQT,;t t |
| 16758 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t |
| 16759 | s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t |
| 16760 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 16761 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 16762 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 16763 | s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t |
| 16764 | s,@GNOME_LIBS@,$GNOME_LIBS,;t t |
| 16765 | s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t |
| 16766 | s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t |
| 16767 | s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t |
| 16768 | s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t |
| 16769 | s,@NARROW_PROTO@,$NARROW_PROTO,;t t |
| 16770 | s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t |
| 16771 | s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t |
| 16772 | s,@GUITYPE@,$GUITYPE,;t t |
| 16773 | s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t |
| 16774 | s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t |
| 16775 | s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t |
| 16776 | s,@TAGPRG@,$TAGPRG,;t t |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 16777 | s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t |
| 16778 | s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16779 | s,@MSGFMT@,$MSGFMT,;t t |
| 16780 | s,@MAKEMO@,$MAKEMO,;t t |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16781 | s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16782 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16783 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 16784 | CEOF |
| 16785 | |
| 16786 | _ACEOF |
| 16787 | |
| 16788 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16789 | # Split the substitutions into bite-sized pieces for seds with |
| 16790 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16791 | ac_max_sed_lines=48 |
| 16792 | ac_sed_frag=1 # Number of current file. |
| 16793 | ac_beg=1 # First line for current file. |
| 16794 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16795 | ac_more_lines=: |
| 16796 | ac_sed_cmds= |
| 16797 | while $ac_more_lines; do |
| 16798 | if test $ac_beg -gt 1; then |
| 16799 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16800 | else |
| 16801 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16802 | fi |
| 16803 | if test ! -s $tmp/subs.frag; then |
| 16804 | ac_more_lines=false |
| 16805 | else |
| 16806 | # The purpose of the label and of the branching condition is to |
| 16807 | # speed up the sed processing (if there are no `@' at all, there |
| 16808 | # is no need to browse any of the substitutions). |
| 16809 | # These are the two extra sed commands mentioned above. |
| 16810 | (echo ':t |
| 16811 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16812 | if test -z "$ac_sed_cmds"; then |
| 16813 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16814 | else |
| 16815 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16816 | fi |
| 16817 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16818 | ac_beg=$ac_end |
| 16819 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16820 | fi |
| 16821 | done |
| 16822 | if test -z "$ac_sed_cmds"; then |
| 16823 | ac_sed_cmds=cat |
| 16824 | fi |
| 16825 | fi # test -n "$CONFIG_FILES" |
| 16826 | |
| 16827 | _ACEOF |
| 16828 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16829 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16830 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16831 | case $ac_file in |
| 16832 | - | *:- | *:-:* ) # input from stdin |
| 16833 | cat >$tmp/stdin |
| 16834 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16835 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16836 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16837 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16838 | * ) ac_file_in=$ac_file.in ;; |
| 16839 | esac |
| 16840 | |
| 16841 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16842 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16843 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16844 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16845 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16846 | X"$ac_file" : 'X\(/\)' \| \ |
| 16847 | . : '\(.\)' 2>/dev/null || |
| 16848 | echo X"$ac_file" | |
| 16849 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16850 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16851 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16852 | /^X\(\/\).*/{ s//\1/; q; } |
| 16853 | s/.*/./; q'` |
| 16854 | { if $as_mkdir_p; then |
| 16855 | mkdir -p "$ac_dir" |
| 16856 | else |
| 16857 | as_dir="$ac_dir" |
| 16858 | as_dirs= |
| 16859 | while test ! -d "$as_dir"; do |
| 16860 | as_dirs="$as_dir $as_dirs" |
| 16861 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16862 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16863 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16864 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16865 | X"$as_dir" : 'X\(/\)' \| \ |
| 16866 | . : '\(.\)' 2>/dev/null || |
| 16867 | echo X"$as_dir" | |
| 16868 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16869 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16870 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16871 | /^X\(\/\).*/{ s//\1/; q; } |
| 16872 | s/.*/./; q'` |
| 16873 | done |
| 16874 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16875 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16876 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16877 | { (exit 1); exit 1; }; }; } |
| 16878 | |
| 16879 | ac_builddir=. |
| 16880 | |
| 16881 | if test "$ac_dir" != .; then |
| 16882 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16883 | # A "../" for each directory in $ac_dir_suffix. |
| 16884 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16885 | else |
| 16886 | ac_dir_suffix= ac_top_builddir= |
| 16887 | fi |
| 16888 | |
| 16889 | case $srcdir in |
| 16890 | .) # No --srcdir option. We are building in place. |
| 16891 | ac_srcdir=. |
| 16892 | if test -z "$ac_top_builddir"; then |
| 16893 | ac_top_srcdir=. |
| 16894 | else |
| 16895 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16896 | fi ;; |
| 16897 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16898 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16899 | ac_top_srcdir=$srcdir ;; |
| 16900 | *) # Relative path. |
| 16901 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16902 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16903 | esac |
| 16904 | |
| 16905 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 16906 | # the directories may not exist. |
| 16907 | case `pwd` in |
| 16908 | .) ac_abs_builddir="$ac_dir";; |
| 16909 | *) |
| 16910 | case "$ac_dir" in |
| 16911 | .) ac_abs_builddir=`pwd`;; |
| 16912 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 16913 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 16914 | esac;; |
| 16915 | esac |
| 16916 | case $ac_abs_builddir in |
| 16917 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16918 | *) |
| 16919 | case ${ac_top_builddir}. in |
| 16920 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 16921 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16922 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 16923 | esac;; |
| 16924 | esac |
| 16925 | case $ac_abs_builddir in |
| 16926 | .) ac_abs_srcdir=$ac_srcdir;; |
| 16927 | *) |
| 16928 | case $ac_srcdir in |
| 16929 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 16930 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 16931 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 16932 | esac;; |
| 16933 | esac |
| 16934 | case $ac_abs_builddir in |
| 16935 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16936 | *) |
| 16937 | case $ac_top_srcdir in |
| 16938 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 16939 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16940 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 16941 | esac;; |
| 16942 | esac |
| 16943 | |
| 16944 | |
| 16945 | |
| 16946 | if test x"$ac_file" != x-; then |
| 16947 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16948 | echo "$as_me: creating $ac_file" >&6;} |
| 16949 | rm -f "$ac_file" |
| 16950 | fi |
| 16951 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16952 | # use $as_me), people would be surprised to read: |
| 16953 | # /* config.h. Generated by config.status. */ |
| 16954 | if test x"$ac_file" = x-; then |
| 16955 | configure_input= |
| 16956 | else |
| 16957 | configure_input="$ac_file. " |
| 16958 | fi |
| 16959 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16960 | sed 's,.*/,,'` by configure." |
| 16961 | |
| 16962 | # First look for the input files in the build tree, otherwise in the |
| 16963 | # src tree. |
| 16964 | ac_file_inputs=`IFS=: |
| 16965 | for f in $ac_file_in; do |
| 16966 | case $f in |
| 16967 | -) echo $tmp/stdin ;; |
| 16968 | [\\/$]*) |
| 16969 | # Absolute (can't be DOS-style, as IFS=:) |
| 16970 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16971 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16972 | { (exit 1); exit 1; }; } |
| 16973 | echo "$f";; |
| 16974 | *) # Relative |
| 16975 | if test -f "$f"; then |
| 16976 | # Build tree |
| 16977 | echo "$f" |
| 16978 | elif test -f "$srcdir/$f"; then |
| 16979 | # Source tree |
| 16980 | echo "$srcdir/$f" |
| 16981 | else |
| 16982 | # /dev/null tree |
| 16983 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16984 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16985 | { (exit 1); exit 1; }; } |
| 16986 | fi;; |
| 16987 | esac |
| 16988 | done` || { (exit 1); exit 1; } |
| 16989 | _ACEOF |
| 16990 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16991 | sed "$ac_vpsub |
| 16992 | $extrasub |
| 16993 | _ACEOF |
| 16994 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16995 | :t |
| 16996 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16997 | s,@configure_input@,$configure_input,;t t |
| 16998 | s,@srcdir@,$ac_srcdir,;t t |
| 16999 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17000 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17001 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17002 | s,@builddir@,$ac_builddir,;t t |
| 17003 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17004 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17005 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17006 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17007 | rm -f $tmp/stdin |
| 17008 | if test x"$ac_file" != x-; then |
| 17009 | mv $tmp/out $ac_file |
| 17010 | else |
| 17011 | cat $tmp/out |
| 17012 | rm -f $tmp/out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17013 | fi |
| 17014 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17015 | done |
| 17016 | _ACEOF |
| 17017 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17018 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17019 | # |
| 17020 | # CONFIG_HEADER section. |
| 17021 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17022 | |
| 17023 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17024 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 17025 | # |
| 17026 | # ac_d sets the value in "#define NAME VALUE" lines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17027 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17028 | ac_dB='[ ].*$,\1#\2' |
| 17029 | ac_dC=' ' |
| 17030 | ac_dD=',;t' |
| 17031 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17032 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17033 | ac_uB='$,\1#\2define\3' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17034 | ac_uC=' ' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17035 | ac_uD=',;t' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17036 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17037 | 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] | 17038 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17039 | case $ac_file in |
| 17040 | - | *:- | *:-:* ) # input from stdin |
| 17041 | cat >$tmp/stdin |
| 17042 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17043 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17044 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17045 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17046 | * ) ac_file_in=$ac_file.in ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17047 | esac |
| 17048 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17049 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17050 | echo "$as_me: creating $ac_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17051 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17052 | # First look for the input files in the build tree, otherwise in the |
| 17053 | # src tree. |
| 17054 | ac_file_inputs=`IFS=: |
| 17055 | for f in $ac_file_in; do |
| 17056 | case $f in |
| 17057 | -) echo $tmp/stdin ;; |
| 17058 | [\\/$]*) |
| 17059 | # Absolute (can't be DOS-style, as IFS=:) |
| 17060 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17061 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17062 | { (exit 1); exit 1; }; } |
| 17063 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 17064 | echo "$f";; |
| 17065 | *) # Relative |
| 17066 | if test -f "$f"; then |
| 17067 | # Build tree |
| 17068 | echo "$f" |
| 17069 | elif test -f "$srcdir/$f"; then |
| 17070 | # Source tree |
| 17071 | echo "$srcdir/$f" |
| 17072 | else |
| 17073 | # /dev/null tree |
| 17074 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17075 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17076 | { (exit 1); exit 1; }; } |
| 17077 | fi;; |
| 17078 | esac |
| 17079 | done` || { (exit 1); exit 1; } |
| 17080 | # Remove the trailing spaces. |
| 17081 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17082 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17083 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17084 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17085 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17086 | # `conftest.undefs', that substitutes the proper values into |
| 17087 | # config.h.in to produce config.h. The first handles `#define' |
| 17088 | # templates, and the second `#undef' templates. |
| 17089 | # And first: Protect against being on the right side of a sed subst in |
| 17090 | # config.status. Protect against being in an unquoted here document |
| 17091 | # in config.status. |
| 17092 | rm -f conftest.defines conftest.undefs |
| 17093 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17094 | # Putting comments in sed scripts is not portable. |
| 17095 | # |
| 17096 | # `end' is used to avoid that the second main sed command (meant for |
| 17097 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17098 | # See the Autoconf documentation for `clear'. |
| 17099 | cat >confdef2sed.sed <<\_ACEOF |
| 17100 | s/[\\&,]/\\&/g |
| 17101 | s,[\\$`],\\&,g |
| 17102 | t clear |
| 17103 | : clear |
| 17104 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17105 | t end |
| 17106 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17107 | : end |
| 17108 | _ACEOF |
| 17109 | # If some macros were called several times there might be several times |
| 17110 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17111 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17112 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17113 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17114 | rm -f confdef2sed.sed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17115 | |
| 17116 | # This sed command replaces #undef with comments. This is necessary, for |
| 17117 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17118 | # on some systems where configure will not decide to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17119 | cat >>conftest.undefs <<\_ACEOF |
| 17120 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17121 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17122 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17123 | # Break up conftest.defines because some shells have a limit on the size |
| 17124 | # of here documents, and old seds have small limits too (100 cmds). |
| 17125 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 17126 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 17127 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17128 | echo ' :' >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17129 | rm -f conftest.tail |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17130 | while grep . conftest.defines >/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17131 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17132 | # Write a limited-size here document to $tmp/defines.sed. |
| 17133 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17134 | # Speed up: don't consider the non `#define' lines. |
| 17135 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17136 | # Work around the forget-to-reset-the-flag bug. |
| 17137 | echo 't clr' >>$CONFIG_STATUS |
| 17138 | echo ': clr' >>$CONFIG_STATUS |
| 17139 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17140 | echo 'CEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17141 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17142 | rm -f $tmp/in |
| 17143 | mv $tmp/out $tmp/in |
| 17144 | ' >>$CONFIG_STATUS |
| 17145 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17146 | rm -f conftest.defines |
| 17147 | mv conftest.tail conftest.defines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17148 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17149 | rm -f conftest.defines |
| 17150 | echo ' fi # grep' >>$CONFIG_STATUS |
| 17151 | echo >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17152 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17153 | # Break up conftest.undefs because some shells have a limit on the size |
| 17154 | # of here documents, and old seds have small limits too (100 cmds). |
| 17155 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17156 | rm -f conftest.tail |
| 17157 | while grep . conftest.undefs >/dev/null |
| 17158 | do |
| 17159 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17160 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17161 | # Speed up: don't consider the non `#undef' |
| 17162 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17163 | # Work around the forget-to-reset-the-flag bug. |
| 17164 | echo 't clr' >>$CONFIG_STATUS |
| 17165 | echo ': clr' >>$CONFIG_STATUS |
| 17166 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17167 | echo 'CEOF |
| 17168 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17169 | rm -f $tmp/in |
| 17170 | mv $tmp/out $tmp/in |
| 17171 | ' >>$CONFIG_STATUS |
| 17172 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17173 | rm -f conftest.undefs |
| 17174 | mv conftest.tail conftest.undefs |
| 17175 | done |
| 17176 | rm -f conftest.undefs |
| 17177 | |
| 17178 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17179 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17180 | # use $as_me), people would be surprised to read: |
| 17181 | # /* config.h. Generated by config.status. */ |
| 17182 | if test x"$ac_file" = x-; then |
| 17183 | echo "/* Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17184 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17185 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17186 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17187 | cat $tmp/in >>$tmp/config.h |
| 17188 | rm -f $tmp/in |
| 17189 | if test x"$ac_file" != x-; then |
| 17190 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 17191 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17192 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17193 | else |
| 17194 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17195 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17196 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17197 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17198 | X"$ac_file" : 'X\(/\)' \| \ |
| 17199 | . : '\(.\)' 2>/dev/null || |
| 17200 | echo X"$ac_file" | |
| 17201 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17202 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17203 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17204 | /^X\(\/\).*/{ s//\1/; q; } |
| 17205 | s/.*/./; q'` |
| 17206 | { if $as_mkdir_p; then |
| 17207 | mkdir -p "$ac_dir" |
| 17208 | else |
| 17209 | as_dir="$ac_dir" |
| 17210 | as_dirs= |
| 17211 | while test ! -d "$as_dir"; do |
| 17212 | as_dirs="$as_dir $as_dirs" |
| 17213 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 17214 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17215 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17216 | X"$as_dir" : 'X\(//\)$' \| \ |
| 17217 | X"$as_dir" : 'X\(/\)' \| \ |
| 17218 | . : '\(.\)' 2>/dev/null || |
| 17219 | echo X"$as_dir" | |
| 17220 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17221 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17222 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17223 | /^X\(\/\).*/{ s//\1/; q; } |
| 17224 | s/.*/./; q'` |
| 17225 | done |
| 17226 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 17227 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 17228 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 17229 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17230 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17231 | rm -f $ac_file |
| 17232 | mv $tmp/config.h $ac_file |
| 17233 | fi |
| 17234 | else |
| 17235 | cat $tmp/config.h |
| 17236 | rm -f $tmp/config.h |
| 17237 | fi |
| 17238 | done |
| 17239 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17240 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17241 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17242 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17243 | { (exit 0); exit 0; } |
| 17244 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17245 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17246 | ac_clean_files=$ac_clean_files_save |
| 17247 | |
| 17248 | |
| 17249 | # configure is writing to config.log, and then calls config.status. |
| 17250 | # config.status does its own redirection, appending to config.log. |
| 17251 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17252 | # by configure, so config.status won't be able to write to it; its |
| 17253 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17254 | # effectively closing config.log, so it can be properly (re)opened and |
| 17255 | # appended to by config.status. When coming back to configure, we |
| 17256 | # need to make the FD available again. |
| 17257 | if test "$no_create" != yes; then |
| 17258 | ac_cs_success=: |
| 17259 | ac_config_status_args= |
| 17260 | test "$silent" = yes && |
| 17261 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17262 | exec 5>/dev/null |
| 17263 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | 78984f5 | 2005-08-01 07:19:10 +0000 | [diff] [blame] | 17264 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17265 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17266 | # would make configure fail if this is the last instruction. |
| 17267 | $ac_cs_success || { (exit 1); exit 1; } |
| 17268 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17269 | |
| 17270 | |