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 | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.62. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4 | # |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
| 22 | else |
| 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 27 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | as_nl=' |
| 41 | ' |
| 42 | export as_nl |
| 43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 80 | |
| 81 | # Support unset when possible. |
| 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 83 | as_unset=unset |
| 84 | else |
| 85 | as_unset=false |
| 86 | fi |
| 87 | |
| 88 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 89 | # IFS |
| 90 | # We need space, tab and new line, in precisely that order. Quoting is |
| 91 | # there to prevent editors from complaining about space-tab. |
| 92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 93 | # splitting by setting IFS to empty value.) |
| 94 | IFS=" "" $as_nl" |
| 95 | |
| 96 | # Find who we are. Look in the path if we contain no directory separator. |
| 97 | case $0 in |
| 98 | *[\\/]* ) as_myself=$0 ;; |
| 99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 100 | for as_dir in $PATH |
| 101 | do |
| 102 | IFS=$as_save_IFS |
| 103 | test -z "$as_dir" && as_dir=. |
| 104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 105 | done |
| 106 | IFS=$as_save_IFS |
| 107 | |
| 108 | ;; |
| 109 | esac |
| 110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 111 | # in which case we are not to be found in the path. |
| 112 | if test "x$as_myself" = x; then |
| 113 | as_myself=$0 |
| 114 | fi |
| 115 | if test ! -f "$as_myself"; then |
| 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 117 | { (exit 1); exit 1; } |
| 118 | fi |
| 119 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 121 | for as_var in ENV MAIL MAILPATH |
| 122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 123 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 133 | |
| 134 | # Required to use basename. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 137 | as_expr=expr |
| 138 | else |
| 139 | as_expr=false |
| 140 | fi |
| 141 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 143 | as_basename=basename |
| 144 | else |
| 145 | as_basename=false |
| 146 | fi |
| 147 | |
| 148 | |
| 149 | # Name of the executable. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 150 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 152 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 154 | $as_echo X/"$0" | |
| 155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 156 | s//\1/ |
| 157 | q |
| 158 | } |
| 159 | /^X\/\(\/\/\)$/{ |
| 160 | s//\1/ |
| 161 | q |
| 162 | } |
| 163 | /^X\/\(\/\).*/{ |
| 164 | s//\1/ |
| 165 | q |
| 166 | } |
| 167 | s/.*/./; q'` |
| 168 | |
| 169 | # CDPATH. |
| 170 | $as_unset CDPATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 171 | |
| 172 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 173 | if test "x$CONFIG_SHELL" = x; then |
| 174 | if (eval ":") 2>/dev/null; then |
| 175 | as_have_required=yes |
| 176 | else |
| 177 | as_have_required=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 178 | fi |
| 179 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 180 | if test $as_have_required = yes && (eval ": |
| 181 | (as_func_return () { |
| 182 | (exit \$1) |
| 183 | } |
| 184 | as_func_success () { |
| 185 | as_func_return 0 |
| 186 | } |
| 187 | as_func_failure () { |
| 188 | as_func_return 1 |
| 189 | } |
| 190 | as_func_ret_success () { |
| 191 | return 0 |
| 192 | } |
| 193 | as_func_ret_failure () { |
| 194 | return 1 |
| 195 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 196 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 197 | exitcode=0 |
| 198 | if as_func_success; then |
| 199 | : |
| 200 | else |
| 201 | exitcode=1 |
| 202 | echo as_func_success failed. |
| 203 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 204 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 205 | if as_func_failure; then |
| 206 | exitcode=1 |
| 207 | echo as_func_failure succeeded. |
| 208 | fi |
| 209 | |
| 210 | if as_func_ret_success; then |
| 211 | : |
| 212 | else |
| 213 | exitcode=1 |
| 214 | echo as_func_ret_success failed. |
| 215 | fi |
| 216 | |
| 217 | if as_func_ret_failure; then |
| 218 | exitcode=1 |
| 219 | echo as_func_ret_failure succeeded. |
| 220 | fi |
| 221 | |
| 222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 223 | : |
| 224 | else |
| 225 | exitcode=1 |
| 226 | echo positional parameters were not saved. |
| 227 | fi |
| 228 | |
| 229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 230 | |
| 231 | ( |
| 232 | as_lineno_1=\$LINENO |
| 233 | as_lineno_2=\$LINENO |
| 234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 236 | ") 2> /dev/null; then |
| 237 | : |
| 238 | else |
| 239 | as_candidate_shells= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 242 | do |
| 243 | IFS=$as_save_IFS |
| 244 | test -z "$as_dir" && as_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 245 | case $as_dir in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 246 | /*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 247 | for as_base in sh bash ksh sh5; do |
| 248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 249 | done;; |
| 250 | esac |
| 251 | done |
| 252 | IFS=$as_save_IFS |
| 253 | |
| 254 | |
| 255 | for as_shell in $as_candidate_shells $SHELL; do |
| 256 | # Try only shells that exist, to save several forks. |
| 257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 258 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in |
| 268 | *posix*) set -o posix ;; |
| 269 | esac |
| 270 | |
| 271 | fi |
| 272 | |
| 273 | |
| 274 | : |
| 275 | _ASEOF |
| 276 | }; then |
| 277 | CONFIG_SHELL=$as_shell |
| 278 | as_have_required=yes |
| 279 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 281 | emulate sh |
| 282 | NULLCMD=: |
| 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 284 | # is contrary to our usage. Disable this feature. |
| 285 | alias -g '${1+"$@"}'='"$@"' |
| 286 | setopt NO_GLOB_SUBST |
| 287 | else |
| 288 | case `(set -o) 2>/dev/null` in |
| 289 | *posix*) set -o posix ;; |
| 290 | esac |
| 291 | |
| 292 | fi |
| 293 | |
| 294 | |
| 295 | : |
| 296 | (as_func_return () { |
| 297 | (exit $1) |
| 298 | } |
| 299 | as_func_success () { |
| 300 | as_func_return 0 |
| 301 | } |
| 302 | as_func_failure () { |
| 303 | as_func_return 1 |
| 304 | } |
| 305 | as_func_ret_success () { |
| 306 | return 0 |
| 307 | } |
| 308 | as_func_ret_failure () { |
| 309 | return 1 |
| 310 | } |
| 311 | |
| 312 | exitcode=0 |
| 313 | if as_func_success; then |
| 314 | : |
| 315 | else |
| 316 | exitcode=1 |
| 317 | echo as_func_success failed. |
| 318 | fi |
| 319 | |
| 320 | if as_func_failure; then |
| 321 | exitcode=1 |
| 322 | echo as_func_failure succeeded. |
| 323 | fi |
| 324 | |
| 325 | if as_func_ret_success; then |
| 326 | : |
| 327 | else |
| 328 | exitcode=1 |
| 329 | echo as_func_ret_success failed. |
| 330 | fi |
| 331 | |
| 332 | if as_func_ret_failure; then |
| 333 | exitcode=1 |
| 334 | echo as_func_ret_failure succeeded. |
| 335 | fi |
| 336 | |
| 337 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 338 | : |
| 339 | else |
| 340 | exitcode=1 |
| 341 | echo positional parameters were not saved. |
| 342 | fi |
| 343 | |
| 344 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 345 | |
| 346 | ( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 347 | as_lineno_1=$LINENO |
| 348 | as_lineno_2=$LINENO |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 351 | |
| 352 | _ASEOF |
| 353 | }; then |
| 354 | break |
| 355 | fi |
| 356 | |
| 357 | fi |
| 358 | |
| 359 | done |
| 360 | |
| 361 | if test "x$CONFIG_SHELL" != x; then |
| 362 | for as_var in BASH_ENV ENV |
| 363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 364 | done |
| 365 | export CONFIG_SHELL |
| 366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 367 | fi |
| 368 | |
| 369 | |
| 370 | if test $as_have_required = no; then |
| 371 | echo This script requires a shell more modern than all the |
| 372 | echo shells that I found on your system. Please install a |
| 373 | echo modern shell, or manually run the script under such a |
| 374 | echo shell if you do have one. |
| 375 | { (exit 1); exit 1; } |
| 376 | fi |
| 377 | |
| 378 | |
| 379 | fi |
| 380 | |
| 381 | fi |
| 382 | |
| 383 | |
| 384 | |
| 385 | (eval "as_func_return () { |
| 386 | (exit \$1) |
| 387 | } |
| 388 | as_func_success () { |
| 389 | as_func_return 0 |
| 390 | } |
| 391 | as_func_failure () { |
| 392 | as_func_return 1 |
| 393 | } |
| 394 | as_func_ret_success () { |
| 395 | return 0 |
| 396 | } |
| 397 | as_func_ret_failure () { |
| 398 | return 1 |
| 399 | } |
| 400 | |
| 401 | exitcode=0 |
| 402 | if as_func_success; then |
| 403 | : |
| 404 | else |
| 405 | exitcode=1 |
| 406 | echo as_func_success failed. |
| 407 | fi |
| 408 | |
| 409 | if as_func_failure; then |
| 410 | exitcode=1 |
| 411 | echo as_func_failure succeeded. |
| 412 | fi |
| 413 | |
| 414 | if as_func_ret_success; then |
| 415 | : |
| 416 | else |
| 417 | exitcode=1 |
| 418 | echo as_func_ret_success failed. |
| 419 | fi |
| 420 | |
| 421 | if as_func_ret_failure; then |
| 422 | exitcode=1 |
| 423 | echo as_func_ret_failure succeeded. |
| 424 | fi |
| 425 | |
| 426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 427 | : |
| 428 | else |
| 429 | exitcode=1 |
| 430 | echo positional parameters were not saved. |
| 431 | fi |
| 432 | |
| 433 | test \$exitcode = 0") || { |
| 434 | echo No shell found that supports shell functions. |
| 435 | echo Please tell bug-autoconf@gnu.org about your system, |
| 436 | echo including any error possibly output before this message. |
| 437 | echo This can help us improve future autoconf versions. |
| 438 | echo Configuration will now proceed without shell functions. |
| 439 | } |
| 440 | |
| 441 | |
| 442 | |
| 443 | as_lineno_1=$LINENO |
| 444 | as_lineno_2=$LINENO |
| 445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 447 | |
| 448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 449 | # uniformly replaced by the line number. The first 'sed' inserts a |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 450 | # line-number line after each line using $LINENO; the second 'sed' |
| 451 | # does the real work. The second script uses 'N' to pair each |
| 452 | # line-number line with the line containing $LINENO, and appends |
| 453 | # trailing '-' during substitution so that $LINENO is not a special |
| 454 | # case at line end. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 457 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 458 | sed -n ' |
| 459 | p |
| 460 | /[$]LINENO/= |
| 461 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 462 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 463 | s/[$]LINENO.*/&-/ |
| 464 | t lineno |
| 465 | b |
| 466 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 467 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 468 | :loop |
| 469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 470 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 471 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 472 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 473 | chmod +x "$as_me.lineno" || |
| 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 475 | { (exit 1); exit 1; }; } |
| 476 | |
| 477 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 478 | # (the dirname of $[0] is not the place where we might find the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 479 | # original and so on. Autoconf is especially sensitive to this). |
| 480 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 481 | # Exit status is that of the last command. |
| 482 | exit |
| 483 | } |
| 484 | |
| 485 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 487 | as_dirname=dirname |
| 488 | else |
| 489 | as_dirname=false |
| 490 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 491 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 492 | ECHO_C= ECHO_N= ECHO_T= |
| 493 | case `echo -n x` in |
| 494 | -n*) |
| 495 | case `echo 'x\c'` in |
| 496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 497 | *) ECHO_C='\c';; |
| 498 | esac;; |
| 499 | *) |
| 500 | ECHO_N='-n';; |
| 501 | esac |
| 502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 504 | as_expr=expr |
| 505 | else |
| 506 | as_expr=false |
| 507 | fi |
| 508 | |
| 509 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 510 | if test -d conf$$.dir; then |
| 511 | rm -f conf$$.dir/conf$$.file |
| 512 | else |
| 513 | rm -f conf$$.dir |
| 514 | mkdir conf$$.dir 2>/dev/null |
| 515 | fi |
| 516 | if (echo >conf$$.file) 2>/dev/null; then |
| 517 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 518 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 519 | # ... but there are two gotchas: |
| 520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 522 | # In both cases, we have to default to `cp -p'. |
| 523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 524 | as_ln_s='cp -p' |
| 525 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 526 | as_ln_s=ln |
| 527 | else |
| 528 | as_ln_s='cp -p' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 529 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 530 | else |
| 531 | as_ln_s='cp -p' |
| 532 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 534 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 535 | |
| 536 | if mkdir -p . 2>/dev/null; then |
| 537 | as_mkdir_p=: |
| 538 | else |
| 539 | test -d ./-p && rmdir ./-p |
| 540 | as_mkdir_p=false |
| 541 | fi |
| 542 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 543 | if test -x / >/dev/null 2>&1; then |
| 544 | as_test_x='test -x' |
| 545 | else |
| 546 | if ls -dL / >/dev/null 2>&1; then |
| 547 | as_ls_L_option=L |
| 548 | else |
| 549 | as_ls_L_option= |
| 550 | fi |
| 551 | as_test_x=' |
| 552 | eval sh -c '\'' |
| 553 | if test -d "$1"; then |
| 554 | test -d "$1/."; |
| 555 | else |
| 556 | case $1 in |
| 557 | -*)set "./$1";; |
| 558 | esac; |
| 559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 560 | ???[sx]*):;;*)false;;esac;fi |
| 561 | '\'' sh |
| 562 | ' |
| 563 | fi |
| 564 | as_executable_p=$as_test_x |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 565 | |
| 566 | # Sed expression to map a string onto a valid CPP name. |
| 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 568 | |
| 569 | # Sed expression to map a string onto a valid variable name. |
| 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 571 | |
| 572 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 573 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 574 | exec 7<&0 </dev/null 6>&1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 575 | |
| 576 | # Name of the host. |
| 577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 578 | # so uname gets run too. |
| 579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 580 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 581 | # |
| 582 | # Initializations. |
| 583 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 584 | ac_default_prefix=/usr/local |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 585 | ac_clean_files= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 586 | ac_config_libobj_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 587 | LIBOBJS= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 588 | cross_compiling=no |
| 589 | subdirs= |
| 590 | MFLAGS= |
| 591 | MAKEFLAGS= |
| 592 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 593 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 594 | # Identity of this package. |
| 595 | PACKAGE_NAME= |
| 596 | PACKAGE_TARNAME= |
| 597 | PACKAGE_VERSION= |
| 598 | PACKAGE_STRING= |
| 599 | PACKAGE_BUGREPORT= |
| 600 | |
| 601 | ac_unique_file="vim.h" |
| 602 | # Factoring default headers for most tests. |
| 603 | ac_includes_default="\ |
| 604 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 605 | #ifdef HAVE_SYS_TYPES_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 606 | # include <sys/types.h> |
| 607 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 608 | #ifdef HAVE_SYS_STAT_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 609 | # include <sys/stat.h> |
| 610 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 611 | #ifdef STDC_HEADERS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 612 | # include <stdlib.h> |
| 613 | # include <stddef.h> |
| 614 | #else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 615 | # ifdef HAVE_STDLIB_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 616 | # include <stdlib.h> |
| 617 | # endif |
| 618 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 619 | #ifdef HAVE_STRING_H |
| 620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 621 | # include <memory.h> |
| 622 | # endif |
| 623 | # include <string.h> |
| 624 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 625 | #ifdef HAVE_STRINGS_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 626 | # include <strings.h> |
| 627 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 628 | #ifdef HAVE_INTTYPES_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 629 | # include <inttypes.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 630 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 631 | #ifdef HAVE_STDINT_H |
| 632 | # include <stdint.h> |
| 633 | #endif |
| 634 | #ifdef HAVE_UNISTD_H |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 635 | # include <unistd.h> |
| 636 | #endif" |
| 637 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 638 | ac_subst_vars='SHELL |
| 639 | PATH_SEPARATOR |
| 640 | PACKAGE_NAME |
| 641 | PACKAGE_TARNAME |
| 642 | PACKAGE_VERSION |
| 643 | PACKAGE_STRING |
| 644 | PACKAGE_BUGREPORT |
| 645 | exec_prefix |
| 646 | prefix |
| 647 | program_transform_name |
| 648 | bindir |
| 649 | sbindir |
| 650 | libexecdir |
| 651 | datarootdir |
| 652 | datadir |
| 653 | sysconfdir |
| 654 | sharedstatedir |
| 655 | localstatedir |
| 656 | includedir |
| 657 | oldincludedir |
| 658 | docdir |
| 659 | infodir |
| 660 | htmldir |
| 661 | dvidir |
| 662 | pdfdir |
| 663 | psdir |
| 664 | libdir |
| 665 | localedir |
| 666 | mandir |
| 667 | DEFS |
| 668 | ECHO_C |
| 669 | ECHO_N |
| 670 | ECHO_T |
| 671 | LIBS |
| 672 | build_alias |
| 673 | host_alias |
| 674 | target_alias |
| 675 | SET_MAKE |
| 676 | CC |
| 677 | CFLAGS |
| 678 | LDFLAGS |
| 679 | CPPFLAGS |
| 680 | ac_ct_CC |
| 681 | EXEEXT |
| 682 | OBJEXT |
| 683 | CPP |
| 684 | GREP |
| 685 | EGREP |
| 686 | AWK |
| 687 | STRIP |
| 688 | CPP_MM |
| 689 | OS_EXTRA_SRC |
| 690 | OS_EXTRA_OBJ |
| 691 | VIMNAME |
| 692 | EXNAME |
| 693 | VIEWNAME |
| 694 | line_break |
| 695 | dovimdiff |
| 696 | dogvimdiff |
| 697 | compiledby |
| 698 | vi_cv_path_mzscheme |
| 699 | MZSCHEME_SRC |
| 700 | MZSCHEME_OBJ |
| 701 | MZSCHEME_PRO |
| 702 | MZSCHEME_LIBS |
| 703 | MZSCHEME_CFLAGS |
| 704 | vi_cv_path_perl |
| 705 | vi_cv_perllib |
| 706 | shrpenv |
| 707 | PERL_SRC |
| 708 | PERL_OBJ |
| 709 | PERL_PRO |
| 710 | PERL_CFLAGS |
| 711 | PERL_LIBS |
| 712 | vi_cv_path_python |
| 713 | PYTHON_CONFDIR |
| 714 | PYTHON_LIBS |
| 715 | PYTHON_GETPATH_CFLAGS |
| 716 | PYTHON_CFLAGS |
| 717 | PYTHON_SRC |
| 718 | PYTHON_OBJ |
| 719 | vi_cv_path_tcl |
| 720 | TCL_SRC |
| 721 | TCL_OBJ |
| 722 | TCL_PRO |
| 723 | TCL_CFLAGS |
| 724 | TCL_LIBS |
| 725 | vi_cv_path_ruby |
| 726 | RUBY_SRC |
| 727 | RUBY_OBJ |
| 728 | RUBY_PRO |
| 729 | RUBY_CFLAGS |
| 730 | RUBY_LIBS |
| 731 | WORKSHOP_SRC |
| 732 | WORKSHOP_OBJ |
| 733 | NETBEANS_SRC |
| 734 | NETBEANS_OBJ |
| 735 | SNIFF_SRC |
| 736 | SNIFF_OBJ |
| 737 | xmkmfpath |
| 738 | XMKMF |
| 739 | X_CFLAGS |
| 740 | X_PRE_LIBS |
| 741 | X_LIBS |
| 742 | X_EXTRA_LIBS |
| 743 | X_LIB |
| 744 | GTK_CONFIG |
| 745 | GTK12_CONFIG |
| 746 | PKG_CONFIG |
| 747 | GTK_CFLAGS |
| 748 | GTK_LIBS |
| 749 | GTK_LIBNAME |
| 750 | GNOME_LIBS |
| 751 | GNOME_LIBDIR |
| 752 | GNOME_INCLUDEDIR |
| 753 | GNOME_CONFIG |
| 754 | MOTIF_LIBNAME |
| 755 | NARROW_PROTO |
| 756 | GUI_INC_LOC |
| 757 | GUI_LIB_LOC |
| 758 | GUITYPE |
| 759 | GUI_X_LIBS |
| 760 | HANGULIN_SRC |
| 761 | HANGULIN_OBJ |
| 762 | TAGPRG |
| 763 | INSTALL_LANGS |
| 764 | INSTALL_TOOL_LANGS |
| 765 | MSGFMT |
| 766 | MAKEMO |
| 767 | DEPEND_CFLAGS_FILTER |
| 768 | LIBOBJS |
| 769 | LTLIBOBJS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 770 | ac_subst_files='' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 771 | ac_user_opts=' |
| 772 | enable_option_checking |
| 773 | enable_darwin |
| 774 | with_mac_arch |
| 775 | with_vim_name |
| 776 | with_ex_name |
| 777 | with_view_name |
| 778 | with_global_runtime |
| 779 | with_modified_by |
| 780 | enable_selinux |
| 781 | with_features |
| 782 | with_compiledby |
| 783 | enable_xsmp |
| 784 | enable_xsmp_interact |
| 785 | enable_mzschemeinterp |
| 786 | with_plthome |
| 787 | enable_perlinterp |
| 788 | enable_pythoninterp |
| 789 | with_python_config_dir |
| 790 | enable_tclinterp |
| 791 | with_tclsh |
| 792 | enable_rubyinterp |
| 793 | enable_cscope |
| 794 | enable_workshop |
| 795 | enable_netbeans |
| 796 | enable_sniff |
| 797 | enable_multibyte |
| 798 | enable_hangulinput |
| 799 | enable_xim |
| 800 | enable_fontset |
| 801 | with_x |
| 802 | enable_gui |
| 803 | enable_gtk_check |
| 804 | enable_gtk2_check |
| 805 | enable_gnome_check |
| 806 | enable_motif_check |
| 807 | enable_athena_check |
| 808 | enable_nextaw_check |
| 809 | enable_carbon_check |
| 810 | with_gtk_prefix |
| 811 | with_gtk_exec_prefix |
| 812 | enable_gtktest |
| 813 | with_gnome_includes |
| 814 | with_gnome_libs |
| 815 | with_gnome |
| 816 | with_motif_lib |
| 817 | with_tlib |
| 818 | enable_acl |
| 819 | enable_gpm |
| 820 | enable_sysmouse |
| 821 | enable_nls |
| 822 | ' |
| 823 | ac_precious_vars='build_alias |
| 824 | host_alias |
| 825 | target_alias |
| 826 | CC |
| 827 | CFLAGS |
| 828 | LDFLAGS |
| 829 | LIBS |
| 830 | CPPFLAGS |
| 831 | CPP |
| 832 | XMKMF' |
| 833 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 834 | |
| 835 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 836 | ac_init_help= |
| 837 | ac_init_version=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 838 | ac_unrecognized_opts= |
| 839 | ac_unrecognized_sep= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 840 | # The variables have the same names as the options, with |
| 841 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 842 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 843 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 844 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 845 | no_recursion= |
| 846 | prefix=NONE |
| 847 | program_prefix=NONE |
| 848 | program_suffix=NONE |
| 849 | program_transform_name=s,x,x, |
| 850 | silent= |
| 851 | site= |
| 852 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 853 | verbose= |
| 854 | x_includes=NONE |
| 855 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 856 | |
| 857 | # Installation directory options. |
| 858 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 859 | # and all the variables that are supposed to be based on exec_prefix |
| 860 | # by default will actually change. |
| 861 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 862 | # (The list follows the same order as the GNU Coding Standards.) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 863 | bindir='${exec_prefix}/bin' |
| 864 | sbindir='${exec_prefix}/sbin' |
| 865 | libexecdir='${exec_prefix}/libexec' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 866 | datarootdir='${prefix}/share' |
| 867 | datadir='${datarootdir}' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 868 | sysconfdir='${prefix}/etc' |
| 869 | sharedstatedir='${prefix}/com' |
| 870 | localstatedir='${prefix}/var' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 871 | includedir='${prefix}/include' |
| 872 | oldincludedir='/usr/include' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 873 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 874 | infodir='${datarootdir}/info' |
| 875 | htmldir='${docdir}' |
| 876 | dvidir='${docdir}' |
| 877 | pdfdir='${docdir}' |
| 878 | psdir='${docdir}' |
| 879 | libdir='${exec_prefix}/lib' |
| 880 | localedir='${datarootdir}/locale' |
| 881 | mandir='${datarootdir}/man' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 882 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 883 | ac_prev= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 884 | ac_dashdash= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 885 | for ac_option |
| 886 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 887 | # If the previous option needs an argument, assign it. |
| 888 | if test -n "$ac_prev"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 889 | eval $ac_prev=\$ac_option |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 890 | ac_prev= |
| 891 | continue |
| 892 | fi |
| 893 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 894 | case $ac_option in |
| 895 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 896 | *) ac_optarg=yes ;; |
| 897 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 898 | |
| 899 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 900 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 901 | case $ac_dashdash$ac_option in |
| 902 | --) |
| 903 | ac_dashdash=yes ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 904 | |
| 905 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 906 | ac_prev=bindir ;; |
| 907 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 908 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 909 | |
| 910 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 911 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 912 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 913 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 914 | |
| 915 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 916 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 917 | ac_prev=cache_file ;; |
| 918 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 919 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 920 | cache_file=$ac_optarg ;; |
| 921 | |
| 922 | --config-cache | -C) |
| 923 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 924 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 925 | -datadir | --datadir | --datadi | --datad) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 926 | ac_prev=datadir ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 927 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 928 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 929 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 930 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 931 | | --dataroo | --dataro | --datar) |
| 932 | ac_prev=datarootdir ;; |
| 933 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 934 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 935 | datarootdir=$ac_optarg ;; |
| 936 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 937 | -disable-* | --disable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 938 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 939 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 940 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 941 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 942 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 943 | ac_useropt_orig=$ac_useropt |
| 944 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 945 | case $ac_user_opts in |
| 946 | *" |
| 947 | "enable_$ac_useropt" |
| 948 | "*) ;; |
| 949 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 950 | ac_unrecognized_sep=', ';; |
| 951 | esac |
| 952 | eval enable_$ac_useropt=no ;; |
| 953 | |
| 954 | -docdir | --docdir | --docdi | --doc | --do) |
| 955 | ac_prev=docdir ;; |
| 956 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 957 | docdir=$ac_optarg ;; |
| 958 | |
| 959 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 960 | ac_prev=dvidir ;; |
| 961 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 962 | dvidir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 963 | |
| 964 | -enable-* | --enable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 965 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 966 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 967 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 968 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 969 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 970 | ac_useropt_orig=$ac_useropt |
| 971 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 972 | case $ac_user_opts in |
| 973 | *" |
| 974 | "enable_$ac_useropt" |
| 975 | "*) ;; |
| 976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 977 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 978 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 979 | eval enable_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 980 | |
| 981 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 982 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 983 | | --exec | --exe | --ex) |
| 984 | ac_prev=exec_prefix ;; |
| 985 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 986 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 987 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 988 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 989 | |
| 990 | -gas | --gas | --ga | --g) |
| 991 | # Obsolete; use --with-gas. |
| 992 | with_gas=yes ;; |
| 993 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 994 | -help | --help | --hel | --he | -h) |
| 995 | ac_init_help=long ;; |
| 996 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 997 | ac_init_help=recursive ;; |
| 998 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 999 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1000 | |
| 1001 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1002 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1003 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1004 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1005 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1006 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1007 | ac_prev=htmldir ;; |
| 1008 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1009 | | --ht=*) |
| 1010 | htmldir=$ac_optarg ;; |
| 1011 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1012 | -includedir | --includedir | --includedi | --included | --include \ |
| 1013 | | --includ | --inclu | --incl | --inc) |
| 1014 | ac_prev=includedir ;; |
| 1015 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1016 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1017 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1018 | |
| 1019 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1020 | ac_prev=infodir ;; |
| 1021 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1022 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1023 | |
| 1024 | -libdir | --libdir | --libdi | --libd) |
| 1025 | ac_prev=libdir ;; |
| 1026 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1027 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1028 | |
| 1029 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1030 | | --libexe | --libex | --libe) |
| 1031 | ac_prev=libexecdir ;; |
| 1032 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1033 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1034 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1035 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1036 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1037 | ac_prev=localedir ;; |
| 1038 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1039 | localedir=$ac_optarg ;; |
| 1040 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1041 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1042 | | --localstate | --localstat | --localsta | --localst | --locals) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1043 | ac_prev=localstatedir ;; |
| 1044 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1045 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1046 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1047 | |
| 1048 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1049 | ac_prev=mandir ;; |
| 1050 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1051 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1052 | |
| 1053 | -nfp | --nfp | --nf) |
| 1054 | # Obsolete; use --without-fp. |
| 1055 | with_fp=no ;; |
| 1056 | |
| 1057 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1058 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1059 | no_create=yes ;; |
| 1060 | |
| 1061 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1062 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1063 | no_recursion=yes ;; |
| 1064 | |
| 1065 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1066 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1067 | | --oldin | --oldi | --old | --ol | --o) |
| 1068 | ac_prev=oldincludedir ;; |
| 1069 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1070 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1071 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1072 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1073 | |
| 1074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1075 | ac_prev=prefix ;; |
| 1076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1077 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1078 | |
| 1079 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1080 | | --program-pre | --program-pr | --program-p) |
| 1081 | ac_prev=program_prefix ;; |
| 1082 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1083 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1084 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1085 | |
| 1086 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1087 | | --program-suf | --program-su | --program-s) |
| 1088 | ac_prev=program_suffix ;; |
| 1089 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1090 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1091 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1092 | |
| 1093 | -program-transform-name | --program-transform-name \ |
| 1094 | | --program-transform-nam | --program-transform-na \ |
| 1095 | | --program-transform-n | --program-transform- \ |
| 1096 | | --program-transform | --program-transfor \ |
| 1097 | | --program-transfo | --program-transf \ |
| 1098 | | --program-trans | --program-tran \ |
| 1099 | | --progr-tra | --program-tr | --program-t) |
| 1100 | ac_prev=program_transform_name ;; |
| 1101 | -program-transform-name=* | --program-transform-name=* \ |
| 1102 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1103 | | --program-transform-n=* | --program-transform-=* \ |
| 1104 | | --program-transform=* | --program-transfor=* \ |
| 1105 | | --program-transfo=* | --program-transf=* \ |
| 1106 | | --program-trans=* | --program-tran=* \ |
| 1107 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1108 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1109 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1110 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1111 | ac_prev=pdfdir ;; |
| 1112 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1113 | pdfdir=$ac_optarg ;; |
| 1114 | |
| 1115 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1116 | ac_prev=psdir ;; |
| 1117 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1118 | psdir=$ac_optarg ;; |
| 1119 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1120 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1121 | | -silent | --silent | --silen | --sile | --sil) |
| 1122 | silent=yes ;; |
| 1123 | |
| 1124 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1125 | ac_prev=sbindir ;; |
| 1126 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1127 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1128 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1129 | |
| 1130 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1131 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1132 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1133 | | --sha | --sh) |
| 1134 | ac_prev=sharedstatedir ;; |
| 1135 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1136 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1137 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1138 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1139 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1140 | |
| 1141 | -site | --site | --sit) |
| 1142 | ac_prev=site ;; |
| 1143 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1144 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1145 | |
| 1146 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1147 | ac_prev=srcdir ;; |
| 1148 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1149 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1150 | |
| 1151 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1152 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1153 | ac_prev=sysconfdir ;; |
| 1154 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1155 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1156 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1157 | |
| 1158 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1159 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1160 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1161 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1162 | |
| 1163 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1164 | verbose=yes ;; |
| 1165 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1166 | -version | --version | --versio | --versi | --vers | -V) |
| 1167 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1168 | |
| 1169 | -with-* | --with-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1170 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1171 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1173 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1174 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1175 | ac_useropt_orig=$ac_useropt |
| 1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1177 | case $ac_user_opts in |
| 1178 | *" |
| 1179 | "with_$ac_useropt" |
| 1180 | "*) ;; |
| 1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1182 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1183 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1184 | eval with_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1185 | |
| 1186 | -without-* | --without-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1188 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1190 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1191 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1192 | ac_useropt_orig=$ac_useropt |
| 1193 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1194 | case $ac_user_opts in |
| 1195 | *" |
| 1196 | "with_$ac_useropt" |
| 1197 | "*) ;; |
| 1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1199 | ac_unrecognized_sep=', ';; |
| 1200 | esac |
| 1201 | eval with_$ac_useropt=no ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1202 | |
| 1203 | --x) |
| 1204 | # Obsolete; use --with-x. |
| 1205 | with_x=yes ;; |
| 1206 | |
| 1207 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1208 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1209 | ac_prev=x_includes ;; |
| 1210 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1211 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1212 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1213 | |
| 1214 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1215 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1216 | ac_prev=x_libraries ;; |
| 1217 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1218 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1219 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1220 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1221 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1222 | Try \`$0 --help' for more information." >&2 |
| 1223 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1224 | ;; |
| 1225 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1226 | *=*) |
| 1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1228 | # Reject names that are not valid shell variable names. |
| 1229 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1230 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1231 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1232 | eval $ac_envvar=\$ac_optarg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1233 | export $ac_envvar ;; |
| 1234 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1235 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1236 | # FIXME: should be removed in autoconf 3.0. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1237 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1238 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1239 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1240 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1241 | ;; |
| 1242 | |
| 1243 | esac |
| 1244 | done |
| 1245 | |
| 1246 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1247 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1248 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1249 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1250 | fi |
| 1251 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1252 | if test -n "$ac_unrecognized_opts"; then |
| 1253 | case $enable_option_checking in |
| 1254 | no) ;; |
| 1255 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 |
| 1256 | { (exit 1); exit 1; }; } ;; |
| 1257 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1258 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1259 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1260 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1261 | # Check all directory arguments for consistency. |
| 1262 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1263 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1264 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1265 | libdir localedir mandir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1266 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1267 | eval ac_val=\$$ac_var |
| 1268 | # Remove trailing slashes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1269 | case $ac_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1270 | */ ) |
| 1271 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1272 | eval $ac_var=\$ac_val;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1273 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1274 | # Be sure to have absolute directory names. |
| 1275 | case $ac_val in |
| 1276 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1277 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1278 | esac |
| 1279 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1280 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1281 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1283 | # There might be people who depend on the old broken behavior: `$host' |
| 1284 | # used to hold the argument of --host etc. |
| 1285 | # FIXME: To remove some day. |
| 1286 | build=$build_alias |
| 1287 | host=$host_alias |
| 1288 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1289 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1290 | # FIXME: To remove some day. |
| 1291 | if test "x$host_alias" != x; then |
| 1292 | if test "x$build_alias" = x; then |
| 1293 | cross_compiling=maybe |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1294 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1295 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1296 | elif test "x$build_alias" != "x$host_alias"; then |
| 1297 | cross_compiling=yes |
| 1298 | fi |
| 1299 | fi |
| 1300 | |
| 1301 | ac_tool_prefix= |
| 1302 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1303 | |
| 1304 | test "$silent" = yes && exec 6>/dev/null |
| 1305 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1306 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1307 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1308 | ac_ls_di=`ls -di .` && |
| 1309 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1310 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1311 | { (exit 1); exit 1; }; } |
| 1312 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1313 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1314 | { (exit 1); exit 1; }; } |
| 1315 | |
| 1316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1317 | # Find the source files, if location was not specified. |
| 1318 | if test -z "$srcdir"; then |
| 1319 | ac_srcdir_defaulted=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1320 | # Try the directory containing this script, then the parent directory. |
| 1321 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1322 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1323 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1324 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1325 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1326 | $as_echo X"$as_myself" | |
| 1327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1328 | s//\1/ |
| 1329 | q |
| 1330 | } |
| 1331 | /^X\(\/\/\)[^/].*/{ |
| 1332 | s//\1/ |
| 1333 | q |
| 1334 | } |
| 1335 | /^X\(\/\/\)$/{ |
| 1336 | s//\1/ |
| 1337 | q |
| 1338 | } |
| 1339 | /^X\(\/\).*/{ |
| 1340 | s//\1/ |
| 1341 | q |
| 1342 | } |
| 1343 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1344 | srcdir=$ac_confdir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1346 | srcdir=.. |
| 1347 | fi |
| 1348 | else |
| 1349 | ac_srcdir_defaulted=no |
| 1350 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1351 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1352 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1353 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1354 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1355 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1356 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1357 | ac_abs_confdir=`( |
| 1358 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1359 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1360 | pwd)` |
| 1361 | # When building in place, set srcdir=. |
| 1362 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1363 | srcdir=. |
| 1364 | fi |
| 1365 | # Remove unnecessary trailing slashes from srcdir. |
| 1366 | # Double slashes in file names in object file debugging info |
| 1367 | # mess up M-x gdb in Emacs. |
| 1368 | case $srcdir in |
| 1369 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1370 | esac |
| 1371 | for ac_var in $ac_precious_vars; do |
| 1372 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1373 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1374 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1375 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1376 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1378 | # |
| 1379 | # Report the --help message. |
| 1380 | # |
| 1381 | if test "$ac_init_help" = "long"; then |
| 1382 | # Omit some internal or obsolete options to make the list less imposing. |
| 1383 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1384 | cat <<_ACEOF |
| 1385 | \`configure' configures this package to adapt to many kinds of systems. |
| 1386 | |
| 1387 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1388 | |
| 1389 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1390 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1391 | |
| 1392 | Defaults for the options are specified in brackets. |
| 1393 | |
| 1394 | Configuration: |
| 1395 | -h, --help display this help and exit |
| 1396 | --help=short display options specific to this package |
| 1397 | --help=recursive display the short help of all the included packages |
| 1398 | -V, --version display version information and exit |
| 1399 | -q, --quiet, --silent do not print \`checking...' messages |
| 1400 | --cache-file=FILE cache test results in FILE [disabled] |
| 1401 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1402 | -n, --no-create do not create output files |
| 1403 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1404 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1405 | Installation directories: |
| 1406 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1407 | [$ac_default_prefix] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1408 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1409 | [PREFIX] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1410 | |
| 1411 | By default, \`make install' will install all the files in |
| 1412 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1413 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1414 | for instance \`--prefix=\$HOME'. |
| 1415 | |
| 1416 | For better control, use the options below. |
| 1417 | |
| 1418 | Fine tuning of the installation directories: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1419 | --bindir=DIR user executables [EPREFIX/bin] |
| 1420 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1421 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1422 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1423 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1424 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1425 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1426 | --includedir=DIR C header files [PREFIX/include] |
| 1427 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1428 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1429 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1430 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1431 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1432 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1433 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1434 | --htmldir=DIR html documentation [DOCDIR] |
| 1435 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1436 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1437 | --psdir=DIR ps documentation [DOCDIR] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1438 | _ACEOF |
| 1439 | |
| 1440 | cat <<\_ACEOF |
| 1441 | |
| 1442 | X features: |
| 1443 | --x-includes=DIR X include files are in DIR |
| 1444 | --x-libraries=DIR X library files are in DIR |
| 1445 | _ACEOF |
| 1446 | fi |
| 1447 | |
| 1448 | if test -n "$ac_init_help"; then |
| 1449 | |
| 1450 | cat <<\_ACEOF |
| 1451 | |
| 1452 | Optional Features: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1453 | --disable-option-checking ignore unrecognized --enable/--with options |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1454 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1455 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1456 | --disable-darwin Disable Darwin (Mac OS X) support. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 1457 | --disable-selinux Don't check for SELinux support. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1458 | --disable-xsmp Disable XSMP session management |
| 1459 | --disable-xsmp-interact Disable XSMP interaction |
| 1460 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 1461 | --enable-perlinterp Include Perl interpreter. |
| 1462 | --enable-pythoninterp Include Python interpreter. |
| 1463 | --enable-tclinterp Include Tcl interpreter. |
| 1464 | --enable-rubyinterp Include Ruby interpreter. |
| 1465 | --enable-cscope Include cscope interface. |
| 1466 | --enable-workshop Include Sun Visual Workshop support. |
| 1467 | --disable-netbeans Disable NetBeans integration support. |
| 1468 | --enable-sniff Include Sniff interface. |
| 1469 | --enable-multibyte Include multibyte editing support. |
| 1470 | --enable-hangulinput Include Hangul input support. |
| 1471 | --enable-xim Include XIM input support. |
| 1472 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 1473 | --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1474 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 1475 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 1476 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 1477 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 1478 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 1479 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 1480 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1481 | --disable-gtktest Do not try to compile and run a test GTK program |
| 1482 | --disable-acl Don't check for ACL support. |
| 1483 | --disable-gpm Don't use gpm (Linux mouse daemon). |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1484 | --disable-sysmouse Don't use sysmouse (mouse in *BSD console). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1485 | --disable-nls Don't support NLS (gettext()). |
| 1486 | |
| 1487 | Optional Packages: |
| 1488 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1489 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 1490 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1491 | --with-vim-name=NAME what to call the Vim executable |
| 1492 | --with-ex-name=NAME what to call the Ex executable |
| 1493 | --with-view-name=NAME what to call the View executable |
| 1494 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 1495 | --with-modified-by=NAME name of who modified a release version |
| 1496 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 1497 | --with-compiledby=NAME name to show in :version message |
| 1498 | --with-plthome=PLTHOME Use PLTHOME. |
| 1499 | --with-python-config-dir=PATH Python's config directory |
| 1500 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 1501 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1502 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 1503 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 1504 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 1505 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 1506 | --with-gnome Specify prefix for GNOME files |
| 1507 | --with-motif-lib=STRING Library for Motif |
| 1508 | --with-tlib=library terminal library to be used |
| 1509 | |
| 1510 | Some influential environment variables: |
| 1511 | CC C compiler command |
| 1512 | CFLAGS C compiler flags |
| 1513 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1514 | nonstandard directory <lib dir> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1515 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1516 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1517 | you have headers in a nonstandard directory <include dir> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1518 | CPP C preprocessor |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1519 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1520 | |
| 1521 | Use these variables to override the choices made by `configure' or to help |
| 1522 | it to find libraries and programs with nonstandard names/locations. |
| 1523 | |
| 1524 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1525 | ac_status=$? |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1526 | fi |
| 1527 | |
| 1528 | if test "$ac_init_help" = "recursive"; then |
| 1529 | # If there are subdirs, report their specific --help. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1530 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1531 | test -d "$ac_dir" || |
| 1532 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1533 | continue |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1534 | ac_builddir=. |
| 1535 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1536 | case "$ac_dir" in |
| 1537 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1538 | *) |
| 1539 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1540 | # A ".." for each directory in $ac_dir_suffix. |
| 1541 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1542 | case $ac_top_builddir_sub in |
| 1543 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1544 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1545 | esac ;; |
| 1546 | esac |
| 1547 | ac_abs_top_builddir=$ac_pwd |
| 1548 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1549 | # for backward compatibility: |
| 1550 | ac_top_builddir=$ac_top_build_prefix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1551 | |
| 1552 | case $srcdir in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1553 | .) # We are building in place. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1554 | ac_srcdir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1555 | ac_top_srcdir=$ac_top_builddir_sub |
| 1556 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1557 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1558 | ac_srcdir=$srcdir$ac_dir_suffix; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1559 | ac_top_srcdir=$srcdir |
| 1560 | ac_abs_top_srcdir=$srcdir ;; |
| 1561 | *) # Relative name. |
| 1562 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1563 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1564 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1565 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1566 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1567 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1568 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1569 | # Check for guested configure. |
| 1570 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1571 | echo && |
| 1572 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1573 | elif test -f "$ac_srcdir/configure"; then |
| 1574 | echo && |
| 1575 | $SHELL "$ac_srcdir/configure" --help=recursive |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1576 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1577 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1578 | fi || ac_status=$? |
| 1579 | cd "$ac_pwd" || { ac_status=$?; break; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1580 | done |
| 1581 | fi |
| 1582 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1583 | test -n "$ac_init_help" && exit $ac_status |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1584 | if $ac_init_version; then |
| 1585 | cat <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1586 | configure |
| 1587 | generated by GNU Autoconf 2.62 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1588 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1589 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1590 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1591 | This configure script is free software; the Free Software Foundation |
| 1592 | gives unlimited permission to copy, distribute and modify it. |
| 1593 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1594 | exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1595 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1596 | cat >auto/config.log <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1597 | This file contains any messages produced by compilers while |
| 1598 | running configure, to aid debugging if configure makes a mistake. |
| 1599 | |
| 1600 | It was created by $as_me, which was |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1601 | generated by GNU Autoconf 2.62. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1602 | |
| 1603 | $ $0 $@ |
| 1604 | |
| 1605 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1606 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1607 | { |
| 1608 | cat <<_ASUNAME |
| 1609 | ## --------- ## |
| 1610 | ## Platform. ## |
| 1611 | ## --------- ## |
| 1612 | |
| 1613 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1614 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1615 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1616 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1617 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1618 | |
| 1619 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1620 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1621 | |
| 1622 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1623 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1624 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1625 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1626 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1627 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1628 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1629 | |
| 1630 | _ASUNAME |
| 1631 | |
| 1632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1633 | for as_dir in $PATH |
| 1634 | do |
| 1635 | IFS=$as_save_IFS |
| 1636 | test -z "$as_dir" && as_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1637 | $as_echo "PATH: $as_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1638 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1639 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1640 | |
| 1641 | } >&5 |
| 1642 | |
| 1643 | cat >&5 <<_ACEOF |
| 1644 | |
| 1645 | |
| 1646 | ## ----------- ## |
| 1647 | ## Core tests. ## |
| 1648 | ## ----------- ## |
| 1649 | |
| 1650 | _ACEOF |
| 1651 | |
| 1652 | |
| 1653 | # Keep a trace of the command line. |
| 1654 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1655 | # Strip out --silent because we don't want to record it for future runs. |
| 1656 | # Also quote any args containing shell meta-characters. |
| 1657 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1658 | ac_configure_args= |
| 1659 | ac_configure_args0= |
| 1660 | ac_configure_args1= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1661 | ac_must_keep_next=false |
| 1662 | for ac_pass in 1 2 |
| 1663 | do |
| 1664 | for ac_arg |
| 1665 | do |
| 1666 | case $ac_arg in |
| 1667 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1668 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1669 | | -silent | --silent | --silen | --sile | --sil) |
| 1670 | continue ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1671 | *\'*) |
| 1672 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1673 | esac |
| 1674 | case $ac_pass in |
| 1675 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1676 | 2) |
| 1677 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1678 | if test $ac_must_keep_next = true; then |
| 1679 | ac_must_keep_next=false # Got value, back to normal. |
| 1680 | else |
| 1681 | case $ac_arg in |
| 1682 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1683 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1684 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1685 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1686 | case "$ac_configure_args0 " in |
| 1687 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1688 | esac |
| 1689 | ;; |
| 1690 | -* ) ac_must_keep_next=true ;; |
| 1691 | esac |
| 1692 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1693 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1694 | ;; |
| 1695 | esac |
| 1696 | done |
| 1697 | done |
| 1698 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1699 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1700 | |
| 1701 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1702 | # config.log. We remove comments because anyway the quotes in there |
| 1703 | # would cause problems or look ugly. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1704 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1705 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1706 | trap 'exit_status=$? |
| 1707 | # Save into config.log some information that might help in debugging. |
| 1708 | { |
| 1709 | echo |
| 1710 | |
| 1711 | cat <<\_ASBOX |
| 1712 | ## ---------------- ## |
| 1713 | ## Cache variables. ## |
| 1714 | ## ---------------- ## |
| 1715 | _ASBOX |
| 1716 | echo |
| 1717 | # The following way of writing the cache mishandles newlines in values, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1718 | ( |
| 1719 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1720 | eval ac_val=\$$ac_var |
| 1721 | case $ac_val in #( |
| 1722 | *${as_nl}*) |
| 1723 | case $ac_var in #( |
| 1724 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1725 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1726 | esac |
| 1727 | case $ac_var in #( |
| 1728 | _ | IFS | as_nl) ;; #( |
| 1729 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1730 | *) $as_unset $ac_var ;; |
| 1731 | esac ;; |
| 1732 | esac |
| 1733 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1734 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1735 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1736 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1737 | sed -n \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1738 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1739 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1740 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1741 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1742 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1743 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1744 | esac | |
| 1745 | sort |
| 1746 | ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1747 | echo |
| 1748 | |
| 1749 | cat <<\_ASBOX |
| 1750 | ## ----------------- ## |
| 1751 | ## Output variables. ## |
| 1752 | ## ----------------- ## |
| 1753 | _ASBOX |
| 1754 | echo |
| 1755 | for ac_var in $ac_subst_vars |
| 1756 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1757 | eval ac_val=\$$ac_var |
| 1758 | case $ac_val in |
| 1759 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1760 | esac |
| 1761 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1762 | done | sort |
| 1763 | echo |
| 1764 | |
| 1765 | if test -n "$ac_subst_files"; then |
| 1766 | cat <<\_ASBOX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1767 | ## ------------------- ## |
| 1768 | ## File substitutions. ## |
| 1769 | ## ------------------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1770 | _ASBOX |
| 1771 | echo |
| 1772 | for ac_var in $ac_subst_files |
| 1773 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1774 | eval ac_val=\$$ac_var |
| 1775 | case $ac_val in |
| 1776 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1777 | esac |
| 1778 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1779 | done | sort |
| 1780 | echo |
| 1781 | fi |
| 1782 | |
| 1783 | if test -s confdefs.h; then |
| 1784 | cat <<\_ASBOX |
| 1785 | ## ----------- ## |
| 1786 | ## confdefs.h. ## |
| 1787 | ## ----------- ## |
| 1788 | _ASBOX |
| 1789 | echo |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1790 | cat confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1791 | echo |
| 1792 | fi |
| 1793 | test "$ac_signal" != 0 && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1794 | $as_echo "$as_me: caught signal $ac_signal" |
| 1795 | $as_echo "$as_me: exit $exit_status" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1796 | } >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1797 | rm -f core *.core core.conftest.* && |
| 1798 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1799 | exit $exit_status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1800 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1801 | for ac_signal in 1 2 13 15; do |
| 1802 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1803 | done |
| 1804 | ac_signal=0 |
| 1805 | |
| 1806 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1807 | rm -f -r conftest* confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1808 | |
| 1809 | # Predefined preprocessor variables. |
| 1810 | |
| 1811 | cat >>confdefs.h <<_ACEOF |
| 1812 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1813 | _ACEOF |
| 1814 | |
| 1815 | |
| 1816 | cat >>confdefs.h <<_ACEOF |
| 1817 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1818 | _ACEOF |
| 1819 | |
| 1820 | |
| 1821 | cat >>confdefs.h <<_ACEOF |
| 1822 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1823 | _ACEOF |
| 1824 | |
| 1825 | |
| 1826 | cat >>confdefs.h <<_ACEOF |
| 1827 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1828 | _ACEOF |
| 1829 | |
| 1830 | |
| 1831 | cat >>confdefs.h <<_ACEOF |
| 1832 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1833 | _ACEOF |
| 1834 | |
| 1835 | |
| 1836 | # Let the site file select an alternate cache file if it wants to. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1837 | # Prefer an explicitly selected file to automatically selected ones. |
| 1838 | ac_site_file1=NONE |
| 1839 | ac_site_file2=NONE |
| 1840 | if test -n "$CONFIG_SITE"; then |
| 1841 | ac_site_file1=$CONFIG_SITE |
| 1842 | elif test "x$prefix" != xNONE; then |
| 1843 | ac_site_file1=$prefix/share/config.site |
| 1844 | ac_site_file2=$prefix/etc/config.site |
| 1845 | else |
| 1846 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1847 | ac_site_file2=$ac_default_prefix/etc/config.site |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1848 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1849 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1850 | do |
| 1851 | test "x$ac_site_file" = xNONE && continue |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1852 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1853 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1854 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1855 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1856 | . "$ac_site_file" |
| 1857 | fi |
| 1858 | done |
| 1859 | |
| 1860 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1861 | # Some versions of bash will fail to source /dev/null (special |
| 1862 | # files actually), so we avoid doing that. |
| 1863 | if test -f "$cache_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1864 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1865 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1866 | case $cache_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1867 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1868 | *) . "./$cache_file";; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1869 | esac |
| 1870 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1871 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1872 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1873 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1874 | >$cache_file |
| 1875 | fi |
| 1876 | |
| 1877 | # Check that the precious variables saved in the cache have kept the same |
| 1878 | # value. |
| 1879 | ac_cache_corrupted=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1880 | for ac_var in $ac_precious_vars; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1881 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1882 | eval ac_new_set=\$ac_env_${ac_var}_set |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1883 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1884 | eval ac_new_val=\$ac_env_${ac_var}_value |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1885 | case $ac_old_set,$ac_new_set in |
| 1886 | set,) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1887 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1888 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1889 | ac_cache_corrupted=: ;; |
| 1890 | ,set) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1891 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1892 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1893 | ac_cache_corrupted=: ;; |
| 1894 | ,);; |
| 1895 | *) |
| 1896 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1897 | # differences in whitespace do not lead to failure. |
| 1898 | ac_old_val_w=`echo x $ac_old_val` |
| 1899 | ac_new_val_w=`echo x $ac_new_val` |
| 1900 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1901 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1902 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1903 | ac_cache_corrupted=: |
| 1904 | else |
| 1905 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1906 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1907 | eval $ac_var=\$ac_old_val |
| 1908 | fi |
| 1909 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1910 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1911 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1912 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1913 | fi;; |
| 1914 | esac |
| 1915 | # Pass precious variables to config.status. |
| 1916 | if test "$ac_new_set" = set; then |
| 1917 | case $ac_new_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1918 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1919 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1920 | esac |
| 1921 | case " $ac_configure_args " in |
| 1922 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1923 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1924 | esac |
| 1925 | fi |
| 1926 | done |
| 1927 | if $ac_cache_corrupted; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1928 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1929 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1930 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1931 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1932 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1933 | fi |
| 1934 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1935 | |
| 1936 | |
| 1937 | |
| 1938 | |
| 1939 | |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1951 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1952 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1956 | |
| 1957 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1958 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1959 | |
| 1960 | |
| 1961 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1962 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1963 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1964 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1965 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1966 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 1967 | set x ${MAKE-make} |
| 1968 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 1969 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 1970 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1971 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1972 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1973 | SHELL = /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1974 | all: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1975 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1976 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1977 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1978 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 1979 | *@@@%%%=?*=@@@%%%*) |
| 1980 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 1981 | *) |
| 1982 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 1983 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1984 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1985 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1986 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 1987 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 1988 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1989 | SET_MAKE= |
| 1990 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1991 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 1992 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1993 | SET_MAKE="MAKE=${MAKE-make}" |
| 1994 | fi |
| 1995 | |
| 1996 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1997 | ac_ext=c |
| 1998 | ac_cpp='$CPP $CPPFLAGS' |
| 1999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2002 | if test -n "$ac_tool_prefix"; then |
| 2003 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2004 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2005 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2006 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2007 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2008 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2009 | else |
| 2010 | if test -n "$CC"; then |
| 2011 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2012 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2014 | for as_dir in $PATH |
| 2015 | do |
| 2016 | IFS=$as_save_IFS |
| 2017 | test -z "$as_dir" && as_dir=. |
| 2018 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2020 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2021 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2022 | break 2 |
| 2023 | fi |
| 2024 | done |
| 2025 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2026 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2027 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2028 | fi |
| 2029 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2030 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2031 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2032 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2033 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2034 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2035 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2036 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2037 | fi |
| 2038 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2039 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2040 | fi |
| 2041 | if test -z "$ac_cv_prog_CC"; then |
| 2042 | ac_ct_CC=$CC |
| 2043 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2044 | set dummy gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2045 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2046 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2047 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2048 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2049 | else |
| 2050 | if test -n "$ac_ct_CC"; then |
| 2051 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2052 | else |
| 2053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2054 | for as_dir in $PATH |
| 2055 | do |
| 2056 | IFS=$as_save_IFS |
| 2057 | test -z "$as_dir" && as_dir=. |
| 2058 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2060 | ac_cv_prog_ac_ct_CC="gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2061 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2062 | break 2 |
| 2063 | fi |
| 2064 | done |
| 2065 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2066 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2067 | |
| 2068 | fi |
| 2069 | fi |
| 2070 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2071 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2072 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2073 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2074 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2075 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2076 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2077 | fi |
| 2078 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2079 | if test "x$ac_ct_CC" = x; then |
| 2080 | CC="" |
| 2081 | else |
| 2082 | case $cross_compiling:$ac_tool_warned in |
| 2083 | yes:) |
| 2084 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2085 | whose name does not start with the host triplet. If you think this |
| 2086 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2087 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2088 | whose name does not start with the host triplet. If you think this |
| 2089 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2090 | ac_tool_warned=yes ;; |
| 2091 | esac |
| 2092 | CC=$ac_ct_CC |
| 2093 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2094 | else |
| 2095 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2096 | fi |
| 2097 | |
| 2098 | if test -z "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2099 | if test -n "$ac_tool_prefix"; then |
| 2100 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2101 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2102 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2103 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2104 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2105 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2106 | else |
| 2107 | if test -n "$CC"; then |
| 2108 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2109 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2111 | for as_dir in $PATH |
| 2112 | do |
| 2113 | IFS=$as_save_IFS |
| 2114 | test -z "$as_dir" && as_dir=. |
| 2115 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2117 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2118 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2119 | break 2 |
| 2120 | fi |
| 2121 | done |
| 2122 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2123 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2124 | |
| 2125 | fi |
| 2126 | fi |
| 2127 | CC=$ac_cv_prog_CC |
| 2128 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2129 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2130 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2131 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2132 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2133 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2134 | fi |
| 2135 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2136 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2137 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2138 | fi |
| 2139 | if test -z "$CC"; then |
| 2140 | # Extract the first word of "cc", so it can be a program name with args. |
| 2141 | set dummy cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2142 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2143 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2144 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2145 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2146 | else |
| 2147 | if test -n "$CC"; then |
| 2148 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2149 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2150 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2152 | for as_dir in $PATH |
| 2153 | do |
| 2154 | IFS=$as_save_IFS |
| 2155 | test -z "$as_dir" && as_dir=. |
| 2156 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2158 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2159 | ac_prog_rejected=yes |
| 2160 | continue |
| 2161 | fi |
| 2162 | ac_cv_prog_CC="cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2163 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2164 | break 2 |
| 2165 | fi |
| 2166 | done |
| 2167 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2168 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2169 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2170 | if test $ac_prog_rejected = yes; then |
| 2171 | # We found a bogon in the path, so make sure we never use it. |
| 2172 | set dummy $ac_cv_prog_CC |
| 2173 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2174 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2175 | # We chose a different compiler from the bogus one. |
| 2176 | # However, it has the same basename, so the bogon will be chosen |
| 2177 | # first if we set CC to just the basename; use the full file name. |
| 2178 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2179 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2180 | fi |
| 2181 | fi |
| 2182 | fi |
| 2183 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2184 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2185 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2186 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2187 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2188 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2189 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2190 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2191 | fi |
| 2192 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2193 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2194 | fi |
| 2195 | if test -z "$CC"; then |
| 2196 | if test -n "$ac_tool_prefix"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2197 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2198 | do |
| 2199 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2200 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2201 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2202 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2203 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2204 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2205 | else |
| 2206 | if test -n "$CC"; then |
| 2207 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2208 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2210 | for as_dir in $PATH |
| 2211 | do |
| 2212 | IFS=$as_save_IFS |
| 2213 | test -z "$as_dir" && as_dir=. |
| 2214 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2216 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2217 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2218 | break 2 |
| 2219 | fi |
| 2220 | done |
| 2221 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2222 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2223 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2224 | fi |
| 2225 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2226 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2227 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2228 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2229 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2230 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2231 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2232 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2233 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2234 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2235 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2236 | test -n "$CC" && break |
| 2237 | done |
| 2238 | fi |
| 2239 | if test -z "$CC"; then |
| 2240 | ac_ct_CC=$CC |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2241 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2242 | do |
| 2243 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2244 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2245 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2246 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2247 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2248 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2249 | else |
| 2250 | if test -n "$ac_ct_CC"; then |
| 2251 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2252 | else |
| 2253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2254 | for as_dir in $PATH |
| 2255 | do |
| 2256 | IFS=$as_save_IFS |
| 2257 | test -z "$as_dir" && as_dir=. |
| 2258 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2260 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2261 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2262 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2263 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2264 | done |
| 2265 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2266 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2267 | |
| 2268 | fi |
| 2269 | fi |
| 2270 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2271 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2272 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2273 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2274 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2275 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2276 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2277 | fi |
| 2278 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2279 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2280 | test -n "$ac_ct_CC" && break |
| 2281 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2282 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2283 | if test "x$ac_ct_CC" = x; then |
| 2284 | CC="" |
| 2285 | else |
| 2286 | case $cross_compiling:$ac_tool_warned in |
| 2287 | yes:) |
| 2288 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2289 | whose name does not start with the host triplet. If you think this |
| 2290 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2291 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2292 | whose name does not start with the host triplet. If you think this |
| 2293 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2294 | ac_tool_warned=yes ;; |
| 2295 | esac |
| 2296 | CC=$ac_ct_CC |
| 2297 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2298 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2299 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2300 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2301 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2302 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2303 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2304 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2305 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2306 | See \`config.log' for more details." >&2;} |
| 2307 | { (exit 1); exit 1; }; } |
| 2308 | |
| 2309 | # Provide some information about the compiler. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2310 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2311 | set X $ac_compile |
| 2312 | ac_compiler=$2 |
| 2313 | { (ac_try="$ac_compiler --version >&5" |
| 2314 | case "(($ac_try" in |
| 2315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2316 | *) ac_try_echo=$ac_try;; |
| 2317 | esac |
| 2318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2319 | $as_echo "$ac_try_echo") >&5 |
| 2320 | (eval "$ac_compiler --version >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2321 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2323 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2324 | { (ac_try="$ac_compiler -v >&5" |
| 2325 | case "(($ac_try" in |
| 2326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2327 | *) ac_try_echo=$ac_try;; |
| 2328 | esac |
| 2329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2330 | $as_echo "$ac_try_echo") >&5 |
| 2331 | (eval "$ac_compiler -v >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2332 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2334 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2335 | { (ac_try="$ac_compiler -V >&5" |
| 2336 | case "(($ac_try" in |
| 2337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2338 | *) ac_try_echo=$ac_try;; |
| 2339 | esac |
| 2340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2341 | $as_echo "$ac_try_echo") >&5 |
| 2342 | (eval "$ac_compiler -V >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2343 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2345 | (exit $ac_status); } |
| 2346 | |
| 2347 | cat >conftest.$ac_ext <<_ACEOF |
| 2348 | /* confdefs.h. */ |
| 2349 | _ACEOF |
| 2350 | cat confdefs.h >>conftest.$ac_ext |
| 2351 | cat >>conftest.$ac_ext <<_ACEOF |
| 2352 | /* end confdefs.h. */ |
| 2353 | |
| 2354 | int |
| 2355 | main () |
| 2356 | { |
| 2357 | |
| 2358 | ; |
| 2359 | return 0; |
| 2360 | } |
| 2361 | _ACEOF |
| 2362 | ac_clean_files_save=$ac_clean_files |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2363 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2364 | # Try to create an executable without -o first, disregard a.out. |
| 2365 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2366 | # of exeext. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2367 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2368 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2369 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2370 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2371 | # The possible output files: |
| 2372 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2373 | |
| 2374 | ac_rmfiles= |
| 2375 | for ac_file in $ac_files |
| 2376 | do |
| 2377 | case $ac_file in |
| 2378 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2379 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2380 | esac |
| 2381 | done |
| 2382 | rm -f $ac_rmfiles |
| 2383 | |
| 2384 | if { (ac_try="$ac_link_default" |
| 2385 | case "(($ac_try" in |
| 2386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2387 | *) ac_try_echo=$ac_try;; |
| 2388 | esac |
| 2389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2390 | $as_echo "$ac_try_echo") >&5 |
| 2391 | (eval "$ac_link_default") 2>&5 |
| 2392 | ac_status=$? |
| 2393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2394 | (exit $ac_status); }; then |
| 2395 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2396 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2397 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2398 | # so that the user can short-circuit this test for compilers unknown to |
| 2399 | # Autoconf. |
| 2400 | for ac_file in $ac_files '' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2401 | do |
| 2402 | test -f "$ac_file" || continue |
| 2403 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2404 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2405 | ;; |
| 2406 | [ab].out ) |
| 2407 | # We found the default executable, but exeext='' is most |
| 2408 | # certainly right. |
| 2409 | break;; |
| 2410 | *.* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2411 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2412 | then :; else |
| 2413 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2414 | fi |
| 2415 | # We set ac_cv_exeext here because the later test for it is not |
| 2416 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2417 | # argument, so we may need to know it at that point already. |
| 2418 | # Even if this section looks crufty: it has the advantage of |
| 2419 | # actually working. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2420 | break;; |
| 2421 | * ) |
| 2422 | break;; |
| 2423 | esac |
| 2424 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2425 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2426 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2427 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2428 | ac_file='' |
| 2429 | fi |
| 2430 | |
| 2431 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2432 | $as_echo "$ac_file" >&6; } |
| 2433 | if test -z "$ac_file"; then |
| 2434 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2436 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2437 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2438 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2439 | $as_echo "$as_me: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2440 | See \`config.log' for more details." >&2;} |
| 2441 | { (exit 77); exit 77; }; } |
| 2442 | fi |
| 2443 | |
| 2444 | ac_exeext=$ac_cv_exeext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2445 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2446 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2447 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2448 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2449 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2450 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2451 | # If not cross compiling, check that we can run a simple program. |
| 2452 | if test "$cross_compiling" != yes; then |
| 2453 | if { ac_try='./$ac_file' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2454 | { (case "(($ac_try" in |
| 2455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2456 | *) ac_try_echo=$ac_try;; |
| 2457 | esac |
| 2458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2459 | $as_echo "$ac_try_echo") >&5 |
| 2460 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2461 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2463 | (exit $ac_status); }; }; then |
| 2464 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2465 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2466 | if test "$cross_compiling" = maybe; then |
| 2467 | cross_compiling=yes |
| 2468 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2469 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2470 | If you meant to cross compile, use \`--host'. |
| 2471 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2472 | $as_echo "$as_me: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2473 | If you meant to cross compile, use \`--host'. |
| 2474 | See \`config.log' for more details." >&2;} |
| 2475 | { (exit 1); exit 1; }; } |
| 2476 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2477 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2478 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2479 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2480 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2481 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2482 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2483 | ac_clean_files=$ac_clean_files_save |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2484 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2485 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2486 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2487 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2488 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2489 | $as_echo "$cross_compiling" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2490 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2491 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2492 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2493 | if { (ac_try="$ac_link" |
| 2494 | case "(($ac_try" in |
| 2495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2496 | *) ac_try_echo=$ac_try;; |
| 2497 | esac |
| 2498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2499 | $as_echo "$ac_try_echo") >&5 |
| 2500 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2501 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2503 | (exit $ac_status); }; then |
| 2504 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2505 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2506 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2507 | # `rm'. |
| 2508 | for ac_file in conftest.exe conftest conftest.*; do |
| 2509 | test -f "$ac_file" || continue |
| 2510 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2511 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2512 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2513 | break;; |
| 2514 | * ) break;; |
| 2515 | esac |
| 2516 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2517 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2518 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2519 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2520 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2521 | See \`config.log' for more details." >&2;} |
| 2522 | { (exit 1); exit 1; }; } |
| 2523 | fi |
| 2524 | |
| 2525 | rm -f conftest$ac_cv_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2527 | $as_echo "$ac_cv_exeext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2528 | |
| 2529 | rm -f conftest.$ac_ext |
| 2530 | EXEEXT=$ac_cv_exeext |
| 2531 | ac_exeext=$EXEEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2532 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2533 | $as_echo_n "checking for suffix of object files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2534 | if test "${ac_cv_objext+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2535 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2536 | else |
| 2537 | cat >conftest.$ac_ext <<_ACEOF |
| 2538 | /* confdefs.h. */ |
| 2539 | _ACEOF |
| 2540 | cat confdefs.h >>conftest.$ac_ext |
| 2541 | cat >>conftest.$ac_ext <<_ACEOF |
| 2542 | /* end confdefs.h. */ |
| 2543 | |
| 2544 | int |
| 2545 | main () |
| 2546 | { |
| 2547 | |
| 2548 | ; |
| 2549 | return 0; |
| 2550 | } |
| 2551 | _ACEOF |
| 2552 | rm -f conftest.o conftest.obj |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2553 | if { (ac_try="$ac_compile" |
| 2554 | case "(($ac_try" in |
| 2555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2556 | *) ac_try_echo=$ac_try;; |
| 2557 | esac |
| 2558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2559 | $as_echo "$ac_try_echo") >&5 |
| 2560 | (eval "$ac_compile") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2561 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2563 | (exit $ac_status); }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2564 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2565 | test -f "$ac_file" || continue; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2566 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2567 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2568 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2569 | break;; |
| 2570 | esac |
| 2571 | done |
| 2572 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2573 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2575 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2576 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2577 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2578 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2579 | See \`config.log' for more details." >&2;} |
| 2580 | { (exit 1); exit 1; }; } |
| 2581 | fi |
| 2582 | |
| 2583 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2584 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2585 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2586 | $as_echo "$ac_cv_objext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2587 | OBJEXT=$ac_cv_objext |
| 2588 | ac_objext=$OBJEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2589 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2590 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2591 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2592 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2593 | else |
| 2594 | cat >conftest.$ac_ext <<_ACEOF |
| 2595 | /* confdefs.h. */ |
| 2596 | _ACEOF |
| 2597 | cat confdefs.h >>conftest.$ac_ext |
| 2598 | cat >>conftest.$ac_ext <<_ACEOF |
| 2599 | /* end confdefs.h. */ |
| 2600 | |
| 2601 | int |
| 2602 | main () |
| 2603 | { |
| 2604 | #ifndef __GNUC__ |
| 2605 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2606 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2607 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2608 | ; |
| 2609 | return 0; |
| 2610 | } |
| 2611 | _ACEOF |
| 2612 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2613 | if { (ac_try="$ac_compile" |
| 2614 | case "(($ac_try" in |
| 2615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2616 | *) ac_try_echo=$ac_try;; |
| 2617 | esac |
| 2618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2619 | $as_echo "$ac_try_echo") >&5 |
| 2620 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2621 | ac_status=$? |
| 2622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2623 | rm -f conftest.er1 |
| 2624 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2626 | (exit $ac_status); } && { |
| 2627 | test -z "$ac_c_werror_flag" || |
| 2628 | test ! -s conftest.err |
| 2629 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2630 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2631 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2632 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2634 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2635 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2636 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2637 | |
| 2638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2639 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2640 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2641 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2642 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2643 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2644 | if test $ac_compiler_gnu = yes; then |
| 2645 | GCC=yes |
| 2646 | else |
| 2647 | GCC= |
| 2648 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2649 | ac_test_CFLAGS=${CFLAGS+set} |
| 2650 | ac_save_CFLAGS=$CFLAGS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2651 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2652 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2653 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2654 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2655 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2656 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2657 | ac_c_werror_flag=yes |
| 2658 | ac_cv_prog_cc_g=no |
| 2659 | CFLAGS="-g" |
| 2660 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2661 | /* confdefs.h. */ |
| 2662 | _ACEOF |
| 2663 | cat confdefs.h >>conftest.$ac_ext |
| 2664 | cat >>conftest.$ac_ext <<_ACEOF |
| 2665 | /* end confdefs.h. */ |
| 2666 | |
| 2667 | int |
| 2668 | main () |
| 2669 | { |
| 2670 | |
| 2671 | ; |
| 2672 | return 0; |
| 2673 | } |
| 2674 | _ACEOF |
| 2675 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2676 | if { (ac_try="$ac_compile" |
| 2677 | case "(($ac_try" in |
| 2678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2679 | *) ac_try_echo=$ac_try;; |
| 2680 | esac |
| 2681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2682 | $as_echo "$ac_try_echo") >&5 |
| 2683 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2684 | ac_status=$? |
| 2685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2686 | rm -f conftest.er1 |
| 2687 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2689 | (exit $ac_status); } && { |
| 2690 | test -z "$ac_c_werror_flag" || |
| 2691 | test ! -s conftest.err |
| 2692 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2693 | ac_cv_prog_cc_g=yes |
| 2694 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2695 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2696 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2697 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2698 | CFLAGS="" |
| 2699 | cat >conftest.$ac_ext <<_ACEOF |
| 2700 | /* confdefs.h. */ |
| 2701 | _ACEOF |
| 2702 | cat confdefs.h >>conftest.$ac_ext |
| 2703 | cat >>conftest.$ac_ext <<_ACEOF |
| 2704 | /* end confdefs.h. */ |
| 2705 | |
| 2706 | int |
| 2707 | main () |
| 2708 | { |
| 2709 | |
| 2710 | ; |
| 2711 | return 0; |
| 2712 | } |
| 2713 | _ACEOF |
| 2714 | rm -f conftest.$ac_objext |
| 2715 | if { (ac_try="$ac_compile" |
| 2716 | case "(($ac_try" in |
| 2717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2718 | *) ac_try_echo=$ac_try;; |
| 2719 | esac |
| 2720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2721 | $as_echo "$ac_try_echo") >&5 |
| 2722 | (eval "$ac_compile") 2>conftest.er1 |
| 2723 | ac_status=$? |
| 2724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2725 | rm -f conftest.er1 |
| 2726 | cat conftest.err >&5 |
| 2727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2728 | (exit $ac_status); } && { |
| 2729 | test -z "$ac_c_werror_flag" || |
| 2730 | test ! -s conftest.err |
| 2731 | } && test -s conftest.$ac_objext; then |
| 2732 | : |
| 2733 | else |
| 2734 | $as_echo "$as_me: failed program was:" >&5 |
| 2735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2736 | |
| 2737 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2738 | CFLAGS="-g" |
| 2739 | cat >conftest.$ac_ext <<_ACEOF |
| 2740 | /* confdefs.h. */ |
| 2741 | _ACEOF |
| 2742 | cat confdefs.h >>conftest.$ac_ext |
| 2743 | cat >>conftest.$ac_ext <<_ACEOF |
| 2744 | /* end confdefs.h. */ |
| 2745 | |
| 2746 | int |
| 2747 | main () |
| 2748 | { |
| 2749 | |
| 2750 | ; |
| 2751 | return 0; |
| 2752 | } |
| 2753 | _ACEOF |
| 2754 | rm -f conftest.$ac_objext |
| 2755 | if { (ac_try="$ac_compile" |
| 2756 | case "(($ac_try" in |
| 2757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2758 | *) ac_try_echo=$ac_try;; |
| 2759 | esac |
| 2760 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2761 | $as_echo "$ac_try_echo") >&5 |
| 2762 | (eval "$ac_compile") 2>conftest.er1 |
| 2763 | ac_status=$? |
| 2764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2765 | rm -f conftest.er1 |
| 2766 | cat conftest.err >&5 |
| 2767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2768 | (exit $ac_status); } && { |
| 2769 | test -z "$ac_c_werror_flag" || |
| 2770 | test ! -s conftest.err |
| 2771 | } && test -s conftest.$ac_objext; then |
| 2772 | ac_cv_prog_cc_g=yes |
| 2773 | else |
| 2774 | $as_echo "$as_me: failed program was:" >&5 |
| 2775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2776 | |
| 2777 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2778 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2779 | |
| 2780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2781 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2782 | |
| 2783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2784 | fi |
| 2785 | |
| 2786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2787 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2788 | fi |
| 2789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2790 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2791 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2792 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2793 | elif test $ac_cv_prog_cc_g = yes; then |
| 2794 | if test "$GCC" = yes; then |
| 2795 | CFLAGS="-g -O2" |
| 2796 | else |
| 2797 | CFLAGS="-g" |
| 2798 | fi |
| 2799 | else |
| 2800 | if test "$GCC" = yes; then |
| 2801 | CFLAGS="-O2" |
| 2802 | else |
| 2803 | CFLAGS= |
| 2804 | fi |
| 2805 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2806 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2807 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2808 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2809 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2810 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2811 | ac_cv_prog_cc_c89=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2812 | ac_save_CC=$CC |
| 2813 | cat >conftest.$ac_ext <<_ACEOF |
| 2814 | /* confdefs.h. */ |
| 2815 | _ACEOF |
| 2816 | cat confdefs.h >>conftest.$ac_ext |
| 2817 | cat >>conftest.$ac_ext <<_ACEOF |
| 2818 | /* end confdefs.h. */ |
| 2819 | #include <stdarg.h> |
| 2820 | #include <stdio.h> |
| 2821 | #include <sys/types.h> |
| 2822 | #include <sys/stat.h> |
| 2823 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2824 | struct buf { int x; }; |
| 2825 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2826 | static char *e (p, i) |
| 2827 | char **p; |
| 2828 | int i; |
| 2829 | { |
| 2830 | return p[i]; |
| 2831 | } |
| 2832 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2833 | { |
| 2834 | char *s; |
| 2835 | va_list v; |
| 2836 | va_start (v,p); |
| 2837 | s = g (p, va_arg (v,int)); |
| 2838 | va_end (v); |
| 2839 | return s; |
| 2840 | } |
| 2841 | |
| 2842 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2843 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2844 | These don't provoke an error unfortunately, instead are silently treated |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2845 | as 'x'. The following induces an error, until -std is added to get |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2846 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2847 | array size at least. It's necessary to write '\x00'==0 to get something |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2848 | that's true only with -std. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2849 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2850 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2851 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2852 | inside strings and character constants. */ |
| 2853 | #define FOO(x) 'x' |
| 2854 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2855 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2856 | int test (int i, double x); |
| 2857 | struct s1 {int (*f) (int a);}; |
| 2858 | struct s2 {int (*f) (double a);}; |
| 2859 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2860 | int argc; |
| 2861 | char **argv; |
| 2862 | int |
| 2863 | main () |
| 2864 | { |
| 2865 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2866 | ; |
| 2867 | return 0; |
| 2868 | } |
| 2869 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2870 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2871 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2872 | do |
| 2873 | CC="$ac_save_CC $ac_arg" |
| 2874 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2875 | if { (ac_try="$ac_compile" |
| 2876 | case "(($ac_try" in |
| 2877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2878 | *) ac_try_echo=$ac_try;; |
| 2879 | esac |
| 2880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2881 | $as_echo "$ac_try_echo") >&5 |
| 2882 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2883 | ac_status=$? |
| 2884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2885 | rm -f conftest.er1 |
| 2886 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2888 | (exit $ac_status); } && { |
| 2889 | test -z "$ac_c_werror_flag" || |
| 2890 | test ! -s conftest.err |
| 2891 | } && test -s conftest.$ac_objext; then |
| 2892 | ac_cv_prog_cc_c89=$ac_arg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2893 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2894 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2896 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2897 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2898 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2899 | |
| 2900 | rm -f core conftest.err conftest.$ac_objext |
| 2901 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2902 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2903 | rm -f conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2904 | CC=$ac_save_CC |
| 2905 | |
| 2906 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2907 | # AC_CACHE_VAL |
| 2908 | case "x$ac_cv_prog_cc_c89" in |
| 2909 | x) |
| 2910 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 2911 | $as_echo "none needed" >&6; } ;; |
| 2912 | xno) |
| 2913 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2914 | $as_echo "unsupported" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2915 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2916 | CC="$CC $ac_cv_prog_cc_c89" |
| 2917 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2918 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2919 | esac |
| 2920 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2921 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2922 | ac_ext=c |
| 2923 | ac_cpp='$CPP $CPPFLAGS' |
| 2924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2927 | ac_ext=c |
| 2928 | ac_cpp='$CPP $CPPFLAGS' |
| 2929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2932 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2933 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2934 | # On Suns, sometimes $CPP names a directory. |
| 2935 | if test -n "$CPP" && test -d "$CPP"; then |
| 2936 | CPP= |
| 2937 | fi |
| 2938 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2939 | if test "${ac_cv_prog_CPP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2940 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2941 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2942 | # Double quotes because CPP needs to be expanded |
| 2943 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2944 | do |
| 2945 | ac_preproc_ok=false |
| 2946 | for ac_c_preproc_warn_flag in '' yes |
| 2947 | do |
| 2948 | # Use a header file that comes with gcc, so configuring glibc |
| 2949 | # with a fresh cross-compiler works. |
| 2950 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2951 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2952 | # 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] | 2953 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2954 | cat >conftest.$ac_ext <<_ACEOF |
| 2955 | /* confdefs.h. */ |
| 2956 | _ACEOF |
| 2957 | cat confdefs.h >>conftest.$ac_ext |
| 2958 | cat >>conftest.$ac_ext <<_ACEOF |
| 2959 | /* end confdefs.h. */ |
| 2960 | #ifdef __STDC__ |
| 2961 | # include <limits.h> |
| 2962 | #else |
| 2963 | # include <assert.h> |
| 2964 | #endif |
| 2965 | Syntax error |
| 2966 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2967 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2968 | case "(($ac_try" in |
| 2969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2970 | *) ac_try_echo=$ac_try;; |
| 2971 | esac |
| 2972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2973 | $as_echo "$ac_try_echo") >&5 |
| 2974 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2975 | ac_status=$? |
| 2976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2977 | rm -f conftest.er1 |
| 2978 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2980 | (exit $ac_status); } >/dev/null && { |
| 2981 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2982 | test ! -s conftest.err |
| 2983 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2984 | : |
| 2985 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2986 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2988 | |
| 2989 | # Broken: fails on valid input. |
| 2990 | continue |
| 2991 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2992 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2993 | rm -f conftest.err conftest.$ac_ext |
| 2994 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2995 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2996 | # can be detected and how. |
| 2997 | cat >conftest.$ac_ext <<_ACEOF |
| 2998 | /* confdefs.h. */ |
| 2999 | _ACEOF |
| 3000 | cat confdefs.h >>conftest.$ac_ext |
| 3001 | cat >>conftest.$ac_ext <<_ACEOF |
| 3002 | /* end confdefs.h. */ |
| 3003 | #include <ac_nonexistent.h> |
| 3004 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3005 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3006 | case "(($ac_try" in |
| 3007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3008 | *) ac_try_echo=$ac_try;; |
| 3009 | esac |
| 3010 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3011 | $as_echo "$ac_try_echo") >&5 |
| 3012 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3013 | ac_status=$? |
| 3014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3015 | rm -f conftest.er1 |
| 3016 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3017 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3018 | (exit $ac_status); } >/dev/null && { |
| 3019 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3020 | test ! -s conftest.err |
| 3021 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3022 | # Broken: success on invalid input. |
| 3023 | continue |
| 3024 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3025 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3027 | |
| 3028 | # Passes both tests. |
| 3029 | ac_preproc_ok=: |
| 3030 | break |
| 3031 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3032 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3033 | rm -f conftest.err conftest.$ac_ext |
| 3034 | |
| 3035 | done |
| 3036 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3037 | rm -f conftest.err conftest.$ac_ext |
| 3038 | if $ac_preproc_ok; then |
| 3039 | break |
| 3040 | fi |
| 3041 | |
| 3042 | done |
| 3043 | ac_cv_prog_CPP=$CPP |
| 3044 | |
| 3045 | fi |
| 3046 | CPP=$ac_cv_prog_CPP |
| 3047 | else |
| 3048 | ac_cv_prog_CPP=$CPP |
| 3049 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3050 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3051 | $as_echo "$CPP" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3052 | ac_preproc_ok=false |
| 3053 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3054 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3055 | # Use a header file that comes with gcc, so configuring glibc |
| 3056 | # with a fresh cross-compiler works. |
| 3057 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3058 | # <limits.h> exists even on freestanding compilers. |
| 3059 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3060 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3061 | cat >conftest.$ac_ext <<_ACEOF |
| 3062 | /* confdefs.h. */ |
| 3063 | _ACEOF |
| 3064 | cat confdefs.h >>conftest.$ac_ext |
| 3065 | cat >>conftest.$ac_ext <<_ACEOF |
| 3066 | /* end confdefs.h. */ |
| 3067 | #ifdef __STDC__ |
| 3068 | # include <limits.h> |
| 3069 | #else |
| 3070 | # include <assert.h> |
| 3071 | #endif |
| 3072 | Syntax error |
| 3073 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3074 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3075 | case "(($ac_try" in |
| 3076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3077 | *) ac_try_echo=$ac_try;; |
| 3078 | esac |
| 3079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3080 | $as_echo "$ac_try_echo") >&5 |
| 3081 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3082 | ac_status=$? |
| 3083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3084 | rm -f conftest.er1 |
| 3085 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3087 | (exit $ac_status); } >/dev/null && { |
| 3088 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3089 | test ! -s conftest.err |
| 3090 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3091 | : |
| 3092 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3093 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3095 | |
| 3096 | # Broken: fails on valid input. |
| 3097 | continue |
| 3098 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3099 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3100 | rm -f conftest.err conftest.$ac_ext |
| 3101 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3102 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3103 | # can be detected and how. |
| 3104 | cat >conftest.$ac_ext <<_ACEOF |
| 3105 | /* confdefs.h. */ |
| 3106 | _ACEOF |
| 3107 | cat confdefs.h >>conftest.$ac_ext |
| 3108 | cat >>conftest.$ac_ext <<_ACEOF |
| 3109 | /* end confdefs.h. */ |
| 3110 | #include <ac_nonexistent.h> |
| 3111 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3112 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3113 | case "(($ac_try" in |
| 3114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3115 | *) ac_try_echo=$ac_try;; |
| 3116 | esac |
| 3117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3118 | $as_echo "$ac_try_echo") >&5 |
| 3119 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3120 | ac_status=$? |
| 3121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3122 | rm -f conftest.er1 |
| 3123 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3125 | (exit $ac_status); } >/dev/null && { |
| 3126 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3127 | test ! -s conftest.err |
| 3128 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3129 | # Broken: success on invalid input. |
| 3130 | continue |
| 3131 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3132 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3134 | |
| 3135 | # Passes both tests. |
| 3136 | ac_preproc_ok=: |
| 3137 | break |
| 3138 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3139 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3140 | rm -f conftest.err conftest.$ac_ext |
| 3141 | |
| 3142 | done |
| 3143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3144 | rm -f conftest.err conftest.$ac_ext |
| 3145 | if $ac_preproc_ok; then |
| 3146 | : |
| 3147 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3148 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3149 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3150 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3151 | See \`config.log' for more details." >&2;} |
| 3152 | { (exit 1); exit 1; }; } |
| 3153 | fi |
| 3154 | |
| 3155 | ac_ext=c |
| 3156 | ac_cpp='$CPP $CPPFLAGS' |
| 3157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3160 | |
| 3161 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3162 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3163 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3164 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3165 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3166 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3167 | if test -z "$GREP"; then |
| 3168 | ac_path_GREP_found=false |
| 3169 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3171 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3172 | do |
| 3173 | IFS=$as_save_IFS |
| 3174 | test -z "$as_dir" && as_dir=. |
| 3175 | for ac_prog in grep ggrep; do |
| 3176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3177 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3178 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3179 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3180 | # Check for GNU $ac_path_GREP |
| 3181 | case `"$ac_path_GREP" --version 2>&1` in |
| 3182 | *GNU*) |
| 3183 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3184 | *) |
| 3185 | ac_count=0 |
| 3186 | $as_echo_n 0123456789 >"conftest.in" |
| 3187 | while : |
| 3188 | do |
| 3189 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3190 | mv "conftest.tmp" "conftest.in" |
| 3191 | cp "conftest.in" "conftest.nl" |
| 3192 | $as_echo 'GREP' >> "conftest.nl" |
| 3193 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3194 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3195 | ac_count=`expr $ac_count + 1` |
| 3196 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3197 | # Best one so far, save it but keep looking for a better one |
| 3198 | ac_cv_path_GREP="$ac_path_GREP" |
| 3199 | ac_path_GREP_max=$ac_count |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3200 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3201 | # 10*(2^10) chars as input seems more than enough |
| 3202 | test $ac_count -gt 10 && break |
| 3203 | done |
| 3204 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3205 | esac |
| 3206 | |
| 3207 | $ac_path_GREP_found && break 3 |
| 3208 | done |
| 3209 | done |
| 3210 | done |
| 3211 | IFS=$as_save_IFS |
| 3212 | if test -z "$ac_cv_path_GREP"; then |
| 3213 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3214 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3215 | { (exit 1); exit 1; }; } |
| 3216 | fi |
| 3217 | else |
| 3218 | ac_cv_path_GREP=$GREP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3219 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3220 | |
| 3221 | fi |
| 3222 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3223 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3224 | GREP="$ac_cv_path_GREP" |
| 3225 | |
| 3226 | |
| 3227 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3228 | $as_echo_n "checking for egrep... " >&6; } |
| 3229 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3230 | $as_echo_n "(cached) " >&6 |
| 3231 | else |
| 3232 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3233 | then ac_cv_path_EGREP="$GREP -E" |
| 3234 | else |
| 3235 | if test -z "$EGREP"; then |
| 3236 | ac_path_EGREP_found=false |
| 3237 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3239 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3240 | do |
| 3241 | IFS=$as_save_IFS |
| 3242 | test -z "$as_dir" && as_dir=. |
| 3243 | for ac_prog in egrep; do |
| 3244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3245 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3246 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3247 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3248 | # Check for GNU $ac_path_EGREP |
| 3249 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3250 | *GNU*) |
| 3251 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3252 | *) |
| 3253 | ac_count=0 |
| 3254 | $as_echo_n 0123456789 >"conftest.in" |
| 3255 | while : |
| 3256 | do |
| 3257 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3258 | mv "conftest.tmp" "conftest.in" |
| 3259 | cp "conftest.in" "conftest.nl" |
| 3260 | $as_echo 'EGREP' >> "conftest.nl" |
| 3261 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3262 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3263 | ac_count=`expr $ac_count + 1` |
| 3264 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3265 | # Best one so far, save it but keep looking for a better one |
| 3266 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3267 | ac_path_EGREP_max=$ac_count |
| 3268 | fi |
| 3269 | # 10*(2^10) chars as input seems more than enough |
| 3270 | test $ac_count -gt 10 && break |
| 3271 | done |
| 3272 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3273 | esac |
| 3274 | |
| 3275 | $ac_path_EGREP_found && break 3 |
| 3276 | done |
| 3277 | done |
| 3278 | done |
| 3279 | IFS=$as_save_IFS |
| 3280 | if test -z "$ac_cv_path_EGREP"; then |
| 3281 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3282 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3283 | { (exit 1); exit 1; }; } |
| 3284 | fi |
| 3285 | else |
| 3286 | ac_cv_path_EGREP=$EGREP |
| 3287 | fi |
| 3288 | |
| 3289 | fi |
| 3290 | fi |
| 3291 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3292 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3293 | EGREP="$ac_cv_path_EGREP" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3294 | |
| 3295 | |
| 3296 | cat >conftest.$ac_ext <<_ACEOF |
| 3297 | /* confdefs.h. */ |
| 3298 | _ACEOF |
| 3299 | cat confdefs.h >>conftest.$ac_ext |
| 3300 | cat >>conftest.$ac_ext <<_ACEOF |
| 3301 | /* end confdefs.h. */ |
| 3302 | |
| 3303 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3304 | rm -f conftest* |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3305 | { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 3306 | $as_echo_n "checking for library containing strerror... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3307 | if test "${ac_cv_search_strerror+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3308 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3309 | else |
| 3310 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3311 | cat >conftest.$ac_ext <<_ACEOF |
| 3312 | /* confdefs.h. */ |
| 3313 | _ACEOF |
| 3314 | cat confdefs.h >>conftest.$ac_ext |
| 3315 | cat >>conftest.$ac_ext <<_ACEOF |
| 3316 | /* end confdefs.h. */ |
| 3317 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3318 | /* Override any GCC internal prototype to avoid an error. |
| 3319 | Use char because int might match the return type of a GCC |
| 3320 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3321 | #ifdef __cplusplus |
| 3322 | extern "C" |
| 3323 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3324 | char strerror (); |
| 3325 | int |
| 3326 | main () |
| 3327 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3328 | return strerror (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3329 | ; |
| 3330 | return 0; |
| 3331 | } |
| 3332 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3333 | for ac_lib in '' cposix; do |
| 3334 | if test -z "$ac_lib"; then |
| 3335 | ac_res="none required" |
| 3336 | else |
| 3337 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3338 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3339 | fi |
| 3340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3341 | if { (ac_try="$ac_link" |
| 3342 | case "(($ac_try" in |
| 3343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3344 | *) ac_try_echo=$ac_try;; |
| 3345 | esac |
| 3346 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3347 | $as_echo "$ac_try_echo") >&5 |
| 3348 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3349 | ac_status=$? |
| 3350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3351 | rm -f conftest.er1 |
| 3352 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3353 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3354 | (exit $ac_status); } && { |
| 3355 | test -z "$ac_c_werror_flag" || |
| 3356 | test ! -s conftest.err |
| 3357 | } && test -s conftest$ac_exeext && { |
| 3358 | test "$cross_compiling" = yes || |
| 3359 | $as_test_x conftest$ac_exeext |
| 3360 | }; then |
| 3361 | ac_cv_search_strerror=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3362 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3363 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3365 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3366 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3367 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3368 | |
| 3369 | rm -rf conftest.dSYM |
| 3370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3371 | conftest$ac_exeext |
| 3372 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3373 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3374 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3375 | done |
| 3376 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3377 | : |
| 3378 | else |
| 3379 | ac_cv_search_strerror=no |
| 3380 | fi |
| 3381 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3382 | LIBS=$ac_func_search_save_LIBS |
| 3383 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3384 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 3385 | $as_echo "$ac_cv_search_strerror" >&6; } |
| 3386 | ac_res=$ac_cv_search_strerror |
| 3387 | if test "$ac_res" != no; then |
| 3388 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3389 | |
| 3390 | fi |
| 3391 | for ac_prog in gawk mawk nawk awk |
| 3392 | do |
| 3393 | # 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] | 3394 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3395 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3396 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3397 | if test "${ac_cv_prog_AWK+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3398 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3399 | else |
| 3400 | if test -n "$AWK"; then |
| 3401 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3402 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3404 | for as_dir in $PATH |
| 3405 | do |
| 3406 | IFS=$as_save_IFS |
| 3407 | test -z "$as_dir" && as_dir=. |
| 3408 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3410 | ac_cv_prog_AWK="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3411 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3412 | break 2 |
| 3413 | fi |
| 3414 | done |
| 3415 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3416 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3417 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3418 | fi |
| 3419 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3420 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3421 | if test -n "$AWK"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3422 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 3423 | $as_echo "$AWK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3424 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3425 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3426 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3427 | fi |
| 3428 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3430 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3431 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3432 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3433 | # Extract the first word of "strip", so it can be a program name with args. |
| 3434 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3435 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3436 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3437 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3438 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3439 | else |
| 3440 | if test -n "$STRIP"; then |
| 3441 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3442 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3444 | for as_dir in $PATH |
| 3445 | do |
| 3446 | IFS=$as_save_IFS |
| 3447 | test -z "$as_dir" && as_dir=. |
| 3448 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3450 | ac_cv_prog_STRIP="strip" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3451 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3452 | break 2 |
| 3453 | fi |
| 3454 | done |
| 3455 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3456 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3457 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3458 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 3459 | fi |
| 3460 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3461 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3462 | if test -n "$STRIP"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3463 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3464 | $as_echo "$STRIP" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3465 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3466 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3467 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3468 | fi |
| 3469 | |
| 3470 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3471 | |
| 3472 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3473 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3474 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3475 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3476 | if test "${ac_cv_header_stdc+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3477 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3478 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3479 | cat >conftest.$ac_ext <<_ACEOF |
| 3480 | /* confdefs.h. */ |
| 3481 | _ACEOF |
| 3482 | cat confdefs.h >>conftest.$ac_ext |
| 3483 | cat >>conftest.$ac_ext <<_ACEOF |
| 3484 | /* end confdefs.h. */ |
| 3485 | #include <stdlib.h> |
| 3486 | #include <stdarg.h> |
| 3487 | #include <string.h> |
| 3488 | #include <float.h> |
| 3489 | |
| 3490 | int |
| 3491 | main () |
| 3492 | { |
| 3493 | |
| 3494 | ; |
| 3495 | return 0; |
| 3496 | } |
| 3497 | _ACEOF |
| 3498 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3499 | if { (ac_try="$ac_compile" |
| 3500 | case "(($ac_try" in |
| 3501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3502 | *) ac_try_echo=$ac_try;; |
| 3503 | esac |
| 3504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3505 | $as_echo "$ac_try_echo") >&5 |
| 3506 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3507 | ac_status=$? |
| 3508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3509 | rm -f conftest.er1 |
| 3510 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3512 | (exit $ac_status); } && { |
| 3513 | test -z "$ac_c_werror_flag" || |
| 3514 | test ! -s conftest.err |
| 3515 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3516 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3517 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3518 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3520 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3521 | ac_cv_header_stdc=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3522 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3523 | |
| 3524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3525 | |
| 3526 | if test $ac_cv_header_stdc = yes; then |
| 3527 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3528 | cat >conftest.$ac_ext <<_ACEOF |
| 3529 | /* confdefs.h. */ |
| 3530 | _ACEOF |
| 3531 | cat confdefs.h >>conftest.$ac_ext |
| 3532 | cat >>conftest.$ac_ext <<_ACEOF |
| 3533 | /* end confdefs.h. */ |
| 3534 | #include <string.h> |
| 3535 | |
| 3536 | _ACEOF |
| 3537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3538 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3539 | : |
| 3540 | else |
| 3541 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3542 | fi |
| 3543 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3544 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3545 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3546 | |
| 3547 | if test $ac_cv_header_stdc = yes; then |
| 3548 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
| 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
| 3555 | #include <stdlib.h> |
| 3556 | |
| 3557 | _ACEOF |
| 3558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3559 | $EGREP "free" >/dev/null 2>&1; then |
| 3560 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3561 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3562 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3563 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3564 | rm -f conftest* |
| 3565 | |
| 3566 | fi |
| 3567 | |
| 3568 | if test $ac_cv_header_stdc = yes; then |
| 3569 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3570 | if test "$cross_compiling" = yes; then |
| 3571 | : |
| 3572 | else |
| 3573 | cat >conftest.$ac_ext <<_ACEOF |
| 3574 | /* confdefs.h. */ |
| 3575 | _ACEOF |
| 3576 | cat confdefs.h >>conftest.$ac_ext |
| 3577 | cat >>conftest.$ac_ext <<_ACEOF |
| 3578 | /* end confdefs.h. */ |
| 3579 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3580 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3581 | #if ((' ' & 0x0FF) == 0x020) |
| 3582 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3583 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3584 | #else |
| 3585 | # define ISLOWER(c) \ |
| 3586 | (('a' <= (c) && (c) <= 'i') \ |
| 3587 | || ('j' <= (c) && (c) <= 'r') \ |
| 3588 | || ('s' <= (c) && (c) <= 'z')) |
| 3589 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3590 | #endif |
| 3591 | |
| 3592 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3593 | int |
| 3594 | main () |
| 3595 | { |
| 3596 | int i; |
| 3597 | for (i = 0; i < 256; i++) |
| 3598 | if (XOR (islower (i), ISLOWER (i)) |
| 3599 | || toupper (i) != TOUPPER (i)) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3600 | return 2; |
| 3601 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3602 | } |
| 3603 | _ACEOF |
| 3604 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3605 | if { (ac_try="$ac_link" |
| 3606 | case "(($ac_try" in |
| 3607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3608 | *) ac_try_echo=$ac_try;; |
| 3609 | esac |
| 3610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3611 | $as_echo "$ac_try_echo") >&5 |
| 3612 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3613 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3615 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3616 | { (case "(($ac_try" in |
| 3617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3618 | *) ac_try_echo=$ac_try;; |
| 3619 | esac |
| 3620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3621 | $as_echo "$ac_try_echo") >&5 |
| 3622 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3623 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3625 | (exit $ac_status); }; }; then |
| 3626 | : |
| 3627 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3628 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3629 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3631 | |
| 3632 | ( exit $ac_status ) |
| 3633 | ac_cv_header_stdc=no |
| 3634 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3635 | rm -rf conftest.dSYM |
| 3636 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3637 | fi |
| 3638 | |
| 3639 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3640 | fi |
| 3641 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3642 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3643 | $as_echo "$ac_cv_header_stdc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3644 | if test $ac_cv_header_stdc = yes; then |
| 3645 | |
| 3646 | cat >>confdefs.h <<\_ACEOF |
| 3647 | #define STDC_HEADERS 1 |
| 3648 | _ACEOF |
| 3649 | |
| 3650 | fi |
| 3651 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3652 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 3653 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 3654 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 3655 | $as_echo_n "(cached) " >&6 |
| 3656 | else |
| 3657 | cat >conftest.$ac_ext <<_ACEOF |
| 3658 | /* confdefs.h. */ |
| 3659 | _ACEOF |
| 3660 | cat confdefs.h >>conftest.$ac_ext |
| 3661 | cat >>conftest.$ac_ext <<_ACEOF |
| 3662 | /* end confdefs.h. */ |
| 3663 | #include <sys/types.h> |
| 3664 | #include <sys/wait.h> |
| 3665 | #ifndef WEXITSTATUS |
| 3666 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 3667 | #endif |
| 3668 | #ifndef WIFEXITED |
| 3669 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 3670 | #endif |
| 3671 | |
| 3672 | int |
| 3673 | main () |
| 3674 | { |
| 3675 | int s; |
| 3676 | wait (&s); |
| 3677 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 3678 | ; |
| 3679 | return 0; |
| 3680 | } |
| 3681 | _ACEOF |
| 3682 | rm -f conftest.$ac_objext |
| 3683 | if { (ac_try="$ac_compile" |
| 3684 | case "(($ac_try" in |
| 3685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3686 | *) ac_try_echo=$ac_try;; |
| 3687 | esac |
| 3688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3689 | $as_echo "$ac_try_echo") >&5 |
| 3690 | (eval "$ac_compile") 2>conftest.er1 |
| 3691 | ac_status=$? |
| 3692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3693 | rm -f conftest.er1 |
| 3694 | cat conftest.err >&5 |
| 3695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3696 | (exit $ac_status); } && { |
| 3697 | test -z "$ac_c_werror_flag" || |
| 3698 | test ! -s conftest.err |
| 3699 | } && test -s conftest.$ac_objext; then |
| 3700 | ac_cv_header_sys_wait_h=yes |
| 3701 | else |
| 3702 | $as_echo "$as_me: failed program was:" >&5 |
| 3703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3704 | |
| 3705 | ac_cv_header_sys_wait_h=no |
| 3706 | fi |
| 3707 | |
| 3708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3709 | fi |
| 3710 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 3711 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 3712 | if test $ac_cv_header_sys_wait_h = yes; then |
| 3713 | |
| 3714 | cat >>confdefs.h <<\_ACEOF |
| 3715 | #define HAVE_SYS_WAIT_H 1 |
| 3716 | _ACEOF |
| 3717 | |
| 3718 | fi |
| 3719 | |
| 3720 | |
| 3721 | if test -z "$CFLAGS"; then |
| 3722 | CFLAGS="-O" |
| 3723 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 3724 | fi |
| 3725 | if test "$GCC" = yes; then |
| 3726 | gccversion=`"$CC" -dumpversion` |
| 3727 | if test "x$gccversion" = "x"; then |
| 3728 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 3729 | fi |
| 3730 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 3731 | echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
| 3732 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 3733 | else |
| 3734 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 3735 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 3736 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 3737 | fi |
| 3738 | fi |
| 3739 | fi |
| 3740 | |
| 3741 | if test "$cross_compiling" = yes; then |
| 3742 | { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 |
| 3743 | $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } |
| 3744 | fi |
| 3745 | |
| 3746 | test "$GCC" = yes && CPP_MM=M; |
| 3747 | |
| 3748 | if test -f ./toolcheck; then |
| 3749 | { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 3750 | $as_echo "$as_me: checking for buggy tools..." >&6;} |
| 3751 | sh ./toolcheck 1>&6 |
| 3752 | fi |
| 3753 | |
| 3754 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 3755 | |
| 3756 | { $as_echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 3757 | $as_echo_n "checking for BeOS... " >&6; } |
| 3758 | case `uname` in |
| 3759 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
| 3760 | BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3761 | $as_echo "yes" >&6; };; |
| 3762 | *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3763 | $as_echo "no" >&6; };; |
| 3764 | esac |
| 3765 | |
| 3766 | { $as_echo "$as_me:$LINENO: checking for QNX" >&5 |
| 3767 | $as_echo_n "checking for QNX... " >&6; } |
| 3768 | case `uname` in |
| 3769 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 3770 | test -z "$with_x" && with_x=no |
| 3771 | QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3772 | $as_echo "yes" >&6; };; |
| 3773 | *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3774 | $as_echo "no" >&6; };; |
| 3775 | esac |
| 3776 | |
| 3777 | { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 3778 | $as_echo_n "checking for Darwin (Mac OS X)... " >&6; } |
| 3779 | if test "`(uname) 2>/dev/null`" = Darwin; then |
| 3780 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3781 | $as_echo "yes" >&6; } |
| 3782 | |
| 3783 | { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 3784 | $as_echo_n "checking --disable-darwin argument... " >&6; } |
| 3785 | # Check whether --enable-darwin was given. |
| 3786 | if test "${enable_darwin+set}" = set; then |
| 3787 | enableval=$enable_darwin; |
| 3788 | else |
| 3789 | enable_darwin="yes" |
| 3790 | fi |
| 3791 | |
| 3792 | if test "$enable_darwin" = "yes"; then |
| 3793 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3794 | $as_echo "no" >&6; } |
| 3795 | { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 3796 | $as_echo_n "checking if Darwin files are there... " >&6; } |
| 3797 | if test -f os_macosx.c; then |
| 3798 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3799 | $as_echo "yes" >&6; } |
| 3800 | else |
| 3801 | { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 3802 | $as_echo "no, Darwin support disabled" >&6; } |
| 3803 | enable_darwin=no |
| 3804 | fi |
| 3805 | else |
| 3806 | { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 3807 | $as_echo "yes, Darwin support excluded" >&6; } |
| 3808 | fi |
| 3809 | |
| 3810 | { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 3811 | $as_echo_n "checking --with-mac-arch argument... " >&6; } |
| 3812 | |
| 3813 | # Check whether --with-mac-arch was given. |
| 3814 | if test "${with_mac_arch+set}" = set; then |
| 3815 | withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 3816 | $as_echo "$MACARCH" >&6; } |
| 3817 | else |
| 3818 | MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
| 3819 | $as_echo "defaulting to $MACARCH" >&6; } |
| 3820 | fi |
| 3821 | |
| 3822 | |
| 3823 | if test "x$MACARCH" = "xboth"; then |
| 3824 | { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 3825 | $as_echo_n "checking for 10.4 universal SDK... " >&6; } |
| 3826 | save_cppflags="$CPPFLAGS" |
| 3827 | save_cflags="$CFLAGS" |
| 3828 | save_ldflags="$LDFLAGS" |
| 3829 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 3830 | cat >conftest.$ac_ext <<_ACEOF |
| 3831 | /* confdefs.h. */ |
| 3832 | _ACEOF |
| 3833 | cat confdefs.h >>conftest.$ac_ext |
| 3834 | cat >>conftest.$ac_ext <<_ACEOF |
| 3835 | /* end confdefs.h. */ |
| 3836 | |
| 3837 | int |
| 3838 | main () |
| 3839 | { |
| 3840 | |
| 3841 | ; |
| 3842 | return 0; |
| 3843 | } |
| 3844 | _ACEOF |
| 3845 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3846 | if { (ac_try="$ac_link" |
| 3847 | case "(($ac_try" in |
| 3848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3849 | *) ac_try_echo=$ac_try;; |
| 3850 | esac |
| 3851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3852 | $as_echo "$ac_try_echo") >&5 |
| 3853 | (eval "$ac_link") 2>conftest.er1 |
| 3854 | ac_status=$? |
| 3855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3856 | rm -f conftest.er1 |
| 3857 | cat conftest.err >&5 |
| 3858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3859 | (exit $ac_status); } && { |
| 3860 | test -z "$ac_c_werror_flag" || |
| 3861 | test ! -s conftest.err |
| 3862 | } && test -s conftest$ac_exeext && { |
| 3863 | test "$cross_compiling" = yes || |
| 3864 | $as_test_x conftest$ac_exeext |
| 3865 | }; then |
| 3866 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 3867 | $as_echo "found" >&6; } |
| 3868 | else |
| 3869 | $as_echo "$as_me: failed program was:" >&5 |
| 3870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3871 | |
| 3872 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 3873 | $as_echo "not found" >&6; } |
| 3874 | CFLAGS="$save_cflags" |
| 3875 | { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
| 3876 | $as_echo_n "checking if Intel architecture is supported... " >&6; } |
| 3877 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 3878 | LDFLAGS="$save_ldflags -arch i386" |
| 3879 | cat >conftest.$ac_ext <<_ACEOF |
| 3880 | /* confdefs.h. */ |
| 3881 | _ACEOF |
| 3882 | cat confdefs.h >>conftest.$ac_ext |
| 3883 | cat >>conftest.$ac_ext <<_ACEOF |
| 3884 | /* end confdefs.h. */ |
| 3885 | |
| 3886 | int |
| 3887 | main () |
| 3888 | { |
| 3889 | |
| 3890 | ; |
| 3891 | return 0; |
| 3892 | } |
| 3893 | _ACEOF |
| 3894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3895 | if { (ac_try="$ac_link" |
| 3896 | case "(($ac_try" in |
| 3897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3898 | *) ac_try_echo=$ac_try;; |
| 3899 | esac |
| 3900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3901 | $as_echo "$ac_try_echo") >&5 |
| 3902 | (eval "$ac_link") 2>conftest.er1 |
| 3903 | ac_status=$? |
| 3904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3905 | rm -f conftest.er1 |
| 3906 | cat conftest.err >&5 |
| 3907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3908 | (exit $ac_status); } && { |
| 3909 | test -z "$ac_c_werror_flag" || |
| 3910 | test ! -s conftest.err |
| 3911 | } && test -s conftest$ac_exeext && { |
| 3912 | test "$cross_compiling" = yes || |
| 3913 | $as_test_x conftest$ac_exeext |
| 3914 | }; then |
| 3915 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3916 | $as_echo "yes" >&6; }; MACARCH="intel" |
| 3917 | else |
| 3918 | $as_echo "$as_me: failed program was:" >&5 |
| 3919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3920 | |
| 3921 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3922 | $as_echo "no" >&6; } |
| 3923 | MACARCH="ppc" |
| 3924 | CPPFLAGS="$save_cppflags -arch ppc" |
| 3925 | LDFLAGS="$save_ldflags -arch ppc" |
| 3926 | fi |
| 3927 | |
| 3928 | rm -rf conftest.dSYM |
| 3929 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3930 | conftest$ac_exeext conftest.$ac_ext |
| 3931 | fi |
| 3932 | |
| 3933 | rm -rf conftest.dSYM |
| 3934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3935 | conftest$ac_exeext conftest.$ac_ext |
| 3936 | elif test "x$MACARCH" = "xintel"; then |
| 3937 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 3938 | LDFLAGS="$LDFLAGS -arch intel" |
| 3939 | elif test "x$MACARCH" = "xppc"; then |
| 3940 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 3941 | LDFLAGS="$LDFLAGS -arch ppc" |
| 3942 | fi |
| 3943 | |
| 3944 | if test "$enable_darwin" = "yes"; then |
| 3945 | MACOSX=yes |
| 3946 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 3947 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
| 3948 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3949 | if test "x$MACARCH" = "xboth"; then |
| 3950 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3951 | else |
| 3952 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3953 | fi |
| 3954 | |
| 3955 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3956 | |
| 3957 | |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3966 | inttypes.h stdint.h unistd.h |
| 3967 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3968 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3969 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3970 | $as_echo_n "checking for $ac_header... " >&6; } |
| 3971 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3972 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3973 | else |
| 3974 | cat >conftest.$ac_ext <<_ACEOF |
| 3975 | /* confdefs.h. */ |
| 3976 | _ACEOF |
| 3977 | cat confdefs.h >>conftest.$ac_ext |
| 3978 | cat >>conftest.$ac_ext <<_ACEOF |
| 3979 | /* end confdefs.h. */ |
| 3980 | $ac_includes_default |
| 3981 | |
| 3982 | #include <$ac_header> |
| 3983 | _ACEOF |
| 3984 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3985 | if { (ac_try="$ac_compile" |
| 3986 | case "(($ac_try" in |
| 3987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3988 | *) ac_try_echo=$ac_try;; |
| 3989 | esac |
| 3990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3991 | $as_echo "$ac_try_echo") >&5 |
| 3992 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3993 | ac_status=$? |
| 3994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3995 | rm -f conftest.er1 |
| 3996 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3998 | (exit $ac_status); } && { |
| 3999 | test -z "$ac_c_werror_flag" || |
| 4000 | test ! -s conftest.err |
| 4001 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4002 | eval "$as_ac_Header=yes" |
| 4003 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4004 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4006 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4007 | eval "$as_ac_Header=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4008 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4009 | |
| 4010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4011 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4012 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4013 | $as_echo "$as_val"'` |
| 4014 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4015 | $as_echo "$ac_res" >&6; } |
| 4016 | if test `eval 'as_val=${'$as_ac_Header'} |
| 4017 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4018 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4019 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4020 | _ACEOF |
| 4021 | |
| 4022 | fi |
| 4023 | |
| 4024 | done |
| 4025 | |
| 4026 | |
| 4027 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4028 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4029 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4030 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4031 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4032 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4033 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4034 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4035 | else |
| 4036 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4037 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 4038 | $as_echo_n "checking Carbon/Carbon.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4039 | cat >conftest.$ac_ext <<_ACEOF |
| 4040 | /* confdefs.h. */ |
| 4041 | _ACEOF |
| 4042 | cat confdefs.h >>conftest.$ac_ext |
| 4043 | cat >>conftest.$ac_ext <<_ACEOF |
| 4044 | /* end confdefs.h. */ |
| 4045 | $ac_includes_default |
| 4046 | #include <Carbon/Carbon.h> |
| 4047 | _ACEOF |
| 4048 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4049 | if { (ac_try="$ac_compile" |
| 4050 | case "(($ac_try" in |
| 4051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4052 | *) ac_try_echo=$ac_try;; |
| 4053 | esac |
| 4054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4055 | $as_echo "$ac_try_echo") >&5 |
| 4056 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4057 | ac_status=$? |
| 4058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4059 | rm -f conftest.er1 |
| 4060 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4062 | (exit $ac_status); } && { |
| 4063 | test -z "$ac_c_werror_flag" || |
| 4064 | test ! -s conftest.err |
| 4065 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4066 | ac_header_compiler=yes |
| 4067 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4068 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4070 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4071 | ac_header_compiler=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4072 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4073 | |
| 4074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4075 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4076 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4077 | |
| 4078 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4079 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 4080 | $as_echo_n "checking Carbon/Carbon.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4081 | cat >conftest.$ac_ext <<_ACEOF |
| 4082 | /* confdefs.h. */ |
| 4083 | _ACEOF |
| 4084 | cat confdefs.h >>conftest.$ac_ext |
| 4085 | cat >>conftest.$ac_ext <<_ACEOF |
| 4086 | /* end confdefs.h. */ |
| 4087 | #include <Carbon/Carbon.h> |
| 4088 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4089 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4090 | case "(($ac_try" in |
| 4091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4092 | *) ac_try_echo=$ac_try;; |
| 4093 | esac |
| 4094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4095 | $as_echo "$ac_try_echo") >&5 |
| 4096 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4097 | ac_status=$? |
| 4098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4099 | rm -f conftest.er1 |
| 4100 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4102 | (exit $ac_status); } >/dev/null && { |
| 4103 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4104 | test ! -s conftest.err |
| 4105 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4106 | ac_header_preproc=yes |
| 4107 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4108 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4110 | |
| 4111 | ac_header_preproc=no |
| 4112 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4113 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4114 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4115 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4116 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4117 | |
| 4118 | # So? What about this header? |
| 4119 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4120 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4121 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4122 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4123 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 4124 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4125 | ac_header_preproc=yes |
| 4126 | ;; |
| 4127 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4128 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 4129 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 4130 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 4131 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 4132 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 4133 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 4134 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4135 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4136 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 4137 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 4138 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 4139 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 4140 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4141 | ;; |
| 4142 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4143 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4144 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4145 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4146 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4147 | else |
| 4148 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 4149 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4150 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4151 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4152 | |
| 4153 | fi |
| 4154 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 4155 | CARBON=yes |
| 4156 | fi |
| 4157 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4158 | |
| 4159 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 4160 | 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] | 4161 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4162 | fi |
| 4163 | fi |
| 4164 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 4165 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 4166 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 4167 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 4168 | fi |
| 4169 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4170 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4171 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4172 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4173 | fi |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4178 | if test "$cross_compiling" = no; then |
| 4179 | have_local_include='' |
| 4180 | have_local_lib='' |
| 4181 | if test "$GCC" = yes; then |
| 4182 | echo 'void f(){}' > conftest.c |
| 4183 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 4184 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 4185 | rm -f conftest.c conftest.o |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4186 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4187 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 4188 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 4189 | if test "$tt" = "$LDFLAGS"; then |
| 4190 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 4191 | fi |
| 4192 | fi |
| 4193 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 4194 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 4195 | if test "$tt" = "$CPPFLAGS"; then |
| 4196 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 4197 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4198 | fi |
| 4199 | fi |
| 4200 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4201 | { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 4202 | $as_echo_n "checking --with-vim-name argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4203 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4204 | # Check whether --with-vim-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4205 | if test "${with_vim_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4206 | withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 4207 | $as_echo "$VIMNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4208 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4209 | VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
| 4210 | $as_echo "Defaulting to $VIMNAME" >&6; } |
| 4211 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4212 | |
| 4213 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4214 | { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 4215 | $as_echo_n "checking --with-ex-name argument... " >&6; } |
| 4216 | |
| 4217 | # Check whether --with-ex-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4218 | if test "${with_ex_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4219 | withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 4220 | $as_echo "$EXNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4221 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4222 | EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 4223 | $as_echo "Defaulting to ex" >&6; } |
| 4224 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4225 | |
| 4226 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4227 | { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 4228 | $as_echo_n "checking --with-view-name argument... " >&6; } |
| 4229 | |
| 4230 | # Check whether --with-view-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4231 | if test "${with_view_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4232 | withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 4233 | $as_echo "$VIEWNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4234 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4235 | VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 4236 | $as_echo "Defaulting to view" >&6; } |
| 4237 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4238 | |
| 4239 | |
| 4240 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4241 | { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 4242 | $as_echo_n "checking --with-global-runtime argument... " >&6; } |
| 4243 | |
| 4244 | # Check whether --with-global-runtime was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4245 | if test "${with_global_runtime+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4246 | withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4247 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4248 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4249 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4250 | |
| 4251 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4252 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4253 | $as_echo "no" >&6; } |
| 4254 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4255 | |
| 4256 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4257 | { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 4258 | $as_echo_n "checking --with-modified-by argument... " >&6; } |
| 4259 | |
| 4260 | # Check whether --with-modified-by was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4261 | if test "${with_modified_by+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4262 | withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4263 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4264 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4265 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4266 | |
| 4267 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4268 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4269 | $as_echo "no" >&6; } |
| 4270 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4271 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4272 | |
| 4273 | { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 4274 | $as_echo_n "checking if character set is EBCDIC... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4275 | cat >conftest.$ac_ext <<_ACEOF |
| 4276 | /* confdefs.h. */ |
| 4277 | _ACEOF |
| 4278 | cat confdefs.h >>conftest.$ac_ext |
| 4279 | cat >>conftest.$ac_ext <<_ACEOF |
| 4280 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4281 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4282 | int |
| 4283 | main () |
| 4284 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4285 | /* TryCompile function for CharSet. |
| 4286 | Treat any failure as ASCII for compatibility with existing art. |
| 4287 | Use compile-time rather than run-time tests for cross-compiler |
| 4288 | tolerance. */ |
| 4289 | #if '0'!=240 |
| 4290 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4291 | #endif |
| 4292 | ; |
| 4293 | return 0; |
| 4294 | } |
| 4295 | _ACEOF |
| 4296 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4297 | if { (ac_try="$ac_compile" |
| 4298 | case "(($ac_try" in |
| 4299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4300 | *) ac_try_echo=$ac_try;; |
| 4301 | esac |
| 4302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4303 | $as_echo "$ac_try_echo") >&5 |
| 4304 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4305 | ac_status=$? |
| 4306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4307 | rm -f conftest.er1 |
| 4308 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4310 | (exit $ac_status); } && { |
| 4311 | test -z "$ac_c_werror_flag" || |
| 4312 | test ! -s conftest.err |
| 4313 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4314 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4315 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4316 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4317 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4319 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4320 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4321 | cf_cv_ebcdic=no |
| 4322 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4323 | |
| 4324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4325 | # end of TryCompile ]) |
| 4326 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4327 | { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 4328 | $as_echo "$cf_cv_ebcdic" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4329 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4330 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4331 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4332 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4333 | |
| 4334 | line_break='"\\n"' |
| 4335 | ;; |
| 4336 | *) line_break='"\\012"';; |
| 4337 | esac |
| 4338 | |
| 4339 | |
| 4340 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4341 | { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 4342 | $as_echo_n "checking for OS/390 Unix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4343 | case `uname` in |
| 4344 | OS/390) OS390Unix="yes"; |
| 4345 | if test "$CC" = "cc"; then |
| 4346 | ccm="$_CC_CCMODE" |
| 4347 | ccn="CC" |
| 4348 | else |
| 4349 | if test "$CC" = "c89"; then |
| 4350 | ccm="$_CC_C89MODE" |
| 4351 | ccn="C89" |
| 4352 | else |
| 4353 | ccm=1 |
| 4354 | fi |
| 4355 | fi |
| 4356 | if test "$ccm" != "1"; then |
| 4357 | echo "" |
| 4358 | echo "------------------------------------------" |
| 4359 | echo " On OS/390 Unix, the environment variable" |
| 4360 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 4361 | echo " Do:" |
| 4362 | echo " export _CC_${ccn}MODE=1" |
| 4363 | echo " and then call configure again." |
| 4364 | echo "------------------------------------------" |
| 4365 | exit 1 |
| 4366 | fi |
| 4367 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4368 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4369 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4370 | ;; |
| 4371 | *) OS390Unix="no"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4372 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4373 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4374 | ;; |
| 4375 | esac |
| 4376 | fi |
| 4377 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4378 | { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5 |
| 4379 | $as_echo_n "checking --disable-selinux argument... " >&6; } |
| 4380 | # Check whether --enable-selinux was given. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4381 | if test "${enable_selinux+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4382 | enableval=$enable_selinux; |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4383 | else |
| 4384 | enable_selinux="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4385 | fi |
| 4386 | |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4387 | if test "$enable_selinux" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4388 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4389 | $as_echo "no" >&6; } |
| 4390 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
| 4391 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4392 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4393 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4394 | else |
| 4395 | ac_check_lib_save_LIBS=$LIBS |
| 4396 | LIBS="-lselinux $LIBS" |
| 4397 | cat >conftest.$ac_ext <<_ACEOF |
| 4398 | /* confdefs.h. */ |
| 4399 | _ACEOF |
| 4400 | cat confdefs.h >>conftest.$ac_ext |
| 4401 | cat >>conftest.$ac_ext <<_ACEOF |
| 4402 | /* end confdefs.h. */ |
| 4403 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4404 | /* Override any GCC internal prototype to avoid an error. |
| 4405 | Use char because int might match the return type of a GCC |
| 4406 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4407 | #ifdef __cplusplus |
| 4408 | extern "C" |
| 4409 | #endif |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4410 | char is_selinux_enabled (); |
| 4411 | int |
| 4412 | main () |
| 4413 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4414 | return is_selinux_enabled (); |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4415 | ; |
| 4416 | return 0; |
| 4417 | } |
| 4418 | _ACEOF |
| 4419 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4420 | if { (ac_try="$ac_link" |
| 4421 | case "(($ac_try" in |
| 4422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4423 | *) ac_try_echo=$ac_try;; |
| 4424 | esac |
| 4425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4426 | $as_echo "$ac_try_echo") >&5 |
| 4427 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4428 | ac_status=$? |
| 4429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4430 | rm -f conftest.er1 |
| 4431 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4433 | (exit $ac_status); } && { |
| 4434 | test -z "$ac_c_werror_flag" || |
| 4435 | test ! -s conftest.err |
| 4436 | } && test -s conftest$ac_exeext && { |
| 4437 | test "$cross_compiling" = yes || |
| 4438 | $as_test_x conftest$ac_exeext |
| 4439 | }; then |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4440 | ac_cv_lib_selinux_is_selinux_enabled=yes |
| 4441 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4442 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4444 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4445 | ac_cv_lib_selinux_is_selinux_enabled=no |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4446 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4447 | |
| 4448 | rm -rf conftest.dSYM |
| 4449 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4450 | conftest$ac_exeext conftest.$ac_ext |
| 4451 | LIBS=$ac_check_lib_save_LIBS |
| 4452 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4453 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 4454 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4455 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
| 4456 | LIBS="$LIBS -lselinux" |
| 4457 | cat >>confdefs.h <<\_ACEOF |
| 4458 | #define HAVE_SELINUX 1 |
| 4459 | _ACEOF |
| 4460 | |
| 4461 | fi |
| 4462 | |
| 4463 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4464 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4465 | $as_echo "yes" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4466 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4467 | |
| 4468 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4469 | { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 4470 | $as_echo_n "checking --with-features argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4471 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4472 | # Check whether --with-features was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4473 | if test "${with_features+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4474 | withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5 |
| 4475 | $as_echo "$features" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4476 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4477 | features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 4478 | $as_echo "Defaulting to normal" >&6; } |
| 4479 | fi |
| 4480 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4481 | |
| 4482 | dovimdiff="" |
| 4483 | dogvimdiff="" |
| 4484 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4485 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4486 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4487 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4488 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4489 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4490 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4491 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4492 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4493 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4494 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4495 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4496 | dovimdiff="installvimdiff"; |
| 4497 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4498 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4499 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4500 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4501 | dovimdiff="installvimdiff"; |
| 4502 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4503 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4504 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4505 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4506 | dovimdiff="installvimdiff"; |
| 4507 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4508 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 4509 | $as_echo "Sorry, $features is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4510 | esac |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4515 | { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 4516 | $as_echo_n "checking --with-compiledby argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4517 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4518 | # Check whether --with-compiledby was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4519 | if test "${with_compiledby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4520 | withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4521 | $as_echo "$withval" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4522 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4523 | compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4524 | $as_echo "no" >&6; } |
| 4525 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4526 | |
| 4527 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4528 | |
| 4529 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 4530 | $as_echo_n "checking --disable-xsmp argument... " >&6; } |
| 4531 | # Check whether --enable-xsmp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4532 | if test "${enable_xsmp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4533 | enableval=$enable_xsmp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4534 | else |
| 4535 | enable_xsmp="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4536 | fi |
| 4537 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4538 | |
| 4539 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4540 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4541 | $as_echo "no" >&6; } |
| 4542 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 4543 | $as_echo_n "checking --disable-xsmp-interact argument... " >&6; } |
| 4544 | # Check whether --enable-xsmp-interact was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4545 | if test "${enable_xsmp_interact+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4546 | enableval=$enable_xsmp_interact; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4547 | else |
| 4548 | enable_xsmp_interact="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4551 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4552 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4553 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4554 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4555 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4556 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4557 | |
| 4558 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4559 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4560 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4561 | fi |
| 4562 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4563 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4564 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4565 | fi |
| 4566 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4567 | { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 4568 | $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } |
| 4569 | # Check whether --enable-mzschemeinterp was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4570 | if test "${enable_mzschemeinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4571 | enableval=$enable_mzschemeinterp; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4572 | else |
| 4573 | enable_mzschemeinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4574 | fi |
| 4575 | |
| 4576 | { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 4577 | $as_echo "$enable_mzschemeinterp" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4578 | |
| 4579 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4580 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4581 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4582 | { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 4583 | $as_echo_n "checking --with-plthome argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4584 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4585 | # Check whether --with-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4586 | if test "${with_plthome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4587 | withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 4588 | $as_echo "$with_plthome" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4589 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4590 | with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4591 | $as_echo "\"no\"" >&6; } |
| 4592 | fi |
| 4593 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4594 | |
| 4595 | if test "X$with_plthome" != "X"; then |
| 4596 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 4597 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4598 | { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 4599 | $as_echo_n "checking PLTHOME environment var... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4600 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4601 | { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 4602 | $as_echo "\"$PLTHOME\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4603 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4604 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4605 | { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 4606 | $as_echo "\"not set\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4607 | # Extract the first word of "mzscheme", so it can be a program name with args. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4608 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4609 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4610 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4611 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4612 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4613 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4614 | case $vi_cv_path_mzscheme in |
| 4615 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4616 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 4617 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4618 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4620 | for as_dir in $PATH |
| 4621 | do |
| 4622 | IFS=$as_save_IFS |
| 4623 | test -z "$as_dir" && as_dir=. |
| 4624 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4626 | ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4627 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4628 | break 2 |
| 4629 | fi |
| 4630 | done |
| 4631 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4632 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4633 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4634 | ;; |
| 4635 | esac |
| 4636 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4637 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4638 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4639 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 4640 | $as_echo "$vi_cv_path_mzscheme" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4641 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4642 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4643 | $as_echo "no" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4644 | fi |
| 4645 | |
| 4646 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4647 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4648 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4649 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 4650 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 4651 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 4652 | fi |
| 4653 | fi |
| 4654 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4655 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4656 | { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 4657 | $as_echo_n "checking MzScheme install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4658 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4659 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4660 | else |
| 4661 | vi_cv_path_mzscheme_pfx=` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4662 | ${vi_cv_path_mzscheme} -evm \ |
| 4663 | "(display (simplify-path \ |
| 4664 | (build-path (call-with-values \ |
| 4665 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
| 4666 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4667 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4668 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 4669 | $as_echo "$vi_cv_path_mzscheme_pfx" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4670 | vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4671 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4672 | fi |
| 4673 | fi |
| 4674 | |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4675 | SCHEME_INC= |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4676 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4677 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 4678 | $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4679 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4680 | { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 4681 | $as_echo "\"yes\"" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4682 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4683 | { $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4684 | $as_echo "\"no\"" >&6; } |
| 4685 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5 |
| 4686 | $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4687 | if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4688 | { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 4689 | $as_echo "\"yes\"" >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4690 | SCHEME_INC=/plt |
| 4691 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4692 | { $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4693 | $as_echo "\"no\"" >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4694 | vi_cv_path_mzscheme_pfx= |
| 4695 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4696 | fi |
| 4697 | fi |
| 4698 | |
| 4699 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4700 | if test "x$MACOSX" = "xyes"; then |
| 4701 | MZSCHEME_LIBS="-framework PLT_MzScheme" |
| 4702 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4703 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4704 | else |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4705 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4706 | if test "$GCC" = yes; then |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4707 | 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] | 4708 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 4709 | uname -r | grep '^5' >/dev/null; then |
| 4710 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4711 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4712 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4713 | if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then |
| 4714 | SCHEME_COLLECTS=lib/plt/ |
| 4715 | fi |
| 4716 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \ |
| 4717 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4718 | MZSCHEME_SRC="if_mzsch.c" |
| 4719 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 4720 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4721 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4722 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4723 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4724 | |
| 4725 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4726 | |
| 4727 | |
| 4728 | |
| 4729 | |
| 4730 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4731 | fi |
| 4732 | |
| 4733 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4734 | { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 4735 | $as_echo_n "checking --enable-perlinterp argument... " >&6; } |
| 4736 | # Check whether --enable-perlinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4737 | if test "${enable_perlinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4738 | enableval=$enable_perlinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4739 | else |
| 4740 | enable_perlinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4741 | fi |
| 4742 | |
| 4743 | { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 4744 | $as_echo "$enable_perlinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4745 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4746 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4747 | # Extract the first word of "perl", so it can be a program name with args. |
| 4748 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4749 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4750 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4751 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4752 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4753 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4754 | case $vi_cv_path_perl in |
| 4755 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4756 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 4757 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4758 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4760 | for as_dir in $PATH |
| 4761 | do |
| 4762 | IFS=$as_save_IFS |
| 4763 | test -z "$as_dir" && as_dir=. |
| 4764 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4766 | ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4767 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4768 | break 2 |
| 4769 | fi |
| 4770 | done |
| 4771 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4772 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4773 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4774 | ;; |
| 4775 | esac |
| 4776 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4777 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4778 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4779 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 4780 | $as_echo "$vi_cv_path_perl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4781 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4782 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4783 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4784 | fi |
| 4785 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4786 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4787 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4788 | { $as_echo "$as_me:$LINENO: checking Perl version" >&5 |
| 4789 | $as_echo_n "checking Perl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4790 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 4791 | eval `$vi_cv_path_perl -V:usethreads` |
| 4792 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 4793 | badthreads=no |
| 4794 | else |
| 4795 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 4796 | eval `$vi_cv_path_perl -V:use5005threads` |
| 4797 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 4798 | badthreads=no |
| 4799 | else |
| 4800 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4801 | { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 4802 | $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4803 | fi |
| 4804 | else |
| 4805 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4806 | { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 4807 | $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4808 | fi |
| 4809 | fi |
| 4810 | if test $badthreads = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4811 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 4812 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4813 | eval `$vi_cv_path_perl -V:shrpenv` |
| 4814 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 4815 | shrpenv="" |
| 4816 | fi |
| 4817 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4818 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4819 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 4820 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 4821 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 4822 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 4823 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 4824 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 4825 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 4826 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4827 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 4828 | $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4829 | cflags_save=$CFLAGS |
| 4830 | libs_save=$LIBS |
| 4831 | ldflags_save=$LDFLAGS |
| 4832 | CFLAGS="$CFLAGS $perlcppflags" |
| 4833 | LIBS="$LIBS $perllibs" |
| 4834 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4835 | cat >conftest.$ac_ext <<_ACEOF |
| 4836 | /* confdefs.h. */ |
| 4837 | _ACEOF |
| 4838 | cat confdefs.h >>conftest.$ac_ext |
| 4839 | cat >>conftest.$ac_ext <<_ACEOF |
| 4840 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4841 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4842 | int |
| 4843 | main () |
| 4844 | { |
| 4845 | |
| 4846 | ; |
| 4847 | return 0; |
| 4848 | } |
| 4849 | _ACEOF |
| 4850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4851 | if { (ac_try="$ac_link" |
| 4852 | case "(($ac_try" in |
| 4853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4854 | *) ac_try_echo=$ac_try;; |
| 4855 | esac |
| 4856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4857 | $as_echo "$ac_try_echo") >&5 |
| 4858 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4859 | ac_status=$? |
| 4860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4861 | rm -f conftest.er1 |
| 4862 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4864 | (exit $ac_status); } && { |
| 4865 | test -z "$ac_c_werror_flag" || |
| 4866 | test ! -s conftest.err |
| 4867 | } && test -s conftest$ac_exeext && { |
| 4868 | test "$cross_compiling" = yes || |
| 4869 | $as_test_x conftest$ac_exeext |
| 4870 | }; then |
| 4871 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4872 | $as_echo "yes" >&6; }; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4873 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4874 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4876 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4877 | { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4878 | $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4879 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4880 | |
| 4881 | rm -rf conftest.dSYM |
| 4882 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4883 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4884 | CFLAGS=$cflags_save |
| 4885 | LIBS=$libs_save |
| 4886 | LDFLAGS=$ldflags_save |
| 4887 | if test $perl_ok = yes; then |
| 4888 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4889 | PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4890 | fi |
| 4891 | if test "X$perlldflags" != "X"; then |
| 4892 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4893 | fi |
| 4894 | PERL_LIBS=$perllibs |
| 4895 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4896 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4897 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4898 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4899 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4900 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4901 | |
| 4902 | fi |
| 4903 | fi |
| 4904 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4905 | { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4906 | $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4907 | fi |
| 4908 | fi |
| 4909 | |
| 4910 | if test "x$MACOSX" = "xyes"; then |
| 4911 | dir=/System/Library/Perl |
| 4912 | darwindir=$dir/darwin |
| 4913 | if test -d $darwindir; then |
| 4914 | PERL=/usr/bin/perl |
| 4915 | else |
| 4916 | dir=/System/Library/Perl/5.8.1 |
| 4917 | darwindir=$dir/darwin-thread-multi-2level |
| 4918 | if test -d $darwindir; then |
| 4919 | PERL=/usr/bin/perl |
| 4920 | fi |
| 4921 | fi |
| 4922 | if test -n "$PERL"; then |
| 4923 | PERL_DIR="$dir" |
| 4924 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4925 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4926 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4927 | fi |
| 4928 | fi |
| 4929 | fi |
| 4930 | |
| 4931 | |
| 4932 | |
| 4933 | |
| 4934 | |
| 4935 | |
| 4936 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4937 | { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 4938 | $as_echo_n "checking --enable-pythoninterp argument... " >&6; } |
| 4939 | # Check whether --enable-pythoninterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4940 | if test "${enable_pythoninterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4941 | enableval=$enable_pythoninterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4942 | else |
| 4943 | enable_pythoninterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4944 | fi |
| 4945 | |
| 4946 | { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 4947 | $as_echo "$enable_pythoninterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4948 | if test "$enable_pythoninterp" = "yes"; then |
| 4949 | # Extract the first word of "python", so it can be a program name with args. |
| 4950 | set dummy python; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4951 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4952 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4953 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4954 | $as_echo_n "(cached) " >&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 | case $vi_cv_path_python in |
| 4957 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4958 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 4959 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4960 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4962 | for as_dir in $PATH |
| 4963 | do |
| 4964 | IFS=$as_save_IFS |
| 4965 | test -z "$as_dir" && as_dir=. |
| 4966 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4968 | ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4969 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4970 | break 2 |
| 4971 | fi |
| 4972 | done |
| 4973 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4974 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4975 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4976 | ;; |
| 4977 | esac |
| 4978 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4979 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4980 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4981 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 4982 | $as_echo "$vi_cv_path_python" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4983 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4984 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4985 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4986 | fi |
| 4987 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4988 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4989 | if test "X$vi_cv_path_python" != "X"; then |
| 4990 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4991 | { $as_echo "$as_me:$LINENO: checking Python version" >&5 |
| 4992 | $as_echo_n "checking Python version... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4993 | if test "${vi_cv_var_python_version+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4994 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4995 | else |
| 4996 | vi_cv_var_python_version=` |
| 4997 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
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 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5000 | { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 5001 | $as_echo "$vi_cv_var_python_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5002 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5003 | { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 5004 | $as_echo_n "checking Python is 1.4 or better... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5005 | if ${vi_cv_path_python} -c \ |
| 5006 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 5007 | then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5008 | { $as_echo "$as_me:$LINENO: result: yep" >&5 |
| 5009 | $as_echo "yep" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5010 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5011 | { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 5012 | $as_echo_n "checking Python's install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5013 | if test "${vi_cv_path_python_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5014 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5015 | else |
| 5016 | vi_cv_path_python_pfx=` |
| 5017 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5018 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5019 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5020 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 5021 | $as_echo "$vi_cv_path_python_pfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5022 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5023 | { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 5024 | $as_echo_n "checking Python's execution prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5025 | if test "${vi_cv_path_python_epfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5026 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5027 | else |
| 5028 | vi_cv_path_python_epfx=` |
| 5029 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5030 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5031 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5032 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 5033 | $as_echo "$vi_cv_path_python_epfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5034 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5035 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5036 | if test "${vi_cv_path_pythonpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5037 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5038 | else |
| 5039 | vi_cv_path_pythonpath=` |
| 5040 | unset PYTHONPATH; |
| 5041 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5042 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5043 | fi |
| 5044 | |
| 5045 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5046 | |
| 5047 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5048 | # Check whether --with-python-config-dir was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5049 | if test "${with_python_config_dir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5050 | withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" |
| 5051 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5052 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5053 | |
| 5054 | { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 5055 | $as_echo_n "checking Python's configuration directory... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5056 | if test "${vi_cv_path_python_conf+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5057 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5058 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5059 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5060 | vi_cv_path_python_conf= |
| 5061 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 5062 | for subdir in lib share; do |
| 5063 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 5064 | if test -d "$d" && test -f "$d/config.c"; then |
| 5065 | vi_cv_path_python_conf="$d" |
| 5066 | fi |
| 5067 | done |
| 5068 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5069 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5070 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5071 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 5072 | $as_echo "$vi_cv_path_python_conf" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5073 | |
| 5074 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 5075 | |
| 5076 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5077 | { $as_echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 5078 | $as_echo "can't find it!" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5079 | else |
| 5080 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5081 | if test "${vi_cv_path_python_plibs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5082 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5083 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5084 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5085 | tmp_mkf="/tmp/Makefile-conf$$" |
| 5086 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 5087 | __: |
| 5088 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 5089 | @echo "python_LIBS='$(LIBS)'" |
| 5090 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 5091 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 5092 | eof |
| 5093 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 5094 | rm -f ${tmp_mkf} |
| 5095 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 5096 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 5097 | vi_cv_path_python_plibs="-framework Python" |
| 5098 | else |
| 5099 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5100 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 5101 | else |
| 5102 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 5103 | fi |
| 5104 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 5105 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 5106 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5108 | fi |
| 5109 | |
| 5110 | |
| 5111 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 5112 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 5113 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 5114 | else |
| 5115 | 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}" |
| 5116 | fi |
| 5117 | PYTHON_SRC="if_python.c" |
| 5118 | if test "x$MACOSX" = "xyes"; then |
| 5119 | PYTHON_OBJ="objects/if_python.o" |
| 5120 | else |
| 5121 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 5122 | fi |
| 5123 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5124 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 5125 | fi |
| 5126 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 5127 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5128 | { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 5129 | $as_echo_n "checking if -pthread should be used... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5130 | threadsafe_flag= |
| 5131 | thread_lib= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 5132 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5133 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 5134 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 5135 | threadsafe_flag="-D_THREAD_SAFE" |
| 5136 | thread_lib="-pthread" |
| 5137 | fi |
| 5138 | fi |
| 5139 | libs_save_old=$LIBS |
| 5140 | if test -n "$threadsafe_flag"; then |
| 5141 | cflags_save=$CFLAGS |
| 5142 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 5143 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5144 | cat >conftest.$ac_ext <<_ACEOF |
| 5145 | /* confdefs.h. */ |
| 5146 | _ACEOF |
| 5147 | cat confdefs.h >>conftest.$ac_ext |
| 5148 | cat >>conftest.$ac_ext <<_ACEOF |
| 5149 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5150 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5151 | int |
| 5152 | main () |
| 5153 | { |
| 5154 | |
| 5155 | ; |
| 5156 | return 0; |
| 5157 | } |
| 5158 | _ACEOF |
| 5159 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5160 | if { (ac_try="$ac_link" |
| 5161 | case "(($ac_try" in |
| 5162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5163 | *) ac_try_echo=$ac_try;; |
| 5164 | esac |
| 5165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5166 | $as_echo "$ac_try_echo") >&5 |
| 5167 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5168 | ac_status=$? |
| 5169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5170 | rm -f conftest.er1 |
| 5171 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5173 | (exit $ac_status); } && { |
| 5174 | test -z "$ac_c_werror_flag" || |
| 5175 | test ! -s conftest.err |
| 5176 | } && test -s conftest$ac_exeext && { |
| 5177 | test "$cross_compiling" = yes || |
| 5178 | $as_test_x conftest$ac_exeext |
| 5179 | }; then |
| 5180 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5181 | $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5182 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5183 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5185 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5186 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5187 | $as_echo "no" >&6; }; LIBS=$libs_save_old |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5188 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5189 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5190 | |
| 5191 | rm -rf conftest.dSYM |
| 5192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5193 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5194 | CFLAGS=$cflags_save |
| 5195 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5196 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5197 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5198 | fi |
| 5199 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5200 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 5201 | $as_echo_n "checking if compile and link flags for Python are sane... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5202 | cflags_save=$CFLAGS |
| 5203 | libs_save=$LIBS |
| 5204 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 5205 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5206 | cat >conftest.$ac_ext <<_ACEOF |
| 5207 | /* confdefs.h. */ |
| 5208 | _ACEOF |
| 5209 | cat confdefs.h >>conftest.$ac_ext |
| 5210 | cat >>conftest.$ac_ext <<_ACEOF |
| 5211 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5212 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5213 | int |
| 5214 | main () |
| 5215 | { |
| 5216 | |
| 5217 | ; |
| 5218 | return 0; |
| 5219 | } |
| 5220 | _ACEOF |
| 5221 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5222 | if { (ac_try="$ac_link" |
| 5223 | case "(($ac_try" in |
| 5224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5225 | *) ac_try_echo=$ac_try;; |
| 5226 | esac |
| 5227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5228 | $as_echo "$ac_try_echo") >&5 |
| 5229 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5230 | ac_status=$? |
| 5231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5232 | rm -f conftest.er1 |
| 5233 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5235 | (exit $ac_status); } && { |
| 5236 | test -z "$ac_c_werror_flag" || |
| 5237 | test ! -s conftest.err |
| 5238 | } && test -s conftest$ac_exeext && { |
| 5239 | test "$cross_compiling" = yes || |
| 5240 | $as_test_x conftest$ac_exeext |
| 5241 | }; then |
| 5242 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5243 | $as_echo "yes" >&6; }; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5244 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5245 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5247 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5248 | { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 5249 | $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5250 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5251 | |
| 5252 | rm -rf conftest.dSYM |
| 5253 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5254 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5255 | CFLAGS=$cflags_save |
| 5256 | LIBS=$libs_save |
| 5257 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5258 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5259 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5260 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5261 | |
| 5262 | else |
| 5263 | LIBS=$libs_save_old |
| 5264 | PYTHON_SRC= |
| 5265 | PYTHON_OBJ= |
| 5266 | PYTHON_LIBS= |
| 5267 | PYTHON_CFLAGS= |
| 5268 | fi |
| 5269 | |
| 5270 | fi |
| 5271 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5272 | { $as_echo "$as_me:$LINENO: result: too old" >&5 |
| 5273 | $as_echo "too old" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5274 | fi |
| 5275 | fi |
| 5276 | fi |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | |
| 5281 | |
| 5282 | |
| 5283 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5284 | { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 5285 | $as_echo_n "checking --enable-tclinterp argument... " >&6; } |
| 5286 | # Check whether --enable-tclinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5287 | if test "${enable_tclinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5288 | enableval=$enable_tclinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5289 | else |
| 5290 | enable_tclinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5291 | fi |
| 5292 | |
| 5293 | { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 5294 | $as_echo "$enable_tclinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5295 | |
| 5296 | if test "$enable_tclinterp" = "yes"; then |
| 5297 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5298 | { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 5299 | $as_echo_n "checking --with-tclsh argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5300 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5301 | # Check whether --with-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5302 | if test "${with_tclsh+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5303 | withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 5304 | $as_echo "$tclsh_name" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5305 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5306 | tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5307 | $as_echo "no" >&6; } |
| 5308 | fi |
| 5309 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5310 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5311 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5312 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5313 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5314 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5315 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5316 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5317 | case $vi_cv_path_tcl in |
| 5318 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5319 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5320 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5321 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5323 | for as_dir in $PATH |
| 5324 | do |
| 5325 | IFS=$as_save_IFS |
| 5326 | test -z "$as_dir" && as_dir=. |
| 5327 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5329 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5330 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5331 | break 2 |
| 5332 | fi |
| 5333 | done |
| 5334 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5335 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5336 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5337 | ;; |
| 5338 | esac |
| 5339 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5340 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5341 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5342 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5343 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5344 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5345 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5346 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5347 | fi |
| 5348 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5349 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5350 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5351 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5352 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 5353 | tclsh_name="tclsh8.4" |
| 5354 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5355 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5356 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5357 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5358 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5359 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5360 | else |
| 5361 | case $vi_cv_path_tcl in |
| 5362 | [\\/]* | ?:[\\/]*) |
| 5363 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5364 | ;; |
| 5365 | *) |
| 5366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5367 | for as_dir in $PATH |
| 5368 | do |
| 5369 | IFS=$as_save_IFS |
| 5370 | test -z "$as_dir" && as_dir=. |
| 5371 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5373 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5374 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5375 | break 2 |
| 5376 | fi |
| 5377 | done |
| 5378 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5379 | IFS=$as_save_IFS |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5380 | |
| 5381 | ;; |
| 5382 | esac |
| 5383 | fi |
| 5384 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5385 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5386 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5387 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5388 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5389 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5390 | $as_echo "no" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5391 | fi |
| 5392 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5393 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5394 | fi |
| 5395 | 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] | 5396 | tclsh_name="tclsh8.2" |
| 5397 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5398 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5399 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5400 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5401 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5402 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5403 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5404 | case $vi_cv_path_tcl in |
| 5405 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5406 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5407 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5408 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5410 | for as_dir in $PATH |
| 5411 | do |
| 5412 | IFS=$as_save_IFS |
| 5413 | test -z "$as_dir" && as_dir=. |
| 5414 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5416 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5417 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5418 | break 2 |
| 5419 | fi |
| 5420 | done |
| 5421 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5422 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5423 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5424 | ;; |
| 5425 | esac |
| 5426 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5427 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5428 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5429 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5430 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5431 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5432 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5433 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5434 | fi |
| 5435 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5436 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5437 | fi |
| 5438 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 5439 | tclsh_name="tclsh8.0" |
| 5440 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5441 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5442 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5443 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5444 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5445 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5446 | else |
| 5447 | case $vi_cv_path_tcl in |
| 5448 | [\\/]* | ?:[\\/]*) |
| 5449 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5450 | ;; |
| 5451 | *) |
| 5452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5453 | for as_dir in $PATH |
| 5454 | do |
| 5455 | IFS=$as_save_IFS |
| 5456 | test -z "$as_dir" && as_dir=. |
| 5457 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5459 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5460 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5461 | break 2 |
| 5462 | fi |
| 5463 | done |
| 5464 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5465 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5466 | |
| 5467 | ;; |
| 5468 | esac |
| 5469 | fi |
| 5470 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5471 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5472 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5473 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5474 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5475 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5476 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5477 | fi |
| 5478 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5479 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5480 | fi |
| 5481 | if test "X$vi_cv_path_tcl" = "X"; then |
| 5482 | tclsh_name="tclsh" |
| 5483 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5484 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5485 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5486 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5487 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5488 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5489 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5490 | case $vi_cv_path_tcl in |
| 5491 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5492 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5493 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5494 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5496 | for as_dir in $PATH |
| 5497 | do |
| 5498 | IFS=$as_save_IFS |
| 5499 | test -z "$as_dir" && as_dir=. |
| 5500 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5502 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5503 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5504 | break 2 |
| 5505 | fi |
| 5506 | done |
| 5507 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5508 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5509 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5510 | ;; |
| 5511 | esac |
| 5512 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5513 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5514 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5515 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5516 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5517 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5518 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5519 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5520 | fi |
| 5521 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5522 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5523 | fi |
| 5524 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5525 | { $as_echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 5526 | $as_echo_n "checking Tcl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5527 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 5528 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5529 | { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 5530 | $as_echo "$tclver - OK" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5531 | 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 -` |
| 5532 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5533 | { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 5534 | $as_echo_n "checking for location of Tcl include... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5535 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5536 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5537 | else |
| 5538 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 5539 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 5540 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5541 | for try in $tclinc; do |
| 5542 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5543 | { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 5544 | $as_echo "$try/tcl.h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5545 | TCL_INC=$try |
| 5546 | break |
| 5547 | fi |
| 5548 | done |
| 5549 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5550 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5551 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5552 | SKIP_TCL=YES |
| 5553 | fi |
| 5554 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5555 | { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 5556 | $as_echo_n "checking for location of tclConfig.sh script... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5557 | if test "x$MACOSX" != "xyes"; then |
| 5558 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5559 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5560 | else |
| 5561 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 5562 | fi |
| 5563 | for try in $tclcnf; do |
| 5564 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5565 | { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 5566 | $as_echo "$try/tclConfig.sh" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5567 | . $try/tclConfig.sh |
| 5568 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 5569 | TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5570 | break |
| 5571 | fi |
| 5572 | done |
| 5573 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5574 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5575 | $as_echo "<not found>" >&6; } |
| 5576 | { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 5577 | $as_echo_n "checking for Tcl library by myself... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5578 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5579 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5580 | for ext in .so .a ; do |
| 5581 | for ver in "" $tclver ; do |
| 5582 | for try in $tcllib ; do |
| 5583 | trylib=tcl$ver$ext |
| 5584 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5585 | { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 5586 | $as_echo "$try/lib$trylib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5587 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 5588 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 5589 | uname -r | grep '^5' >/dev/null; then |
| 5590 | TCL_LIBS="$TCL_LIBS -R $try" |
| 5591 | fi |
| 5592 | break 3 |
| 5593 | fi |
| 5594 | done |
| 5595 | done |
| 5596 | done |
| 5597 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5598 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5599 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5600 | SKIP_TCL=YES |
| 5601 | fi |
| 5602 | fi |
| 5603 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5604 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5605 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5606 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5607 | |
| 5608 | TCL_SRC=if_tcl.c |
| 5609 | TCL_OBJ=objects/if_tcl.o |
| 5610 | TCL_PRO=if_tcl.pro |
| 5611 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 5612 | fi |
| 5613 | fi |
| 5614 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5615 | { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 5616 | $as_echo "too old; need Tcl version 8.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5617 | fi |
| 5618 | fi |
| 5619 | fi |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
| 5624 | |
| 5625 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5626 | { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 5627 | $as_echo_n "checking --enable-rubyinterp argument... " >&6; } |
| 5628 | # Check whether --enable-rubyinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5629 | if test "${enable_rubyinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5630 | enableval=$enable_rubyinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5631 | else |
| 5632 | enable_rubyinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5633 | fi |
| 5634 | |
| 5635 | { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 5636 | $as_echo "$enable_rubyinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5637 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5638 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5639 | # Extract the first word of "ruby", so it can be a program name with args. |
| 5640 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5641 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5642 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5643 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5644 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5645 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5646 | case $vi_cv_path_ruby in |
| 5647 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5648 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 5649 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5650 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5652 | for as_dir in $PATH |
| 5653 | do |
| 5654 | IFS=$as_save_IFS |
| 5655 | test -z "$as_dir" && as_dir=. |
| 5656 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5658 | ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5659 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5660 | break 2 |
| 5661 | fi |
| 5662 | done |
| 5663 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5664 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5665 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5666 | ;; |
| 5667 | esac |
| 5668 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5669 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5670 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5671 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 5672 | $as_echo "$vi_cv_path_ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5673 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5674 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5675 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5676 | fi |
| 5677 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5678 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5679 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5680 | { $as_echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 5681 | $as_echo_n "checking Ruby version... " >&6; } |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 5682 | if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5683 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 5684 | $as_echo "OK" >&6; } |
| 5685 | { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 5686 | $as_echo_n "checking Ruby header files... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5687 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 5688 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5689 | { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 5690 | $as_echo "$rubyhdrdir" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5691 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 5692 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 5693 | if test "X$rubylibs" != "X"; then |
| 5694 | RUBY_LIBS="$rubylibs" |
| 5695 | fi |
| 5696 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 5697 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 5698 | librubyarg="$rubyhdrdir/$librubyarg" |
| 5699 | else |
| 5700 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 5701 | if test -f "$rubylibdir/$librubyarg"; then |
| 5702 | librubyarg="$rubylibdir/$librubyarg" |
| 5703 | elif test "$librubyarg" = "libruby.a"; then |
| 5704 | librubyarg="-lruby" |
| 5705 | else |
| 5706 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 5707 | fi |
| 5708 | fi |
| 5709 | |
| 5710 | if test "X$librubyarg" != "X"; then |
| 5711 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 5712 | fi |
| 5713 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 5714 | if test "X$rubyldflags" != "X"; then |
| 5715 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 5716 | fi |
| 5717 | RUBY_SRC="if_ruby.c" |
| 5718 | RUBY_OBJ="objects/if_ruby.o" |
| 5719 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5720 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5721 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5722 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5723 | |
| 5724 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5725 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 5726 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5727 | fi |
| 5728 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5729 | { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 5730 | $as_echo "too old; need Ruby version 1.6.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5731 | fi |
| 5732 | fi |
| 5733 | fi |
| 5734 | |
| 5735 | |
| 5736 | |
| 5737 | |
| 5738 | |
| 5739 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5740 | { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 5741 | $as_echo_n "checking --enable-cscope argument... " >&6; } |
| 5742 | # Check whether --enable-cscope was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5743 | if test "${enable_cscope+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5744 | enableval=$enable_cscope; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5745 | else |
| 5746 | enable_cscope="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5747 | fi |
| 5748 | |
| 5749 | { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 5750 | $as_echo "$enable_cscope" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5751 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5752 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5753 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5754 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5755 | |
| 5756 | fi |
| 5757 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5758 | { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 5759 | $as_echo_n "checking --enable-workshop argument... " >&6; } |
| 5760 | # Check whether --enable-workshop was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5761 | if test "${enable_workshop+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5762 | enableval=$enable_workshop; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5763 | else |
| 5764 | enable_workshop="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5765 | fi |
| 5766 | |
| 5767 | { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 5768 | $as_echo "$enable_workshop" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5769 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5770 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5771 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5772 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5773 | |
| 5774 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5775 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5776 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5777 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5778 | if test "${enable_gui-xxx}" = xxx; then |
| 5779 | enable_gui=motif |
| 5780 | fi |
| 5781 | fi |
| 5782 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5783 | { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 5784 | $as_echo_n "checking --disable-netbeans argument... " >&6; } |
| 5785 | # Check whether --enable-netbeans was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5786 | if test "${enable_netbeans+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5787 | enableval=$enable_netbeans; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5788 | else |
| 5789 | enable_netbeans="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5790 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5791 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5792 | if test "$enable_netbeans" = "yes"; then |
| 5793 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5794 | $as_echo "no" >&6; } |
| 5795 | |
| 5796 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 5797 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5798 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5799 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5800 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5801 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5802 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5803 | cat >conftest.$ac_ext <<_ACEOF |
| 5804 | /* confdefs.h. */ |
| 5805 | _ACEOF |
| 5806 | cat confdefs.h >>conftest.$ac_ext |
| 5807 | cat >>conftest.$ac_ext <<_ACEOF |
| 5808 | /* end confdefs.h. */ |
| 5809 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5810 | /* Override any GCC internal prototype to avoid an error. |
| 5811 | Use char because int might match the return type of a GCC |
| 5812 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5813 | #ifdef __cplusplus |
| 5814 | extern "C" |
| 5815 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5816 | char socket (); |
| 5817 | int |
| 5818 | main () |
| 5819 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5820 | return socket (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5821 | ; |
| 5822 | return 0; |
| 5823 | } |
| 5824 | _ACEOF |
| 5825 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5826 | if { (ac_try="$ac_link" |
| 5827 | case "(($ac_try" in |
| 5828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5829 | *) ac_try_echo=$ac_try;; |
| 5830 | esac |
| 5831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5832 | $as_echo "$ac_try_echo") >&5 |
| 5833 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5834 | ac_status=$? |
| 5835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5836 | rm -f conftest.er1 |
| 5837 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5839 | (exit $ac_status); } && { |
| 5840 | test -z "$ac_c_werror_flag" || |
| 5841 | test ! -s conftest.err |
| 5842 | } && test -s conftest$ac_exeext && { |
| 5843 | test "$cross_compiling" = yes || |
| 5844 | $as_test_x conftest$ac_exeext |
| 5845 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5846 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5847 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5848 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5849 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5850 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5851 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5852 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5853 | |
| 5854 | rm -rf conftest.dSYM |
| 5855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5856 | conftest$ac_exeext conftest.$ac_ext |
| 5857 | LIBS=$ac_check_lib_save_LIBS |
| 5858 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5859 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 5860 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5861 | if test $ac_cv_lib_socket_socket = yes; then |
| 5862 | cat >>confdefs.h <<_ACEOF |
| 5863 | #define HAVE_LIBSOCKET 1 |
| 5864 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5865 | |
| 5866 | LIBS="-lsocket $LIBS" |
| 5867 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5868 | fi |
| 5869 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5870 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5871 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5872 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5873 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5874 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5875 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5876 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5877 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5878 | cat >conftest.$ac_ext <<_ACEOF |
| 5879 | /* confdefs.h. */ |
| 5880 | _ACEOF |
| 5881 | cat confdefs.h >>conftest.$ac_ext |
| 5882 | cat >>conftest.$ac_ext <<_ACEOF |
| 5883 | /* end confdefs.h. */ |
| 5884 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5885 | /* Override any GCC internal prototype to avoid an error. |
| 5886 | Use char because int might match the return type of a GCC |
| 5887 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5888 | #ifdef __cplusplus |
| 5889 | extern "C" |
| 5890 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5891 | char gethostbyname (); |
| 5892 | int |
| 5893 | main () |
| 5894 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5895 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5896 | ; |
| 5897 | return 0; |
| 5898 | } |
| 5899 | _ACEOF |
| 5900 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5901 | if { (ac_try="$ac_link" |
| 5902 | case "(($ac_try" in |
| 5903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5904 | *) ac_try_echo=$ac_try;; |
| 5905 | esac |
| 5906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5907 | $as_echo "$ac_try_echo") >&5 |
| 5908 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5909 | ac_status=$? |
| 5910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5911 | rm -f conftest.er1 |
| 5912 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 | (exit $ac_status); } && { |
| 5915 | test -z "$ac_c_werror_flag" || |
| 5916 | test ! -s conftest.err |
| 5917 | } && test -s conftest$ac_exeext && { |
| 5918 | test "$cross_compiling" = yes || |
| 5919 | $as_test_x conftest$ac_exeext |
| 5920 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5921 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5922 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5923 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5924 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5925 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5926 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5927 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5928 | |
| 5929 | rm -rf conftest.dSYM |
| 5930 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5931 | conftest$ac_exeext conftest.$ac_ext |
| 5932 | LIBS=$ac_check_lib_save_LIBS |
| 5933 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5934 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5935 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5936 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 5937 | cat >>confdefs.h <<_ACEOF |
| 5938 | #define HAVE_LIBNSL 1 |
| 5939 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5940 | |
| 5941 | LIBS="-lnsl $LIBS" |
| 5942 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5943 | fi |
| 5944 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5945 | { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 5946 | $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5947 | cat >conftest.$ac_ext <<_ACEOF |
| 5948 | /* confdefs.h. */ |
| 5949 | _ACEOF |
| 5950 | cat confdefs.h >>conftest.$ac_ext |
| 5951 | cat >>conftest.$ac_ext <<_ACEOF |
| 5952 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5953 | |
| 5954 | #include <stdio.h> |
| 5955 | #include <stdlib.h> |
| 5956 | #include <stdarg.h> |
| 5957 | #include <fcntl.h> |
| 5958 | #include <netdb.h> |
| 5959 | #include <netinet/in.h> |
| 5960 | #include <errno.h> |
| 5961 | #include <sys/types.h> |
| 5962 | #include <sys/socket.h> |
| 5963 | /* Check bitfields */ |
| 5964 | struct nbbuf { |
| 5965 | unsigned int initDone:1; |
| 5966 | ushort signmaplen; |
| 5967 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5968 | |
| 5969 | int |
| 5970 | main () |
| 5971 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5972 | |
| 5973 | /* Check creating a socket. */ |
| 5974 | struct sockaddr_in server; |
| 5975 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 5976 | (void)htons(100); |
| 5977 | (void)gethostbyname("microsoft.com"); |
| 5978 | if (errno == ECONNREFUSED) |
| 5979 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5980 | |
| 5981 | ; |
| 5982 | return 0; |
| 5983 | } |
| 5984 | _ACEOF |
| 5985 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5986 | if { (ac_try="$ac_link" |
| 5987 | case "(($ac_try" in |
| 5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5989 | *) ac_try_echo=$ac_try;; |
| 5990 | esac |
| 5991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5992 | $as_echo "$ac_try_echo") >&5 |
| 5993 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5994 | ac_status=$? |
| 5995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5996 | rm -f conftest.er1 |
| 5997 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5999 | (exit $ac_status); } && { |
| 6000 | test -z "$ac_c_werror_flag" || |
| 6001 | test ! -s conftest.err |
| 6002 | } && test -s conftest$ac_exeext && { |
| 6003 | test "$cross_compiling" = yes || |
| 6004 | $as_test_x conftest$ac_exeext |
| 6005 | }; then |
| 6006 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6007 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6008 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6009 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6011 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6012 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6013 | $as_echo "no" >&6; }; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6014 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6015 | |
| 6016 | rm -rf conftest.dSYM |
| 6017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6018 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6019 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6020 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6021 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6022 | fi |
| 6023 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6024 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6025 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6026 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6027 | |
| 6028 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6029 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6030 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6031 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6032 | fi |
| 6033 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6034 | { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 6035 | $as_echo_n "checking --enable-sniff argument... " >&6; } |
| 6036 | # Check whether --enable-sniff was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6037 | if test "${enable_sniff+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6038 | enableval=$enable_sniff; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6039 | else |
| 6040 | enable_sniff="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6041 | fi |
| 6042 | |
| 6043 | { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 6044 | $as_echo "$enable_sniff" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6045 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6046 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6047 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6048 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6049 | |
| 6050 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6051 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6052 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6053 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6054 | fi |
| 6055 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6056 | { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 6057 | $as_echo_n "checking --enable-multibyte argument... " >&6; } |
| 6058 | # Check whether --enable-multibyte was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6059 | if test "${enable_multibyte+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6060 | enableval=$enable_multibyte; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6061 | else |
| 6062 | enable_multibyte="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6063 | fi |
| 6064 | |
| 6065 | { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 6066 | $as_echo "$enable_multibyte" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6067 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6068 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6069 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6070 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6071 | |
| 6072 | fi |
| 6073 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6074 | { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 6075 | $as_echo_n "checking --enable-hangulinput argument... " >&6; } |
| 6076 | # Check whether --enable-hangulinput was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6077 | if test "${enable_hangulinput+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6078 | enableval=$enable_hangulinput; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6079 | else |
| 6080 | enable_hangulinput="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6081 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6082 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6083 | { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 6084 | $as_echo "$enable_hangulinput" >&6; } |
| 6085 | |
| 6086 | { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 6087 | $as_echo_n "checking --enable-xim argument... " >&6; } |
| 6088 | # Check whether --enable-xim was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6089 | if test "${enable_xim+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6090 | enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 6091 | $as_echo "$enable_xim" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6092 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6093 | enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 6094 | $as_echo "defaulting to auto" >&6; } |
| 6095 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6096 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6097 | |
| 6098 | { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 6099 | $as_echo_n "checking --enable-fontset argument... " >&6; } |
| 6100 | # Check whether --enable-fontset was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6101 | if test "${enable_fontset+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6102 | enableval=$enable_fontset; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6103 | else |
| 6104 | enable_fontset="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6105 | fi |
| 6106 | |
| 6107 | { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 6108 | $as_echo "$enable_fontset" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6109 | |
| 6110 | test -z "$with_x" && with_x=yes |
| 6111 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 6112 | if test "$with_x" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6113 | { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 6114 | $as_echo "defaulting to: don't HAVE_X11" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6115 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6116 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6117 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 6118 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6119 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6120 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6121 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6122 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6123 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6124 | case $xmkmfpath in |
| 6125 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6126 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 6127 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6128 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6130 | for as_dir in $PATH |
| 6131 | do |
| 6132 | IFS=$as_save_IFS |
| 6133 | test -z "$as_dir" && as_dir=. |
| 6134 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6136 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6137 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6138 | break 2 |
| 6139 | fi |
| 6140 | done |
| 6141 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6142 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6143 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6144 | ;; |
| 6145 | esac |
| 6146 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6147 | xmkmfpath=$ac_cv_path_xmkmfpath |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6148 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6149 | { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 6150 | $as_echo "$xmkmfpath" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6151 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6152 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6153 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6154 | fi |
| 6155 | |
| 6156 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6157 | |
| 6158 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| 6159 | $as_echo_n "checking for X... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6160 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6161 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6162 | # Check whether --with-x was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6163 | if test "${with_x+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6164 | withval=$with_x; |
| 6165 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6166 | |
| 6167 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 6168 | if test "x$with_x" = xno; then |
| 6169 | # The user explicitly disabled X. |
| 6170 | have_x=disabled |
| 6171 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6172 | case $x_includes,$x_libraries in #( |
| 6173 | *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
| 6174 | $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
| 6175 | { (exit 1); exit 1; }; };; #( |
| 6176 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 6177 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6178 | else |
| 6179 | # 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] | 6180 | ac_x_includes=no ac_x_libraries=no |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6181 | rm -f -r conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6182 | if mkdir conftest.dir; then |
| 6183 | cd conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6184 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6185 | incroot: |
| 6186 | @echo incroot='${INCROOT}' |
| 6187 | usrlibdir: |
| 6188 | @echo usrlibdir='${USRLIBDIR}' |
| 6189 | libdir: |
| 6190 | @echo libdir='${LIBDIR}' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6191 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6192 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6193 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6194 | for ac_var in incroot usrlibdir libdir; do |
| 6195 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 6196 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6197 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6198 | for ac_extension in a so sl dylib la dll; do |
| 6199 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 6200 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6201 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6202 | fi |
| 6203 | done |
| 6204 | # Screen out bogus values from the imake configuration. They are |
| 6205 | # bogus both because they are the default anyway, and because |
| 6206 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6207 | case $ac_im_incroot in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6208 | /usr/include) ac_x_includes= ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6209 | *) 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] | 6210 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6211 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6212 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6213 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6214 | esac |
| 6215 | fi |
| 6216 | cd .. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6217 | rm -f -r conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6218 | fi |
| 6219 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6220 | # Standard set of common directories for X headers. |
| 6221 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 6222 | ac_x_header_dirs=' |
| 6223 | /usr/X11/include |
| 6224 | /usr/X11R6/include |
| 6225 | /usr/X11R5/include |
| 6226 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6227 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6228 | /usr/include/X11 |
| 6229 | /usr/include/X11R6 |
| 6230 | /usr/include/X11R5 |
| 6231 | /usr/include/X11R4 |
| 6232 | |
| 6233 | /usr/local/X11/include |
| 6234 | /usr/local/X11R6/include |
| 6235 | /usr/local/X11R5/include |
| 6236 | /usr/local/X11R4/include |
| 6237 | |
| 6238 | /usr/local/include/X11 |
| 6239 | /usr/local/include/X11R6 |
| 6240 | /usr/local/include/X11R5 |
| 6241 | /usr/local/include/X11R4 |
| 6242 | |
| 6243 | /usr/X386/include |
| 6244 | /usr/x386/include |
| 6245 | /usr/XFree86/include/X11 |
| 6246 | |
| 6247 | /usr/include |
| 6248 | /usr/local/include |
| 6249 | /usr/unsupported/include |
| 6250 | /usr/athena/include |
| 6251 | /usr/local/x11r5/include |
| 6252 | /usr/lpp/Xamples/include |
| 6253 | |
| 6254 | /usr/openwin/include |
| 6255 | /usr/openwin/share/include' |
| 6256 | |
| 6257 | if test "$ac_x_includes" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6258 | # Guess where to find include files, by looking for Xlib.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6259 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6260 | cat >conftest.$ac_ext <<_ACEOF |
| 6261 | /* confdefs.h. */ |
| 6262 | _ACEOF |
| 6263 | cat confdefs.h >>conftest.$ac_ext |
| 6264 | cat >>conftest.$ac_ext <<_ACEOF |
| 6265 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6266 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6267 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6268 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6269 | case "(($ac_try" in |
| 6270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6271 | *) ac_try_echo=$ac_try;; |
| 6272 | esac |
| 6273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6274 | $as_echo "$ac_try_echo") >&5 |
| 6275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6276 | ac_status=$? |
| 6277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6278 | rm -f conftest.er1 |
| 6279 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6281 | (exit $ac_status); } >/dev/null && { |
| 6282 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6283 | test ! -s conftest.err |
| 6284 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6285 | # We can compile using X headers with no special include directory. |
| 6286 | ac_x_includes= |
| 6287 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6288 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6290 | |
| 6291 | for ac_dir in $ac_x_header_dirs; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6292 | if test -r "$ac_dir/X11/Xlib.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6293 | ac_x_includes=$ac_dir |
| 6294 | break |
| 6295 | fi |
| 6296 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6297 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6298 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6299 | rm -f conftest.err conftest.$ac_ext |
| 6300 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6301 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6302 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6303 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6304 | # See if we find them without any special options. |
| 6305 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6306 | ac_save_LIBS=$LIBS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6307 | LIBS="-lX11 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6308 | cat >conftest.$ac_ext <<_ACEOF |
| 6309 | /* confdefs.h. */ |
| 6310 | _ACEOF |
| 6311 | cat confdefs.h >>conftest.$ac_ext |
| 6312 | cat >>conftest.$ac_ext <<_ACEOF |
| 6313 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6314 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6315 | int |
| 6316 | main () |
| 6317 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6318 | XrmInitialize () |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6319 | ; |
| 6320 | return 0; |
| 6321 | } |
| 6322 | _ACEOF |
| 6323 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6324 | if { (ac_try="$ac_link" |
| 6325 | case "(($ac_try" in |
| 6326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6327 | *) ac_try_echo=$ac_try;; |
| 6328 | esac |
| 6329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6330 | $as_echo "$ac_try_echo") >&5 |
| 6331 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6332 | ac_status=$? |
| 6333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6334 | rm -f conftest.er1 |
| 6335 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6337 | (exit $ac_status); } && { |
| 6338 | test -z "$ac_c_werror_flag" || |
| 6339 | test ! -s conftest.err |
| 6340 | } && test -s conftest$ac_exeext && { |
| 6341 | test "$cross_compiling" = yes || |
| 6342 | $as_test_x conftest$ac_exeext |
| 6343 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6344 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6345 | # We can link X programs with no special library path. |
| 6346 | ac_x_libraries= |
| 6347 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6348 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6350 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6351 | LIBS=$ac_save_LIBS |
| 6352 | for ac_dir in `$as_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] | 6353 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6354 | # Don't even attempt the hair of trying to link an X program! |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6355 | for ac_extension in a so sl dylib la dll; do |
| 6356 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6357 | ac_x_libraries=$ac_dir |
| 6358 | break 2 |
| 6359 | fi |
| 6360 | done |
| 6361 | done |
| 6362 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6363 | |
| 6364 | rm -rf conftest.dSYM |
| 6365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6366 | conftest$ac_exeext conftest.$ac_ext |
| 6367 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6368 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6369 | case $ac_x_includes,$ac_x_libraries in #( |
| 6370 | no,* | *,no | *\'*) |
| 6371 | # Didn't find X, or a directory has "'" in its name. |
| 6372 | ac_cv_have_x="have_x=no";; #( |
| 6373 | *) |
| 6374 | # Record where we found X for the cache. |
| 6375 | ac_cv_have_x="have_x=yes\ |
| 6376 | ac_x_includes='$ac_x_includes'\ |
| 6377 | ac_x_libraries='$ac_x_libraries'" |
| 6378 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6379 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6380 | ;; #( |
| 6381 | *) have_x=yes;; |
| 6382 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6383 | eval "$ac_cv_have_x" |
| 6384 | fi # $with_x != no |
| 6385 | |
| 6386 | if test "$have_x" != yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6387 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| 6388 | $as_echo "$have_x" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6389 | no_x=yes |
| 6390 | else |
| 6391 | # If each of the values was on the command line, it overrides each guess. |
| 6392 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 6393 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 6394 | # Update the cache value to reflect the command line values. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6395 | ac_cv_have_x="have_x=yes\ |
| 6396 | ac_x_includes='$x_includes'\ |
| 6397 | ac_x_libraries='$x_libraries'" |
| 6398 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 6399 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6400 | fi |
| 6401 | |
| 6402 | if test "$no_x" = yes; then |
| 6403 | # 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] | 6404 | |
| 6405 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6406 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6407 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6408 | |
| 6409 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 6410 | else |
| 6411 | if test -n "$x_includes"; then |
| 6412 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6413 | fi |
| 6414 | |
| 6415 | # It would also be nice to do this for all -L options, not just this one. |
| 6416 | if test -n "$x_libraries"; then |
| 6417 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6418 | # For Solaris; some versions of Sun CC require a space after -R and |
| 6419 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6420 | { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 6421 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 6422 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 6423 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 6424 | ac_c_werror_flag=yes |
| 6425 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6426 | /* confdefs.h. */ |
| 6427 | _ACEOF |
| 6428 | cat confdefs.h >>conftest.$ac_ext |
| 6429 | cat >>conftest.$ac_ext <<_ACEOF |
| 6430 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6431 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6432 | int |
| 6433 | main () |
| 6434 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6435 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6436 | ; |
| 6437 | return 0; |
| 6438 | } |
| 6439 | _ACEOF |
| 6440 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6441 | if { (ac_try="$ac_link" |
| 6442 | case "(($ac_try" in |
| 6443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6444 | *) ac_try_echo=$ac_try;; |
| 6445 | esac |
| 6446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6447 | $as_echo "$ac_try_echo") >&5 |
| 6448 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6449 | ac_status=$? |
| 6450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6451 | rm -f conftest.er1 |
| 6452 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6454 | (exit $ac_status); } && { |
| 6455 | test -z "$ac_c_werror_flag" || |
| 6456 | test ! -s conftest.err |
| 6457 | } && test -s conftest$ac_exeext && { |
| 6458 | test "$cross_compiling" = yes || |
| 6459 | $as_test_x conftest$ac_exeext |
| 6460 | }; then |
| 6461 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6462 | $as_echo "no" >&6; } |
| 6463 | X_LIBS="$X_LIBS -R$x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6464 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6465 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6467 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6468 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6469 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6470 | /* confdefs.h. */ |
| 6471 | _ACEOF |
| 6472 | cat confdefs.h >>conftest.$ac_ext |
| 6473 | cat >>conftest.$ac_ext <<_ACEOF |
| 6474 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6475 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6476 | int |
| 6477 | main () |
| 6478 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6479 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6480 | ; |
| 6481 | return 0; |
| 6482 | } |
| 6483 | _ACEOF |
| 6484 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6485 | if { (ac_try="$ac_link" |
| 6486 | case "(($ac_try" in |
| 6487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6488 | *) ac_try_echo=$ac_try;; |
| 6489 | esac |
| 6490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6491 | $as_echo "$ac_try_echo") >&5 |
| 6492 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6493 | ac_status=$? |
| 6494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6495 | rm -f conftest.er1 |
| 6496 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6498 | (exit $ac_status); } && { |
| 6499 | test -z "$ac_c_werror_flag" || |
| 6500 | test ! -s conftest.err |
| 6501 | } && test -s conftest$ac_exeext && { |
| 6502 | test "$cross_compiling" = yes || |
| 6503 | $as_test_x conftest$ac_exeext |
| 6504 | }; then |
| 6505 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6506 | $as_echo "yes" >&6; } |
| 6507 | X_LIBS="$X_LIBS -R $x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6508 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6509 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6511 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6512 | { $as_echo "$as_me:$LINENO: result: neither works" >&5 |
| 6513 | $as_echo "neither works" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6514 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6515 | |
| 6516 | rm -rf conftest.dSYM |
| 6517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6518 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6519 | fi |
| 6520 | |
| 6521 | rm -rf conftest.dSYM |
| 6522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6523 | conftest$ac_exeext conftest.$ac_ext |
| 6524 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 6525 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6526 | fi |
| 6527 | |
| 6528 | # Check for system-dependent libraries X programs must link with. |
| 6529 | # Do this before checking for the system-independent R6 libraries |
| 6530 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 6531 | |
| 6532 | if test "$ISC" = yes; then |
| 6533 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 6534 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6535 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 6536 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6537 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6538 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 6539 | cat >conftest.$ac_ext <<_ACEOF |
| 6540 | /* confdefs.h. */ |
| 6541 | _ACEOF |
| 6542 | cat confdefs.h >>conftest.$ac_ext |
| 6543 | cat >>conftest.$ac_ext <<_ACEOF |
| 6544 | /* end confdefs.h. */ |
| 6545 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6546 | /* Override any GCC internal prototype to avoid an error. |
| 6547 | Use char because int might match the return type of a GCC |
| 6548 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6549 | #ifdef __cplusplus |
| 6550 | extern "C" |
| 6551 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6552 | char XOpenDisplay (); |
| 6553 | int |
| 6554 | main () |
| 6555 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6556 | return XOpenDisplay (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6557 | ; |
| 6558 | return 0; |
| 6559 | } |
| 6560 | _ACEOF |
| 6561 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6562 | if { (ac_try="$ac_link" |
| 6563 | case "(($ac_try" in |
| 6564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6565 | *) ac_try_echo=$ac_try;; |
| 6566 | esac |
| 6567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6568 | $as_echo "$ac_try_echo") >&5 |
| 6569 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6570 | ac_status=$? |
| 6571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6572 | rm -f conftest.er1 |
| 6573 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6575 | (exit $ac_status); } && { |
| 6576 | test -z "$ac_c_werror_flag" || |
| 6577 | test ! -s conftest.err |
| 6578 | } && test -s conftest$ac_exeext && { |
| 6579 | test "$cross_compiling" = yes || |
| 6580 | $as_test_x conftest$ac_exeext |
| 6581 | }; then |
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 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6584 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6585 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6586 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6587 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 6588 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6589 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6590 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6591 | else |
| 6592 | ac_check_lib_save_LIBS=$LIBS |
| 6593 | LIBS="-ldnet $LIBS" |
| 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 | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6601 | /* Override any GCC internal prototype to avoid an error. |
| 6602 | Use char because int might match the return type of a GCC |
| 6603 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6604 | #ifdef __cplusplus |
| 6605 | extern "C" |
| 6606 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6607 | char dnet_ntoa (); |
| 6608 | int |
| 6609 | main () |
| 6610 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6611 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6612 | ; |
| 6613 | return 0; |
| 6614 | } |
| 6615 | _ACEOF |
| 6616 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6617 | if { (ac_try="$ac_link" |
| 6618 | case "(($ac_try" in |
| 6619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6620 | *) ac_try_echo=$ac_try;; |
| 6621 | esac |
| 6622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6623 | $as_echo "$ac_try_echo") >&5 |
| 6624 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6625 | ac_status=$? |
| 6626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6627 | rm -f conftest.er1 |
| 6628 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6630 | (exit $ac_status); } && { |
| 6631 | test -z "$ac_c_werror_flag" || |
| 6632 | test ! -s conftest.err |
| 6633 | } && test -s conftest$ac_exeext && { |
| 6634 | test "$cross_compiling" = yes || |
| 6635 | $as_test_x conftest$ac_exeext |
| 6636 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6637 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 6638 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6639 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6641 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6642 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6643 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6644 | |
| 6645 | rm -rf conftest.dSYM |
| 6646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6647 | conftest$ac_exeext conftest.$ac_ext |
| 6648 | LIBS=$ac_check_lib_save_LIBS |
| 6649 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6650 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 6651 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6652 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6653 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6654 | fi |
| 6655 | |
| 6656 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6657 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 6658 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6659 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6660 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6661 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6662 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6663 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6664 | cat >conftest.$ac_ext <<_ACEOF |
| 6665 | /* confdefs.h. */ |
| 6666 | _ACEOF |
| 6667 | cat confdefs.h >>conftest.$ac_ext |
| 6668 | cat >>conftest.$ac_ext <<_ACEOF |
| 6669 | /* end confdefs.h. */ |
| 6670 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6671 | /* Override any GCC internal prototype to avoid an error. |
| 6672 | Use char because int might match the return type of a GCC |
| 6673 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6674 | #ifdef __cplusplus |
| 6675 | extern "C" |
| 6676 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6677 | char dnet_ntoa (); |
| 6678 | int |
| 6679 | main () |
| 6680 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6681 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6682 | ; |
| 6683 | return 0; |
| 6684 | } |
| 6685 | _ACEOF |
| 6686 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6687 | if { (ac_try="$ac_link" |
| 6688 | case "(($ac_try" in |
| 6689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6690 | *) ac_try_echo=$ac_try;; |
| 6691 | esac |
| 6692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6693 | $as_echo "$ac_try_echo") >&5 |
| 6694 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6695 | ac_status=$? |
| 6696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6697 | rm -f conftest.er1 |
| 6698 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6700 | (exit $ac_status); } && { |
| 6701 | test -z "$ac_c_werror_flag" || |
| 6702 | test ! -s conftest.err |
| 6703 | } && test -s conftest$ac_exeext && { |
| 6704 | test "$cross_compiling" = yes || |
| 6705 | $as_test_x conftest$ac_exeext |
| 6706 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6707 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6708 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6709 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6711 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6712 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6713 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6714 | |
| 6715 | rm -rf conftest.dSYM |
| 6716 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6717 | conftest$ac_exeext conftest.$ac_ext |
| 6718 | LIBS=$ac_check_lib_save_LIBS |
| 6719 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6720 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 6721 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6722 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6723 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6724 | fi |
| 6725 | |
| 6726 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6727 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6728 | |
| 6729 | rm -rf conftest.dSYM |
| 6730 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6731 | conftest$ac_exeext conftest.$ac_ext |
| 6732 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6733 | |
| 6734 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 6735 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6736 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6737 | # needs -lnsl. |
| 6738 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6739 | # on Irix 5.2, according to T.E. Dickey. |
| 6740 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 6741 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6742 | { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 6743 | $as_echo_n "checking for gethostbyname... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6744 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6745 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6746 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6747 | cat >conftest.$ac_ext <<_ACEOF |
| 6748 | /* confdefs.h. */ |
| 6749 | _ACEOF |
| 6750 | cat confdefs.h >>conftest.$ac_ext |
| 6751 | cat >>conftest.$ac_ext <<_ACEOF |
| 6752 | /* end confdefs.h. */ |
| 6753 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 6754 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6755 | #define gethostbyname innocuous_gethostbyname |
| 6756 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6757 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6758 | which can conflict with char gethostbyname (); below. |
| 6759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6760 | <limits.h> exists even on freestanding compilers. */ |
| 6761 | |
| 6762 | #ifdef __STDC__ |
| 6763 | # include <limits.h> |
| 6764 | #else |
| 6765 | # include <assert.h> |
| 6766 | #endif |
| 6767 | |
| 6768 | #undef gethostbyname |
| 6769 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6770 | /* Override any GCC internal prototype to avoid an error. |
| 6771 | Use char because int might match the return type of a GCC |
| 6772 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6773 | #ifdef __cplusplus |
| 6774 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6775 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6776 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6777 | /* The GNU C library defines this for functions which it implements |
| 6778 | to always fail with ENOSYS. Some functions are actually named |
| 6779 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6780 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6781 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6782 | #endif |
| 6783 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6784 | int |
| 6785 | main () |
| 6786 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6787 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6788 | ; |
| 6789 | return 0; |
| 6790 | } |
| 6791 | _ACEOF |
| 6792 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6793 | if { (ac_try="$ac_link" |
| 6794 | case "(($ac_try" in |
| 6795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6796 | *) ac_try_echo=$ac_try;; |
| 6797 | esac |
| 6798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6799 | $as_echo "$ac_try_echo") >&5 |
| 6800 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6801 | ac_status=$? |
| 6802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6803 | rm -f conftest.er1 |
| 6804 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6806 | (exit $ac_status); } && { |
| 6807 | test -z "$ac_c_werror_flag" || |
| 6808 | test ! -s conftest.err |
| 6809 | } && test -s conftest$ac_exeext && { |
| 6810 | test "$cross_compiling" = yes || |
| 6811 | $as_test_x conftest$ac_exeext |
| 6812 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6813 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6814 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6815 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6816 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6817 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6818 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6819 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6820 | |
| 6821 | rm -rf conftest.dSYM |
| 6822 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6823 | conftest$ac_exeext conftest.$ac_ext |
| 6824 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6825 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6826 | $as_echo "$ac_cv_func_gethostbyname" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6827 | |
| 6828 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6829 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6830 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6831 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6832 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6833 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6834 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6835 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6836 | cat >conftest.$ac_ext <<_ACEOF |
| 6837 | /* confdefs.h. */ |
| 6838 | _ACEOF |
| 6839 | cat confdefs.h >>conftest.$ac_ext |
| 6840 | cat >>conftest.$ac_ext <<_ACEOF |
| 6841 | /* end confdefs.h. */ |
| 6842 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6843 | /* Override any GCC internal prototype to avoid an error. |
| 6844 | Use char because int might match the return type of a GCC |
| 6845 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6846 | #ifdef __cplusplus |
| 6847 | extern "C" |
| 6848 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6849 | char gethostbyname (); |
| 6850 | int |
| 6851 | main () |
| 6852 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6853 | return gethostbyname (); |
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 conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6859 | if { (ac_try="$ac_link" |
| 6860 | case "(($ac_try" in |
| 6861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6862 | *) ac_try_echo=$ac_try;; |
| 6863 | esac |
| 6864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6865 | $as_echo "$ac_try_echo") >&5 |
| 6866 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6867 | ac_status=$? |
| 6868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6869 | rm -f conftest.er1 |
| 6870 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6872 | (exit $ac_status); } && { |
| 6873 | test -z "$ac_c_werror_flag" || |
| 6874 | test ! -s conftest.err |
| 6875 | } && test -s conftest$ac_exeext && { |
| 6876 | test "$cross_compiling" = yes || |
| 6877 | $as_test_x conftest$ac_exeext |
| 6878 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6879 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6880 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6881 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6882 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6883 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6884 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6885 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6886 | |
| 6887 | rm -rf conftest.dSYM |
| 6888 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6889 | conftest$ac_exeext conftest.$ac_ext |
| 6890 | LIBS=$ac_check_lib_save_LIBS |
| 6891 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6893 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6894 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6895 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6896 | fi |
| 6897 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6898 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6899 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 6900 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6901 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6902 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6903 | else |
| 6904 | ac_check_lib_save_LIBS=$LIBS |
| 6905 | LIBS="-lbsd $LIBS" |
| 6906 | cat >conftest.$ac_ext <<_ACEOF |
| 6907 | /* confdefs.h. */ |
| 6908 | _ACEOF |
| 6909 | cat confdefs.h >>conftest.$ac_ext |
| 6910 | cat >>conftest.$ac_ext <<_ACEOF |
| 6911 | /* end confdefs.h. */ |
| 6912 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6913 | /* Override any GCC internal prototype to avoid an error. |
| 6914 | Use char because int might match the return type of a GCC |
| 6915 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6916 | #ifdef __cplusplus |
| 6917 | extern "C" |
| 6918 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6919 | char gethostbyname (); |
| 6920 | int |
| 6921 | main () |
| 6922 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6923 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6924 | ; |
| 6925 | return 0; |
| 6926 | } |
| 6927 | _ACEOF |
| 6928 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6929 | if { (ac_try="$ac_link" |
| 6930 | case "(($ac_try" in |
| 6931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6932 | *) ac_try_echo=$ac_try;; |
| 6933 | esac |
| 6934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6935 | $as_echo "$ac_try_echo") >&5 |
| 6936 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6937 | ac_status=$? |
| 6938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6939 | rm -f conftest.er1 |
| 6940 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6942 | (exit $ac_status); } && { |
| 6943 | test -z "$ac_c_werror_flag" || |
| 6944 | test ! -s conftest.err |
| 6945 | } && test -s conftest$ac_exeext && { |
| 6946 | test "$cross_compiling" = yes || |
| 6947 | $as_test_x conftest$ac_exeext |
| 6948 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6949 | ac_cv_lib_bsd_gethostbyname=yes |
| 6950 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6951 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6953 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6954 | ac_cv_lib_bsd_gethostbyname=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6955 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6956 | |
| 6957 | rm -rf conftest.dSYM |
| 6958 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6959 | conftest$ac_exeext conftest.$ac_ext |
| 6960 | LIBS=$ac_check_lib_save_LIBS |
| 6961 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6962 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 6963 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6964 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 6965 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 6966 | fi |
| 6967 | |
| 6968 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6969 | fi |
| 6970 | |
| 6971 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 6972 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 6973 | # 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] | 6974 | # on later versions), says Simon Leinen: it contains gethostby* |
| 6975 | # variants that don't use the name server (or something). -lsocket |
| 6976 | # must be given before -lnsl if both are needed. We assume that |
| 6977 | # if connect needs -lnsl, so does gethostbyname. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6978 | { $as_echo "$as_me:$LINENO: checking for connect" >&5 |
| 6979 | $as_echo_n "checking for connect... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6980 | if test "${ac_cv_func_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6981 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6982 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6983 | cat >conftest.$ac_ext <<_ACEOF |
| 6984 | /* confdefs.h. */ |
| 6985 | _ACEOF |
| 6986 | cat confdefs.h >>conftest.$ac_ext |
| 6987 | cat >>conftest.$ac_ext <<_ACEOF |
| 6988 | /* end confdefs.h. */ |
| 6989 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 6990 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6991 | #define connect innocuous_connect |
| 6992 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6993 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6994 | which can conflict with char connect (); below. |
| 6995 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6996 | <limits.h> exists even on freestanding compilers. */ |
| 6997 | |
| 6998 | #ifdef __STDC__ |
| 6999 | # include <limits.h> |
| 7000 | #else |
| 7001 | # include <assert.h> |
| 7002 | #endif |
| 7003 | |
| 7004 | #undef connect |
| 7005 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7006 | /* Override any GCC internal prototype to avoid an error. |
| 7007 | Use char because int might match the return type of a GCC |
| 7008 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7009 | #ifdef __cplusplus |
| 7010 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7011 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7012 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7013 | /* The GNU C library defines this for functions which it implements |
| 7014 | to always fail with ENOSYS. Some functions are actually named |
| 7015 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7016 | #if defined __stub_connect || defined __stub___connect |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7017 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7018 | #endif |
| 7019 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7020 | int |
| 7021 | main () |
| 7022 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7023 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7024 | ; |
| 7025 | return 0; |
| 7026 | } |
| 7027 | _ACEOF |
| 7028 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7029 | if { (ac_try="$ac_link" |
| 7030 | case "(($ac_try" in |
| 7031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7032 | *) ac_try_echo=$ac_try;; |
| 7033 | esac |
| 7034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7035 | $as_echo "$ac_try_echo") >&5 |
| 7036 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7037 | ac_status=$? |
| 7038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7039 | rm -f conftest.er1 |
| 7040 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7042 | (exit $ac_status); } && { |
| 7043 | test -z "$ac_c_werror_flag" || |
| 7044 | test ! -s conftest.err |
| 7045 | } && test -s conftest$ac_exeext && { |
| 7046 | test "$cross_compiling" = yes || |
| 7047 | $as_test_x conftest$ac_exeext |
| 7048 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7049 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7050 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7051 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7052 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7053 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7054 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7055 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7056 | |
| 7057 | rm -rf conftest.dSYM |
| 7058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7059 | conftest$ac_exeext conftest.$ac_ext |
| 7060 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7061 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 7062 | $as_echo "$ac_cv_func_connect" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7063 | |
| 7064 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7065 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7066 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7067 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7068 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7069 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7070 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7071 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7072 | cat >conftest.$ac_ext <<_ACEOF |
| 7073 | /* confdefs.h. */ |
| 7074 | _ACEOF |
| 7075 | cat confdefs.h >>conftest.$ac_ext |
| 7076 | cat >>conftest.$ac_ext <<_ACEOF |
| 7077 | /* end confdefs.h. */ |
| 7078 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7079 | /* Override any GCC internal prototype to avoid an error. |
| 7080 | Use char because int might match the return type of a GCC |
| 7081 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7082 | #ifdef __cplusplus |
| 7083 | extern "C" |
| 7084 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7085 | char connect (); |
| 7086 | int |
| 7087 | main () |
| 7088 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7089 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7090 | ; |
| 7091 | return 0; |
| 7092 | } |
| 7093 | _ACEOF |
| 7094 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7095 | if { (ac_try="$ac_link" |
| 7096 | case "(($ac_try" in |
| 7097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7098 | *) ac_try_echo=$ac_try;; |
| 7099 | esac |
| 7100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7101 | $as_echo "$ac_try_echo") >&5 |
| 7102 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7103 | ac_status=$? |
| 7104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7105 | rm -f conftest.er1 |
| 7106 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7108 | (exit $ac_status); } && { |
| 7109 | test -z "$ac_c_werror_flag" || |
| 7110 | test ! -s conftest.err |
| 7111 | } && test -s conftest$ac_exeext && { |
| 7112 | test "$cross_compiling" = yes || |
| 7113 | $as_test_x conftest$ac_exeext |
| 7114 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7115 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7116 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7117 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7118 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7119 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7120 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7121 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7122 | |
| 7123 | rm -rf conftest.dSYM |
| 7124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7125 | conftest$ac_exeext conftest.$ac_ext |
| 7126 | LIBS=$ac_check_lib_save_LIBS |
| 7127 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7128 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7129 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7130 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7131 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7132 | fi |
| 7133 | |
| 7134 | fi |
| 7135 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7136 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7137 | { $as_echo "$as_me:$LINENO: checking for remove" >&5 |
| 7138 | $as_echo_n "checking for remove... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7139 | if test "${ac_cv_func_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7140 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7141 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7142 | cat >conftest.$ac_ext <<_ACEOF |
| 7143 | /* confdefs.h. */ |
| 7144 | _ACEOF |
| 7145 | cat confdefs.h >>conftest.$ac_ext |
| 7146 | cat >>conftest.$ac_ext <<_ACEOF |
| 7147 | /* end confdefs.h. */ |
| 7148 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 7149 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7150 | #define remove innocuous_remove |
| 7151 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7152 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7153 | which can conflict with char remove (); below. |
| 7154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7155 | <limits.h> exists even on freestanding compilers. */ |
| 7156 | |
| 7157 | #ifdef __STDC__ |
| 7158 | # include <limits.h> |
| 7159 | #else |
| 7160 | # include <assert.h> |
| 7161 | #endif |
| 7162 | |
| 7163 | #undef remove |
| 7164 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7165 | /* Override any GCC internal prototype to avoid an error. |
| 7166 | Use char because int might match the return type of a GCC |
| 7167 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7168 | #ifdef __cplusplus |
| 7169 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7170 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7171 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7172 | /* The GNU C library defines this for functions which it implements |
| 7173 | to always fail with ENOSYS. Some functions are actually named |
| 7174 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7175 | #if defined __stub_remove || defined __stub___remove |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7176 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7177 | #endif |
| 7178 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7179 | int |
| 7180 | main () |
| 7181 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7182 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7183 | ; |
| 7184 | return 0; |
| 7185 | } |
| 7186 | _ACEOF |
| 7187 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7188 | if { (ac_try="$ac_link" |
| 7189 | case "(($ac_try" in |
| 7190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7191 | *) ac_try_echo=$ac_try;; |
| 7192 | esac |
| 7193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7194 | $as_echo "$ac_try_echo") >&5 |
| 7195 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7196 | ac_status=$? |
| 7197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7198 | rm -f conftest.er1 |
| 7199 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7201 | (exit $ac_status); } && { |
| 7202 | test -z "$ac_c_werror_flag" || |
| 7203 | test ! -s conftest.err |
| 7204 | } && test -s conftest$ac_exeext && { |
| 7205 | test "$cross_compiling" = yes || |
| 7206 | $as_test_x conftest$ac_exeext |
| 7207 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7208 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7209 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7210 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7211 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7212 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7213 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7214 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7215 | |
| 7216 | rm -rf conftest.dSYM |
| 7217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7218 | conftest$ac_exeext conftest.$ac_ext |
| 7219 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7220 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 7221 | $as_echo "$ac_cv_func_remove" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7222 | |
| 7223 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7224 | { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 7225 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7226 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7227 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7228 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7229 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7230 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7231 | cat >conftest.$ac_ext <<_ACEOF |
| 7232 | /* confdefs.h. */ |
| 7233 | _ACEOF |
| 7234 | cat confdefs.h >>conftest.$ac_ext |
| 7235 | cat >>conftest.$ac_ext <<_ACEOF |
| 7236 | /* end confdefs.h. */ |
| 7237 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7238 | /* Override any GCC internal prototype to avoid an error. |
| 7239 | Use char because int might match the return type of a GCC |
| 7240 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7241 | #ifdef __cplusplus |
| 7242 | extern "C" |
| 7243 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7244 | char remove (); |
| 7245 | int |
| 7246 | main () |
| 7247 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7248 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7249 | ; |
| 7250 | return 0; |
| 7251 | } |
| 7252 | _ACEOF |
| 7253 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7254 | if { (ac_try="$ac_link" |
| 7255 | case "(($ac_try" in |
| 7256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7257 | *) ac_try_echo=$ac_try;; |
| 7258 | esac |
| 7259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7260 | $as_echo "$ac_try_echo") >&5 |
| 7261 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7262 | ac_status=$? |
| 7263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7264 | rm -f conftest.er1 |
| 7265 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7267 | (exit $ac_status); } && { |
| 7268 | test -z "$ac_c_werror_flag" || |
| 7269 | test ! -s conftest.err |
| 7270 | } && test -s conftest$ac_exeext && { |
| 7271 | test "$cross_compiling" = yes || |
| 7272 | $as_test_x conftest$ac_exeext |
| 7273 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7274 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7275 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7276 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7277 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7278 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7279 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7280 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7281 | |
| 7282 | rm -rf conftest.dSYM |
| 7283 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7284 | conftest$ac_exeext conftest.$ac_ext |
| 7285 | LIBS=$ac_check_lib_save_LIBS |
| 7286 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7287 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 7288 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7289 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7290 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7291 | fi |
| 7292 | |
| 7293 | fi |
| 7294 | |
| 7295 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7296 | { $as_echo "$as_me:$LINENO: checking for shmat" >&5 |
| 7297 | $as_echo_n "checking for shmat... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7298 | if test "${ac_cv_func_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7299 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7300 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7301 | cat >conftest.$ac_ext <<_ACEOF |
| 7302 | /* confdefs.h. */ |
| 7303 | _ACEOF |
| 7304 | cat confdefs.h >>conftest.$ac_ext |
| 7305 | cat >>conftest.$ac_ext <<_ACEOF |
| 7306 | /* end confdefs.h. */ |
| 7307 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 7308 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7309 | #define shmat innocuous_shmat |
| 7310 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7311 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7312 | which can conflict with char shmat (); below. |
| 7313 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7314 | <limits.h> exists even on freestanding compilers. */ |
| 7315 | |
| 7316 | #ifdef __STDC__ |
| 7317 | # include <limits.h> |
| 7318 | #else |
| 7319 | # include <assert.h> |
| 7320 | #endif |
| 7321 | |
| 7322 | #undef shmat |
| 7323 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7324 | /* Override any GCC internal prototype to avoid an error. |
| 7325 | Use char because int might match the return type of a GCC |
| 7326 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7327 | #ifdef __cplusplus |
| 7328 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7329 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7330 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7331 | /* The GNU C library defines this for functions which it implements |
| 7332 | to always fail with ENOSYS. Some functions are actually named |
| 7333 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7334 | #if defined __stub_shmat || defined __stub___shmat |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7335 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7336 | #endif |
| 7337 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7338 | int |
| 7339 | main () |
| 7340 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7341 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7342 | ; |
| 7343 | return 0; |
| 7344 | } |
| 7345 | _ACEOF |
| 7346 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7347 | if { (ac_try="$ac_link" |
| 7348 | case "(($ac_try" in |
| 7349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7350 | *) ac_try_echo=$ac_try;; |
| 7351 | esac |
| 7352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7353 | $as_echo "$ac_try_echo") >&5 |
| 7354 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7355 | ac_status=$? |
| 7356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7357 | rm -f conftest.er1 |
| 7358 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7360 | (exit $ac_status); } && { |
| 7361 | test -z "$ac_c_werror_flag" || |
| 7362 | test ! -s conftest.err |
| 7363 | } && test -s conftest$ac_exeext && { |
| 7364 | test "$cross_compiling" = yes || |
| 7365 | $as_test_x conftest$ac_exeext |
| 7366 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7367 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7368 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7369 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7370 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7371 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7372 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7373 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7374 | |
| 7375 | rm -rf conftest.dSYM |
| 7376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7377 | conftest$ac_exeext conftest.$ac_ext |
| 7378 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7379 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 7380 | $as_echo "$ac_cv_func_shmat" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7381 | |
| 7382 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7383 | { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 7384 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7385 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7386 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7387 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7388 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7389 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7390 | cat >conftest.$ac_ext <<_ACEOF |
| 7391 | /* confdefs.h. */ |
| 7392 | _ACEOF |
| 7393 | cat confdefs.h >>conftest.$ac_ext |
| 7394 | cat >>conftest.$ac_ext <<_ACEOF |
| 7395 | /* end confdefs.h. */ |
| 7396 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7397 | /* Override any GCC internal prototype to avoid an error. |
| 7398 | Use char because int might match the return type of a GCC |
| 7399 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7400 | #ifdef __cplusplus |
| 7401 | extern "C" |
| 7402 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7403 | char shmat (); |
| 7404 | int |
| 7405 | main () |
| 7406 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7407 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7408 | ; |
| 7409 | return 0; |
| 7410 | } |
| 7411 | _ACEOF |
| 7412 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7413 | if { (ac_try="$ac_link" |
| 7414 | case "(($ac_try" in |
| 7415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7416 | *) ac_try_echo=$ac_try;; |
| 7417 | esac |
| 7418 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7419 | $as_echo "$ac_try_echo") >&5 |
| 7420 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7421 | ac_status=$? |
| 7422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7423 | rm -f conftest.er1 |
| 7424 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7426 | (exit $ac_status); } && { |
| 7427 | test -z "$ac_c_werror_flag" || |
| 7428 | test ! -s conftest.err |
| 7429 | } && test -s conftest$ac_exeext && { |
| 7430 | test "$cross_compiling" = yes || |
| 7431 | $as_test_x conftest$ac_exeext |
| 7432 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7433 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7434 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7435 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7436 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7437 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7438 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7439 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7440 | |
| 7441 | rm -rf conftest.dSYM |
| 7442 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7443 | conftest$ac_exeext conftest.$ac_ext |
| 7444 | LIBS=$ac_check_lib_save_LIBS |
| 7445 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 7447 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7448 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7449 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7450 | fi |
| 7451 | |
| 7452 | fi |
| 7453 | fi |
| 7454 | |
| 7455 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7456 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7457 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7458 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7459 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7460 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7461 | # These have to be linked with before -lX11, unlike the other |
| 7462 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7463 | # John Interrante, Karl Berry |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7464 | { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 7465 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7466 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7467 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7468 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7469 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7470 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7471 | cat >conftest.$ac_ext <<_ACEOF |
| 7472 | /* confdefs.h. */ |
| 7473 | _ACEOF |
| 7474 | cat confdefs.h >>conftest.$ac_ext |
| 7475 | cat >>conftest.$ac_ext <<_ACEOF |
| 7476 | /* end confdefs.h. */ |
| 7477 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7478 | /* Override any GCC internal prototype to avoid an error. |
| 7479 | Use char because int might match the return type of a GCC |
| 7480 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7481 | #ifdef __cplusplus |
| 7482 | extern "C" |
| 7483 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7484 | char IceConnectionNumber (); |
| 7485 | int |
| 7486 | main () |
| 7487 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7488 | return IceConnectionNumber (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7489 | ; |
| 7490 | return 0; |
| 7491 | } |
| 7492 | _ACEOF |
| 7493 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7494 | if { (ac_try="$ac_link" |
| 7495 | case "(($ac_try" in |
| 7496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7497 | *) ac_try_echo=$ac_try;; |
| 7498 | esac |
| 7499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7500 | $as_echo "$ac_try_echo") >&5 |
| 7501 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7502 | ac_status=$? |
| 7503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7504 | rm -f conftest.er1 |
| 7505 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7507 | (exit $ac_status); } && { |
| 7508 | test -z "$ac_c_werror_flag" || |
| 7509 | test ! -s conftest.err |
| 7510 | } && test -s conftest$ac_exeext && { |
| 7511 | test "$cross_compiling" = yes || |
| 7512 | $as_test_x conftest$ac_exeext |
| 7513 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7514 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7515 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7516 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7517 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7518 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7519 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7520 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7521 | |
| 7522 | rm -rf conftest.dSYM |
| 7523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7524 | conftest$ac_exeext conftest.$ac_ext |
| 7525 | LIBS=$ac_check_lib_save_LIBS |
| 7526 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7527 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 7528 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7529 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7530 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7531 | fi |
| 7532 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7533 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7534 | |
| 7535 | fi |
| 7536 | |
| 7537 | |
| 7538 | if test "$OS390Unix" = "yes"; then |
| 7539 | CFLAGS="$CFLAGS -W c,dll" |
| 7540 | LDFLAGS="$LDFLAGS -W l,dll" |
| 7541 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 7542 | fi |
| 7543 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7544 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7545 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 7546 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7547 | { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 7548 | $as_echo "Corrected X libraries to $x_libraries" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7549 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7550 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 7551 | uname -r | grep '^5' >/dev/null; then |
| 7552 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7553 | fi |
| 7554 | fi |
| 7555 | |
| 7556 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 7557 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7558 | { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 7559 | $as_echo "Corrected X includes to $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7560 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7561 | fi |
| 7562 | |
| 7563 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 7564 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 7565 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 7566 | |
| 7567 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7568 | { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7569 | $as_echo_n "checking if X11 header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7570 | cflags_save=$CFLAGS |
| 7571 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7572 | cat >conftest.$ac_ext <<_ACEOF |
| 7573 | /* confdefs.h. */ |
| 7574 | _ACEOF |
| 7575 | cat confdefs.h >>conftest.$ac_ext |
| 7576 | cat >>conftest.$ac_ext <<_ACEOF |
| 7577 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7578 | #include <X11/Xlib.h> |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7579 | #include <X11/Intrinsic.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7580 | int |
| 7581 | main () |
| 7582 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7583 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7584 | ; |
| 7585 | return 0; |
| 7586 | } |
| 7587 | _ACEOF |
| 7588 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7589 | if { (ac_try="$ac_compile" |
| 7590 | case "(($ac_try" in |
| 7591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7592 | *) ac_try_echo=$ac_try;; |
| 7593 | esac |
| 7594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7595 | $as_echo "$ac_try_echo") >&5 |
| 7596 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7597 | ac_status=$? |
| 7598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7599 | rm -f conftest.er1 |
| 7600 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7602 | (exit $ac_status); } && { |
| 7603 | test -z "$ac_c_werror_flag" || |
| 7604 | test ! -s conftest.err |
| 7605 | } && test -s conftest.$ac_objext; then |
| 7606 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7607 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7608 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7609 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7611 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7612 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7613 | $as_echo "no" >&6; }; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7614 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7615 | |
| 7616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7617 | CFLAGS=$cflags_save |
| 7618 | |
| 7619 | if test "${no_x-no}" = yes; then |
| 7620 | with_x=no |
| 7621 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7622 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7623 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7624 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7625 | |
| 7626 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7627 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7628 | |
| 7629 | ac_save_LDFLAGS="$LDFLAGS" |
| 7630 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 7631 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7632 | { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 7633 | $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7634 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7635 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7636 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7637 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7638 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7639 | cat >conftest.$ac_ext <<_ACEOF |
| 7640 | /* confdefs.h. */ |
| 7641 | _ACEOF |
| 7642 | cat confdefs.h >>conftest.$ac_ext |
| 7643 | cat >>conftest.$ac_ext <<_ACEOF |
| 7644 | /* end confdefs.h. */ |
| 7645 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7646 | /* Override any GCC internal prototype to avoid an error. |
| 7647 | Use char because int might match the return type of a GCC |
| 7648 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7649 | #ifdef __cplusplus |
| 7650 | extern "C" |
| 7651 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7652 | char _XdmcpAuthDoIt (); |
| 7653 | int |
| 7654 | main () |
| 7655 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7656 | return _XdmcpAuthDoIt (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7657 | ; |
| 7658 | return 0; |
| 7659 | } |
| 7660 | _ACEOF |
| 7661 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7662 | if { (ac_try="$ac_link" |
| 7663 | case "(($ac_try" in |
| 7664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7665 | *) ac_try_echo=$ac_try;; |
| 7666 | esac |
| 7667 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7668 | $as_echo "$ac_try_echo") >&5 |
| 7669 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7670 | ac_status=$? |
| 7671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7672 | rm -f conftest.er1 |
| 7673 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7675 | (exit $ac_status); } && { |
| 7676 | test -z "$ac_c_werror_flag" || |
| 7677 | test ! -s conftest.err |
| 7678 | } && test -s conftest$ac_exeext && { |
| 7679 | test "$cross_compiling" = yes || |
| 7680 | $as_test_x conftest$ac_exeext |
| 7681 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7682 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7683 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7684 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7685 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7686 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7687 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7688 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7689 | |
| 7690 | rm -rf conftest.dSYM |
| 7691 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7692 | conftest$ac_exeext conftest.$ac_ext |
| 7693 | LIBS=$ac_check_lib_save_LIBS |
| 7694 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7695 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 7696 | $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7697 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7698 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7699 | fi |
| 7700 | |
| 7701 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7702 | { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 7703 | $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7704 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7705 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7706 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7707 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7708 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7709 | cat >conftest.$ac_ext <<_ACEOF |
| 7710 | /* confdefs.h. */ |
| 7711 | _ACEOF |
| 7712 | cat confdefs.h >>conftest.$ac_ext |
| 7713 | cat >>conftest.$ac_ext <<_ACEOF |
| 7714 | /* end confdefs.h. */ |
| 7715 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7716 | /* Override any GCC internal prototype to avoid an error. |
| 7717 | Use char because int might match the return type of a GCC |
| 7718 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7719 | #ifdef __cplusplus |
| 7720 | extern "C" |
| 7721 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7722 | char IceOpenConnection (); |
| 7723 | int |
| 7724 | main () |
| 7725 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7726 | return IceOpenConnection (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7727 | ; |
| 7728 | return 0; |
| 7729 | } |
| 7730 | _ACEOF |
| 7731 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7732 | if { (ac_try="$ac_link" |
| 7733 | case "(($ac_try" in |
| 7734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7735 | *) ac_try_echo=$ac_try;; |
| 7736 | esac |
| 7737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7738 | $as_echo "$ac_try_echo") >&5 |
| 7739 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7740 | ac_status=$? |
| 7741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7742 | rm -f conftest.er1 |
| 7743 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7745 | (exit $ac_status); } && { |
| 7746 | test -z "$ac_c_werror_flag" || |
| 7747 | test ! -s conftest.err |
| 7748 | } && test -s conftest$ac_exeext && { |
| 7749 | test "$cross_compiling" = yes || |
| 7750 | $as_test_x conftest$ac_exeext |
| 7751 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7752 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7753 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7754 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7755 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7756 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7757 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7758 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7759 | |
| 7760 | rm -rf conftest.dSYM |
| 7761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7762 | conftest$ac_exeext conftest.$ac_ext |
| 7763 | LIBS=$ac_check_lib_save_LIBS |
| 7764 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7765 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 7766 | $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7767 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7768 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7769 | fi |
| 7770 | |
| 7771 | |
| 7772 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7773 | { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 7774 | $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7775 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7776 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7777 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7778 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7779 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7780 | cat >conftest.$ac_ext <<_ACEOF |
| 7781 | /* confdefs.h. */ |
| 7782 | _ACEOF |
| 7783 | cat confdefs.h >>conftest.$ac_ext |
| 7784 | cat >>conftest.$ac_ext <<_ACEOF |
| 7785 | /* end confdefs.h. */ |
| 7786 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7787 | /* Override any GCC internal prototype to avoid an error. |
| 7788 | Use char because int might match the return type of a GCC |
| 7789 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7790 | #ifdef __cplusplus |
| 7791 | extern "C" |
| 7792 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7793 | char XpmCreatePixmapFromData (); |
| 7794 | int |
| 7795 | main () |
| 7796 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7797 | return XpmCreatePixmapFromData (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7798 | ; |
| 7799 | return 0; |
| 7800 | } |
| 7801 | _ACEOF |
| 7802 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7803 | if { (ac_try="$ac_link" |
| 7804 | case "(($ac_try" in |
| 7805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7806 | *) ac_try_echo=$ac_try;; |
| 7807 | esac |
| 7808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7809 | $as_echo "$ac_try_echo") >&5 |
| 7810 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7811 | ac_status=$? |
| 7812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7813 | rm -f conftest.er1 |
| 7814 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7816 | (exit $ac_status); } && { |
| 7817 | test -z "$ac_c_werror_flag" || |
| 7818 | test ! -s conftest.err |
| 7819 | } && test -s conftest$ac_exeext && { |
| 7820 | test "$cross_compiling" = yes || |
| 7821 | $as_test_x conftest$ac_exeext |
| 7822 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7823 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7824 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7825 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7826 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7827 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7828 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7829 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7830 | |
| 7831 | rm -rf conftest.dSYM |
| 7832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7833 | conftest$ac_exeext conftest.$ac_ext |
| 7834 | LIBS=$ac_check_lib_save_LIBS |
| 7835 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7836 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 7837 | $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7838 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7839 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7840 | fi |
| 7841 | |
| 7842 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7843 | { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 7844 | $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7845 | cflags_save=$CFLAGS |
| 7846 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7847 | cat >conftest.$ac_ext <<_ACEOF |
| 7848 | /* confdefs.h. */ |
| 7849 | _ACEOF |
| 7850 | cat confdefs.h >>conftest.$ac_ext |
| 7851 | cat >>conftest.$ac_ext <<_ACEOF |
| 7852 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7853 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7854 | int |
| 7855 | main () |
| 7856 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7857 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7858 | ; |
| 7859 | return 0; |
| 7860 | } |
| 7861 | _ACEOF |
| 7862 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7863 | if { (ac_try="$ac_compile" |
| 7864 | case "(($ac_try" in |
| 7865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7866 | *) ac_try_echo=$ac_try;; |
| 7867 | esac |
| 7868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7869 | $as_echo "$ac_try_echo") >&5 |
| 7870 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7871 | ac_status=$? |
| 7872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7873 | rm -f conftest.er1 |
| 7874 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7876 | (exit $ac_status); } && { |
| 7877 | test -z "$ac_c_werror_flag" || |
| 7878 | test ! -s conftest.err |
| 7879 | } && test -s conftest.$ac_objext; then |
| 7880 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7881 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7882 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7883 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7885 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7886 | CFLAGS="$CFLAGS -Wno-implicit-int" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7887 | cat >conftest.$ac_ext <<_ACEOF |
| 7888 | /* confdefs.h. */ |
| 7889 | _ACEOF |
| 7890 | cat confdefs.h >>conftest.$ac_ext |
| 7891 | cat >>conftest.$ac_ext <<_ACEOF |
| 7892 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7893 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7894 | int |
| 7895 | main () |
| 7896 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7897 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7898 | ; |
| 7899 | return 0; |
| 7900 | } |
| 7901 | _ACEOF |
| 7902 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7903 | if { (ac_try="$ac_compile" |
| 7904 | case "(($ac_try" in |
| 7905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7906 | *) ac_try_echo=$ac_try;; |
| 7907 | esac |
| 7908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7909 | $as_echo "$ac_try_echo") >&5 |
| 7910 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7911 | ac_status=$? |
| 7912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7913 | rm -f conftest.er1 |
| 7914 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7915 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7916 | (exit $ac_status); } && { |
| 7917 | test -z "$ac_c_werror_flag" || |
| 7918 | test ! -s conftest.err |
| 7919 | } && test -s conftest.$ac_objext; then |
| 7920 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7921 | $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7922 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7923 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7925 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7926 | { $as_echo "$as_me:$LINENO: result: test failed" >&5 |
| 7927 | $as_echo "test failed" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7928 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7929 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7930 | |
| 7931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7932 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7933 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7934 | |
| 7935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7936 | CFLAGS=$cflags_save |
| 7937 | |
| 7938 | LDFLAGS="$ac_save_LDFLAGS" |
| 7939 | |
| 7940 | fi |
| 7941 | fi |
| 7942 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 7943 | 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] | 7944 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7945 | { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 7946 | $as_echo_n "checking --enable-gui argument... " >&6; } |
| 7947 | # Check whether --enable-gui was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7948 | if test "${enable_gui+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7949 | enableval=$enable_gui; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7950 | else |
| 7951 | enable_gui="auto" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7952 | fi |
| 7953 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7954 | |
| 7955 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 7956 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 7957 | |
| 7958 | SKIP_GTK=YES |
| 7959 | SKIP_GTK2=YES |
| 7960 | SKIP_GNOME=YES |
| 7961 | SKIP_MOTIF=YES |
| 7962 | SKIP_ATHENA=YES |
| 7963 | SKIP_NEXTAW=YES |
| 7964 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7965 | SKIP_CARBON=YES |
| 7966 | GUITYPE=NONE |
| 7967 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7968 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7969 | SKIP_PHOTON= |
| 7970 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7971 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7972 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7973 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7974 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7975 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 7976 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7977 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 7978 | photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 7979 | $as_echo "Photon GUI support" >&6; } ;; |
| 7980 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7981 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7982 | SKIP_PHOTON=YES ;; |
| 7983 | esac |
| 7984 | |
| 7985 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 7986 | SKIP_CARBON= |
| 7987 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7988 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7989 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7990 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7991 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7992 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 7993 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7994 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 7995 | carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 7996 | $as_echo "Carbon GUI support" >&6; } ;; |
| 7997 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7998 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7999 | SKIP_CARBON=YES ;; |
| 8000 | esac |
| 8001 | |
| 8002 | else |
| 8003 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8004 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8005 | no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8006 | $as_echo "no GUI support" >&6; } ;; |
| 8007 | yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 8008 | $as_echo "yes/auto - automatic GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8009 | SKIP_GTK= |
| 8010 | SKIP_GTK2= |
| 8011 | SKIP_GNOME= |
| 8012 | SKIP_MOTIF= |
| 8013 | SKIP_ATHENA= |
| 8014 | SKIP_NEXTAW= |
| 8015 | SKIP_CARBON=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8016 | gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 8017 | $as_echo "GTK+ 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8018 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8019 | gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 8020 | $as_echo "GTK+ 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8021 | SKIP_GTK= |
| 8022 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8023 | gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 8024 | $as_echo "GNOME 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8025 | SKIP_GNOME= |
| 8026 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8027 | gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 8028 | $as_echo "GNOME 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8029 | SKIP_GNOME= |
| 8030 | SKIP_GTK= |
| 8031 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8032 | motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 8033 | $as_echo "Motif GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8034 | SKIP_MOTIF=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8035 | athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 8036 | $as_echo "Athena GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8037 | SKIP_ATHENA=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8038 | nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 8039 | $as_echo "neXtaw GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8040 | SKIP_NEXTAW=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8041 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8042 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8043 | esac |
| 8044 | |
| 8045 | fi |
| 8046 | |
| 8047 | if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8048 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 8049 | $as_echo_n "checking whether or not to look for GTK... " >&6; } |
| 8050 | # Check whether --enable-gtk-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8051 | if test "${enable_gtk_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8052 | enableval=$enable_gtk_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8053 | else |
| 8054 | enable_gtk_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8055 | fi |
| 8056 | |
| 8057 | { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 8058 | $as_echo "$enable_gtk_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8059 | if test "x$enable_gtk_check" = "xno"; then |
| 8060 | SKIP_GTK=YES |
| 8061 | SKIP_GNOME=YES |
| 8062 | fi |
| 8063 | fi |
| 8064 | |
| 8065 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 8066 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8067 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 8068 | $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } |
| 8069 | # Check whether --enable-gtk2-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8070 | if test "${enable_gtk2_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8071 | enableval=$enable_gtk2_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8072 | else |
| 8073 | enable_gtk2_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8074 | fi |
| 8075 | |
| 8076 | { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 8077 | $as_echo "$enable_gtk2_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8078 | if test "x$enable_gtk2_check" = "xno"; then |
| 8079 | SKIP_GTK2=YES |
| 8080 | fi |
| 8081 | fi |
| 8082 | |
| 8083 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 8084 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8085 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 8086 | $as_echo_n "checking whether or not to look for GNOME... " >&6; } |
| 8087 | # Check whether --enable-gnome-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8088 | if test "${enable_gnome_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8089 | enableval=$enable_gnome_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8090 | else |
| 8091 | enable_gnome_check="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8092 | fi |
| 8093 | |
| 8094 | { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 8095 | $as_echo "$enable_gnome_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8096 | if test "x$enable_gnome_check" = "xno"; then |
| 8097 | SKIP_GNOME=YES |
| 8098 | fi |
| 8099 | fi |
| 8100 | |
| 8101 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8102 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 8103 | $as_echo_n "checking whether or not to look for Motif... " >&6; } |
| 8104 | # Check whether --enable-motif-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8105 | if test "${enable_motif_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8106 | enableval=$enable_motif_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8107 | else |
| 8108 | enable_motif_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8109 | fi |
| 8110 | |
| 8111 | { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 8112 | $as_echo "$enable_motif_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8113 | if test "x$enable_motif_check" = "xno"; then |
| 8114 | SKIP_MOTIF=YES |
| 8115 | fi |
| 8116 | fi |
| 8117 | |
| 8118 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8119 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 8120 | $as_echo_n "checking whether or not to look for Athena... " >&6; } |
| 8121 | # Check whether --enable-athena-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8122 | if test "${enable_athena_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8123 | enableval=$enable_athena_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8124 | else |
| 8125 | enable_athena_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8126 | fi |
| 8127 | |
| 8128 | { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 8129 | $as_echo "$enable_athena_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8130 | if test "x$enable_athena_check" = "xno"; then |
| 8131 | SKIP_ATHENA=YES |
| 8132 | fi |
| 8133 | fi |
| 8134 | |
| 8135 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8136 | { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 8137 | $as_echo_n "checking whether or not to look for neXtaw... " >&6; } |
| 8138 | # Check whether --enable-nextaw-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8139 | if test "${enable_nextaw_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8140 | enableval=$enable_nextaw_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8141 | else |
| 8142 | enable_nextaw_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8143 | fi |
| 8144 | |
| 8145 | { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 8146 | $as_echo "$enable_nextaw_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8147 | if test "x$enable_nextaw_check" = "xno"; then |
| 8148 | SKIP_NEXTAW=YES |
| 8149 | fi |
| 8150 | fi |
| 8151 | |
| 8152 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8153 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 8154 | $as_echo_n "checking whether or not to look for Carbon... " >&6; } |
| 8155 | # Check whether --enable-carbon-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8156 | if test "${enable_carbon_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8157 | enableval=$enable_carbon_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8158 | else |
| 8159 | enable_carbon_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8160 | fi |
| 8161 | |
| 8162 | { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 8163 | $as_echo "$enable_carbon_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8164 | if test "x$enable_carbon_check" = "xno"; then |
| 8165 | SKIP_CARBON=YES |
| 8166 | fi |
| 8167 | fi |
| 8168 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8169 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8170 | if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8171 | { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 8172 | $as_echo_n "checking for Carbon GUI... " >&6; } |
| 8173 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8174 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8175 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 8176 | if test "$VIMNAME" = "vim"; then |
| 8177 | VIMNAME=Vim |
| 8178 | fi |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 8179 | |
| 8180 | if test x$prefix = xNONE; then |
| 8181 | prefix=/Applications |
| 8182 | fi |
| 8183 | |
| 8184 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 8185 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8186 | SKIP_GTK=YES; |
| 8187 | SKIP_GTK2=YES; |
| 8188 | SKIP_GNOME=YES; |
| 8189 | SKIP_MOTIF=YES; |
| 8190 | SKIP_ATHENA=YES; |
| 8191 | SKIP_NEXTAW=YES; |
| 8192 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8193 | SKIP_CARBON=YES |
| 8194 | fi |
| 8195 | |
| 8196 | |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | |
| 8202 | |
| 8203 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8204 | if test -z "$SKIP_GTK"; then |
| 8205 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8206 | { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 8207 | $as_echo_n "checking --with-gtk-prefix argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8208 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8209 | # Check whether --with-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8210 | if test "${with_gtk_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8211 | withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8212 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8213 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8214 | gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8215 | $as_echo "no" >&6; } |
| 8216 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8217 | |
| 8218 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8219 | { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 8220 | $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; } |
| 8221 | |
| 8222 | # Check whether --with-gtk-exec-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8223 | if test "${with_gtk_exec_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8224 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8225 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8226 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8227 | gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8228 | $as_echo "no" >&6; } |
| 8229 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8230 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8231 | |
| 8232 | { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 8233 | $as_echo_n "checking --disable-gtktest argument... " >&6; } |
| 8234 | # Check whether --enable-gtktest was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8235 | if test "${enable_gtktest+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8236 | enableval=$enable_gtktest; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8237 | else |
| 8238 | enable_gtktest=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8239 | fi |
| 8240 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8241 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8242 | { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 8243 | $as_echo "gtk test enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8244 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8245 | { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 8246 | $as_echo "gtk test disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8247 | fi |
| 8248 | |
| 8249 | if test "x$gtk_config_prefix" != "x" ; then |
| 8250 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 8251 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 8252 | fi |
| 8253 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 8254 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 8255 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 8256 | fi |
| 8257 | if test "X$GTK_CONFIG" = "X"; then |
| 8258 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 8259 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8260 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8261 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8262 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8263 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8264 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8265 | case $GTK_CONFIG in |
| 8266 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8267 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 8268 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8269 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8271 | for as_dir in $PATH |
| 8272 | do |
| 8273 | IFS=$as_save_IFS |
| 8274 | test -z "$as_dir" && as_dir=. |
| 8275 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8277 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8278 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8279 | break 2 |
| 8280 | fi |
| 8281 | done |
| 8282 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8283 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8284 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8285 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 8286 | ;; |
| 8287 | esac |
| 8288 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8289 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8290 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8291 | { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 8292 | $as_echo "$GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8293 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8294 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8295 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8296 | fi |
| 8297 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8298 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8299 | if test "X$GTK_CONFIG" = "Xno"; then |
| 8300 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 8301 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8302 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8303 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8304 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8305 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8306 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8307 | case $GTK12_CONFIG in |
| 8308 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8309 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 8310 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8311 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8313 | for as_dir in $PATH |
| 8314 | do |
| 8315 | IFS=$as_save_IFS |
| 8316 | test -z "$as_dir" && as_dir=. |
| 8317 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8319 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8320 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8321 | break 2 |
| 8322 | fi |
| 8323 | done |
| 8324 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8325 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8326 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8327 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 8328 | ;; |
| 8329 | esac |
| 8330 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8331 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8332 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8333 | { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 8334 | $as_echo "$GTK12_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8335 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8336 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8337 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8338 | fi |
| 8339 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8340 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8341 | GTK_CONFIG="$GTK12_CONFIG" |
| 8342 | fi |
| 8343 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8344 | { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 8345 | $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8346 | fi |
| 8347 | if test "X$PKG_CONFIG" = "X"; then |
| 8348 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8349 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8350 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8351 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8352 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8353 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8354 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8355 | case $PKG_CONFIG in |
| 8356 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8357 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8358 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8359 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8361 | for as_dir in $PATH |
| 8362 | do |
| 8363 | IFS=$as_save_IFS |
| 8364 | test -z "$as_dir" && as_dir=. |
| 8365 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8367 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8368 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8369 | break 2 |
| 8370 | fi |
| 8371 | done |
| 8372 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8373 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8374 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8375 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8376 | ;; |
| 8377 | esac |
| 8378 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8379 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8380 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8381 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 8382 | $as_echo "$PKG_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8383 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8384 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8385 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8386 | fi |
| 8387 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8388 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8389 | fi |
| 8390 | |
| 8391 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 8392 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8393 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8394 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8395 | { |
| 8396 | min_gtk_version=2.2.0 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8397 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8398 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8399 | no_gtk="" |
| 8400 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8401 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8402 | { |
| 8403 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8404 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8405 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8406 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8407 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8408 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8409 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8410 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8411 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8412 | } |
| 8413 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8414 | { |
| 8415 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8416 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8417 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8418 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8419 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8420 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8421 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8422 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8423 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8424 | } |
| 8425 | else |
| 8426 | no_gtk=yes |
| 8427 | fi |
| 8428 | |
| 8429 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8430 | { |
| 8431 | ac_save_CFLAGS="$CFLAGS" |
| 8432 | ac_save_LIBS="$LIBS" |
| 8433 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8434 | LIBS="$LIBS $GTK_LIBS" |
| 8435 | |
| 8436 | rm -f conf.gtktest |
| 8437 | if test "$cross_compiling" = yes; then |
| 8438 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8439 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8440 | cat >conftest.$ac_ext <<_ACEOF |
| 8441 | /* confdefs.h. */ |
| 8442 | _ACEOF |
| 8443 | cat confdefs.h >>conftest.$ac_ext |
| 8444 | cat >>conftest.$ac_ext <<_ACEOF |
| 8445 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8446 | |
| 8447 | #include <gtk/gtk.h> |
| 8448 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8449 | #if STDC_HEADERS |
| 8450 | # include <stdlib.h> |
| 8451 | # include <stddef.h> |
| 8452 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8453 | |
| 8454 | int |
| 8455 | main () |
| 8456 | { |
| 8457 | int major, minor, micro; |
| 8458 | char *tmp_version; |
| 8459 | |
| 8460 | system ("touch conf.gtktest"); |
| 8461 | |
| 8462 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8463 | tmp_version = g_strdup("$min_gtk_version"); |
| 8464 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8465 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8466 | exit(1); |
| 8467 | } |
| 8468 | |
| 8469 | if ((gtk_major_version > major) || |
| 8470 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8471 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8472 | (gtk_micro_version >= micro))) |
| 8473 | { |
| 8474 | return 0; |
| 8475 | } |
| 8476 | return 1; |
| 8477 | } |
| 8478 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8479 | _ACEOF |
| 8480 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8481 | if { (ac_try="$ac_link" |
| 8482 | case "(($ac_try" in |
| 8483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8484 | *) ac_try_echo=$ac_try;; |
| 8485 | esac |
| 8486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8487 | $as_echo "$ac_try_echo") >&5 |
| 8488 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8489 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8491 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8492 | { (case "(($ac_try" in |
| 8493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8494 | *) ac_try_echo=$ac_try;; |
| 8495 | esac |
| 8496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8497 | $as_echo "$ac_try_echo") >&5 |
| 8498 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8499 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8501 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8502 | : |
| 8503 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8504 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8505 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8506 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8507 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8508 | ( exit $ac_status ) |
| 8509 | no_gtk=yes |
| 8510 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8511 | rm -rf conftest.dSYM |
| 8512 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8513 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8514 | |
| 8515 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8516 | CFLAGS="$ac_save_CFLAGS" |
| 8517 | LIBS="$ac_save_LIBS" |
| 8518 | } |
| 8519 | fi |
| 8520 | if test "x$no_gtk" = x ; then |
| 8521 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8522 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8523 | $as_echo "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] | 8524 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8525 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8526 | $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8527 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8528 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 8529 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8530 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8531 | else |
| 8532 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8533 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8534 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8535 | GTK_CFLAGS="" |
| 8536 | GTK_LIBS="" |
| 8537 | : |
| 8538 | } |
| 8539 | fi |
| 8540 | } |
| 8541 | else |
| 8542 | GTK_CFLAGS="" |
| 8543 | GTK_LIBS="" |
| 8544 | : |
| 8545 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8546 | |
| 8547 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8548 | rm -f conf.gtktest |
| 8549 | |
| 8550 | if test "x$GTK_CFLAGS" != "x"; then |
| 8551 | SKIP_ATHENA=YES |
| 8552 | SKIP_NEXTAW=YES |
| 8553 | SKIP_MOTIF=YES |
| 8554 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8555 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8556 | fi |
| 8557 | fi |
| 8558 | |
| 8559 | if test "x$GUITYPE" != "xGTK"; then |
| 8560 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8561 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8562 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8563 | { |
| 8564 | min_gtk_version=1.1.16 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8565 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8566 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8567 | no_gtk="" |
| 8568 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8569 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8570 | { |
| 8571 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8572 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8573 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8574 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8575 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8576 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8577 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8578 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8579 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8580 | } |
| 8581 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8582 | { |
| 8583 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8584 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8585 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8586 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8587 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8588 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8589 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8590 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8591 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8592 | } |
| 8593 | else |
| 8594 | no_gtk=yes |
| 8595 | fi |
| 8596 | |
| 8597 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8598 | { |
| 8599 | ac_save_CFLAGS="$CFLAGS" |
| 8600 | ac_save_LIBS="$LIBS" |
| 8601 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8602 | LIBS="$LIBS $GTK_LIBS" |
| 8603 | |
| 8604 | rm -f conf.gtktest |
| 8605 | if test "$cross_compiling" = yes; then |
| 8606 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8607 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8608 | cat >conftest.$ac_ext <<_ACEOF |
| 8609 | /* confdefs.h. */ |
| 8610 | _ACEOF |
| 8611 | cat confdefs.h >>conftest.$ac_ext |
| 8612 | cat >>conftest.$ac_ext <<_ACEOF |
| 8613 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8614 | |
| 8615 | #include <gtk/gtk.h> |
| 8616 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8617 | #if STDC_HEADERS |
| 8618 | # include <stdlib.h> |
| 8619 | # include <stddef.h> |
| 8620 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8621 | |
| 8622 | int |
| 8623 | main () |
| 8624 | { |
| 8625 | int major, minor, micro; |
| 8626 | char *tmp_version; |
| 8627 | |
| 8628 | system ("touch conf.gtktest"); |
| 8629 | |
| 8630 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8631 | tmp_version = g_strdup("$min_gtk_version"); |
| 8632 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8633 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8634 | exit(1); |
| 8635 | } |
| 8636 | |
| 8637 | if ((gtk_major_version > major) || |
| 8638 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8639 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8640 | (gtk_micro_version >= micro))) |
| 8641 | { |
| 8642 | return 0; |
| 8643 | } |
| 8644 | return 1; |
| 8645 | } |
| 8646 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8647 | _ACEOF |
| 8648 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8649 | if { (ac_try="$ac_link" |
| 8650 | case "(($ac_try" in |
| 8651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8652 | *) ac_try_echo=$ac_try;; |
| 8653 | esac |
| 8654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8655 | $as_echo "$ac_try_echo") >&5 |
| 8656 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8657 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8659 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8660 | { (case "(($ac_try" in |
| 8661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8662 | *) ac_try_echo=$ac_try;; |
| 8663 | esac |
| 8664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8665 | $as_echo "$ac_try_echo") >&5 |
| 8666 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8667 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8669 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8670 | : |
| 8671 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8672 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8673 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8674 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8675 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8676 | ( exit $ac_status ) |
| 8677 | no_gtk=yes |
| 8678 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8679 | rm -rf conftest.dSYM |
| 8680 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8681 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8682 | |
| 8683 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8684 | CFLAGS="$ac_save_CFLAGS" |
| 8685 | LIBS="$ac_save_LIBS" |
| 8686 | } |
| 8687 | fi |
| 8688 | if test "x$no_gtk" = x ; then |
| 8689 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8690 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8691 | $as_echo "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] | 8692 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8693 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8694 | $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8695 | fi |
| 8696 | GTK_LIBNAME="$GTK_LIBS" |
| 8697 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8698 | else |
| 8699 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8700 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8701 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8702 | GTK_CFLAGS="" |
| 8703 | GTK_LIBS="" |
| 8704 | : |
| 8705 | } |
| 8706 | fi |
| 8707 | } |
| 8708 | else |
| 8709 | GTK_CFLAGS="" |
| 8710 | GTK_LIBS="" |
| 8711 | : |
| 8712 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8713 | |
| 8714 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8715 | rm -f conf.gtktest |
| 8716 | |
| 8717 | if test "x$GTK_CFLAGS" != "x"; then |
| 8718 | SKIP_ATHENA=YES |
| 8719 | SKIP_NEXTAW=YES |
| 8720 | SKIP_MOTIF=YES |
| 8721 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8722 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8723 | fi |
| 8724 | fi |
| 8725 | fi |
| 8726 | if test "x$GUITYPE" = "xGTK"; then |
| 8727 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 8728 | -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8729 | { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 8730 | $as_echo "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] | 8731 | else |
| 8732 | { |
| 8733 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8734 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8735 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8736 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8737 | |
| 8738 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 8739 | || test "0$gtk_minor_version" -ge 2 \ |
| 8740 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8741 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8742 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8743 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8744 | |
| 8745 | fi |
| 8746 | fi |
| 8747 | if test -z "$SKIP_GNOME"; then |
| 8748 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8749 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8750 | |
| 8751 | |
| 8752 | |
| 8753 | |
| 8754 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8755 | # Check whether --with-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8756 | if test "${with_gnome_includes+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8757 | withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8758 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8759 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8760 | |
| 8761 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8762 | |
| 8763 | # Check whether --with-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8764 | if test "${with_gnome_libs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8765 | withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8766 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8767 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8768 | |
| 8769 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8770 | |
| 8771 | # Check whether --with-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8772 | if test "${with_gnome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8773 | withval=$with_gnome; if test x$withval = xyes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8774 | want_gnome=yes |
| 8775 | have_gnome=yes |
| 8776 | else |
| 8777 | if test "x$withval" = xno; then |
| 8778 | want_gnome=no |
| 8779 | else |
| 8780 | want_gnome=yes |
| 8781 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 8782 | CFLAGS="$CFLAGS -I$withval/include" |
| 8783 | gnome_prefix=$withval/lib |
| 8784 | fi |
| 8785 | fi |
| 8786 | else |
| 8787 | want_gnome=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8788 | fi |
| 8789 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8790 | |
| 8791 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 8792 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8793 | { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 8794 | $as_echo_n "checking for libgnomeui-2.0... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8795 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8796 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8797 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8798 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 8799 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 8800 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8801 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8802 | { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 8803 | $as_echo_n "checking for FreeBSD... " >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8804 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8805 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8806 | $as_echo "yes" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 8807 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8808 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 8809 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8810 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8811 | $as_echo "no" >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8812 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8813 | have_gnome=yes |
| 8814 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8815 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 8816 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8817 | if test "x" = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8818 | { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 8819 | $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8820 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8821 | fi |
| 8822 | fi |
| 8823 | } |
| 8824 | elif test "x$want_gnome" = xyes; then |
| 8825 | { |
| 8826 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 8827 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8828 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8829 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8830 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8831 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8832 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8833 | case $GNOME_CONFIG in |
| 8834 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8835 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 8836 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8837 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8839 | for as_dir in $PATH |
| 8840 | do |
| 8841 | IFS=$as_save_IFS |
| 8842 | test -z "$as_dir" && as_dir=. |
| 8843 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8845 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8846 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8847 | break 2 |
| 8848 | fi |
| 8849 | done |
| 8850 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8851 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8852 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8853 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 8854 | ;; |
| 8855 | esac |
| 8856 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8857 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8858 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8859 | { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 8860 | $as_echo "$GNOME_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8861 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8862 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8863 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8864 | fi |
| 8865 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8866 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8867 | if test "$GNOME_CONFIG" = "no"; then |
| 8868 | no_gnome_config="yes" |
| 8869 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8870 | { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 8871 | $as_echo_n "checking if $GNOME_CONFIG works... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8872 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8873 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8874 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8875 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 8876 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 8877 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 8878 | have_gnome=yes |
| 8879 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8880 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8881 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8882 | no_gnome_config="yes" |
| 8883 | fi |
| 8884 | fi |
| 8885 | |
| 8886 | if test x$exec_prefix = xNONE; then |
| 8887 | if test x$prefix = xNONE; then |
| 8888 | gnome_prefix=$ac_default_prefix/lib |
| 8889 | else |
| 8890 | gnome_prefix=$prefix/lib |
| 8891 | fi |
| 8892 | else |
| 8893 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 8894 | fi |
| 8895 | |
| 8896 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8897 | { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 8898 | $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8899 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8900 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 8901 | $as_echo "found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8902 | echo "loading gnome configuration from" \ |
| 8903 | "$gnome_prefix/gnomeConf.sh" |
| 8904 | . $gnome_prefix/gnomeConf.sh |
| 8905 | have_gnome=yes |
| 8906 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8907 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 8908 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8909 | if test x = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8910 | { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 8911 | $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8912 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8913 | fi |
| 8914 | fi |
| 8915 | fi |
| 8916 | } |
| 8917 | fi |
| 8918 | |
| 8919 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8920 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8921 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8922 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8923 | |
| 8924 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 8925 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 8926 | fi |
| 8927 | } |
| 8928 | fi |
| 8929 | } |
| 8930 | fi |
| 8931 | fi |
| 8932 | fi |
| 8933 | |
| 8934 | |
| 8935 | if test -z "$SKIP_MOTIF"; then |
| 8936 | 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" |
| 8937 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 8938 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8939 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 8940 | $as_echo_n "checking for location of Motif GUI includes... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8941 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 8942 | GUI_INC_LOC= |
| 8943 | for try in $gui_includes; do |
| 8944 | if test -f "$try/Xm/Xm.h"; then |
| 8945 | GUI_INC_LOC=$try |
| 8946 | fi |
| 8947 | done |
| 8948 | if test -n "$GUI_INC_LOC"; then |
| 8949 | if test "$GUI_INC_LOC" = /usr/include; then |
| 8950 | GUI_INC_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8951 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 8952 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8953 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8954 | { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 8955 | $as_echo "$GUI_INC_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8956 | fi |
| 8957 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8958 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8959 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8960 | SKIP_MOTIF=YES |
| 8961 | fi |
| 8962 | fi |
| 8963 | |
| 8964 | |
| 8965 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8966 | { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 8967 | $as_echo_n "checking --with-motif-lib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8968 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8969 | # Check whether --with-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8970 | if test "${with_motif_lib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8971 | withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" |
| 8972 | fi |
| 8973 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8974 | |
| 8975 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8976 | { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 8977 | $as_echo "$MOTIF_LIBNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8978 | GUI_LIB_LOC= |
| 8979 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8980 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8981 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8982 | |
| 8983 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 8984 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8985 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 8986 | $as_echo_n "checking for location of Motif GUI libs... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8987 | 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" |
| 8988 | GUI_LIB_LOC= |
| 8989 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8990 | 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] | 8991 | if test -f "$libtry"; then |
| 8992 | GUI_LIB_LOC=$try |
| 8993 | fi |
| 8994 | done |
| 8995 | done |
| 8996 | if test -n "$GUI_LIB_LOC"; then |
| 8997 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 8998 | GUI_LIB_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8999 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 9000 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9001 | else |
| 9002 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9003 | { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 9004 | $as_echo "$GUI_LIB_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9005 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 9006 | uname -r | grep '^5' >/dev/null; then |
| 9007 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 9008 | fi |
| 9009 | fi |
| 9010 | fi |
| 9011 | MOTIF_LIBNAME=-lXm |
| 9012 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9013 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9014 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9015 | SKIP_MOTIF=YES |
| 9016 | fi |
| 9017 | fi |
| 9018 | fi |
| 9019 | |
| 9020 | if test -z "$SKIP_MOTIF"; then |
| 9021 | SKIP_ATHENA=YES |
| 9022 | SKIP_NEXTAW=YES |
| 9023 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9024 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9025 | fi |
| 9026 | |
| 9027 | |
| 9028 | GUI_X_LIBS= |
| 9029 | |
| 9030 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9031 | { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 9032 | $as_echo_n "checking if Athena header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9033 | cflags_save=$CFLAGS |
| 9034 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9035 | cat >conftest.$ac_ext <<_ACEOF |
| 9036 | /* confdefs.h. */ |
| 9037 | _ACEOF |
| 9038 | cat confdefs.h >>conftest.$ac_ext |
| 9039 | cat >>conftest.$ac_ext <<_ACEOF |
| 9040 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9041 | |
| 9042 | #include <X11/Intrinsic.h> |
| 9043 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9044 | int |
| 9045 | main () |
| 9046 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9047 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9048 | ; |
| 9049 | return 0; |
| 9050 | } |
| 9051 | _ACEOF |
| 9052 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9053 | if { (ac_try="$ac_compile" |
| 9054 | case "(($ac_try" in |
| 9055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9056 | *) ac_try_echo=$ac_try;; |
| 9057 | esac |
| 9058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9059 | $as_echo "$ac_try_echo") >&5 |
| 9060 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9061 | ac_status=$? |
| 9062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9063 | rm -f conftest.er1 |
| 9064 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9066 | (exit $ac_status); } && { |
| 9067 | test -z "$ac_c_werror_flag" || |
| 9068 | test ! -s conftest.err |
| 9069 | } && test -s conftest.$ac_objext; then |
| 9070 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9071 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9072 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9073 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9075 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9076 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9077 | $as_echo "no" >&6; }; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9078 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9079 | |
| 9080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9081 | CFLAGS=$cflags_save |
| 9082 | fi |
| 9083 | |
| 9084 | if test -z "$SKIP_ATHENA"; then |
| 9085 | GUITYPE=ATHENA |
| 9086 | fi |
| 9087 | |
| 9088 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9089 | { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 9090 | $as_echo_n "checking if neXtaw header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9091 | cflags_save=$CFLAGS |
| 9092 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9093 | cat >conftest.$ac_ext <<_ACEOF |
| 9094 | /* confdefs.h. */ |
| 9095 | _ACEOF |
| 9096 | cat confdefs.h >>conftest.$ac_ext |
| 9097 | cat >>conftest.$ac_ext <<_ACEOF |
| 9098 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9099 | |
| 9100 | #include <X11/Intrinsic.h> |
| 9101 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9102 | int |
| 9103 | main () |
| 9104 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9105 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9106 | ; |
| 9107 | return 0; |
| 9108 | } |
| 9109 | _ACEOF |
| 9110 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9111 | if { (ac_try="$ac_compile" |
| 9112 | case "(($ac_try" in |
| 9113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9114 | *) ac_try_echo=$ac_try;; |
| 9115 | esac |
| 9116 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9117 | $as_echo "$ac_try_echo") >&5 |
| 9118 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9119 | ac_status=$? |
| 9120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9121 | rm -f conftest.er1 |
| 9122 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9123 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9124 | (exit $ac_status); } && { |
| 9125 | test -z "$ac_c_werror_flag" || |
| 9126 | test ! -s conftest.err |
| 9127 | } && test -s conftest.$ac_objext; then |
| 9128 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9129 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9130 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9131 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9133 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9134 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9135 | $as_echo "no" >&6; }; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9136 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9137 | |
| 9138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9139 | CFLAGS=$cflags_save |
| 9140 | fi |
| 9141 | |
| 9142 | if test -z "$SKIP_NEXTAW"; then |
| 9143 | GUITYPE=NEXTAW |
| 9144 | fi |
| 9145 | |
| 9146 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9147 | if test -n "$GUI_INC_LOC"; then |
| 9148 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 9149 | fi |
| 9150 | if test -n "$GUI_LIB_LOC"; then |
| 9151 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 9152 | fi |
| 9153 | |
| 9154 | ldflags_save=$LDFLAGS |
| 9155 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9156 | { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9157 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9158 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9159 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9160 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9161 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9162 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9163 | cat >conftest.$ac_ext <<_ACEOF |
| 9164 | /* confdefs.h. */ |
| 9165 | _ACEOF |
| 9166 | cat confdefs.h >>conftest.$ac_ext |
| 9167 | cat >>conftest.$ac_ext <<_ACEOF |
| 9168 | /* end confdefs.h. */ |
| 9169 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9170 | /* Override any GCC internal prototype to avoid an error. |
| 9171 | Use char because int might match the return type of a GCC |
| 9172 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9173 | #ifdef __cplusplus |
| 9174 | extern "C" |
| 9175 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9176 | char XShapeQueryExtension (); |
| 9177 | int |
| 9178 | main () |
| 9179 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9180 | return XShapeQueryExtension (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9181 | ; |
| 9182 | return 0; |
| 9183 | } |
| 9184 | _ACEOF |
| 9185 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9186 | if { (ac_try="$ac_link" |
| 9187 | case "(($ac_try" in |
| 9188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9189 | *) ac_try_echo=$ac_try;; |
| 9190 | esac |
| 9191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9192 | $as_echo "$ac_try_echo") >&5 |
| 9193 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9194 | ac_status=$? |
| 9195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9196 | rm -f conftest.er1 |
| 9197 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9199 | (exit $ac_status); } && { |
| 9200 | test -z "$ac_c_werror_flag" || |
| 9201 | test ! -s conftest.err |
| 9202 | } && test -s conftest$ac_exeext && { |
| 9203 | test "$cross_compiling" = yes || |
| 9204 | $as_test_x conftest$ac_exeext |
| 9205 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9206 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9207 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9208 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9209 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9210 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9211 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9212 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9213 | |
| 9214 | rm -rf conftest.dSYM |
| 9215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9216 | conftest$ac_exeext conftest.$ac_ext |
| 9217 | LIBS=$ac_check_lib_save_LIBS |
| 9218 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9219 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9220 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9221 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9222 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9223 | fi |
| 9224 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9225 | { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 9226 | $as_echo_n "checking for wslen in -lw... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9227 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9228 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9229 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9230 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9231 | 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] | 9232 | cat >conftest.$ac_ext <<_ACEOF |
| 9233 | /* confdefs.h. */ |
| 9234 | _ACEOF |
| 9235 | cat confdefs.h >>conftest.$ac_ext |
| 9236 | cat >>conftest.$ac_ext <<_ACEOF |
| 9237 | /* end confdefs.h. */ |
| 9238 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9239 | /* Override any GCC internal prototype to avoid an error. |
| 9240 | Use char because int might match the return type of a GCC |
| 9241 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9242 | #ifdef __cplusplus |
| 9243 | extern "C" |
| 9244 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9245 | char wslen (); |
| 9246 | int |
| 9247 | main () |
| 9248 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9249 | return wslen (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9250 | ; |
| 9251 | return 0; |
| 9252 | } |
| 9253 | _ACEOF |
| 9254 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9255 | if { (ac_try="$ac_link" |
| 9256 | case "(($ac_try" in |
| 9257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9258 | *) ac_try_echo=$ac_try;; |
| 9259 | esac |
| 9260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9261 | $as_echo "$ac_try_echo") >&5 |
| 9262 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9263 | ac_status=$? |
| 9264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9265 | rm -f conftest.er1 |
| 9266 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9268 | (exit $ac_status); } && { |
| 9269 | test -z "$ac_c_werror_flag" || |
| 9270 | test ! -s conftest.err |
| 9271 | } && test -s conftest$ac_exeext && { |
| 9272 | test "$cross_compiling" = yes || |
| 9273 | $as_test_x conftest$ac_exeext |
| 9274 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9275 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9276 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9277 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9278 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9279 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9280 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9281 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9282 | |
| 9283 | rm -rf conftest.dSYM |
| 9284 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9285 | conftest$ac_exeext conftest.$ac_ext |
| 9286 | LIBS=$ac_check_lib_save_LIBS |
| 9287 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9288 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 9289 | $as_echo "$ac_cv_lib_w_wslen" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9290 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9291 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9292 | fi |
| 9293 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9294 | { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 9295 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9296 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9297 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9298 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9299 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9300 | 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] | 9301 | cat >conftest.$ac_ext <<_ACEOF |
| 9302 | /* confdefs.h. */ |
| 9303 | _ACEOF |
| 9304 | cat confdefs.h >>conftest.$ac_ext |
| 9305 | cat >>conftest.$ac_ext <<_ACEOF |
| 9306 | /* end confdefs.h. */ |
| 9307 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9308 | /* Override any GCC internal prototype to avoid an error. |
| 9309 | Use char because int might match the return type of a GCC |
| 9310 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9311 | #ifdef __cplusplus |
| 9312 | extern "C" |
| 9313 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9314 | char dlsym (); |
| 9315 | int |
| 9316 | main () |
| 9317 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9318 | return dlsym (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9319 | ; |
| 9320 | return 0; |
| 9321 | } |
| 9322 | _ACEOF |
| 9323 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9324 | if { (ac_try="$ac_link" |
| 9325 | case "(($ac_try" in |
| 9326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9327 | *) ac_try_echo=$ac_try;; |
| 9328 | esac |
| 9329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9330 | $as_echo "$ac_try_echo") >&5 |
| 9331 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9332 | ac_status=$? |
| 9333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9334 | rm -f conftest.er1 |
| 9335 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9337 | (exit $ac_status); } && { |
| 9338 | test -z "$ac_c_werror_flag" || |
| 9339 | test ! -s conftest.err |
| 9340 | } && test -s conftest$ac_exeext && { |
| 9341 | test "$cross_compiling" = yes || |
| 9342 | $as_test_x conftest$ac_exeext |
| 9343 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9344 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9345 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9346 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9347 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9348 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9349 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9350 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9351 | |
| 9352 | rm -rf conftest.dSYM |
| 9353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9354 | conftest$ac_exeext conftest.$ac_ext |
| 9355 | LIBS=$ac_check_lib_save_LIBS |
| 9356 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9357 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 9358 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9359 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9360 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9361 | fi |
| 9362 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9363 | { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 9364 | $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9365 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9366 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9367 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9368 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9369 | 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] | 9370 | cat >conftest.$ac_ext <<_ACEOF |
| 9371 | /* confdefs.h. */ |
| 9372 | _ACEOF |
| 9373 | cat confdefs.h >>conftest.$ac_ext |
| 9374 | cat >>conftest.$ac_ext <<_ACEOF |
| 9375 | /* end confdefs.h. */ |
| 9376 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9377 | /* Override any GCC internal prototype to avoid an error. |
| 9378 | Use char because int might match the return type of a GCC |
| 9379 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9380 | #ifdef __cplusplus |
| 9381 | extern "C" |
| 9382 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9383 | char XmuCreateStippledPixmap (); |
| 9384 | int |
| 9385 | main () |
| 9386 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9387 | return XmuCreateStippledPixmap (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9388 | ; |
| 9389 | return 0; |
| 9390 | } |
| 9391 | _ACEOF |
| 9392 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9393 | if { (ac_try="$ac_link" |
| 9394 | case "(($ac_try" in |
| 9395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9396 | *) ac_try_echo=$ac_try;; |
| 9397 | esac |
| 9398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9399 | $as_echo "$ac_try_echo") >&5 |
| 9400 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9401 | ac_status=$? |
| 9402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9403 | rm -f conftest.er1 |
| 9404 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9406 | (exit $ac_status); } && { |
| 9407 | test -z "$ac_c_werror_flag" || |
| 9408 | test ! -s conftest.err |
| 9409 | } && test -s conftest$ac_exeext && { |
| 9410 | test "$cross_compiling" = yes || |
| 9411 | $as_test_x conftest$ac_exeext |
| 9412 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9413 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9414 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9415 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9416 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9417 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9418 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9419 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9420 | |
| 9421 | rm -rf conftest.dSYM |
| 9422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9423 | conftest$ac_exeext conftest.$ac_ext |
| 9424 | LIBS=$ac_check_lib_save_LIBS |
| 9425 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9426 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 9427 | $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9428 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9429 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9430 | fi |
| 9431 | |
| 9432 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9433 | { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 9434 | $as_echo_n "checking for XpEndJob in -lXp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9435 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9436 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9437 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9438 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9439 | 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] | 9440 | cat >conftest.$ac_ext <<_ACEOF |
| 9441 | /* confdefs.h. */ |
| 9442 | _ACEOF |
| 9443 | cat confdefs.h >>conftest.$ac_ext |
| 9444 | cat >>conftest.$ac_ext <<_ACEOF |
| 9445 | /* end confdefs.h. */ |
| 9446 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9447 | /* Override any GCC internal prototype to avoid an error. |
| 9448 | Use char because int might match the return type of a GCC |
| 9449 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9450 | #ifdef __cplusplus |
| 9451 | extern "C" |
| 9452 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9453 | char XpEndJob (); |
| 9454 | int |
| 9455 | main () |
| 9456 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9457 | return XpEndJob (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9458 | ; |
| 9459 | return 0; |
| 9460 | } |
| 9461 | _ACEOF |
| 9462 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9463 | if { (ac_try="$ac_link" |
| 9464 | case "(($ac_try" in |
| 9465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9466 | *) ac_try_echo=$ac_try;; |
| 9467 | esac |
| 9468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9469 | $as_echo "$ac_try_echo") >&5 |
| 9470 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9471 | ac_status=$? |
| 9472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9473 | rm -f conftest.er1 |
| 9474 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9476 | (exit $ac_status); } && { |
| 9477 | test -z "$ac_c_werror_flag" || |
| 9478 | test ! -s conftest.err |
| 9479 | } && test -s conftest$ac_exeext && { |
| 9480 | test "$cross_compiling" = yes || |
| 9481 | $as_test_x conftest$ac_exeext |
| 9482 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9483 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9484 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9485 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9486 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9487 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9488 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9489 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9490 | |
| 9491 | rm -rf conftest.dSYM |
| 9492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9493 | conftest$ac_exeext conftest.$ac_ext |
| 9494 | LIBS=$ac_check_lib_save_LIBS |
| 9495 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9496 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 9497 | $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9498 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9499 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9500 | fi |
| 9501 | |
| 9502 | fi |
| 9503 | LDFLAGS=$ldflags_save |
| 9504 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9505 | { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 9506 | $as_echo_n "checking for extra X11 defines... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9507 | NARROW_PROTO= |
| 9508 | rm -fr conftestdir |
| 9509 | if mkdir conftestdir; then |
| 9510 | cd conftestdir |
| 9511 | cat > Imakefile <<'EOF' |
| 9512 | acfindx: |
| 9513 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 9514 | EOF |
| 9515 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9516 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 9517 | fi |
| 9518 | cd .. |
| 9519 | rm -fr conftestdir |
| 9520 | fi |
| 9521 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9522 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9523 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9524 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9525 | { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 9526 | $as_echo "$NARROW_PROTO" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9527 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9528 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9529 | fi |
| 9530 | |
| 9531 | if test "$enable_xsmp" = "yes"; then |
| 9532 | cppflags_save=$CPPFLAGS |
| 9533 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9534 | |
| 9535 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9536 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9537 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9538 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9539 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9540 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9541 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9542 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9543 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9544 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9545 | $as_echo "$as_val"'` |
| 9546 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9547 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9548 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9549 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9550 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9551 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9552 | cat >conftest.$ac_ext <<_ACEOF |
| 9553 | /* confdefs.h. */ |
| 9554 | _ACEOF |
| 9555 | cat confdefs.h >>conftest.$ac_ext |
| 9556 | cat >>conftest.$ac_ext <<_ACEOF |
| 9557 | /* end confdefs.h. */ |
| 9558 | $ac_includes_default |
| 9559 | #include <$ac_header> |
| 9560 | _ACEOF |
| 9561 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9562 | if { (ac_try="$ac_compile" |
| 9563 | case "(($ac_try" in |
| 9564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9565 | *) ac_try_echo=$ac_try;; |
| 9566 | esac |
| 9567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9568 | $as_echo "$ac_try_echo") >&5 |
| 9569 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9570 | ac_status=$? |
| 9571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9572 | rm -f conftest.er1 |
| 9573 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9575 | (exit $ac_status); } && { |
| 9576 | test -z "$ac_c_werror_flag" || |
| 9577 | test ! -s conftest.err |
| 9578 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9579 | ac_header_compiler=yes |
| 9580 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9581 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9583 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9584 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9585 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9586 | |
| 9587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9588 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9589 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9590 | |
| 9591 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9592 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9593 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9594 | cat >conftest.$ac_ext <<_ACEOF |
| 9595 | /* confdefs.h. */ |
| 9596 | _ACEOF |
| 9597 | cat confdefs.h >>conftest.$ac_ext |
| 9598 | cat >>conftest.$ac_ext <<_ACEOF |
| 9599 | /* end confdefs.h. */ |
| 9600 | #include <$ac_header> |
| 9601 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9602 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9603 | case "(($ac_try" in |
| 9604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9605 | *) ac_try_echo=$ac_try;; |
| 9606 | esac |
| 9607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9608 | $as_echo "$ac_try_echo") >&5 |
| 9609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9610 | ac_status=$? |
| 9611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9612 | rm -f conftest.er1 |
| 9613 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9615 | (exit $ac_status); } >/dev/null && { |
| 9616 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9617 | test ! -s conftest.err |
| 9618 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9619 | ac_header_preproc=yes |
| 9620 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9621 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9623 | |
| 9624 | ac_header_preproc=no |
| 9625 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9626 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9627 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9628 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9629 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9630 | |
| 9631 | # So? What about this header? |
| 9632 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9633 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9635 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9636 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9637 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9638 | ac_header_preproc=yes |
| 9639 | ;; |
| 9640 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9641 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9642 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9643 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9644 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9645 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9646 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9647 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9648 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9649 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9650 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9651 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9652 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9653 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9654 | ;; |
| 9655 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9656 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9657 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9658 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9659 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9660 | else |
| 9661 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9662 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9663 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9664 | $as_echo "$as_val"'` |
| 9665 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9666 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9667 | |
| 9668 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9669 | if test `eval 'as_val=${'$as_ac_Header'} |
| 9670 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9671 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9672 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9673 | _ACEOF |
| 9674 | |
| 9675 | fi |
| 9676 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9677 | done |
| 9678 | |
| 9679 | CPPFLAGS=$cppflags_save |
| 9680 | fi |
| 9681 | |
| 9682 | |
| 9683 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 9684 | cppflags_save=$CPPFLAGS |
| 9685 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9686 | |
| 9687 | |
| 9688 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9689 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9690 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9691 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9692 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9693 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9694 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9695 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9696 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9697 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9698 | $as_echo "$as_val"'` |
| 9699 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9700 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9701 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9702 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9703 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9704 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9705 | cat >conftest.$ac_ext <<_ACEOF |
| 9706 | /* confdefs.h. */ |
| 9707 | _ACEOF |
| 9708 | cat confdefs.h >>conftest.$ac_ext |
| 9709 | cat >>conftest.$ac_ext <<_ACEOF |
| 9710 | /* end confdefs.h. */ |
| 9711 | $ac_includes_default |
| 9712 | #include <$ac_header> |
| 9713 | _ACEOF |
| 9714 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9715 | if { (ac_try="$ac_compile" |
| 9716 | case "(($ac_try" in |
| 9717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9718 | *) ac_try_echo=$ac_try;; |
| 9719 | esac |
| 9720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9721 | $as_echo "$ac_try_echo") >&5 |
| 9722 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9723 | ac_status=$? |
| 9724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9725 | rm -f conftest.er1 |
| 9726 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9728 | (exit $ac_status); } && { |
| 9729 | test -z "$ac_c_werror_flag" || |
| 9730 | test ! -s conftest.err |
| 9731 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9732 | ac_header_compiler=yes |
| 9733 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9734 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9736 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9737 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9738 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9739 | |
| 9740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9741 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9742 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9743 | |
| 9744 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9745 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9746 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9747 | cat >conftest.$ac_ext <<_ACEOF |
| 9748 | /* confdefs.h. */ |
| 9749 | _ACEOF |
| 9750 | cat confdefs.h >>conftest.$ac_ext |
| 9751 | cat >>conftest.$ac_ext <<_ACEOF |
| 9752 | /* end confdefs.h. */ |
| 9753 | #include <$ac_header> |
| 9754 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9755 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9756 | case "(($ac_try" in |
| 9757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9758 | *) ac_try_echo=$ac_try;; |
| 9759 | esac |
| 9760 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9761 | $as_echo "$ac_try_echo") >&5 |
| 9762 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9763 | ac_status=$? |
| 9764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9765 | rm -f conftest.er1 |
| 9766 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9768 | (exit $ac_status); } >/dev/null && { |
| 9769 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9770 | test ! -s conftest.err |
| 9771 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9772 | ac_header_preproc=yes |
| 9773 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9774 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9776 | |
| 9777 | ac_header_preproc=no |
| 9778 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9779 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9780 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9781 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9782 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9783 | |
| 9784 | # So? What about this header? |
| 9785 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9786 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9788 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9790 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9791 | ac_header_preproc=yes |
| 9792 | ;; |
| 9793 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9794 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9795 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9796 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9797 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9798 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9799 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9800 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9801 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9802 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9803 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9804 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9805 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9806 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9807 | ;; |
| 9808 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9809 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9810 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9811 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9812 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9813 | else |
| 9814 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9815 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9816 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9817 | $as_echo "$as_val"'` |
| 9818 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9819 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9820 | |
| 9821 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9822 | if test `eval 'as_val=${'$as_ac_Header'} |
| 9823 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9824 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9825 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9826 | _ACEOF |
| 9827 | |
| 9828 | fi |
| 9829 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9830 | done |
| 9831 | |
| 9832 | |
| 9833 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9834 | { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 9835 | $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9836 | cat >conftest.$ac_ext <<_ACEOF |
| 9837 | /* confdefs.h. */ |
| 9838 | _ACEOF |
| 9839 | cat confdefs.h >>conftest.$ac_ext |
| 9840 | cat >>conftest.$ac_ext <<_ACEOF |
| 9841 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9842 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9843 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9845 | $EGREP "XIMText" >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9846 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9847 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9848 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9849 | { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 9850 | $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9851 | fi |
| 9852 | rm -f conftest* |
| 9853 | |
| 9854 | fi |
| 9855 | CPPFLAGS=$cppflags_save |
| 9856 | |
| 9857 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 9858 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9859 | { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 9860 | $as_echo "X GUI selected; xim has been enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9861 | enable_xim="yes" |
| 9862 | fi |
| 9863 | fi |
| 9864 | |
| 9865 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9866 | cppflags_save=$CPPFLAGS |
| 9867 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9868 | { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 9869 | $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9870 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9871 | /* confdefs.h. */ |
| 9872 | _ACEOF |
| 9873 | cat confdefs.h >>conftest.$ac_ext |
| 9874 | cat >>conftest.$ac_ext <<_ACEOF |
| 9875 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9876 | |
| 9877 | #include <X11/Intrinsic.h> |
| 9878 | #include <X11/Xmu/Editres.h> |
| 9879 | int |
| 9880 | main () |
| 9881 | { |
| 9882 | int i; i = 0; |
| 9883 | ; |
| 9884 | return 0; |
| 9885 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9886 | _ACEOF |
| 9887 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9888 | if { (ac_try="$ac_compile" |
| 9889 | case "(($ac_try" in |
| 9890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9891 | *) ac_try_echo=$ac_try;; |
| 9892 | esac |
| 9893 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9894 | $as_echo "$ac_try_echo") >&5 |
| 9895 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9896 | ac_status=$? |
| 9897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9898 | rm -f conftest.er1 |
| 9899 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9900 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9901 | (exit $ac_status); } && { |
| 9902 | test -z "$ac_c_werror_flag" || |
| 9903 | test ! -s conftest.err |
| 9904 | } && test -s conftest.$ac_objext; then |
| 9905 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9906 | $as_echo "yes" >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9907 | cat >>confdefs.h <<\_ACEOF |
| 9908 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 9909 | _ACEOF |
| 9910 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9911 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9912 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9914 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9915 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9916 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9917 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9918 | |
| 9919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9920 | CPPFLAGS=$cppflags_save |
| 9921 | fi |
| 9922 | |
| 9923 | if test -z "$SKIP_MOTIF"; then |
| 9924 | cppflags_save=$CPPFLAGS |
| 9925 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9926 | |
| 9927 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9928 | |
| 9929 | |
| 9930 | |
| 9931 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 9932 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9933 | for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 9934 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9935 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9936 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9938 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9939 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9940 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9941 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9942 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9943 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9944 | $as_echo "$as_val"'` |
| 9945 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9946 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9947 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9948 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9949 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9950 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9951 | cat >conftest.$ac_ext <<_ACEOF |
| 9952 | /* confdefs.h. */ |
| 9953 | _ACEOF |
| 9954 | cat confdefs.h >>conftest.$ac_ext |
| 9955 | cat >>conftest.$ac_ext <<_ACEOF |
| 9956 | /* end confdefs.h. */ |
| 9957 | $ac_includes_default |
| 9958 | #include <$ac_header> |
| 9959 | _ACEOF |
| 9960 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9961 | if { (ac_try="$ac_compile" |
| 9962 | case "(($ac_try" in |
| 9963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9964 | *) ac_try_echo=$ac_try;; |
| 9965 | esac |
| 9966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9967 | $as_echo "$ac_try_echo") >&5 |
| 9968 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9969 | ac_status=$? |
| 9970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9971 | rm -f conftest.er1 |
| 9972 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9974 | (exit $ac_status); } && { |
| 9975 | test -z "$ac_c_werror_flag" || |
| 9976 | test ! -s conftest.err |
| 9977 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9978 | ac_header_compiler=yes |
| 9979 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9980 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9982 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9983 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9984 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9985 | |
| 9986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9987 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9988 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9989 | |
| 9990 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9991 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9992 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9993 | cat >conftest.$ac_ext <<_ACEOF |
| 9994 | /* confdefs.h. */ |
| 9995 | _ACEOF |
| 9996 | cat confdefs.h >>conftest.$ac_ext |
| 9997 | cat >>conftest.$ac_ext <<_ACEOF |
| 9998 | /* end confdefs.h. */ |
| 9999 | #include <$ac_header> |
| 10000 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10001 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10002 | case "(($ac_try" in |
| 10003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10004 | *) ac_try_echo=$ac_try;; |
| 10005 | esac |
| 10006 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10007 | $as_echo "$ac_try_echo") >&5 |
| 10008 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10009 | ac_status=$? |
| 10010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10011 | rm -f conftest.er1 |
| 10012 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10014 | (exit $ac_status); } >/dev/null && { |
| 10015 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10016 | test ! -s conftest.err |
| 10017 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10018 | ac_header_preproc=yes |
| 10019 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10020 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10022 | |
| 10023 | ac_header_preproc=no |
| 10024 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10025 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10026 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10027 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10028 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10029 | |
| 10030 | # So? What about this header? |
| 10031 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10032 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10034 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10035 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10036 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10037 | ac_header_preproc=yes |
| 10038 | ;; |
| 10039 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10040 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10041 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10042 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10043 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10044 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10045 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10046 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10047 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10048 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10049 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10050 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10051 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10052 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10053 | ;; |
| 10054 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10055 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10056 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10057 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10058 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10059 | else |
| 10060 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10061 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10062 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10063 | $as_echo "$as_val"'` |
| 10064 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10065 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10066 | |
| 10067 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10068 | if test `eval 'as_val=${'$as_ac_Header'} |
| 10069 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10070 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10071 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10072 | _ACEOF |
| 10073 | |
| 10074 | fi |
| 10075 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10076 | done |
| 10077 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10078 | |
| 10079 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10080 | { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 10081 | $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10082 | cat >conftest.$ac_ext <<_ACEOF |
| 10083 | /* confdefs.h. */ |
| 10084 | _ACEOF |
| 10085 | cat confdefs.h >>conftest.$ac_ext |
| 10086 | cat >>conftest.$ac_ext <<_ACEOF |
| 10087 | /* end confdefs.h. */ |
| 10088 | #include <Xm/XpmP.h> |
| 10089 | int |
| 10090 | main () |
| 10091 | { |
| 10092 | XpmAttributes_21 attr; |
| 10093 | ; |
| 10094 | return 0; |
| 10095 | } |
| 10096 | _ACEOF |
| 10097 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10098 | if { (ac_try="$ac_compile" |
| 10099 | case "(($ac_try" in |
| 10100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10101 | *) ac_try_echo=$ac_try;; |
| 10102 | esac |
| 10103 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10104 | $as_echo "$ac_try_echo") >&5 |
| 10105 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10106 | ac_status=$? |
| 10107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10108 | rm -f conftest.er1 |
| 10109 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10111 | (exit $ac_status); } && { |
| 10112 | test -z "$ac_c_werror_flag" || |
| 10113 | test ! -s conftest.err |
| 10114 | } && test -s conftest.$ac_objext; then |
| 10115 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10116 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10117 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 10118 | _ACEOF |
| 10119 | |
| 10120 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10121 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10123 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10124 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10125 | $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10126 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 10127 | _ACEOF |
| 10128 | |
| 10129 | |
| 10130 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10131 | |
| 10132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10133 | else |
| 10134 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 10135 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10136 | _ACEOF |
| 10137 | |
| 10138 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10139 | CPPFLAGS=$cppflags_save |
| 10140 | fi |
| 10141 | |
| 10142 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10143 | { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 10144 | $as_echo "no GUI selected; xim has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10145 | enable_xim="no" |
| 10146 | fi |
| 10147 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10148 | { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 10149 | $as_echo "no GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10150 | enable_fontset="no" |
| 10151 | fi |
| 10152 | if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10153 | { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 10154 | $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10155 | enable_fontset="no" |
| 10156 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10157 | |
| 10158 | if test -z "$SKIP_PHOTON"; then |
| 10159 | GUITYPE=PHOTONGUI |
| 10160 | fi |
| 10161 | |
| 10162 | |
| 10163 | |
| 10164 | |
| 10165 | |
| 10166 | |
| 10167 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10168 | { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 10169 | $as_echo "$as_me: error: cannot use workshop without Motif" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10170 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10171 | fi |
| 10172 | |
| 10173 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10174 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10175 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10176 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10177 | |
| 10178 | fi |
| 10179 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10180 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10181 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10182 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10183 | |
| 10184 | fi |
| 10185 | |
| 10186 | |
| 10187 | |
| 10188 | |
| 10189 | if test "$enable_hangulinput" = "yes"; then |
| 10190 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10191 | { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 10192 | $as_echo "no GUI selected; hangul input has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10193 | enable_hangulinput=no |
| 10194 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10195 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10196 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10197 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10198 | |
| 10199 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10200 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10201 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10202 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10203 | fi |
| 10204 | fi |
| 10205 | |
| 10206 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10207 | { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5 |
| 10208 | $as_echo_n "checking whether toupper is broken... " >&6; } |
| 10209 | if test "${vim_cv_toupper_broken+set}" = set; then |
| 10210 | $as_echo_n "(cached) " >&6 |
| 10211 | else |
| 10212 | |
| 10213 | if test "$cross_compiling" = yes; then |
| 10214 | |
| 10215 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5 |
| 10216 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10217 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10218 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10219 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10220 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10221 | |
| 10222 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10223 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10224 | #if STDC_HEADERS |
| 10225 | # include <stdlib.h> |
| 10226 | # include <stddef.h> |
| 10227 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10228 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10229 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10230 | _ACEOF |
| 10231 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10232 | if { (ac_try="$ac_link" |
| 10233 | case "(($ac_try" in |
| 10234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10235 | *) ac_try_echo=$ac_try;; |
| 10236 | esac |
| 10237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10238 | $as_echo "$ac_try_echo") >&5 |
| 10239 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10240 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10243 | { (case "(($ac_try" in |
| 10244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10245 | *) ac_try_echo=$ac_try;; |
| 10246 | esac |
| 10247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10248 | $as_echo "$ac_try_echo") >&5 |
| 10249 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10250 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10251 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10252 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10253 | |
| 10254 | vim_cv_toupper_broken=yes |
| 10255 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10256 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10257 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10258 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10260 | |
| 10261 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10262 | |
| 10263 | vim_cv_toupper_broken=no |
| 10264 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10265 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10266 | rm -rf conftest.dSYM |
| 10267 | rm -f core *.core core.conftest.* 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] | 10268 | fi |
| 10269 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10270 | |
| 10271 | fi |
| 10272 | { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5 |
| 10273 | $as_echo "$vim_cv_toupper_broken" >&6; } |
| 10274 | |
| 10275 | if test "x$vim_cv_toupper_broken" = "xyes" ; then |
| 10276 | cat >>confdefs.h <<\_ACEOF |
| 10277 | #define BROKEN_TOUPPER 1 |
| 10278 | _ACEOF |
| 10279 | |
| 10280 | fi |
| 10281 | |
| 10282 | { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 10283 | $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10284 | cat >conftest.$ac_ext <<_ACEOF |
| 10285 | /* confdefs.h. */ |
| 10286 | _ACEOF |
| 10287 | cat confdefs.h >>conftest.$ac_ext |
| 10288 | cat >>conftest.$ac_ext <<_ACEOF |
| 10289 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10290 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10291 | int |
| 10292 | main () |
| 10293 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10294 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10295 | ; |
| 10296 | return 0; |
| 10297 | } |
| 10298 | _ACEOF |
| 10299 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10300 | if { (ac_try="$ac_compile" |
| 10301 | case "(($ac_try" in |
| 10302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10303 | *) ac_try_echo=$ac_try;; |
| 10304 | esac |
| 10305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10306 | $as_echo "$ac_try_echo") >&5 |
| 10307 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10308 | ac_status=$? |
| 10309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10310 | rm -f conftest.er1 |
| 10311 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10313 | (exit $ac_status); } && { |
| 10314 | test -z "$ac_c_werror_flag" || |
| 10315 | test ! -s conftest.err |
| 10316 | } && test -s conftest.$ac_objext; then |
| 10317 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10318 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10319 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10320 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10321 | |
| 10322 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10323 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10325 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10326 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10327 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10328 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10329 | |
| 10330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10331 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10332 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10333 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10334 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10335 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10336 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10337 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10338 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10339 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10340 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10341 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10342 | { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 10343 | $as_echo_n "checking elf.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10344 | cat >conftest.$ac_ext <<_ACEOF |
| 10345 | /* confdefs.h. */ |
| 10346 | _ACEOF |
| 10347 | cat confdefs.h >>conftest.$ac_ext |
| 10348 | cat >>conftest.$ac_ext <<_ACEOF |
| 10349 | /* end confdefs.h. */ |
| 10350 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10351 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10352 | _ACEOF |
| 10353 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10354 | if { (ac_try="$ac_compile" |
| 10355 | case "(($ac_try" in |
| 10356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10357 | *) ac_try_echo=$ac_try;; |
| 10358 | esac |
| 10359 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10360 | $as_echo "$ac_try_echo") >&5 |
| 10361 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10362 | ac_status=$? |
| 10363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10364 | rm -f conftest.er1 |
| 10365 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10366 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10367 | (exit $ac_status); } && { |
| 10368 | test -z "$ac_c_werror_flag" || |
| 10369 | test ! -s conftest.err |
| 10370 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10371 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10372 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10373 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10375 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10376 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10377 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10378 | |
| 10379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10380 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10381 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10382 | |
| 10383 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10384 | { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 10385 | $as_echo_n "checking elf.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10386 | cat >conftest.$ac_ext <<_ACEOF |
| 10387 | /* confdefs.h. */ |
| 10388 | _ACEOF |
| 10389 | cat confdefs.h >>conftest.$ac_ext |
| 10390 | cat >>conftest.$ac_ext <<_ACEOF |
| 10391 | /* end confdefs.h. */ |
| 10392 | #include <elf.h> |
| 10393 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10394 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10395 | case "(($ac_try" in |
| 10396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10397 | *) ac_try_echo=$ac_try;; |
| 10398 | esac |
| 10399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10400 | $as_echo "$ac_try_echo") >&5 |
| 10401 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10402 | ac_status=$? |
| 10403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10404 | rm -f conftest.er1 |
| 10405 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10407 | (exit $ac_status); } >/dev/null && { |
| 10408 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10409 | test ! -s conftest.err |
| 10410 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10411 | ac_header_preproc=yes |
| 10412 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10413 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10415 | |
| 10416 | ac_header_preproc=no |
| 10417 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10418 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10419 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10420 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10421 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10422 | |
| 10423 | # So? What about this header? |
| 10424 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10425 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10426 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10427 | $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10428 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 10429 | $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10430 | ac_header_preproc=yes |
| 10431 | ;; |
| 10432 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10433 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 10434 | $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 10435 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 10436 | $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 10437 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 10438 | $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 10439 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10440 | $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10441 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 10442 | $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 10443 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 10444 | $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 10445 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10446 | ;; |
| 10447 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10448 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10449 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10450 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10451 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10452 | else |
| 10453 | ac_cv_header_elf_h=$ac_header_preproc |
| 10454 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10455 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10456 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10457 | |
| 10458 | fi |
| 10459 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10460 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10461 | fi |
| 10462 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10463 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10464 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10465 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10466 | { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 10467 | $as_echo_n "checking for main in -lelf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10468 | if test "${ac_cv_lib_elf_main+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10469 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10470 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10471 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10472 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10473 | cat >conftest.$ac_ext <<_ACEOF |
| 10474 | /* confdefs.h. */ |
| 10475 | _ACEOF |
| 10476 | cat confdefs.h >>conftest.$ac_ext |
| 10477 | cat >>conftest.$ac_ext <<_ACEOF |
| 10478 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10479 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10480 | |
| 10481 | int |
| 10482 | main () |
| 10483 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10484 | return main (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10485 | ; |
| 10486 | return 0; |
| 10487 | } |
| 10488 | _ACEOF |
| 10489 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10490 | if { (ac_try="$ac_link" |
| 10491 | case "(($ac_try" in |
| 10492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10493 | *) ac_try_echo=$ac_try;; |
| 10494 | esac |
| 10495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10496 | $as_echo "$ac_try_echo") >&5 |
| 10497 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10498 | ac_status=$? |
| 10499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10500 | rm -f conftest.er1 |
| 10501 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10503 | (exit $ac_status); } && { |
| 10504 | test -z "$ac_c_werror_flag" || |
| 10505 | test ! -s conftest.err |
| 10506 | } && test -s conftest$ac_exeext && { |
| 10507 | test "$cross_compiling" = yes || |
| 10508 | $as_test_x conftest$ac_exeext |
| 10509 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10510 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10511 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10512 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10513 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10514 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10515 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10516 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10517 | |
| 10518 | rm -rf conftest.dSYM |
| 10519 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10520 | conftest$ac_exeext conftest.$ac_ext |
| 10521 | LIBS=$ac_check_lib_save_LIBS |
| 10522 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10523 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 10524 | $as_echo "$ac_cv_lib_elf_main" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10525 | if test $ac_cv_lib_elf_main = yes; then |
| 10526 | cat >>confdefs.h <<_ACEOF |
| 10527 | #define HAVE_LIBELF 1 |
| 10528 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10529 | |
| 10530 | LIBS="-lelf $LIBS" |
| 10531 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10532 | fi |
| 10533 | |
| 10534 | fi |
| 10535 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
| 10540 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10541 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10542 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10543 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10544 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 10545 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 10546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10547 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10548 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10549 | cat >conftest.$ac_ext <<_ACEOF |
| 10550 | /* confdefs.h. */ |
| 10551 | _ACEOF |
| 10552 | cat confdefs.h >>conftest.$ac_ext |
| 10553 | cat >>conftest.$ac_ext <<_ACEOF |
| 10554 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10555 | #include <sys/types.h> |
| 10556 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10557 | |
| 10558 | int |
| 10559 | main () |
| 10560 | { |
| 10561 | if ((DIR *) 0) |
| 10562 | return 0; |
| 10563 | ; |
| 10564 | return 0; |
| 10565 | } |
| 10566 | _ACEOF |
| 10567 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10568 | if { (ac_try="$ac_compile" |
| 10569 | case "(($ac_try" in |
| 10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10571 | *) ac_try_echo=$ac_try;; |
| 10572 | esac |
| 10573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10574 | $as_echo "$ac_try_echo") >&5 |
| 10575 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10576 | ac_status=$? |
| 10577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10578 | rm -f conftest.er1 |
| 10579 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10581 | (exit $ac_status); } && { |
| 10582 | test -z "$ac_c_werror_flag" || |
| 10583 | test ! -s conftest.err |
| 10584 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10585 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10586 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10587 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10589 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10590 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10591 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10592 | |
| 10593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10594 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10595 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10596 | $as_echo "$as_val"'` |
| 10597 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10598 | $as_echo "$ac_res" >&6; } |
| 10599 | if test `eval 'as_val=${'$as_ac_Header'} |
| 10600 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10601 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10602 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10603 | _ACEOF |
| 10604 | |
| 10605 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10606 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10607 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10608 | done |
| 10609 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10610 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10611 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10612 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10613 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10614 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10615 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10616 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10617 | cat >conftest.$ac_ext <<_ACEOF |
| 10618 | /* confdefs.h. */ |
| 10619 | _ACEOF |
| 10620 | cat confdefs.h >>conftest.$ac_ext |
| 10621 | cat >>conftest.$ac_ext <<_ACEOF |
| 10622 | /* end confdefs.h. */ |
| 10623 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10624 | /* Override any GCC internal prototype to avoid an error. |
| 10625 | Use char because int might match the return type of a GCC |
| 10626 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10627 | #ifdef __cplusplus |
| 10628 | extern "C" |
| 10629 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10630 | char opendir (); |
| 10631 | int |
| 10632 | main () |
| 10633 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10634 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10635 | ; |
| 10636 | return 0; |
| 10637 | } |
| 10638 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10639 | for ac_lib in '' dir; do |
| 10640 | if test -z "$ac_lib"; then |
| 10641 | ac_res="none required" |
| 10642 | else |
| 10643 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10644 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10645 | fi |
| 10646 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10647 | if { (ac_try="$ac_link" |
| 10648 | case "(($ac_try" in |
| 10649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10650 | *) ac_try_echo=$ac_try;; |
| 10651 | esac |
| 10652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10653 | $as_echo "$ac_try_echo") >&5 |
| 10654 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10655 | ac_status=$? |
| 10656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10657 | rm -f conftest.er1 |
| 10658 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10660 | (exit $ac_status); } && { |
| 10661 | test -z "$ac_c_werror_flag" || |
| 10662 | test ! -s conftest.err |
| 10663 | } && test -s conftest$ac_exeext && { |
| 10664 | test "$cross_compiling" = yes || |
| 10665 | $as_test_x conftest$ac_exeext |
| 10666 | }; then |
| 10667 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10668 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10669 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10670 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10671 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10672 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10673 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10674 | |
| 10675 | rm -rf conftest.dSYM |
| 10676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10677 | conftest$ac_exeext |
| 10678 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10679 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10680 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10681 | done |
| 10682 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10683 | : |
| 10684 | else |
| 10685 | ac_cv_search_opendir=no |
| 10686 | fi |
| 10687 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10688 | LIBS=$ac_func_search_save_LIBS |
| 10689 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10690 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10691 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10692 | ac_res=$ac_cv_search_opendir |
| 10693 | if test "$ac_res" != no; then |
| 10694 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10695 | |
| 10696 | fi |
| 10697 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10698 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10699 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10700 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10701 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10702 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10703 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10704 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10705 | cat >conftest.$ac_ext <<_ACEOF |
| 10706 | /* confdefs.h. */ |
| 10707 | _ACEOF |
| 10708 | cat confdefs.h >>conftest.$ac_ext |
| 10709 | cat >>conftest.$ac_ext <<_ACEOF |
| 10710 | /* end confdefs.h. */ |
| 10711 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10712 | /* Override any GCC internal prototype to avoid an error. |
| 10713 | Use char because int might match the return type of a GCC |
| 10714 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10715 | #ifdef __cplusplus |
| 10716 | extern "C" |
| 10717 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10718 | char opendir (); |
| 10719 | int |
| 10720 | main () |
| 10721 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10722 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10723 | ; |
| 10724 | return 0; |
| 10725 | } |
| 10726 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10727 | for ac_lib in '' x; do |
| 10728 | if test -z "$ac_lib"; then |
| 10729 | ac_res="none required" |
| 10730 | else |
| 10731 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10732 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10733 | fi |
| 10734 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10735 | if { (ac_try="$ac_link" |
| 10736 | case "(($ac_try" in |
| 10737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10738 | *) ac_try_echo=$ac_try;; |
| 10739 | esac |
| 10740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10741 | $as_echo "$ac_try_echo") >&5 |
| 10742 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10743 | ac_status=$? |
| 10744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10745 | rm -f conftest.er1 |
| 10746 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10748 | (exit $ac_status); } && { |
| 10749 | test -z "$ac_c_werror_flag" || |
| 10750 | test ! -s conftest.err |
| 10751 | } && test -s conftest$ac_exeext && { |
| 10752 | test "$cross_compiling" = yes || |
| 10753 | $as_test_x conftest$ac_exeext |
| 10754 | }; then |
| 10755 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10756 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10757 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10759 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10760 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10761 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10762 | |
| 10763 | rm -rf conftest.dSYM |
| 10764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10765 | conftest$ac_exeext |
| 10766 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10767 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10768 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10769 | done |
| 10770 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10771 | : |
| 10772 | else |
| 10773 | ac_cv_search_opendir=no |
| 10774 | fi |
| 10775 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10776 | LIBS=$ac_func_search_save_LIBS |
| 10777 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10778 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10779 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10780 | ac_res=$ac_cv_search_opendir |
| 10781 | if test "$ac_res" != no; then |
| 10782 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10783 | |
| 10784 | fi |
| 10785 | |
| 10786 | fi |
| 10787 | |
| 10788 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10789 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10790 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10791 | $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10792 | cat >conftest.$ac_ext <<_ACEOF |
| 10793 | /* confdefs.h. */ |
| 10794 | _ACEOF |
| 10795 | cat confdefs.h >>conftest.$ac_ext |
| 10796 | cat >>conftest.$ac_ext <<_ACEOF |
| 10797 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10798 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10799 | int |
| 10800 | main () |
| 10801 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10802 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10803 | ; |
| 10804 | return 0; |
| 10805 | } |
| 10806 | _ACEOF |
| 10807 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10808 | if { (ac_try="$ac_compile" |
| 10809 | case "(($ac_try" in |
| 10810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10811 | *) ac_try_echo=$ac_try;; |
| 10812 | esac |
| 10813 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10814 | $as_echo "$ac_try_echo") >&5 |
| 10815 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10816 | ac_status=$? |
| 10817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10818 | rm -f conftest.er1 |
| 10819 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10821 | (exit $ac_status); } && { |
| 10822 | test -z "$ac_c_werror_flag" || |
| 10823 | test ! -s conftest.err |
| 10824 | } && test -s conftest.$ac_objext; then |
| 10825 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10826 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10827 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10828 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10829 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10830 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10831 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10832 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10833 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10834 | |
| 10835 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10836 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10838 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10839 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10840 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10841 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10842 | |
| 10843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10844 | fi |
| 10845 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10846 | |
| 10847 | |
| 10848 | |
| 10849 | |
| 10850 | |
| 10851 | |
| 10852 | |
| 10853 | |
| 10854 | |
| 10855 | |
| 10856 | |
| 10857 | |
| 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | |
| 10864 | |
| 10865 | |
| 10866 | |
| 10867 | |
| 10868 | |
| 10869 | |
| 10870 | |
| 10871 | |
| 10872 | |
| 10873 | |
| 10874 | |
| 10875 | |
| 10876 | |
| 10877 | |
| 10878 | |
| 10879 | |
| 10880 | |
| 10881 | |
| 10882 | |
| 10883 | |
| 10884 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10885 | |
Bram Moolenaar | e74455a | 2007-11-04 14:36:18 +0000 | [diff] [blame] | 10886 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10887 | for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ |
Bram Moolenaar | e74455a | 2007-11-04 14:36:18 +0000 | [diff] [blame] | 10888 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10889 | iconv.h langinfo.h math.h unistd.h stropts.h errno.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10890 | sys/resource.h sys/systeminfo.h locale.h \ |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 10891 | sys/stream.h termios.h libc.h sys/statfs.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10892 | 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] | 10893 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10894 | 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] | 10895 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10896 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10897 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10898 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10899 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10900 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10901 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10902 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10903 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10904 | $as_echo "$as_val"'` |
| 10905 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10906 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10907 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10908 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10909 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10910 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10911 | cat >conftest.$ac_ext <<_ACEOF |
| 10912 | /* confdefs.h. */ |
| 10913 | _ACEOF |
| 10914 | cat confdefs.h >>conftest.$ac_ext |
| 10915 | cat >>conftest.$ac_ext <<_ACEOF |
| 10916 | /* end confdefs.h. */ |
| 10917 | $ac_includes_default |
| 10918 | #include <$ac_header> |
| 10919 | _ACEOF |
| 10920 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10921 | if { (ac_try="$ac_compile" |
| 10922 | case "(($ac_try" in |
| 10923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10924 | *) ac_try_echo=$ac_try;; |
| 10925 | esac |
| 10926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10927 | $as_echo "$ac_try_echo") >&5 |
| 10928 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10929 | ac_status=$? |
| 10930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10931 | rm -f conftest.er1 |
| 10932 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 | (exit $ac_status); } && { |
| 10935 | test -z "$ac_c_werror_flag" || |
| 10936 | test ! -s conftest.err |
| 10937 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10938 | ac_header_compiler=yes |
| 10939 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10940 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10942 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10943 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10944 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10945 | |
| 10946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10947 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10948 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10949 | |
| 10950 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10951 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10952 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10953 | cat >conftest.$ac_ext <<_ACEOF |
| 10954 | /* confdefs.h. */ |
| 10955 | _ACEOF |
| 10956 | cat confdefs.h >>conftest.$ac_ext |
| 10957 | cat >>conftest.$ac_ext <<_ACEOF |
| 10958 | /* end confdefs.h. */ |
| 10959 | #include <$ac_header> |
| 10960 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10961 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10962 | case "(($ac_try" in |
| 10963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10964 | *) ac_try_echo=$ac_try;; |
| 10965 | esac |
| 10966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10967 | $as_echo "$ac_try_echo") >&5 |
| 10968 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10969 | ac_status=$? |
| 10970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10971 | rm -f conftest.er1 |
| 10972 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10974 | (exit $ac_status); } >/dev/null && { |
| 10975 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10976 | test ! -s conftest.err |
| 10977 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10978 | ac_header_preproc=yes |
| 10979 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10980 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10982 | |
| 10983 | ac_header_preproc=no |
| 10984 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10985 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10986 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10987 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10988 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10989 | |
| 10990 | # So? What about this header? |
| 10991 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10992 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10994 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10996 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10997 | ac_header_preproc=yes |
| 10998 | ;; |
| 10999 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11000 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11001 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11003 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11005 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11007 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11009 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11011 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11012 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11013 | ;; |
| 11014 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11015 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11016 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11017 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11018 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11019 | else |
| 11020 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11021 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11022 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11023 | $as_echo "$as_val"'` |
| 11024 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11025 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11026 | |
| 11027 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11028 | if test `eval 'as_val=${'$as_ac_Header'} |
| 11029 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11030 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11031 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11032 | _ACEOF |
| 11033 | |
| 11034 | fi |
| 11035 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11036 | done |
| 11037 | |
| 11038 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11039 | |
| 11040 | for ac_header in sys/ptem.h |
| 11041 | do |
| 11042 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11043 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11044 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11045 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11046 | $as_echo_n "(cached) " >&6 |
| 11047 | else |
| 11048 | cat >conftest.$ac_ext <<_ACEOF |
| 11049 | /* confdefs.h. */ |
| 11050 | _ACEOF |
| 11051 | cat confdefs.h >>conftest.$ac_ext |
| 11052 | cat >>conftest.$ac_ext <<_ACEOF |
| 11053 | /* end confdefs.h. */ |
| 11054 | #if defined HAVE_SYS_STREAM_H |
| 11055 | # include <sys/stream.h> |
| 11056 | #endif |
| 11057 | |
| 11058 | #include <$ac_header> |
| 11059 | _ACEOF |
| 11060 | rm -f conftest.$ac_objext |
| 11061 | if { (ac_try="$ac_compile" |
| 11062 | case "(($ac_try" in |
| 11063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11064 | *) ac_try_echo=$ac_try;; |
| 11065 | esac |
| 11066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11067 | $as_echo "$ac_try_echo") >&5 |
| 11068 | (eval "$ac_compile") 2>conftest.er1 |
| 11069 | ac_status=$? |
| 11070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11071 | rm -f conftest.er1 |
| 11072 | cat conftest.err >&5 |
| 11073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11074 | (exit $ac_status); } && { |
| 11075 | test -z "$ac_c_werror_flag" || |
| 11076 | test ! -s conftest.err |
| 11077 | } && test -s conftest.$ac_objext; then |
| 11078 | eval "$as_ac_Header=yes" |
| 11079 | else |
| 11080 | $as_echo "$as_me: failed program was:" >&5 |
| 11081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11082 | |
| 11083 | eval "$as_ac_Header=no" |
| 11084 | fi |
| 11085 | |
| 11086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11087 | fi |
| 11088 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11089 | $as_echo "$as_val"'` |
| 11090 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11091 | $as_echo "$ac_res" >&6; } |
| 11092 | if test `eval 'as_val=${'$as_ac_Header'} |
| 11093 | $as_echo "$as_val"'` = yes; then |
| 11094 | cat >>confdefs.h <<_ACEOF |
| 11095 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11096 | _ACEOF |
| 11097 | |
| 11098 | fi |
| 11099 | |
| 11100 | done |
| 11101 | |
| 11102 | |
| 11103 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11104 | { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 11105 | $as_echo_n "checking for pthread_np.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11106 | cat >conftest.$ac_ext <<_ACEOF |
| 11107 | /* confdefs.h. */ |
| 11108 | _ACEOF |
| 11109 | cat confdefs.h >>conftest.$ac_ext |
| 11110 | cat >>conftest.$ac_ext <<_ACEOF |
| 11111 | /* end confdefs.h. */ |
| 11112 | |
| 11113 | #include <pthread.h> |
| 11114 | #include <pthread_np.h> |
| 11115 | int |
| 11116 | main () |
| 11117 | { |
| 11118 | int i; i = 0; |
| 11119 | ; |
| 11120 | return 0; |
| 11121 | } |
| 11122 | _ACEOF |
| 11123 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11124 | if { (ac_try="$ac_compile" |
| 11125 | case "(($ac_try" in |
| 11126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11127 | *) ac_try_echo=$ac_try;; |
| 11128 | esac |
| 11129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11130 | $as_echo "$ac_try_echo") >&5 |
| 11131 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11132 | ac_status=$? |
| 11133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11134 | rm -f conftest.er1 |
| 11135 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11137 | (exit $ac_status); } && { |
| 11138 | test -z "$ac_c_werror_flag" || |
| 11139 | test ! -s conftest.err |
| 11140 | } && test -s conftest.$ac_objext; then |
| 11141 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11142 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11143 | cat >>confdefs.h <<\_ACEOF |
| 11144 | #define HAVE_PTHREAD_NP_H 1 |
| 11145 | _ACEOF |
| 11146 | |
| 11147 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11148 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11150 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11151 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11152 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11153 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11154 | |
| 11155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11156 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11157 | |
| 11158 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11159 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11160 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11162 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11163 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11164 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11165 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11166 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11167 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11168 | $as_echo "$as_val"'` |
| 11169 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11170 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11171 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11172 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11173 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11174 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11175 | cat >conftest.$ac_ext <<_ACEOF |
| 11176 | /* confdefs.h. */ |
| 11177 | _ACEOF |
| 11178 | cat confdefs.h >>conftest.$ac_ext |
| 11179 | cat >>conftest.$ac_ext <<_ACEOF |
| 11180 | /* end confdefs.h. */ |
| 11181 | $ac_includes_default |
| 11182 | #include <$ac_header> |
| 11183 | _ACEOF |
| 11184 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11185 | if { (ac_try="$ac_compile" |
| 11186 | case "(($ac_try" in |
| 11187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11188 | *) ac_try_echo=$ac_try;; |
| 11189 | esac |
| 11190 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11191 | $as_echo "$ac_try_echo") >&5 |
| 11192 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11193 | ac_status=$? |
| 11194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11195 | rm -f conftest.er1 |
| 11196 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11198 | (exit $ac_status); } && { |
| 11199 | test -z "$ac_c_werror_flag" || |
| 11200 | test ! -s conftest.err |
| 11201 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11202 | ac_header_compiler=yes |
| 11203 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11204 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11206 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11207 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11208 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11209 | |
| 11210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11211 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11212 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11213 | |
| 11214 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11215 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11216 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11217 | cat >conftest.$ac_ext <<_ACEOF |
| 11218 | /* confdefs.h. */ |
| 11219 | _ACEOF |
| 11220 | cat confdefs.h >>conftest.$ac_ext |
| 11221 | cat >>conftest.$ac_ext <<_ACEOF |
| 11222 | /* end confdefs.h. */ |
| 11223 | #include <$ac_header> |
| 11224 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11225 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11226 | case "(($ac_try" in |
| 11227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11228 | *) ac_try_echo=$ac_try;; |
| 11229 | esac |
| 11230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11231 | $as_echo "$ac_try_echo") >&5 |
| 11232 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11233 | ac_status=$? |
| 11234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11235 | rm -f conftest.er1 |
| 11236 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11238 | (exit $ac_status); } >/dev/null && { |
| 11239 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11240 | test ! -s conftest.err |
| 11241 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11242 | ac_header_preproc=yes |
| 11243 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11244 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11246 | |
| 11247 | ac_header_preproc=no |
| 11248 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11249 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11250 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11251 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11252 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11253 | |
| 11254 | # So? What about this header? |
| 11255 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11256 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11258 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11260 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11261 | ac_header_preproc=yes |
| 11262 | ;; |
| 11263 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11264 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11265 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11267 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11269 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11271 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11272 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11273 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11274 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11275 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11276 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11277 | ;; |
| 11278 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11279 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11280 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11282 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11283 | else |
| 11284 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11285 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11286 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11287 | $as_echo "$as_val"'` |
| 11288 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11289 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11290 | |
| 11291 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11292 | if test `eval 'as_val=${'$as_ac_Header'} |
| 11293 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11294 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11295 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11296 | _ACEOF |
| 11297 | |
| 11298 | fi |
| 11299 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11300 | done |
| 11301 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11302 | if test "x$MACOSX" = "xyes"; then |
| 11303 | cat >>confdefs.h <<\_ACEOF |
| 11304 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11305 | _ACEOF |
| 11306 | |
| 11307 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11308 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11309 | { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 11310 | $as_echo_n "checking if strings.h can be included after string.h... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11311 | cppflags_save=$CPPFLAGS |
| 11312 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11313 | cat >conftest.$ac_ext <<_ACEOF |
| 11314 | /* confdefs.h. */ |
| 11315 | _ACEOF |
| 11316 | cat confdefs.h >>conftest.$ac_ext |
| 11317 | cat >>conftest.$ac_ext <<_ACEOF |
| 11318 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11319 | |
| 11320 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 11321 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 11322 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 11323 | #endif |
| 11324 | #ifdef HAVE_XM_XM_H |
| 11325 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 11326 | #endif |
| 11327 | #ifdef HAVE_STRING_H |
| 11328 | # include <string.h> |
| 11329 | #endif |
| 11330 | #if defined(HAVE_STRINGS_H) |
| 11331 | # include <strings.h> |
| 11332 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11333 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11334 | int |
| 11335 | main () |
| 11336 | { |
| 11337 | int i; i = 0; |
| 11338 | ; |
| 11339 | return 0; |
| 11340 | } |
| 11341 | _ACEOF |
| 11342 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11343 | if { (ac_try="$ac_compile" |
| 11344 | case "(($ac_try" in |
| 11345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11346 | *) ac_try_echo=$ac_try;; |
| 11347 | esac |
| 11348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11349 | $as_echo "$ac_try_echo") >&5 |
| 11350 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11351 | ac_status=$? |
| 11352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11353 | rm -f conftest.er1 |
| 11354 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11355 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11356 | (exit $ac_status); } && { |
| 11357 | test -z "$ac_c_werror_flag" || |
| 11358 | test ! -s conftest.err |
| 11359 | } && test -s conftest.$ac_objext; then |
| 11360 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11361 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11362 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11363 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11365 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11366 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11367 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11368 | _ACEOF |
| 11369 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11370 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11371 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11372 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11373 | |
| 11374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11375 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11376 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11378 | if test $ac_cv_c_compiler_gnu = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11379 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 11380 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11381 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11382 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11383 | else |
| 11384 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11385 | cat >conftest.$ac_ext <<_ACEOF |
| 11386 | /* confdefs.h. */ |
| 11387 | _ACEOF |
| 11388 | cat confdefs.h >>conftest.$ac_ext |
| 11389 | cat >>conftest.$ac_ext <<_ACEOF |
| 11390 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11391 | #include <sgtty.h> |
| 11392 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11393 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11394 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11395 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11396 | ac_cv_prog_gcc_traditional=yes |
| 11397 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11398 | ac_cv_prog_gcc_traditional=no |
| 11399 | fi |
| 11400 | rm -f conftest* |
| 11401 | |
| 11402 | |
| 11403 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11404 | cat >conftest.$ac_ext <<_ACEOF |
| 11405 | /* confdefs.h. */ |
| 11406 | _ACEOF |
| 11407 | cat confdefs.h >>conftest.$ac_ext |
| 11408 | cat >>conftest.$ac_ext <<_ACEOF |
| 11409 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11410 | #include <termio.h> |
| 11411 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11412 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11413 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11414 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11415 | ac_cv_prog_gcc_traditional=yes |
| 11416 | fi |
| 11417 | rm -f conftest* |
| 11418 | |
| 11419 | fi |
| 11420 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11421 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 11422 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11423 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 11424 | CC="$CC -traditional" |
| 11425 | fi |
| 11426 | fi |
| 11427 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11428 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 11429 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11430 | if test "${ac_cv_c_const+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11431 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11432 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11433 | cat >conftest.$ac_ext <<_ACEOF |
| 11434 | /* confdefs.h. */ |
| 11435 | _ACEOF |
| 11436 | cat confdefs.h >>conftest.$ac_ext |
| 11437 | cat >>conftest.$ac_ext <<_ACEOF |
| 11438 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11439 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11440 | int |
| 11441 | main () |
| 11442 | { |
| 11443 | /* FIXME: Include the comments suggested by Paul. */ |
| 11444 | #ifndef __cplusplus |
| 11445 | /* Ultrix mips cc rejects this. */ |
| 11446 | typedef int charset[2]; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11447 | const charset cs; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11448 | /* SunOS 4.1.1 cc rejects this. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11449 | char const *const *pcpcc; |
| 11450 | char **ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11451 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11452 | struct point {int x, y;}; |
| 11453 | static struct point const zero = {0,0}; |
| 11454 | /* AIX XL C 1.02.0.0 rejects this. |
| 11455 | It does not let you subtract one const X* pointer from another in |
| 11456 | an arm of an if-expression whose if-part is not a constant |
| 11457 | expression */ |
| 11458 | const char *g = "string"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11459 | pcpcc = &g + (g ? g-g : 0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11460 | /* HPUX 7.0 cc rejects these. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11461 | ++pcpcc; |
| 11462 | ppc = (char**) pcpcc; |
| 11463 | pcpcc = (char const *const *) ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11464 | { /* SCO 3.2v4 cc rejects this. */ |
| 11465 | char *t; |
| 11466 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11467 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11468 | *t++ = 0; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11469 | if (s) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11470 | } |
| 11471 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11472 | int x[] = {25, 17}; |
| 11473 | const int *foo = &x[0]; |
| 11474 | ++foo; |
| 11475 | } |
| 11476 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11477 | typedef const int *iptr; |
| 11478 | iptr p = 0; |
| 11479 | ++p; |
| 11480 | } |
| 11481 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11482 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11483 | struct s { int j; const int *ap[3]; }; |
| 11484 | struct s *b; b->j = 5; |
| 11485 | } |
| 11486 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11487 | const int foo = 10; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11488 | if (!foo) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11489 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11490 | return !cs[0] && !zero.x; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11491 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11492 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11493 | ; |
| 11494 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11495 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11496 | _ACEOF |
| 11497 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11498 | if { (ac_try="$ac_compile" |
| 11499 | case "(($ac_try" in |
| 11500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11501 | *) ac_try_echo=$ac_try;; |
| 11502 | esac |
| 11503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11504 | $as_echo "$ac_try_echo") >&5 |
| 11505 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11506 | ac_status=$? |
| 11507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11508 | rm -f conftest.er1 |
| 11509 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11511 | (exit $ac_status); } && { |
| 11512 | test -z "$ac_c_werror_flag" || |
| 11513 | test ! -s conftest.err |
| 11514 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11515 | ac_cv_c_const=yes |
| 11516 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11517 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11518 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11519 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11520 | ac_cv_c_const=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11521 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11522 | |
| 11523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11524 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11525 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 11526 | $as_echo "$ac_cv_c_const" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11527 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11528 | |
| 11529 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11530 | #define const /**/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11531 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11532 | |
| 11533 | fi |
| 11534 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11535 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 11536 | $as_echo_n "checking for mode_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11537 | if test "${ac_cv_type_mode_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11538 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11539 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11540 | ac_cv_type_mode_t=no |
| 11541 | cat >conftest.$ac_ext <<_ACEOF |
| 11542 | /* confdefs.h. */ |
| 11543 | _ACEOF |
| 11544 | cat confdefs.h >>conftest.$ac_ext |
| 11545 | cat >>conftest.$ac_ext <<_ACEOF |
| 11546 | /* end confdefs.h. */ |
| 11547 | $ac_includes_default |
| 11548 | int |
| 11549 | main () |
| 11550 | { |
| 11551 | if (sizeof (mode_t)) |
| 11552 | return 0; |
| 11553 | ; |
| 11554 | return 0; |
| 11555 | } |
| 11556 | _ACEOF |
| 11557 | rm -f conftest.$ac_objext |
| 11558 | if { (ac_try="$ac_compile" |
| 11559 | case "(($ac_try" in |
| 11560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11561 | *) ac_try_echo=$ac_try;; |
| 11562 | esac |
| 11563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11564 | $as_echo "$ac_try_echo") >&5 |
| 11565 | (eval "$ac_compile") 2>conftest.er1 |
| 11566 | ac_status=$? |
| 11567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11568 | rm -f conftest.er1 |
| 11569 | cat conftest.err >&5 |
| 11570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11571 | (exit $ac_status); } && { |
| 11572 | test -z "$ac_c_werror_flag" || |
| 11573 | test ! -s conftest.err |
| 11574 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11575 | cat >conftest.$ac_ext <<_ACEOF |
| 11576 | /* confdefs.h. */ |
| 11577 | _ACEOF |
| 11578 | cat confdefs.h >>conftest.$ac_ext |
| 11579 | cat >>conftest.$ac_ext <<_ACEOF |
| 11580 | /* end confdefs.h. */ |
| 11581 | $ac_includes_default |
| 11582 | int |
| 11583 | main () |
| 11584 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11585 | if (sizeof ((mode_t))) |
| 11586 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11587 | ; |
| 11588 | return 0; |
| 11589 | } |
| 11590 | _ACEOF |
| 11591 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11592 | if { (ac_try="$ac_compile" |
| 11593 | case "(($ac_try" in |
| 11594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11595 | *) ac_try_echo=$ac_try;; |
| 11596 | esac |
| 11597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11598 | $as_echo "$ac_try_echo") >&5 |
| 11599 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11600 | ac_status=$? |
| 11601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11602 | rm -f conftest.er1 |
| 11603 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11605 | (exit $ac_status); } && { |
| 11606 | test -z "$ac_c_werror_flag" || |
| 11607 | test ! -s conftest.err |
| 11608 | } && test -s conftest.$ac_objext; then |
| 11609 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11610 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11611 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11612 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11613 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11614 | ac_cv_type_mode_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11615 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11616 | |
| 11617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11618 | else |
| 11619 | $as_echo "$as_me: failed program was:" >&5 |
| 11620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11621 | |
| 11622 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11623 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11624 | |
| 11625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11626 | fi |
| 11627 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 11628 | $as_echo "$ac_cv_type_mode_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11629 | if test $ac_cv_type_mode_t = yes; then |
| 11630 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11631 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11632 | |
| 11633 | cat >>confdefs.h <<_ACEOF |
| 11634 | #define mode_t int |
| 11635 | _ACEOF |
| 11636 | |
| 11637 | fi |
| 11638 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11639 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 11640 | $as_echo_n "checking for off_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11641 | if test "${ac_cv_type_off_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11642 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11643 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11644 | ac_cv_type_off_t=no |
| 11645 | cat >conftest.$ac_ext <<_ACEOF |
| 11646 | /* confdefs.h. */ |
| 11647 | _ACEOF |
| 11648 | cat confdefs.h >>conftest.$ac_ext |
| 11649 | cat >>conftest.$ac_ext <<_ACEOF |
| 11650 | /* end confdefs.h. */ |
| 11651 | $ac_includes_default |
| 11652 | int |
| 11653 | main () |
| 11654 | { |
| 11655 | if (sizeof (off_t)) |
| 11656 | return 0; |
| 11657 | ; |
| 11658 | return 0; |
| 11659 | } |
| 11660 | _ACEOF |
| 11661 | rm -f conftest.$ac_objext |
| 11662 | if { (ac_try="$ac_compile" |
| 11663 | case "(($ac_try" in |
| 11664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11665 | *) ac_try_echo=$ac_try;; |
| 11666 | esac |
| 11667 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11668 | $as_echo "$ac_try_echo") >&5 |
| 11669 | (eval "$ac_compile") 2>conftest.er1 |
| 11670 | ac_status=$? |
| 11671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11672 | rm -f conftest.er1 |
| 11673 | cat conftest.err >&5 |
| 11674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11675 | (exit $ac_status); } && { |
| 11676 | test -z "$ac_c_werror_flag" || |
| 11677 | test ! -s conftest.err |
| 11678 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11679 | cat >conftest.$ac_ext <<_ACEOF |
| 11680 | /* confdefs.h. */ |
| 11681 | _ACEOF |
| 11682 | cat confdefs.h >>conftest.$ac_ext |
| 11683 | cat >>conftest.$ac_ext <<_ACEOF |
| 11684 | /* end confdefs.h. */ |
| 11685 | $ac_includes_default |
| 11686 | int |
| 11687 | main () |
| 11688 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11689 | if (sizeof ((off_t))) |
| 11690 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11691 | ; |
| 11692 | return 0; |
| 11693 | } |
| 11694 | _ACEOF |
| 11695 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11696 | if { (ac_try="$ac_compile" |
| 11697 | case "(($ac_try" in |
| 11698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11699 | *) ac_try_echo=$ac_try;; |
| 11700 | esac |
| 11701 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11702 | $as_echo "$ac_try_echo") >&5 |
| 11703 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11704 | ac_status=$? |
| 11705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11706 | rm -f conftest.er1 |
| 11707 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11708 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11709 | (exit $ac_status); } && { |
| 11710 | test -z "$ac_c_werror_flag" || |
| 11711 | test ! -s conftest.err |
| 11712 | } && test -s conftest.$ac_objext; then |
| 11713 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11714 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11715 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11716 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11717 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11718 | ac_cv_type_off_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11719 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11720 | |
| 11721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11722 | else |
| 11723 | $as_echo "$as_me: failed program was:" >&5 |
| 11724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11725 | |
| 11726 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11727 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11728 | |
| 11729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11730 | fi |
| 11731 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 11732 | $as_echo "$ac_cv_type_off_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11733 | if test $ac_cv_type_off_t = yes; then |
| 11734 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11735 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11736 | |
| 11737 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11738 | #define off_t long int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11739 | _ACEOF |
| 11740 | |
| 11741 | fi |
| 11742 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11743 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 11744 | $as_echo_n "checking for pid_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11745 | if test "${ac_cv_type_pid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11746 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11747 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11748 | ac_cv_type_pid_t=no |
| 11749 | cat >conftest.$ac_ext <<_ACEOF |
| 11750 | /* confdefs.h. */ |
| 11751 | _ACEOF |
| 11752 | cat confdefs.h >>conftest.$ac_ext |
| 11753 | cat >>conftest.$ac_ext <<_ACEOF |
| 11754 | /* end confdefs.h. */ |
| 11755 | $ac_includes_default |
| 11756 | int |
| 11757 | main () |
| 11758 | { |
| 11759 | if (sizeof (pid_t)) |
| 11760 | return 0; |
| 11761 | ; |
| 11762 | return 0; |
| 11763 | } |
| 11764 | _ACEOF |
| 11765 | rm -f conftest.$ac_objext |
| 11766 | if { (ac_try="$ac_compile" |
| 11767 | case "(($ac_try" in |
| 11768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11769 | *) ac_try_echo=$ac_try;; |
| 11770 | esac |
| 11771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11772 | $as_echo "$ac_try_echo") >&5 |
| 11773 | (eval "$ac_compile") 2>conftest.er1 |
| 11774 | ac_status=$? |
| 11775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11776 | rm -f conftest.er1 |
| 11777 | cat conftest.err >&5 |
| 11778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11779 | (exit $ac_status); } && { |
| 11780 | test -z "$ac_c_werror_flag" || |
| 11781 | test ! -s conftest.err |
| 11782 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11783 | cat >conftest.$ac_ext <<_ACEOF |
| 11784 | /* confdefs.h. */ |
| 11785 | _ACEOF |
| 11786 | cat confdefs.h >>conftest.$ac_ext |
| 11787 | cat >>conftest.$ac_ext <<_ACEOF |
| 11788 | /* end confdefs.h. */ |
| 11789 | $ac_includes_default |
| 11790 | int |
| 11791 | main () |
| 11792 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11793 | if (sizeof ((pid_t))) |
| 11794 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11795 | ; |
| 11796 | return 0; |
| 11797 | } |
| 11798 | _ACEOF |
| 11799 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11800 | if { (ac_try="$ac_compile" |
| 11801 | case "(($ac_try" in |
| 11802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11803 | *) ac_try_echo=$ac_try;; |
| 11804 | esac |
| 11805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11806 | $as_echo "$ac_try_echo") >&5 |
| 11807 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11808 | ac_status=$? |
| 11809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11810 | rm -f conftest.er1 |
| 11811 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11813 | (exit $ac_status); } && { |
| 11814 | test -z "$ac_c_werror_flag" || |
| 11815 | test ! -s conftest.err |
| 11816 | } && test -s conftest.$ac_objext; then |
| 11817 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11818 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11819 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11820 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11821 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11822 | ac_cv_type_pid_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11823 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11824 | |
| 11825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11826 | else |
| 11827 | $as_echo "$as_me: failed program was:" >&5 |
| 11828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11829 | |
| 11830 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11831 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11832 | |
| 11833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11834 | fi |
| 11835 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 11836 | $as_echo "$ac_cv_type_pid_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11837 | if test $ac_cv_type_pid_t = yes; then |
| 11838 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11839 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11840 | |
| 11841 | cat >>confdefs.h <<_ACEOF |
| 11842 | #define pid_t int |
| 11843 | _ACEOF |
| 11844 | |
| 11845 | fi |
| 11846 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11847 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 11848 | $as_echo_n "checking for size_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11849 | if test "${ac_cv_type_size_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11850 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11851 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11852 | ac_cv_type_size_t=no |
| 11853 | cat >conftest.$ac_ext <<_ACEOF |
| 11854 | /* confdefs.h. */ |
| 11855 | _ACEOF |
| 11856 | cat confdefs.h >>conftest.$ac_ext |
| 11857 | cat >>conftest.$ac_ext <<_ACEOF |
| 11858 | /* end confdefs.h. */ |
| 11859 | $ac_includes_default |
| 11860 | int |
| 11861 | main () |
| 11862 | { |
| 11863 | if (sizeof (size_t)) |
| 11864 | return 0; |
| 11865 | ; |
| 11866 | return 0; |
| 11867 | } |
| 11868 | _ACEOF |
| 11869 | rm -f conftest.$ac_objext |
| 11870 | if { (ac_try="$ac_compile" |
| 11871 | case "(($ac_try" in |
| 11872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11873 | *) ac_try_echo=$ac_try;; |
| 11874 | esac |
| 11875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11876 | $as_echo "$ac_try_echo") >&5 |
| 11877 | (eval "$ac_compile") 2>conftest.er1 |
| 11878 | ac_status=$? |
| 11879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11880 | rm -f conftest.er1 |
| 11881 | cat conftest.err >&5 |
| 11882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11883 | (exit $ac_status); } && { |
| 11884 | test -z "$ac_c_werror_flag" || |
| 11885 | test ! -s conftest.err |
| 11886 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11887 | cat >conftest.$ac_ext <<_ACEOF |
| 11888 | /* confdefs.h. */ |
| 11889 | _ACEOF |
| 11890 | cat confdefs.h >>conftest.$ac_ext |
| 11891 | cat >>conftest.$ac_ext <<_ACEOF |
| 11892 | /* end confdefs.h. */ |
| 11893 | $ac_includes_default |
| 11894 | int |
| 11895 | main () |
| 11896 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11897 | if (sizeof ((size_t))) |
| 11898 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11899 | ; |
| 11900 | return 0; |
| 11901 | } |
| 11902 | _ACEOF |
| 11903 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11904 | if { (ac_try="$ac_compile" |
| 11905 | case "(($ac_try" in |
| 11906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11907 | *) ac_try_echo=$ac_try;; |
| 11908 | esac |
| 11909 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11910 | $as_echo "$ac_try_echo") >&5 |
| 11911 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11912 | ac_status=$? |
| 11913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11914 | rm -f conftest.er1 |
| 11915 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11917 | (exit $ac_status); } && { |
| 11918 | test -z "$ac_c_werror_flag" || |
| 11919 | test ! -s conftest.err |
| 11920 | } && test -s conftest.$ac_objext; then |
| 11921 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11922 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11923 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11924 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11925 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11926 | ac_cv_type_size_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11927 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11928 | |
| 11929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11930 | else |
| 11931 | $as_echo "$as_me: failed program was:" >&5 |
| 11932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11933 | |
| 11934 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11935 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11936 | |
| 11937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11938 | fi |
| 11939 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11940 | $as_echo "$ac_cv_type_size_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11941 | if test $ac_cv_type_size_t = yes; then |
| 11942 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11943 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11944 | |
| 11945 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11946 | #define size_t unsigned int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11947 | _ACEOF |
| 11948 | |
| 11949 | fi |
| 11950 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11951 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11952 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11953 | if test "${ac_cv_type_uid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11954 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11955 | else |
| 11956 | cat >conftest.$ac_ext <<_ACEOF |
| 11957 | /* confdefs.h. */ |
| 11958 | _ACEOF |
| 11959 | cat confdefs.h >>conftest.$ac_ext |
| 11960 | cat >>conftest.$ac_ext <<_ACEOF |
| 11961 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11962 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11963 | |
| 11964 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11966 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11967 | ac_cv_type_uid_t=yes |
| 11968 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11969 | ac_cv_type_uid_t=no |
| 11970 | fi |
| 11971 | rm -f conftest* |
| 11972 | |
| 11973 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11974 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 11975 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11976 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11977 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11978 | cat >>confdefs.h <<\_ACEOF |
| 11979 | #define uid_t int |
| 11980 | _ACEOF |
| 11981 | |
| 11982 | |
| 11983 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11984 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11985 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11986 | |
| 11987 | fi |
| 11988 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11989 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 11990 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11991 | if test "${ac_cv_header_time+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11992 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11993 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11994 | cat >conftest.$ac_ext <<_ACEOF |
| 11995 | /* confdefs.h. */ |
| 11996 | _ACEOF |
| 11997 | cat confdefs.h >>conftest.$ac_ext |
| 11998 | cat >>conftest.$ac_ext <<_ACEOF |
| 11999 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12000 | #include <sys/types.h> |
| 12001 | #include <sys/time.h> |
| 12002 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12003 | |
| 12004 | int |
| 12005 | main () |
| 12006 | { |
| 12007 | if ((struct tm *) 0) |
| 12008 | return 0; |
| 12009 | ; |
| 12010 | return 0; |
| 12011 | } |
| 12012 | _ACEOF |
| 12013 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12014 | if { (ac_try="$ac_compile" |
| 12015 | case "(($ac_try" in |
| 12016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12017 | *) ac_try_echo=$ac_try;; |
| 12018 | esac |
| 12019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12020 | $as_echo "$ac_try_echo") >&5 |
| 12021 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12022 | ac_status=$? |
| 12023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12024 | rm -f conftest.er1 |
| 12025 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12027 | (exit $ac_status); } && { |
| 12028 | test -z "$ac_c_werror_flag" || |
| 12029 | test ! -s conftest.err |
| 12030 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12031 | ac_cv_header_time=yes |
| 12032 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12033 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12034 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12035 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12036 | ac_cv_header_time=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12037 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12038 | |
| 12039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12040 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12041 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12042 | $as_echo "$ac_cv_header_time" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12043 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12044 | |
| 12045 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12046 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12047 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12048 | |
| 12049 | fi |
| 12050 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12051 | { $as_echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 12052 | $as_echo_n "checking for ino_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12053 | if test "${ac_cv_type_ino_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12054 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12055 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12056 | ac_cv_type_ino_t=no |
| 12057 | cat >conftest.$ac_ext <<_ACEOF |
| 12058 | /* confdefs.h. */ |
| 12059 | _ACEOF |
| 12060 | cat confdefs.h >>conftest.$ac_ext |
| 12061 | cat >>conftest.$ac_ext <<_ACEOF |
| 12062 | /* end confdefs.h. */ |
| 12063 | $ac_includes_default |
| 12064 | int |
| 12065 | main () |
| 12066 | { |
| 12067 | if (sizeof (ino_t)) |
| 12068 | return 0; |
| 12069 | ; |
| 12070 | return 0; |
| 12071 | } |
| 12072 | _ACEOF |
| 12073 | rm -f conftest.$ac_objext |
| 12074 | if { (ac_try="$ac_compile" |
| 12075 | case "(($ac_try" in |
| 12076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12077 | *) ac_try_echo=$ac_try;; |
| 12078 | esac |
| 12079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12080 | $as_echo "$ac_try_echo") >&5 |
| 12081 | (eval "$ac_compile") 2>conftest.er1 |
| 12082 | ac_status=$? |
| 12083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12084 | rm -f conftest.er1 |
| 12085 | cat conftest.err >&5 |
| 12086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12087 | (exit $ac_status); } && { |
| 12088 | test -z "$ac_c_werror_flag" || |
| 12089 | test ! -s conftest.err |
| 12090 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12091 | cat >conftest.$ac_ext <<_ACEOF |
| 12092 | /* confdefs.h. */ |
| 12093 | _ACEOF |
| 12094 | cat confdefs.h >>conftest.$ac_ext |
| 12095 | cat >>conftest.$ac_ext <<_ACEOF |
| 12096 | /* end confdefs.h. */ |
| 12097 | $ac_includes_default |
| 12098 | int |
| 12099 | main () |
| 12100 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12101 | if (sizeof ((ino_t))) |
| 12102 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12103 | ; |
| 12104 | return 0; |
| 12105 | } |
| 12106 | _ACEOF |
| 12107 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12108 | if { (ac_try="$ac_compile" |
| 12109 | case "(($ac_try" in |
| 12110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12111 | *) ac_try_echo=$ac_try;; |
| 12112 | esac |
| 12113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12114 | $as_echo "$ac_try_echo") >&5 |
| 12115 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12116 | ac_status=$? |
| 12117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12118 | rm -f conftest.er1 |
| 12119 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12121 | (exit $ac_status); } && { |
| 12122 | test -z "$ac_c_werror_flag" || |
| 12123 | test ! -s conftest.err |
| 12124 | } && test -s conftest.$ac_objext; then |
| 12125 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12126 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12127 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12128 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12129 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12130 | ac_cv_type_ino_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12131 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12132 | |
| 12133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12134 | else |
| 12135 | $as_echo "$as_me: failed program was:" >&5 |
| 12136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12137 | |
| 12138 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12139 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12140 | |
| 12141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12142 | fi |
| 12143 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 12144 | $as_echo "$ac_cv_type_ino_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12145 | if test $ac_cv_type_ino_t = yes; then |
| 12146 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12147 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12148 | |
| 12149 | cat >>confdefs.h <<_ACEOF |
| 12150 | #define ino_t long |
| 12151 | _ACEOF |
| 12152 | |
| 12153 | fi |
| 12154 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12155 | { $as_echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 12156 | $as_echo_n "checking for dev_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12157 | if test "${ac_cv_type_dev_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12158 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12159 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12160 | ac_cv_type_dev_t=no |
| 12161 | cat >conftest.$ac_ext <<_ACEOF |
| 12162 | /* confdefs.h. */ |
| 12163 | _ACEOF |
| 12164 | cat confdefs.h >>conftest.$ac_ext |
| 12165 | cat >>conftest.$ac_ext <<_ACEOF |
| 12166 | /* end confdefs.h. */ |
| 12167 | $ac_includes_default |
| 12168 | int |
| 12169 | main () |
| 12170 | { |
| 12171 | if (sizeof (dev_t)) |
| 12172 | return 0; |
| 12173 | ; |
| 12174 | return 0; |
| 12175 | } |
| 12176 | _ACEOF |
| 12177 | rm -f conftest.$ac_objext |
| 12178 | if { (ac_try="$ac_compile" |
| 12179 | case "(($ac_try" in |
| 12180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12181 | *) ac_try_echo=$ac_try;; |
| 12182 | esac |
| 12183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12184 | $as_echo "$ac_try_echo") >&5 |
| 12185 | (eval "$ac_compile") 2>conftest.er1 |
| 12186 | ac_status=$? |
| 12187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12188 | rm -f conftest.er1 |
| 12189 | cat conftest.err >&5 |
| 12190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12191 | (exit $ac_status); } && { |
| 12192 | test -z "$ac_c_werror_flag" || |
| 12193 | test ! -s conftest.err |
| 12194 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12195 | cat >conftest.$ac_ext <<_ACEOF |
| 12196 | /* confdefs.h. */ |
| 12197 | _ACEOF |
| 12198 | cat confdefs.h >>conftest.$ac_ext |
| 12199 | cat >>conftest.$ac_ext <<_ACEOF |
| 12200 | /* end confdefs.h. */ |
| 12201 | $ac_includes_default |
| 12202 | int |
| 12203 | main () |
| 12204 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12205 | if (sizeof ((dev_t))) |
| 12206 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12207 | ; |
| 12208 | return 0; |
| 12209 | } |
| 12210 | _ACEOF |
| 12211 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12212 | if { (ac_try="$ac_compile" |
| 12213 | case "(($ac_try" in |
| 12214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12215 | *) ac_try_echo=$ac_try;; |
| 12216 | esac |
| 12217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12218 | $as_echo "$ac_try_echo") >&5 |
| 12219 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12220 | ac_status=$? |
| 12221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12222 | rm -f conftest.er1 |
| 12223 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12225 | (exit $ac_status); } && { |
| 12226 | test -z "$ac_c_werror_flag" || |
| 12227 | test ! -s conftest.err |
| 12228 | } && test -s conftest.$ac_objext; then |
| 12229 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12230 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12231 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12233 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12234 | ac_cv_type_dev_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12235 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12236 | |
| 12237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12238 | else |
| 12239 | $as_echo "$as_me: failed program was:" >&5 |
| 12240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12241 | |
| 12242 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12243 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12244 | |
| 12245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12246 | fi |
| 12247 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 12248 | $as_echo "$ac_cv_type_dev_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12249 | if test $ac_cv_type_dev_t = yes; then |
| 12250 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12251 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12252 | |
| 12253 | cat >>confdefs.h <<_ACEOF |
| 12254 | #define dev_t unsigned |
| 12255 | _ACEOF |
| 12256 | |
| 12257 | fi |
| 12258 | |
| 12259 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12260 | { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 12261 | $as_echo_n "checking for rlim_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12262 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12263 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 12264 | $as_echo "(cached) $ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12265 | else |
| 12266 | cat >conftest.$ac_ext <<_ACEOF |
| 12267 | /* confdefs.h. */ |
| 12268 | _ACEOF |
| 12269 | cat confdefs.h >>conftest.$ac_ext |
| 12270 | cat >>conftest.$ac_ext <<_ACEOF |
| 12271 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12272 | |
| 12273 | #include <sys/types.h> |
| 12274 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12275 | # include <stdlib.h> |
| 12276 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12277 | #endif |
| 12278 | #ifdef HAVE_SYS_RESOURCE_H |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12279 | # include <sys/resource.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12280 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12281 | |
| 12282 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12283 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12284 | $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] | 12285 | ac_cv_type_rlim_t=yes |
| 12286 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12287 | ac_cv_type_rlim_t=no |
| 12288 | fi |
| 12289 | rm -f conftest* |
| 12290 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12291 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 12292 | $as_echo "$ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12293 | fi |
| 12294 | if test $ac_cv_type_rlim_t = no; then |
| 12295 | cat >> confdefs.h <<\EOF |
| 12296 | #define rlim_t unsigned long |
| 12297 | EOF |
| 12298 | fi |
| 12299 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12300 | { $as_echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 12301 | $as_echo_n "checking for stack_t... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12302 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12303 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 12304 | $as_echo "(cached) $ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12305 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12306 | cat >conftest.$ac_ext <<_ACEOF |
| 12307 | /* confdefs.h. */ |
| 12308 | _ACEOF |
| 12309 | cat confdefs.h >>conftest.$ac_ext |
| 12310 | cat >>conftest.$ac_ext <<_ACEOF |
| 12311 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12312 | |
| 12313 | #include <sys/types.h> |
| 12314 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12315 | # include <stdlib.h> |
| 12316 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12317 | #endif |
| 12318 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12319 | |
| 12320 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12322 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12323 | ac_cv_type_stack_t=yes |
| 12324 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12325 | ac_cv_type_stack_t=no |
| 12326 | fi |
| 12327 | rm -f conftest* |
| 12328 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12329 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 12330 | $as_echo "$ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12331 | fi |
| 12332 | if test $ac_cv_type_stack_t = no; then |
| 12333 | cat >> confdefs.h <<\EOF |
| 12334 | #define stack_t struct sigaltstack |
| 12335 | EOF |
| 12336 | fi |
| 12337 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12338 | { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 12339 | $as_echo_n "checking whether stack_t has an ss_base field... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12340 | cat >conftest.$ac_ext <<_ACEOF |
| 12341 | /* confdefs.h. */ |
| 12342 | _ACEOF |
| 12343 | cat confdefs.h >>conftest.$ac_ext |
| 12344 | cat >>conftest.$ac_ext <<_ACEOF |
| 12345 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12346 | |
| 12347 | #include <sys/types.h> |
| 12348 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12349 | # include <stdlib.h> |
| 12350 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12351 | #endif |
| 12352 | #include <signal.h> |
| 12353 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12354 | |
| 12355 | int |
| 12356 | main () |
| 12357 | { |
| 12358 | stack_t sigstk; sigstk.ss_base = 0; |
| 12359 | ; |
| 12360 | return 0; |
| 12361 | } |
| 12362 | _ACEOF |
| 12363 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12364 | if { (ac_try="$ac_compile" |
| 12365 | case "(($ac_try" in |
| 12366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12367 | *) ac_try_echo=$ac_try;; |
| 12368 | esac |
| 12369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12370 | $as_echo "$ac_try_echo") >&5 |
| 12371 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12372 | ac_status=$? |
| 12373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12374 | rm -f conftest.er1 |
| 12375 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); } && { |
| 12378 | test -z "$ac_c_werror_flag" || |
| 12379 | test ! -s conftest.err |
| 12380 | } && test -s conftest.$ac_objext; then |
| 12381 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12382 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12383 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12384 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12385 | |
| 12386 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12387 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12389 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12390 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12391 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12392 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12393 | |
| 12394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12395 | |
| 12396 | olibs="$LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12397 | { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 12398 | $as_echo_n "checking --with-tlib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12399 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12400 | # Check whether --with-tlib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12401 | if test "${with_tlib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12402 | withval=$with_tlib; |
| 12403 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12404 | |
| 12405 | if test -n "$with_tlib"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12406 | { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 12407 | $as_echo "$with_tlib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12408 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12409 | { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 12410 | $as_echo_n "checking for linking with $with_tlib library... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12411 | cat >conftest.$ac_ext <<_ACEOF |
| 12412 | /* confdefs.h. */ |
| 12413 | _ACEOF |
| 12414 | cat confdefs.h >>conftest.$ac_ext |
| 12415 | cat >>conftest.$ac_ext <<_ACEOF |
| 12416 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12417 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12418 | int |
| 12419 | main () |
| 12420 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12421 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12422 | ; |
| 12423 | return 0; |
| 12424 | } |
| 12425 | _ACEOF |
| 12426 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12427 | if { (ac_try="$ac_link" |
| 12428 | case "(($ac_try" in |
| 12429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12430 | *) ac_try_echo=$ac_try;; |
| 12431 | esac |
| 12432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12433 | $as_echo "$ac_try_echo") >&5 |
| 12434 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12435 | ac_status=$? |
| 12436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12437 | rm -f conftest.er1 |
| 12438 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12440 | (exit $ac_status); } && { |
| 12441 | test -z "$ac_c_werror_flag" || |
| 12442 | test ! -s conftest.err |
| 12443 | } && test -s conftest$ac_exeext && { |
| 12444 | test "$cross_compiling" = yes || |
| 12445 | $as_test_x conftest$ac_exeext |
| 12446 | }; then |
| 12447 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 12448 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12449 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12450 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12452 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12453 | { { $as_echo "$as_me:$LINENO: error: FAILED" >&5 |
| 12454 | $as_echo "$as_me: error: FAILED" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12455 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12456 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12457 | |
| 12458 | rm -rf conftest.dSYM |
| 12459 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12460 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12461 | olibs="$LIBS" |
| 12462 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12463 | { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 12464 | $as_echo "empty: automatic terminal library selection" >&6; } |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 12465 | case "`uname -s 2>/dev/null`" in |
| 12466 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12467 | *) tlibs="ncurses termlib termcap curses";; |
| 12468 | esac |
| 12469 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12470 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12471 | as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 12472 | { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 12473 | $as_echo_n "checking for tgetent in -l${libname}... " >&6; } |
| 12474 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12475 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12476 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12477 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12478 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12479 | cat >conftest.$ac_ext <<_ACEOF |
| 12480 | /* confdefs.h. */ |
| 12481 | _ACEOF |
| 12482 | cat confdefs.h >>conftest.$ac_ext |
| 12483 | cat >>conftest.$ac_ext <<_ACEOF |
| 12484 | /* end confdefs.h. */ |
| 12485 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12486 | /* Override any GCC internal prototype to avoid an error. |
| 12487 | Use char because int might match the return type of a GCC |
| 12488 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12489 | #ifdef __cplusplus |
| 12490 | extern "C" |
| 12491 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12492 | char tgetent (); |
| 12493 | int |
| 12494 | main () |
| 12495 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12496 | return tgetent (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12497 | ; |
| 12498 | return 0; |
| 12499 | } |
| 12500 | _ACEOF |
| 12501 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12502 | if { (ac_try="$ac_link" |
| 12503 | case "(($ac_try" in |
| 12504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12505 | *) ac_try_echo=$ac_try;; |
| 12506 | esac |
| 12507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12508 | $as_echo "$ac_try_echo") >&5 |
| 12509 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12510 | ac_status=$? |
| 12511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12512 | rm -f conftest.er1 |
| 12513 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12515 | (exit $ac_status); } && { |
| 12516 | test -z "$ac_c_werror_flag" || |
| 12517 | test ! -s conftest.err |
| 12518 | } && test -s conftest$ac_exeext && { |
| 12519 | test "$cross_compiling" = yes || |
| 12520 | $as_test_x conftest$ac_exeext |
| 12521 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12522 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12523 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12524 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12525 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12526 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12527 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12528 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12529 | |
| 12530 | rm -rf conftest.dSYM |
| 12531 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12532 | conftest$ac_exeext conftest.$ac_ext |
| 12533 | LIBS=$ac_check_lib_save_LIBS |
| 12534 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12535 | ac_res=`eval 'as_val=${'$as_ac_Lib'} |
| 12536 | $as_echo "$as_val"'` |
| 12537 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12538 | $as_echo "$ac_res" >&6; } |
| 12539 | if test `eval 'as_val=${'$as_ac_Lib'} |
| 12540 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12541 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12542 | #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12543 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12544 | |
| 12545 | LIBS="-l${libname} $LIBS" |
| 12546 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12547 | fi |
| 12548 | |
| 12549 | if test "x$olibs" != "x$LIBS"; then |
| 12550 | if test "$cross_compiling" = yes; then |
| 12551 | res="FAIL" |
| 12552 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12553 | cat >conftest.$ac_ext <<_ACEOF |
| 12554 | /* confdefs.h. */ |
| 12555 | _ACEOF |
| 12556 | cat confdefs.h >>conftest.$ac_ext |
| 12557 | cat >>conftest.$ac_ext <<_ACEOF |
| 12558 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12559 | |
| 12560 | #ifdef HAVE_TERMCAP_H |
| 12561 | # include <termcap.h> |
| 12562 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12563 | #if STDC_HEADERS |
| 12564 | # include <stdlib.h> |
| 12565 | # include <stddef.h> |
| 12566 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12567 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12568 | _ACEOF |
| 12569 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12570 | if { (ac_try="$ac_link" |
| 12571 | case "(($ac_try" in |
| 12572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12573 | *) ac_try_echo=$ac_try;; |
| 12574 | esac |
| 12575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12576 | $as_echo "$ac_try_echo") >&5 |
| 12577 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12578 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12580 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12581 | { (case "(($ac_try" in |
| 12582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12583 | *) ac_try_echo=$ac_try;; |
| 12584 | esac |
| 12585 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12586 | $as_echo "$ac_try_echo") >&5 |
| 12587 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12588 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12590 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12591 | res="OK" |
| 12592 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12593 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12594 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12595 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12596 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12597 | ( exit $ac_status ) |
| 12598 | res="FAIL" |
| 12599 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12600 | rm -rf conftest.dSYM |
| 12601 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12602 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12603 | |
| 12604 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12605 | if test "$res" = "OK"; then |
| 12606 | break |
| 12607 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12608 | { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 12609 | $as_echo "$libname library is not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12610 | LIBS="$olibs" |
| 12611 | fi |
| 12612 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12613 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12614 | { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 12615 | $as_echo "no terminal library found" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12616 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12617 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12618 | |
| 12619 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12620 | { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 12621 | $as_echo_n "checking for tgetent()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12622 | cat >conftest.$ac_ext <<_ACEOF |
| 12623 | /* confdefs.h. */ |
| 12624 | _ACEOF |
| 12625 | cat confdefs.h >>conftest.$ac_ext |
| 12626 | cat >>conftest.$ac_ext <<_ACEOF |
| 12627 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12628 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12629 | int |
| 12630 | main () |
| 12631 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12632 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12633 | ; |
| 12634 | return 0; |
| 12635 | } |
| 12636 | _ACEOF |
| 12637 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12638 | if { (ac_try="$ac_link" |
| 12639 | case "(($ac_try" in |
| 12640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12641 | *) ac_try_echo=$ac_try;; |
| 12642 | esac |
| 12643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12644 | $as_echo "$ac_try_echo") >&5 |
| 12645 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12646 | ac_status=$? |
| 12647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12648 | rm -f conftest.er1 |
| 12649 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12651 | (exit $ac_status); } && { |
| 12652 | test -z "$ac_c_werror_flag" || |
| 12653 | test ! -s conftest.err |
| 12654 | } && test -s conftest$ac_exeext && { |
| 12655 | test "$cross_compiling" = yes || |
| 12656 | $as_test_x conftest$ac_exeext |
| 12657 | }; then |
| 12658 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12659 | $as_echo "yes" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12660 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12661 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12663 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12664 | { { $as_echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12665 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12666 | Or specify the name of the library with --with-tlib." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12667 | $as_echo "$as_me: error: NOT FOUND! |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12668 | You need to install a terminal library; for example ncurses. |
| 12669 | Or specify the name of the library with --with-tlib." >&2;} |
| 12670 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12671 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12672 | |
| 12673 | rm -rf conftest.dSYM |
| 12674 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12675 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12676 | fi |
| 12677 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12678 | { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 12679 | $as_echo_n "checking whether we talk terminfo... " >&6; } |
| 12680 | if test "${vim_cv_terminfo+set}" = set; then |
| 12681 | $as_echo_n "(cached) " >&6 |
| 12682 | else |
| 12683 | |
| 12684 | if test "$cross_compiling" = yes; then |
| 12685 | |
| 12686 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5 |
| 12687 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12688 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12689 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12690 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12691 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12692 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12693 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12694 | #ifdef HAVE_TERMCAP_H |
| 12695 | # include <termcap.h> |
| 12696 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12697 | #ifdef HAVE_STRING_H |
| 12698 | # include <string.h> |
| 12699 | #endif |
| 12700 | #if STDC_HEADERS |
| 12701 | # include <stdlib.h> |
| 12702 | # include <stddef.h> |
| 12703 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12704 | main() |
| 12705 | {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12706 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12707 | _ACEOF |
| 12708 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12709 | if { (ac_try="$ac_link" |
| 12710 | case "(($ac_try" in |
| 12711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12712 | *) ac_try_echo=$ac_try;; |
| 12713 | esac |
| 12714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12715 | $as_echo "$ac_try_echo") >&5 |
| 12716 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12717 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12720 | { (case "(($ac_try" in |
| 12721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12722 | *) ac_try_echo=$ac_try;; |
| 12723 | esac |
| 12724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12725 | $as_echo "$ac_try_echo") >&5 |
| 12726 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12727 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12729 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12730 | |
| 12731 | vim_cv_terminfo=no |
| 12732 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12733 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12734 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12735 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12737 | |
| 12738 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12739 | |
| 12740 | vim_cv_terminfo=yes |
| 12741 | |
| 12742 | fi |
| 12743 | rm -rf conftest.dSYM |
| 12744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12745 | fi |
| 12746 | |
| 12747 | |
| 12748 | |
| 12749 | fi |
| 12750 | { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5 |
| 12751 | $as_echo "$vim_cv_terminfo" >&6; } |
| 12752 | |
| 12753 | if test "x$vim_cv_terminfo" = "xyes" ; then |
| 12754 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12755 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12756 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12757 | |
| 12758 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12759 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12760 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12761 | { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 12762 | $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } |
| 12763 | if test "${vim_cv_tgent+set}" = set; then |
| 12764 | $as_echo_n "(cached) " >&6 |
| 12765 | else |
| 12766 | |
| 12767 | if test "$cross_compiling" = yes; then |
| 12768 | |
| 12769 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 12770 | $as_echo "$as_me: error: failed to compile test program." >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12771 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12772 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12773 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12774 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12775 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12776 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12777 | #ifdef HAVE_TERMCAP_H |
| 12778 | # include <termcap.h> |
| 12779 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12780 | #if STDC_HEADERS |
| 12781 | # include <stdlib.h> |
| 12782 | # include <stddef.h> |
| 12783 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12784 | main() |
| 12785 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12786 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12787 | _ACEOF |
| 12788 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12789 | if { (ac_try="$ac_link" |
| 12790 | case "(($ac_try" in |
| 12791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12792 | *) ac_try_echo=$ac_try;; |
| 12793 | esac |
| 12794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12795 | $as_echo "$ac_try_echo") >&5 |
| 12796 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12797 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12799 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12800 | { (case "(($ac_try" in |
| 12801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12802 | *) ac_try_echo=$ac_try;; |
| 12803 | esac |
| 12804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12805 | $as_echo "$ac_try_echo") >&5 |
| 12806 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12807 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12809 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12810 | |
| 12811 | vim_cv_tgent=zero |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12812 | |
| 12813 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12814 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12815 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12817 | |
| 12818 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12819 | |
| 12820 | vim_cv_tgent=non-zero |
| 12821 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12822 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12823 | rm -rf conftest.dSYM |
| 12824 | rm -f core *.core core.conftest.* 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] | 12825 | fi |
| 12826 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12827 | |
| 12828 | |
| 12829 | fi |
| 12830 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5 |
| 12831 | $as_echo "$vim_cv_tgent" >&6; } |
| 12832 | |
| 12833 | if test "x$vim_cv_tgent" = "xzero" ; then |
| 12834 | cat >>confdefs.h <<\_ACEOF |
| 12835 | #define TGETENT_ZERO_ERR 0 |
| 12836 | _ACEOF |
| 12837 | |
| 12838 | fi |
| 12839 | fi |
| 12840 | |
| 12841 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 12842 | $as_echo_n "checking whether termcap.h contains ospeed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12843 | cat >conftest.$ac_ext <<_ACEOF |
| 12844 | /* confdefs.h. */ |
| 12845 | _ACEOF |
| 12846 | cat confdefs.h >>conftest.$ac_ext |
| 12847 | cat >>conftest.$ac_ext <<_ACEOF |
| 12848 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12849 | |
| 12850 | #ifdef HAVE_TERMCAP_H |
| 12851 | # include <termcap.h> |
| 12852 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12853 | |
| 12854 | int |
| 12855 | main () |
| 12856 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12857 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12858 | ; |
| 12859 | return 0; |
| 12860 | } |
| 12861 | _ACEOF |
| 12862 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12863 | if { (ac_try="$ac_link" |
| 12864 | case "(($ac_try" in |
| 12865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12866 | *) ac_try_echo=$ac_try;; |
| 12867 | esac |
| 12868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12869 | $as_echo "$ac_try_echo") >&5 |
| 12870 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12871 | ac_status=$? |
| 12872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12873 | rm -f conftest.er1 |
| 12874 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12876 | (exit $ac_status); } && { |
| 12877 | test -z "$ac_c_werror_flag" || |
| 12878 | test ! -s conftest.err |
| 12879 | } && test -s conftest$ac_exeext && { |
| 12880 | test "$cross_compiling" = yes || |
| 12881 | $as_test_x conftest$ac_exeext |
| 12882 | }; then |
| 12883 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12884 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12885 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12886 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12887 | |
| 12888 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12889 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12891 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12892 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12893 | $as_echo "no" >&6; } |
| 12894 | { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 12895 | $as_echo_n "checking whether ospeed can be extern... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12896 | cat >conftest.$ac_ext <<_ACEOF |
| 12897 | /* confdefs.h. */ |
| 12898 | _ACEOF |
| 12899 | cat confdefs.h >>conftest.$ac_ext |
| 12900 | cat >>conftest.$ac_ext <<_ACEOF |
| 12901 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12902 | |
| 12903 | #ifdef HAVE_TERMCAP_H |
| 12904 | # include <termcap.h> |
| 12905 | #endif |
| 12906 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12907 | |
| 12908 | int |
| 12909 | main () |
| 12910 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12911 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12912 | ; |
| 12913 | return 0; |
| 12914 | } |
| 12915 | _ACEOF |
| 12916 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12917 | if { (ac_try="$ac_link" |
| 12918 | case "(($ac_try" in |
| 12919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12920 | *) ac_try_echo=$ac_try;; |
| 12921 | esac |
| 12922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12923 | $as_echo "$ac_try_echo") >&5 |
| 12924 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12925 | ac_status=$? |
| 12926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12927 | rm -f conftest.er1 |
| 12928 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12930 | (exit $ac_status); } && { |
| 12931 | test -z "$ac_c_werror_flag" || |
| 12932 | test ! -s conftest.err |
| 12933 | } && test -s conftest$ac_exeext && { |
| 12934 | test "$cross_compiling" = yes || |
| 12935 | $as_test_x conftest$ac_exeext |
| 12936 | }; then |
| 12937 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12938 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12939 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12940 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12941 | |
| 12942 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12943 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12944 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12945 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12946 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12947 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12948 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12949 | |
| 12950 | rm -rf conftest.dSYM |
| 12951 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12952 | conftest$ac_exeext conftest.$ac_ext |
| 12953 | |
| 12954 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12955 | |
| 12956 | rm -rf conftest.dSYM |
| 12957 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12958 | conftest$ac_exeext conftest.$ac_ext |
| 12959 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12960 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 12961 | $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12962 | cat >conftest.$ac_ext <<_ACEOF |
| 12963 | /* confdefs.h. */ |
| 12964 | _ACEOF |
| 12965 | cat confdefs.h >>conftest.$ac_ext |
| 12966 | cat >>conftest.$ac_ext <<_ACEOF |
| 12967 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12968 | |
| 12969 | #ifdef HAVE_TERMCAP_H |
| 12970 | # include <termcap.h> |
| 12971 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12972 | |
| 12973 | int |
| 12974 | main () |
| 12975 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12976 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12977 | ; |
| 12978 | return 0; |
| 12979 | } |
| 12980 | _ACEOF |
| 12981 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12982 | if { (ac_try="$ac_link" |
| 12983 | case "(($ac_try" in |
| 12984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12985 | *) ac_try_echo=$ac_try;; |
| 12986 | esac |
| 12987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12988 | $as_echo "$ac_try_echo") >&5 |
| 12989 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12990 | ac_status=$? |
| 12991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12992 | rm -f conftest.er1 |
| 12993 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); } && { |
| 12996 | test -z "$ac_c_werror_flag" || |
| 12997 | test ! -s conftest.err |
| 12998 | } && test -s conftest$ac_exeext && { |
| 12999 | test "$cross_compiling" = yes || |
| 13000 | $as_test_x conftest$ac_exeext |
| 13001 | }; then |
| 13002 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13003 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13004 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13005 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13006 | |
| 13007 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13008 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13010 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13011 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13012 | $as_echo "no" >&6; } |
| 13013 | { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 13014 | $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13015 | cat >conftest.$ac_ext <<_ACEOF |
| 13016 | /* confdefs.h. */ |
| 13017 | _ACEOF |
| 13018 | cat confdefs.h >>conftest.$ac_ext |
| 13019 | cat >>conftest.$ac_ext <<_ACEOF |
| 13020 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13021 | |
| 13022 | #ifdef HAVE_TERMCAP_H |
| 13023 | # include <termcap.h> |
| 13024 | #endif |
| 13025 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13026 | |
| 13027 | int |
| 13028 | main () |
| 13029 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13030 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13031 | ; |
| 13032 | return 0; |
| 13033 | } |
| 13034 | _ACEOF |
| 13035 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13036 | if { (ac_try="$ac_link" |
| 13037 | case "(($ac_try" in |
| 13038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13039 | *) ac_try_echo=$ac_try;; |
| 13040 | esac |
| 13041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13042 | $as_echo "$ac_try_echo") >&5 |
| 13043 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13044 | ac_status=$? |
| 13045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13046 | rm -f conftest.er1 |
| 13047 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13049 | (exit $ac_status); } && { |
| 13050 | test -z "$ac_c_werror_flag" || |
| 13051 | test ! -s conftest.err |
| 13052 | } && test -s conftest$ac_exeext && { |
| 13053 | test "$cross_compiling" = yes || |
| 13054 | $as_test_x conftest$ac_exeext |
| 13055 | }; then |
| 13056 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13057 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13058 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13059 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13060 | |
| 13061 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13062 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13063 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13064 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13065 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13066 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13067 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13068 | |
| 13069 | rm -rf conftest.dSYM |
| 13070 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13071 | conftest$ac_exeext conftest.$ac_ext |
| 13072 | |
| 13073 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13074 | |
| 13075 | rm -rf conftest.dSYM |
| 13076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13077 | conftest$ac_exeext conftest.$ac_ext |
| 13078 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13079 | { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 13080 | $as_echo_n "checking whether tputs() uses outfuntype... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13081 | cat >conftest.$ac_ext <<_ACEOF |
| 13082 | /* confdefs.h. */ |
| 13083 | _ACEOF |
| 13084 | cat confdefs.h >>conftest.$ac_ext |
| 13085 | cat >>conftest.$ac_ext <<_ACEOF |
| 13086 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13087 | |
| 13088 | #ifdef HAVE_TERMCAP_H |
| 13089 | # include <termcap.h> |
| 13090 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13091 | |
| 13092 | int |
| 13093 | main () |
| 13094 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13095 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13096 | ; |
| 13097 | return 0; |
| 13098 | } |
| 13099 | _ACEOF |
| 13100 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13101 | if { (ac_try="$ac_compile" |
| 13102 | case "(($ac_try" in |
| 13103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13104 | *) ac_try_echo=$ac_try;; |
| 13105 | esac |
| 13106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13107 | $as_echo "$ac_try_echo") >&5 |
| 13108 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13109 | ac_status=$? |
| 13110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13111 | rm -f conftest.er1 |
| 13112 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13114 | (exit $ac_status); } && { |
| 13115 | test -z "$ac_c_werror_flag" || |
| 13116 | test ! -s conftest.err |
| 13117 | } && test -s conftest.$ac_objext; then |
| 13118 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13119 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13120 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13121 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13122 | |
| 13123 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13124 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13125 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13126 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13127 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13128 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13129 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13130 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13132 | |
| 13133 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13134 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13135 | cat >conftest.$ac_ext <<_ACEOF |
| 13136 | /* confdefs.h. */ |
| 13137 | _ACEOF |
| 13138 | cat confdefs.h >>conftest.$ac_ext |
| 13139 | cat >>conftest.$ac_ext <<_ACEOF |
| 13140 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13141 | |
| 13142 | #include <sys/types.h> |
| 13143 | #include <sys/time.h> |
| 13144 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13145 | int |
| 13146 | main () |
| 13147 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13148 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13149 | ; |
| 13150 | return 0; |
| 13151 | } |
| 13152 | _ACEOF |
| 13153 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13154 | if { (ac_try="$ac_compile" |
| 13155 | case "(($ac_try" in |
| 13156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13157 | *) ac_try_echo=$ac_try;; |
| 13158 | esac |
| 13159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13160 | $as_echo "$ac_try_echo") >&5 |
| 13161 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13162 | ac_status=$? |
| 13163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13164 | rm -f conftest.er1 |
| 13165 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13167 | (exit $ac_status); } && { |
| 13168 | test -z "$ac_c_werror_flag" || |
| 13169 | test ! -s conftest.err |
| 13170 | } && test -s conftest.$ac_objext; then |
| 13171 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13172 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13173 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13174 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13175 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13176 | |
| 13177 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13178 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13180 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13181 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13182 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13183 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13184 | |
| 13185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13186 | |
| 13187 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13188 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 13189 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13190 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13191 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13192 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13193 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13194 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13195 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13196 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13197 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13198 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13199 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13200 | fi |
| 13201 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13202 | { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 13203 | $as_echo_n "checking for SVR4 ptys... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13204 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13205 | cat >conftest.$ac_ext <<_ACEOF |
| 13206 | /* confdefs.h. */ |
| 13207 | _ACEOF |
| 13208 | cat confdefs.h >>conftest.$ac_ext |
| 13209 | cat >>conftest.$ac_ext <<_ACEOF |
| 13210 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13211 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13212 | int |
| 13213 | main () |
| 13214 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13215 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13216 | ; |
| 13217 | return 0; |
| 13218 | } |
| 13219 | _ACEOF |
| 13220 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13221 | if { (ac_try="$ac_link" |
| 13222 | case "(($ac_try" in |
| 13223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13224 | *) ac_try_echo=$ac_try;; |
| 13225 | esac |
| 13226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13227 | $as_echo "$ac_try_echo") >&5 |
| 13228 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13229 | ac_status=$? |
| 13230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13231 | rm -f conftest.er1 |
| 13232 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13234 | (exit $ac_status); } && { |
| 13235 | test -z "$ac_c_werror_flag" || |
| 13236 | test ! -s conftest.err |
| 13237 | } && test -s conftest$ac_exeext && { |
| 13238 | test "$cross_compiling" = yes || |
| 13239 | $as_test_x conftest$ac_exeext |
| 13240 | }; then |
| 13241 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13242 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13243 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13244 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13245 | |
| 13246 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13247 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13249 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13250 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13251 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13252 | fi |
| 13253 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13254 | rm -rf conftest.dSYM |
| 13255 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13256 | conftest$ac_exeext conftest.$ac_ext |
| 13257 | else |
| 13258 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13259 | $as_echo "no" >&6; } |
| 13260 | fi |
| 13261 | |
| 13262 | { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 13263 | $as_echo_n "checking for ptyranges... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13264 | if test -d /dev/ptym ; then |
| 13265 | pdir='/dev/ptym' |
| 13266 | else |
| 13267 | pdir='/dev' |
| 13268 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13269 | cat >conftest.$ac_ext <<_ACEOF |
| 13270 | /* confdefs.h. */ |
| 13271 | _ACEOF |
| 13272 | cat confdefs.h >>conftest.$ac_ext |
| 13273 | cat >>conftest.$ac_ext <<_ACEOF |
| 13274 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13275 | #ifdef M_UNIX |
| 13276 | yes; |
| 13277 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13278 | |
| 13279 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13280 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13281 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13282 | ptys=`echo /dev/ptyp??` |
| 13283 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13284 | ptys=`echo $pdir/pty??` |
| 13285 | fi |
| 13286 | rm -f conftest* |
| 13287 | |
| 13288 | if test "$ptys" != "$pdir/pty??" ; then |
| 13289 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 13290 | 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] | 13291 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13292 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13293 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13294 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13295 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13296 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13297 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13298 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13299 | { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 13300 | $as_echo "$p0 / $p1" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13301 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13302 | { $as_echo "$as_me:$LINENO: result: don't know" >&5 |
| 13303 | $as_echo "don't know" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13304 | fi |
| 13305 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13306 | rm -f conftest_grp |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13307 | { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 13308 | $as_echo_n "checking default tty permissions/group... " >&6; } |
| 13309 | if test "${vim_cv_tty_group+set}" = set; then |
| 13310 | $as_echo_n "(cached) " >&6 |
| 13311 | else |
| 13312 | |
| 13313 | if test "$cross_compiling" = yes; then |
| 13314 | |
| 13315 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5 |
| 13316 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13317 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13318 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13319 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13320 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13321 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13322 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13323 | #include <sys/types.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13324 | #if STDC_HEADERS |
| 13325 | # include <stdlib.h> |
| 13326 | # include <stddef.h> |
| 13327 | #endif |
| 13328 | #ifdef HAVE_UNISTD_H |
| 13329 | #include <unistd.h> |
| 13330 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13331 | #include <sys/stat.h> |
| 13332 | #include <stdio.h> |
| 13333 | main() |
| 13334 | { |
| 13335 | struct stat sb; |
| 13336 | char *x,*ttyname(); |
| 13337 | int om, m; |
| 13338 | FILE *fp; |
| 13339 | |
| 13340 | if (!(x = ttyname(0))) exit(1); |
| 13341 | if (stat(x, &sb)) exit(1); |
| 13342 | om = sb.st_mode; |
| 13343 | if (om & 002) exit(0); |
| 13344 | m = system("mesg y"); |
| 13345 | if (m == -1 || m == 127) exit(1); |
| 13346 | if (stat(x, &sb)) exit(1); |
| 13347 | m = sb.st_mode; |
| 13348 | if (chmod(x, om)) exit(1); |
| 13349 | if (m & 002) exit(0); |
| 13350 | if (sb.st_gid == getgid()) exit(1); |
| 13351 | if (!(fp=fopen("conftest_grp", "w"))) |
| 13352 | exit(1); |
| 13353 | fprintf(fp, "%d\n", sb.st_gid); |
| 13354 | fclose(fp); |
| 13355 | exit(0); |
| 13356 | } |
| 13357 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13358 | _ACEOF |
| 13359 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13360 | if { (ac_try="$ac_link" |
| 13361 | case "(($ac_try" in |
| 13362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13363 | *) ac_try_echo=$ac_try;; |
| 13364 | esac |
| 13365 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13366 | $as_echo "$ac_try_echo") >&5 |
| 13367 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13368 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13370 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13371 | { (case "(($ac_try" in |
| 13372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13373 | *) ac_try_echo=$ac_try;; |
| 13374 | esac |
| 13375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13376 | $as_echo "$ac_try_echo") >&5 |
| 13377 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13378 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13380 | (exit $ac_status); }; }; then |
| 13381 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13382 | if test -f conftest_grp; then |
| 13383 | vim_cv_tty_group=`cat conftest_grp` |
| 13384 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13385 | vim_cv_tty_mode=0620 |
| 13386 | fi |
| 13387 | { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 |
| 13388 | $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } |
| 13389 | else |
| 13390 | vim_cv_tty_group=world |
| 13391 | { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 13392 | $as_echo "ptys are world accessable" >&6; } |
| 13393 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13394 | |
| 13395 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13396 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13397 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13398 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13399 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13400 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13401 | |
| 13402 | vim_cv_tty_group=world |
| 13403 | { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 13404 | $as_echo "can't determine - assume ptys are world accessable" >&6; } |
| 13405 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13406 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13407 | rm -rf conftest.dSYM |
| 13408 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13409 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13410 | |
| 13411 | |
| 13412 | |
| 13413 | fi |
| 13414 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5 |
| 13415 | $as_echo "$vim_cv_tty_group" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13416 | rm -f conftest_grp |
| 13417 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13418 | if test "x$vim_cv_tty_group" != "xworld" ; then |
| 13419 | cat >>confdefs.h <<_ACEOF |
| 13420 | #define PTYGROUP $vim_cv_tty_group |
| 13421 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13422 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13423 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13424 | { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5 |
| 13425 | $as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;} |
| 13426 | { (exit 1); exit 1; }; } |
| 13427 | else |
| 13428 | cat >>confdefs.h <<\_ACEOF |
| 13429 | #define PTYMODE 0620 |
| 13430 | _ACEOF |
| 13431 | |
| 13432 | fi |
| 13433 | fi |
| 13434 | |
| 13435 | |
| 13436 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 13437 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13438 | if test "${ac_cv_type_signal+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13439 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13440 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13441 | cat >conftest.$ac_ext <<_ACEOF |
| 13442 | /* confdefs.h. */ |
| 13443 | _ACEOF |
| 13444 | cat confdefs.h >>conftest.$ac_ext |
| 13445 | cat >>conftest.$ac_ext <<_ACEOF |
| 13446 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13447 | #include <sys/types.h> |
| 13448 | #include <signal.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13449 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13450 | int |
| 13451 | main () |
| 13452 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13453 | return *(signal (0, 0)) (0) == 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13454 | ; |
| 13455 | return 0; |
| 13456 | } |
| 13457 | _ACEOF |
| 13458 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13459 | if { (ac_try="$ac_compile" |
| 13460 | case "(($ac_try" in |
| 13461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13462 | *) ac_try_echo=$ac_try;; |
| 13463 | esac |
| 13464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13465 | $as_echo "$ac_try_echo") >&5 |
| 13466 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13467 | ac_status=$? |
| 13468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13469 | rm -f conftest.er1 |
| 13470 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13472 | (exit $ac_status); } && { |
| 13473 | test -z "$ac_c_werror_flag" || |
| 13474 | test ! -s conftest.err |
| 13475 | } && test -s conftest.$ac_objext; then |
| 13476 | ac_cv_type_signal=int |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13477 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13478 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13479 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13480 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13481 | ac_cv_type_signal=void |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13482 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13483 | |
| 13484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13485 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13486 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 13487 | $as_echo "$ac_cv_type_signal" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13488 | |
| 13489 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13490 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13491 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13492 | |
| 13493 | |
| 13494 | |
| 13495 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13496 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13497 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13498 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13499 | |
| 13500 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13501 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13502 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13503 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13504 | |
| 13505 | fi |
| 13506 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13507 | { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 13508 | $as_echo_n "checking for struct sigcontext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13509 | cat >conftest.$ac_ext <<_ACEOF |
| 13510 | /* confdefs.h. */ |
| 13511 | _ACEOF |
| 13512 | cat confdefs.h >>conftest.$ac_ext |
| 13513 | cat >>conftest.$ac_ext <<_ACEOF |
| 13514 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13515 | |
| 13516 | #include <signal.h> |
| 13517 | test_sig() |
| 13518 | { |
| 13519 | struct sigcontext *scont; |
| 13520 | scont = (struct sigcontext *)0; |
| 13521 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13522 | } |
| 13523 | int |
| 13524 | main () |
| 13525 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13526 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13527 | ; |
| 13528 | return 0; |
| 13529 | } |
| 13530 | _ACEOF |
| 13531 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13532 | if { (ac_try="$ac_compile" |
| 13533 | case "(($ac_try" in |
| 13534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13535 | *) ac_try_echo=$ac_try;; |
| 13536 | esac |
| 13537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13538 | $as_echo "$ac_try_echo") >&5 |
| 13539 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13540 | ac_status=$? |
| 13541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13542 | rm -f conftest.er1 |
| 13543 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13545 | (exit $ac_status); } && { |
| 13546 | test -z "$ac_c_werror_flag" || |
| 13547 | test ! -s conftest.err |
| 13548 | } && test -s conftest.$ac_objext; then |
| 13549 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13550 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13551 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13552 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13553 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13554 | |
| 13555 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13556 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13558 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13559 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13560 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13561 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13562 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13564 | |
| 13565 | { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5 |
| 13566 | $as_echo_n "checking getcwd implementation is broken... " >&6; } |
| 13567 | if test "${vim_cv_getcwd_broken+set}" = set; then |
| 13568 | $as_echo_n "(cached) " >&6 |
| 13569 | else |
| 13570 | |
| 13571 | if test "$cross_compiling" = yes; then |
| 13572 | |
| 13573 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5 |
| 13574 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13575 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13576 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13577 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13578 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13579 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13580 | #include "confdefs.h" |
| 13581 | #ifdef HAVE_UNISTD_H |
| 13582 | #include <unistd.h> |
| 13583 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13584 | char *dagger[] = { "IFS=pwd", 0 }; |
| 13585 | main() |
| 13586 | { |
| 13587 | char buffer[500]; |
| 13588 | extern char **environ; |
| 13589 | environ = dagger; |
| 13590 | return getcwd(buffer, 500) ? 0 : 1; |
| 13591 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13592 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13593 | _ACEOF |
| 13594 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13595 | if { (ac_try="$ac_link" |
| 13596 | case "(($ac_try" in |
| 13597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13598 | *) ac_try_echo=$ac_try;; |
| 13599 | esac |
| 13600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13601 | $as_echo "$ac_try_echo") >&5 |
| 13602 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13603 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13605 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13606 | { (case "(($ac_try" in |
| 13607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13608 | *) ac_try_echo=$ac_try;; |
| 13609 | esac |
| 13610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13611 | $as_echo "$ac_try_echo") >&5 |
| 13612 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13613 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13615 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13616 | |
| 13617 | vim_cv_getcwd_broken=no |
| 13618 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13619 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13620 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13621 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13623 | |
| 13624 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13625 | |
| 13626 | vim_cv_getcwd_broken=yes |
| 13627 | |
| 13628 | fi |
| 13629 | rm -rf conftest.dSYM |
| 13630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13631 | fi |
| 13632 | |
| 13633 | |
| 13634 | |
| 13635 | fi |
| 13636 | { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5 |
| 13637 | $as_echo "$vim_cv_getcwd_broken" >&6; } |
| 13638 | |
| 13639 | if test "x$vim_cv_getcwd_broken" = "xyes" ; then |
| 13640 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13641 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13642 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13643 | |
| 13644 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13645 | |
| 13646 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13647 | |
| 13648 | |
| 13649 | |
| 13650 | |
| 13651 | |
| 13652 | |
| 13653 | |
| 13654 | |
| 13655 | |
| 13656 | |
| 13657 | |
| 13658 | |
| 13659 | |
| 13660 | |
| 13661 | |
| 13662 | |
| 13663 | |
| 13664 | |
| 13665 | |
| 13666 | |
| 13667 | |
| 13668 | |
| 13669 | |
| 13670 | |
| 13671 | |
| 13672 | |
| 13673 | |
| 13674 | |
| 13675 | |
| 13676 | |
| 13677 | |
| 13678 | |
| 13679 | |
| 13680 | |
| 13681 | |
| 13682 | |
| 13683 | |
| 13684 | |
| 13685 | |
| 13686 | |
| 13687 | |
| 13688 | |
| 13689 | |
| 13690 | |
| 13691 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13692 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 13693 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 13694 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 13695 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 13696 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 13697 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 13698 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13699 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13700 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13701 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13702 | $as_echo_n "checking for $ac_func... " >&6; } |
| 13703 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13704 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13705 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13706 | cat >conftest.$ac_ext <<_ACEOF |
| 13707 | /* confdefs.h. */ |
| 13708 | _ACEOF |
| 13709 | cat confdefs.h >>conftest.$ac_ext |
| 13710 | cat >>conftest.$ac_ext <<_ACEOF |
| 13711 | /* end confdefs.h. */ |
| 13712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13714 | #define $ac_func innocuous_$ac_func |
| 13715 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13716 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13717 | which can conflict with char $ac_func (); below. |
| 13718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13719 | <limits.h> exists even on freestanding compilers. */ |
| 13720 | |
| 13721 | #ifdef __STDC__ |
| 13722 | # include <limits.h> |
| 13723 | #else |
| 13724 | # include <assert.h> |
| 13725 | #endif |
| 13726 | |
| 13727 | #undef $ac_func |
| 13728 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13729 | /* Override any GCC internal prototype to avoid an error. |
| 13730 | Use char because int might match the return type of a GCC |
| 13731 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13732 | #ifdef __cplusplus |
| 13733 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13734 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13735 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13736 | /* The GNU C library defines this for functions which it implements |
| 13737 | to always fail with ENOSYS. Some functions are actually named |
| 13738 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13739 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13740 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13741 | #endif |
| 13742 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13743 | int |
| 13744 | main () |
| 13745 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13746 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13747 | ; |
| 13748 | return 0; |
| 13749 | } |
| 13750 | _ACEOF |
| 13751 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13752 | if { (ac_try="$ac_link" |
| 13753 | case "(($ac_try" in |
| 13754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13755 | *) ac_try_echo=$ac_try;; |
| 13756 | esac |
| 13757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13758 | $as_echo "$ac_try_echo") >&5 |
| 13759 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13760 | ac_status=$? |
| 13761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13762 | rm -f conftest.er1 |
| 13763 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13764 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13765 | (exit $ac_status); } && { |
| 13766 | test -z "$ac_c_werror_flag" || |
| 13767 | test ! -s conftest.err |
| 13768 | } && test -s conftest$ac_exeext && { |
| 13769 | test "$cross_compiling" = yes || |
| 13770 | $as_test_x conftest$ac_exeext |
| 13771 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13772 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13773 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13774 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13775 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13776 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13777 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13778 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13779 | |
| 13780 | rm -rf conftest.dSYM |
| 13781 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13782 | conftest$ac_exeext conftest.$ac_ext |
| 13783 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13784 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 13785 | $as_echo "$as_val"'` |
| 13786 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13787 | $as_echo "$ac_res" >&6; } |
| 13788 | if test `eval 'as_val=${'$as_ac_var'} |
| 13789 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13790 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13791 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13792 | _ACEOF |
| 13793 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13794 | fi |
| 13795 | done |
| 13796 | |
| 13797 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13798 | { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 13799 | $as_echo_n "checking for st_blksize... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13800 | cat >conftest.$ac_ext <<_ACEOF |
| 13801 | /* confdefs.h. */ |
| 13802 | _ACEOF |
| 13803 | cat confdefs.h >>conftest.$ac_ext |
| 13804 | cat >>conftest.$ac_ext <<_ACEOF |
| 13805 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13806 | #include <sys/types.h> |
| 13807 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13808 | int |
| 13809 | main () |
| 13810 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13811 | struct stat st; |
| 13812 | int n; |
| 13813 | |
| 13814 | stat("/", &st); |
| 13815 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13816 | ; |
| 13817 | return 0; |
| 13818 | } |
| 13819 | _ACEOF |
| 13820 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13821 | if { (ac_try="$ac_compile" |
| 13822 | case "(($ac_try" in |
| 13823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13824 | *) ac_try_echo=$ac_try;; |
| 13825 | esac |
| 13826 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13827 | $as_echo "$ac_try_echo") >&5 |
| 13828 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13829 | ac_status=$? |
| 13830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13831 | rm -f conftest.er1 |
| 13832 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13834 | (exit $ac_status); } && { |
| 13835 | test -z "$ac_c_werror_flag" || |
| 13836 | test ! -s conftest.err |
| 13837 | } && test -s conftest.$ac_objext; then |
| 13838 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13839 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13840 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13841 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13842 | |
| 13843 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13844 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13846 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13847 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13848 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13849 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13850 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13852 | |
| 13853 | { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 13854 | $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } |
| 13855 | if test "${vim_cv_stat_ignores_slash+set}" = set; then |
| 13856 | $as_echo_n "(cached) " >&6 |
| 13857 | else |
| 13858 | |
| 13859 | if test "$cross_compiling" = yes; then |
| 13860 | |
| 13861 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5 |
| 13862 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13863 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13864 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13865 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13866 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13867 | |
| 13868 | #include "confdefs.h" |
| 13869 | #if STDC_HEADERS |
| 13870 | # include <stdlib.h> |
| 13871 | # include <stddef.h> |
| 13872 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13873 | #include <sys/types.h> |
| 13874 | #include <sys/stat.h> |
| 13875 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13876 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13877 | _ACEOF |
| 13878 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13879 | if { (ac_try="$ac_link" |
| 13880 | case "(($ac_try" in |
| 13881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13882 | *) ac_try_echo=$ac_try;; |
| 13883 | esac |
| 13884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13885 | $as_echo "$ac_try_echo") >&5 |
| 13886 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13887 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13890 | { (case "(($ac_try" in |
| 13891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13892 | *) ac_try_echo=$ac_try;; |
| 13893 | esac |
| 13894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13895 | $as_echo "$ac_try_echo") >&5 |
| 13896 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13897 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13899 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13900 | |
| 13901 | vim_cv_stat_ignores_slash=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13902 | |
| 13903 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13904 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13905 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13907 | |
| 13908 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13909 | |
| 13910 | vim_cv_stat_ignores_slash=no |
| 13911 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13912 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13913 | rm -rf conftest.dSYM |
| 13914 | rm -f core *.core core.conftest.* 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] | 13915 | fi |
| 13916 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13917 | |
| 13918 | |
| 13919 | fi |
| 13920 | { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5 |
| 13921 | $as_echo "$vim_cv_stat_ignores_slash" >&6; } |
| 13922 | |
| 13923 | if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
| 13924 | cat >>confdefs.h <<\_ACEOF |
| 13925 | #define STAT_IGNORES_SLASH 1 |
| 13926 | _ACEOF |
| 13927 | |
| 13928 | fi |
| 13929 | |
| 13930 | { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 13931 | $as_echo_n "checking for iconv_open()... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13932 | save_LIBS="$LIBS" |
| 13933 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13934 | cat >conftest.$ac_ext <<_ACEOF |
| 13935 | /* confdefs.h. */ |
| 13936 | _ACEOF |
| 13937 | cat confdefs.h >>conftest.$ac_ext |
| 13938 | cat >>conftest.$ac_ext <<_ACEOF |
| 13939 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13940 | |
| 13941 | #ifdef HAVE_ICONV_H |
| 13942 | # include <iconv.h> |
| 13943 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13944 | |
| 13945 | int |
| 13946 | main () |
| 13947 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13948 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13949 | ; |
| 13950 | return 0; |
| 13951 | } |
| 13952 | _ACEOF |
| 13953 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13954 | if { (ac_try="$ac_link" |
| 13955 | case "(($ac_try" in |
| 13956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13957 | *) ac_try_echo=$ac_try;; |
| 13958 | esac |
| 13959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13960 | $as_echo "$ac_try_echo") >&5 |
| 13961 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13962 | ac_status=$? |
| 13963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13964 | rm -f conftest.er1 |
| 13965 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13967 | (exit $ac_status); } && { |
| 13968 | test -z "$ac_c_werror_flag" || |
| 13969 | test ! -s conftest.err |
| 13970 | } && test -s conftest$ac_exeext && { |
| 13971 | test "$cross_compiling" = yes || |
| 13972 | $as_test_x conftest$ac_exeext |
| 13973 | }; then |
| 13974 | { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 13975 | $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13976 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13977 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13978 | |
| 13979 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13980 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13982 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13983 | LIBS="$save_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13984 | cat >conftest.$ac_ext <<_ACEOF |
| 13985 | /* confdefs.h. */ |
| 13986 | _ACEOF |
| 13987 | cat confdefs.h >>conftest.$ac_ext |
| 13988 | cat >>conftest.$ac_ext <<_ACEOF |
| 13989 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13990 | |
| 13991 | #ifdef HAVE_ICONV_H |
| 13992 | # include <iconv.h> |
| 13993 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13994 | |
| 13995 | int |
| 13996 | main () |
| 13997 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13998 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13999 | ; |
| 14000 | return 0; |
| 14001 | } |
| 14002 | _ACEOF |
| 14003 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14004 | if { (ac_try="$ac_link" |
| 14005 | case "(($ac_try" in |
| 14006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14007 | *) ac_try_echo=$ac_try;; |
| 14008 | esac |
| 14009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14010 | $as_echo "$ac_try_echo") >&5 |
| 14011 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14012 | ac_status=$? |
| 14013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14014 | rm -f conftest.er1 |
| 14015 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14017 | (exit $ac_status); } && { |
| 14018 | test -z "$ac_c_werror_flag" || |
| 14019 | test ! -s conftest.err |
| 14020 | } && test -s conftest$ac_exeext && { |
| 14021 | test "$cross_compiling" = yes || |
| 14022 | $as_test_x conftest$ac_exeext |
| 14023 | }; then |
| 14024 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14025 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14026 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14027 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14028 | |
| 14029 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14030 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14032 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14033 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14034 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14035 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14036 | |
| 14037 | rm -rf conftest.dSYM |
| 14038 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14039 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14040 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14041 | |
| 14042 | rm -rf conftest.dSYM |
| 14043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14044 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14045 | |
| 14046 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14047 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 14048 | $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14049 | cat >conftest.$ac_ext <<_ACEOF |
| 14050 | /* confdefs.h. */ |
| 14051 | _ACEOF |
| 14052 | cat confdefs.h >>conftest.$ac_ext |
| 14053 | cat >>conftest.$ac_ext <<_ACEOF |
| 14054 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14055 | |
| 14056 | #ifdef HAVE_LANGINFO_H |
| 14057 | # include <langinfo.h> |
| 14058 | #endif |
| 14059 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14060 | int |
| 14061 | main () |
| 14062 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14063 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14064 | ; |
| 14065 | return 0; |
| 14066 | } |
| 14067 | _ACEOF |
| 14068 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14069 | if { (ac_try="$ac_link" |
| 14070 | case "(($ac_try" in |
| 14071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14072 | *) ac_try_echo=$ac_try;; |
| 14073 | esac |
| 14074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14075 | $as_echo "$ac_try_echo") >&5 |
| 14076 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14077 | ac_status=$? |
| 14078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14079 | rm -f conftest.er1 |
| 14080 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14082 | (exit $ac_status); } && { |
| 14083 | test -z "$ac_c_werror_flag" || |
| 14084 | test ! -s conftest.err |
| 14085 | } && test -s conftest$ac_exeext && { |
| 14086 | test "$cross_compiling" = yes || |
| 14087 | $as_test_x conftest$ac_exeext |
| 14088 | }; then |
| 14089 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14090 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14091 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14092 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14093 | |
| 14094 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14095 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14096 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14097 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14098 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14099 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14100 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14101 | |
| 14102 | rm -rf conftest.dSYM |
| 14103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14104 | conftest$ac_exeext conftest.$ac_ext |
| 14105 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14106 | |
| 14107 | { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5 |
| 14108 | $as_echo_n "checking for strtod in -lm... " >&6; } |
| 14109 | if test "${ac_cv_lib_m_strtod+set}" = set; then |
| 14110 | $as_echo_n "(cached) " >&6 |
| 14111 | else |
| 14112 | ac_check_lib_save_LIBS=$LIBS |
| 14113 | LIBS="-lm $LIBS" |
| 14114 | cat >conftest.$ac_ext <<_ACEOF |
| 14115 | /* confdefs.h. */ |
| 14116 | _ACEOF |
| 14117 | cat confdefs.h >>conftest.$ac_ext |
| 14118 | cat >>conftest.$ac_ext <<_ACEOF |
| 14119 | /* end confdefs.h. */ |
| 14120 | |
| 14121 | /* Override any GCC internal prototype to avoid an error. |
| 14122 | Use char because int might match the return type of a GCC |
| 14123 | builtin and then its argument prototype would still apply. */ |
| 14124 | #ifdef __cplusplus |
| 14125 | extern "C" |
| 14126 | #endif |
| 14127 | char strtod (); |
| 14128 | int |
| 14129 | main () |
| 14130 | { |
| 14131 | return strtod (); |
| 14132 | ; |
| 14133 | return 0; |
| 14134 | } |
| 14135 | _ACEOF |
| 14136 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14137 | if { (ac_try="$ac_link" |
| 14138 | case "(($ac_try" in |
| 14139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14140 | *) ac_try_echo=$ac_try;; |
| 14141 | esac |
| 14142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14143 | $as_echo "$ac_try_echo") >&5 |
| 14144 | (eval "$ac_link") 2>conftest.er1 |
| 14145 | ac_status=$? |
| 14146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14147 | rm -f conftest.er1 |
| 14148 | cat conftest.err >&5 |
| 14149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14150 | (exit $ac_status); } && { |
| 14151 | test -z "$ac_c_werror_flag" || |
| 14152 | test ! -s conftest.err |
| 14153 | } && test -s conftest$ac_exeext && { |
| 14154 | test "$cross_compiling" = yes || |
| 14155 | $as_test_x conftest$ac_exeext |
| 14156 | }; then |
| 14157 | ac_cv_lib_m_strtod=yes |
| 14158 | else |
| 14159 | $as_echo "$as_me: failed program was:" >&5 |
| 14160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14161 | |
| 14162 | ac_cv_lib_m_strtod=no |
| 14163 | fi |
| 14164 | |
| 14165 | rm -rf conftest.dSYM |
| 14166 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14167 | conftest$ac_exeext conftest.$ac_ext |
| 14168 | LIBS=$ac_check_lib_save_LIBS |
| 14169 | fi |
| 14170 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5 |
| 14171 | $as_echo "$ac_cv_lib_m_strtod" >&6; } |
| 14172 | if test $ac_cv_lib_m_strtod = yes; then |
| 14173 | cat >>confdefs.h <<_ACEOF |
| 14174 | #define HAVE_LIBM 1 |
| 14175 | _ACEOF |
| 14176 | |
| 14177 | LIBS="-lm $LIBS" |
| 14178 | |
| 14179 | fi |
| 14180 | |
| 14181 | { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5 |
| 14182 | $as_echo_n "checking for strtod() and other floating point functions... " >&6; } |
| 14183 | cat >conftest.$ac_ext <<_ACEOF |
| 14184 | /* confdefs.h. */ |
| 14185 | _ACEOF |
| 14186 | cat confdefs.h >>conftest.$ac_ext |
| 14187 | cat >>conftest.$ac_ext <<_ACEOF |
| 14188 | /* end confdefs.h. */ |
| 14189 | |
| 14190 | #ifdef HAVE_MATH_H |
| 14191 | # include <math.h> |
| 14192 | #endif |
| 14193 | #if STDC_HEADERS |
| 14194 | # include <stdlib.h> |
| 14195 | # include <stddef.h> |
| 14196 | #endif |
| 14197 | |
| 14198 | int |
| 14199 | main () |
| 14200 | { |
| 14201 | char *s; double d; |
| 14202 | d = strtod("1.1", &s); |
| 14203 | d = fabs(1.11); |
| 14204 | d = ceil(1.11); |
| 14205 | d = floor(1.11); |
| 14206 | d = log10(1.11); |
| 14207 | d = pow(1.11, 2.22); |
| 14208 | d = sqrt(1.11); |
| 14209 | d = sin(1.11); |
| 14210 | d = cos(1.11); |
| 14211 | d = atan(1.11); |
| 14212 | |
| 14213 | ; |
| 14214 | return 0; |
| 14215 | } |
| 14216 | _ACEOF |
| 14217 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14218 | if { (ac_try="$ac_link" |
| 14219 | case "(($ac_try" in |
| 14220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14221 | *) ac_try_echo=$ac_try;; |
| 14222 | esac |
| 14223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14224 | $as_echo "$ac_try_echo") >&5 |
| 14225 | (eval "$ac_link") 2>conftest.er1 |
| 14226 | ac_status=$? |
| 14227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14228 | rm -f conftest.er1 |
| 14229 | cat conftest.err >&5 |
| 14230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14231 | (exit $ac_status); } && { |
| 14232 | test -z "$ac_c_werror_flag" || |
| 14233 | test ! -s conftest.err |
| 14234 | } && test -s conftest$ac_exeext && { |
| 14235 | test "$cross_compiling" = yes || |
| 14236 | $as_test_x conftest$ac_exeext |
| 14237 | }; then |
| 14238 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14239 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 14240 | #define HAVE_FLOAT_FUNCS 1 |
| 14241 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14242 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14243 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14244 | $as_echo "$as_me: failed program was:" >&5 |
| 14245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14246 | |
| 14247 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14248 | $as_echo "no" >&6; } |
| 14249 | fi |
| 14250 | |
| 14251 | rm -rf conftest.dSYM |
| 14252 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14253 | conftest$ac_exeext conftest.$ac_ext |
| 14254 | |
| 14255 | { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 14256 | $as_echo_n "checking --disable-acl argument... " >&6; } |
| 14257 | # Check whether --enable-acl was given. |
| 14258 | if test "${enable_acl+set}" = set; then |
| 14259 | enableval=$enable_acl; |
| 14260 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14261 | enable_acl="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14262 | fi |
| 14263 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14264 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14265 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14266 | $as_echo "no" >&6; } |
| 14267 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 14268 | $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14269 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14270 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14271 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14272 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14273 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14274 | cat >conftest.$ac_ext <<_ACEOF |
| 14275 | /* confdefs.h. */ |
| 14276 | _ACEOF |
| 14277 | cat confdefs.h >>conftest.$ac_ext |
| 14278 | cat >>conftest.$ac_ext <<_ACEOF |
| 14279 | /* end confdefs.h. */ |
| 14280 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14281 | /* Override any GCC internal prototype to avoid an error. |
| 14282 | Use char because int might match the return type of a GCC |
| 14283 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14284 | #ifdef __cplusplus |
| 14285 | extern "C" |
| 14286 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14287 | char acl_get_file (); |
| 14288 | int |
| 14289 | main () |
| 14290 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14291 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14292 | ; |
| 14293 | return 0; |
| 14294 | } |
| 14295 | _ACEOF |
| 14296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14297 | if { (ac_try="$ac_link" |
| 14298 | case "(($ac_try" in |
| 14299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14300 | *) ac_try_echo=$ac_try;; |
| 14301 | esac |
| 14302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14303 | $as_echo "$ac_try_echo") >&5 |
| 14304 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14305 | ac_status=$? |
| 14306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14307 | rm -f conftest.er1 |
| 14308 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14310 | (exit $ac_status); } && { |
| 14311 | test -z "$ac_c_werror_flag" || |
| 14312 | test ! -s conftest.err |
| 14313 | } && test -s conftest$ac_exeext && { |
| 14314 | test "$cross_compiling" = yes || |
| 14315 | $as_test_x conftest$ac_exeext |
| 14316 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14317 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14318 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14319 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14320 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14321 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14322 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14323 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14324 | |
| 14325 | rm -rf conftest.dSYM |
| 14326 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14327 | conftest$ac_exeext conftest.$ac_ext |
| 14328 | LIBS=$ac_check_lib_save_LIBS |
| 14329 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14330 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 14331 | $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14332 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14333 | LIBS="$LIBS -lposix1e" |
| 14334 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14335 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 14336 | $as_echo_n "checking for acl_get_file in -lacl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14337 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14338 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14339 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14340 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14341 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14342 | cat >conftest.$ac_ext <<_ACEOF |
| 14343 | /* confdefs.h. */ |
| 14344 | _ACEOF |
| 14345 | cat confdefs.h >>conftest.$ac_ext |
| 14346 | cat >>conftest.$ac_ext <<_ACEOF |
| 14347 | /* end confdefs.h. */ |
| 14348 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14349 | /* Override any GCC internal prototype to avoid an error. |
| 14350 | Use char because int might match the return type of a GCC |
| 14351 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14352 | #ifdef __cplusplus |
| 14353 | extern "C" |
| 14354 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14355 | char acl_get_file (); |
| 14356 | int |
| 14357 | main () |
| 14358 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14359 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14360 | ; |
| 14361 | return 0; |
| 14362 | } |
| 14363 | _ACEOF |
| 14364 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14365 | if { (ac_try="$ac_link" |
| 14366 | case "(($ac_try" in |
| 14367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14368 | *) ac_try_echo=$ac_try;; |
| 14369 | esac |
| 14370 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14371 | $as_echo "$ac_try_echo") >&5 |
| 14372 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14373 | ac_status=$? |
| 14374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14375 | rm -f conftest.er1 |
| 14376 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14377 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14378 | (exit $ac_status); } && { |
| 14379 | test -z "$ac_c_werror_flag" || |
| 14380 | test ! -s conftest.err |
| 14381 | } && test -s conftest$ac_exeext && { |
| 14382 | test "$cross_compiling" = yes || |
| 14383 | $as_test_x conftest$ac_exeext |
| 14384 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14385 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14386 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14387 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14388 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14389 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14390 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14391 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14392 | |
| 14393 | rm -rf conftest.dSYM |
| 14394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14395 | conftest$ac_exeext conftest.$ac_ext |
| 14396 | LIBS=$ac_check_lib_save_LIBS |
| 14397 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14398 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 14399 | $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14400 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14401 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14402 | { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 14403 | $as_echo_n "checking for fgetxattr in -lattr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14404 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14405 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14406 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14407 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14408 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14409 | cat >conftest.$ac_ext <<_ACEOF |
| 14410 | /* confdefs.h. */ |
| 14411 | _ACEOF |
| 14412 | cat confdefs.h >>conftest.$ac_ext |
| 14413 | cat >>conftest.$ac_ext <<_ACEOF |
| 14414 | /* end confdefs.h. */ |
| 14415 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14416 | /* Override any GCC internal prototype to avoid an error. |
| 14417 | Use char because int might match the return type of a GCC |
| 14418 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14419 | #ifdef __cplusplus |
| 14420 | extern "C" |
| 14421 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14422 | char fgetxattr (); |
| 14423 | int |
| 14424 | main () |
| 14425 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14426 | return fgetxattr (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14427 | ; |
| 14428 | return 0; |
| 14429 | } |
| 14430 | _ACEOF |
| 14431 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14432 | if { (ac_try="$ac_link" |
| 14433 | case "(($ac_try" in |
| 14434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14435 | *) ac_try_echo=$ac_try;; |
| 14436 | esac |
| 14437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14438 | $as_echo "$ac_try_echo") >&5 |
| 14439 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14440 | ac_status=$? |
| 14441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14442 | rm -f conftest.er1 |
| 14443 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14445 | (exit $ac_status); } && { |
| 14446 | test -z "$ac_c_werror_flag" || |
| 14447 | test ! -s conftest.err |
| 14448 | } && test -s conftest$ac_exeext && { |
| 14449 | test "$cross_compiling" = yes || |
| 14450 | $as_test_x conftest$ac_exeext |
| 14451 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14452 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14453 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14454 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14455 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14456 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14457 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14458 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14459 | |
| 14460 | rm -rf conftest.dSYM |
| 14461 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14462 | conftest$ac_exeext conftest.$ac_ext |
| 14463 | LIBS=$ac_check_lib_save_LIBS |
| 14464 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14465 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 14466 | $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14467 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14468 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14469 | fi |
| 14470 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14471 | fi |
| 14472 | |
| 14473 | fi |
| 14474 | |
| 14475 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14476 | { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 14477 | $as_echo_n "checking for POSIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14478 | cat >conftest.$ac_ext <<_ACEOF |
| 14479 | /* confdefs.h. */ |
| 14480 | _ACEOF |
| 14481 | cat confdefs.h >>conftest.$ac_ext |
| 14482 | cat >>conftest.$ac_ext <<_ACEOF |
| 14483 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14484 | |
| 14485 | #include <sys/types.h> |
| 14486 | #ifdef HAVE_SYS_ACL_H |
| 14487 | # include <sys/acl.h> |
| 14488 | #endif |
| 14489 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14490 | int |
| 14491 | main () |
| 14492 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14493 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 14494 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 14495 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14496 | ; |
| 14497 | return 0; |
| 14498 | } |
| 14499 | _ACEOF |
| 14500 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14501 | if { (ac_try="$ac_link" |
| 14502 | case "(($ac_try" in |
| 14503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14504 | *) ac_try_echo=$ac_try;; |
| 14505 | esac |
| 14506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14507 | $as_echo "$ac_try_echo") >&5 |
| 14508 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14509 | ac_status=$? |
| 14510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14511 | rm -f conftest.er1 |
| 14512 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14514 | (exit $ac_status); } && { |
| 14515 | test -z "$ac_c_werror_flag" || |
| 14516 | test ! -s conftest.err |
| 14517 | } && test -s conftest$ac_exeext && { |
| 14518 | test "$cross_compiling" = yes || |
| 14519 | $as_test_x conftest$ac_exeext |
| 14520 | }; then |
| 14521 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14522 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14523 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14524 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14525 | |
| 14526 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14527 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14528 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14529 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14530 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14531 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14532 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14533 | |
| 14534 | rm -rf conftest.dSYM |
| 14535 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14536 | conftest$ac_exeext conftest.$ac_ext |
| 14537 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14538 | { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 14539 | $as_echo_n "checking for Solaris ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14540 | cat >conftest.$ac_ext <<_ACEOF |
| 14541 | /* confdefs.h. */ |
| 14542 | _ACEOF |
| 14543 | cat confdefs.h >>conftest.$ac_ext |
| 14544 | cat >>conftest.$ac_ext <<_ACEOF |
| 14545 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14546 | |
| 14547 | #ifdef HAVE_SYS_ACL_H |
| 14548 | # include <sys/acl.h> |
| 14549 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14550 | int |
| 14551 | main () |
| 14552 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14553 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14554 | |
| 14555 | ; |
| 14556 | return 0; |
| 14557 | } |
| 14558 | _ACEOF |
| 14559 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14560 | if { (ac_try="$ac_link" |
| 14561 | case "(($ac_try" in |
| 14562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14563 | *) ac_try_echo=$ac_try;; |
| 14564 | esac |
| 14565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14566 | $as_echo "$ac_try_echo") >&5 |
| 14567 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14568 | ac_status=$? |
| 14569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14570 | rm -f conftest.er1 |
| 14571 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14573 | (exit $ac_status); } && { |
| 14574 | test -z "$ac_c_werror_flag" || |
| 14575 | test ! -s conftest.err |
| 14576 | } && test -s conftest$ac_exeext && { |
| 14577 | test "$cross_compiling" = yes || |
| 14578 | $as_test_x conftest$ac_exeext |
| 14579 | }; then |
| 14580 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14581 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14582 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14583 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14584 | |
| 14585 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14586 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14587 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14588 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14589 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14590 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14591 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14592 | |
| 14593 | rm -rf conftest.dSYM |
| 14594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14595 | conftest$ac_exeext conftest.$ac_ext |
| 14596 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14597 | { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 14598 | $as_echo_n "checking for AIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14599 | cat >conftest.$ac_ext <<_ACEOF |
| 14600 | /* confdefs.h. */ |
| 14601 | _ACEOF |
| 14602 | cat confdefs.h >>conftest.$ac_ext |
| 14603 | cat >>conftest.$ac_ext <<_ACEOF |
| 14604 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14605 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14606 | #if STDC_HEADERS |
| 14607 | # include <stdlib.h> |
| 14608 | # include <stddef.h> |
| 14609 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14610 | #ifdef HAVE_SYS_ACL_H |
| 14611 | # include <sys/acl.h> |
| 14612 | #endif |
| 14613 | #ifdef HAVE_SYS_ACCESS_H |
| 14614 | # include <sys/access.h> |
| 14615 | #endif |
| 14616 | #define _ALL_SOURCE |
| 14617 | |
| 14618 | #include <sys/stat.h> |
| 14619 | |
| 14620 | int aclsize; |
| 14621 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14622 | int |
| 14623 | main () |
| 14624 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14625 | aclsize = sizeof(struct acl); |
| 14626 | aclent = (void *)malloc(aclsize); |
| 14627 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14628 | |
| 14629 | ; |
| 14630 | return 0; |
| 14631 | } |
| 14632 | _ACEOF |
| 14633 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14634 | if { (ac_try="$ac_link" |
| 14635 | case "(($ac_try" in |
| 14636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14637 | *) ac_try_echo=$ac_try;; |
| 14638 | esac |
| 14639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14640 | $as_echo "$ac_try_echo") >&5 |
| 14641 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14642 | ac_status=$? |
| 14643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14644 | rm -f conftest.er1 |
| 14645 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14647 | (exit $ac_status); } && { |
| 14648 | test -z "$ac_c_werror_flag" || |
| 14649 | test ! -s conftest.err |
| 14650 | } && test -s conftest$ac_exeext && { |
| 14651 | test "$cross_compiling" = yes || |
| 14652 | $as_test_x conftest$ac_exeext |
| 14653 | }; then |
| 14654 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14655 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14656 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14657 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14658 | |
| 14659 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14660 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14662 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14663 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14664 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14665 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14666 | |
| 14667 | rm -rf conftest.dSYM |
| 14668 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14669 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14670 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14671 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14672 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14673 | fi |
| 14674 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14675 | { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 14676 | $as_echo_n "checking --disable-gpm argument... " >&6; } |
| 14677 | # Check whether --enable-gpm was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14678 | if test "${enable_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14679 | enableval=$enable_gpm; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14680 | else |
| 14681 | enable_gpm="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14682 | fi |
| 14683 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14684 | |
| 14685 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14686 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14687 | $as_echo "no" >&6; } |
| 14688 | { $as_echo "$as_me:$LINENO: checking for gpm" >&5 |
| 14689 | $as_echo_n "checking for gpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14690 | if test "${vi_cv_have_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14691 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14692 | else |
| 14693 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14694 | cat >conftest.$ac_ext <<_ACEOF |
| 14695 | /* confdefs.h. */ |
| 14696 | _ACEOF |
| 14697 | cat confdefs.h >>conftest.$ac_ext |
| 14698 | cat >>conftest.$ac_ext <<_ACEOF |
| 14699 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14700 | #include <gpm.h> |
| 14701 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14702 | int |
| 14703 | main () |
| 14704 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14705 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14706 | ; |
| 14707 | return 0; |
| 14708 | } |
| 14709 | _ACEOF |
| 14710 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14711 | if { (ac_try="$ac_link" |
| 14712 | case "(($ac_try" in |
| 14713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14714 | *) ac_try_echo=$ac_try;; |
| 14715 | esac |
| 14716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14717 | $as_echo "$ac_try_echo") >&5 |
| 14718 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14719 | ac_status=$? |
| 14720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14721 | rm -f conftest.er1 |
| 14722 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14724 | (exit $ac_status); } && { |
| 14725 | test -z "$ac_c_werror_flag" || |
| 14726 | test ! -s conftest.err |
| 14727 | } && test -s conftest$ac_exeext && { |
| 14728 | test "$cross_compiling" = yes || |
| 14729 | $as_test_x conftest$ac_exeext |
| 14730 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14731 | vi_cv_have_gpm=yes |
| 14732 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14733 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14734 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14735 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14736 | vi_cv_have_gpm=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14737 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14738 | |
| 14739 | rm -rf conftest.dSYM |
| 14740 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14741 | conftest$ac_exeext conftest.$ac_ext |
| 14742 | LIBS="$olibs" |
| 14743 | |
| 14744 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14745 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 14746 | $as_echo "$vi_cv_have_gpm" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14747 | if test $vi_cv_have_gpm = yes; then |
| 14748 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14749 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14750 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14751 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14752 | |
| 14753 | fi |
| 14754 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14755 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14756 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14757 | fi |
| 14758 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14759 | { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5 |
| 14760 | $as_echo_n "checking --disable-sysmouse argument... " >&6; } |
| 14761 | # Check whether --enable-sysmouse was given. |
| 14762 | if test "${enable_sysmouse+set}" = set; then |
| 14763 | enableval=$enable_sysmouse; |
| 14764 | else |
| 14765 | enable_sysmouse="yes" |
| 14766 | fi |
| 14767 | |
| 14768 | |
| 14769 | if test "$enable_sysmouse" = "yes"; then |
| 14770 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14771 | $as_echo "no" >&6; } |
| 14772 | { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5 |
| 14773 | $as_echo_n "checking for sysmouse... " >&6; } |
| 14774 | if test "${vi_cv_have_sysmouse+set}" = set; then |
| 14775 | $as_echo_n "(cached) " >&6 |
| 14776 | else |
| 14777 | cat >conftest.$ac_ext <<_ACEOF |
| 14778 | /* confdefs.h. */ |
| 14779 | _ACEOF |
| 14780 | cat confdefs.h >>conftest.$ac_ext |
| 14781 | cat >>conftest.$ac_ext <<_ACEOF |
| 14782 | /* end confdefs.h. */ |
| 14783 | #include <sys/consio.h> |
| 14784 | #include <signal.h> |
| 14785 | #include <sys/fbio.h> |
| 14786 | int |
| 14787 | main () |
| 14788 | { |
| 14789 | struct mouse_info mouse; |
| 14790 | mouse.operation = MOUSE_MODE; |
| 14791 | mouse.operation = MOUSE_SHOW; |
| 14792 | mouse.u.mode.mode = 0; |
| 14793 | mouse.u.mode.signal = SIGUSR2; |
| 14794 | ; |
| 14795 | return 0; |
| 14796 | } |
| 14797 | _ACEOF |
| 14798 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14799 | if { (ac_try="$ac_link" |
| 14800 | case "(($ac_try" in |
| 14801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14802 | *) ac_try_echo=$ac_try;; |
| 14803 | esac |
| 14804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14805 | $as_echo "$ac_try_echo") >&5 |
| 14806 | (eval "$ac_link") 2>conftest.er1 |
| 14807 | ac_status=$? |
| 14808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14809 | rm -f conftest.er1 |
| 14810 | cat conftest.err >&5 |
| 14811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14812 | (exit $ac_status); } && { |
| 14813 | test -z "$ac_c_werror_flag" || |
| 14814 | test ! -s conftest.err |
| 14815 | } && test -s conftest$ac_exeext && { |
| 14816 | test "$cross_compiling" = yes || |
| 14817 | $as_test_x conftest$ac_exeext |
| 14818 | }; then |
| 14819 | vi_cv_have_sysmouse=yes |
| 14820 | else |
| 14821 | $as_echo "$as_me: failed program was:" >&5 |
| 14822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14823 | |
| 14824 | vi_cv_have_sysmouse=no |
| 14825 | fi |
| 14826 | |
| 14827 | rm -rf conftest.dSYM |
| 14828 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14829 | conftest$ac_exeext conftest.$ac_ext |
| 14830 | |
| 14831 | fi |
| 14832 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5 |
| 14833 | $as_echo "$vi_cv_have_sysmouse" >&6; } |
| 14834 | if test $vi_cv_have_sysmouse = yes; then |
| 14835 | cat >>confdefs.h <<\_ACEOF |
| 14836 | #define HAVE_SYSMOUSE 1 |
| 14837 | _ACEOF |
| 14838 | |
| 14839 | fi |
| 14840 | else |
| 14841 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14842 | $as_echo "yes" >&6; } |
| 14843 | fi |
| 14844 | |
| 14845 | { $as_echo "$as_me:$LINENO: checking for rename" >&5 |
| 14846 | $as_echo_n "checking for rename... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14847 | cat >conftest.$ac_ext <<_ACEOF |
| 14848 | /* confdefs.h. */ |
| 14849 | _ACEOF |
| 14850 | cat confdefs.h >>conftest.$ac_ext |
| 14851 | cat >>conftest.$ac_ext <<_ACEOF |
| 14852 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14853 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14854 | int |
| 14855 | main () |
| 14856 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14857 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14858 | ; |
| 14859 | return 0; |
| 14860 | } |
| 14861 | _ACEOF |
| 14862 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14863 | if { (ac_try="$ac_link" |
| 14864 | case "(($ac_try" in |
| 14865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14866 | *) ac_try_echo=$ac_try;; |
| 14867 | esac |
| 14868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14869 | $as_echo "$ac_try_echo") >&5 |
| 14870 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14871 | ac_status=$? |
| 14872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14873 | rm -f conftest.er1 |
| 14874 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14876 | (exit $ac_status); } && { |
| 14877 | test -z "$ac_c_werror_flag" || |
| 14878 | test ! -s conftest.err |
| 14879 | } && test -s conftest$ac_exeext && { |
| 14880 | test "$cross_compiling" = yes || |
| 14881 | $as_test_x conftest$ac_exeext |
| 14882 | }; then |
| 14883 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14884 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14885 | #define HAVE_RENAME 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 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14889 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14890 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14891 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14892 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14893 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14894 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14895 | |
| 14896 | rm -rf conftest.dSYM |
| 14897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14898 | conftest$ac_exeext conftest.$ac_ext |
| 14899 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14900 | { $as_echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 14901 | $as_echo_n "checking for sysctl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14902 | cat >conftest.$ac_ext <<_ACEOF |
| 14903 | /* confdefs.h. */ |
| 14904 | _ACEOF |
| 14905 | cat confdefs.h >>conftest.$ac_ext |
| 14906 | cat >>conftest.$ac_ext <<_ACEOF |
| 14907 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14908 | #include <sys/types.h> |
| 14909 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14910 | int |
| 14911 | main () |
| 14912 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14913 | int mib[2], r; |
| 14914 | size_t len; |
| 14915 | |
| 14916 | mib[0] = CTL_HW; |
| 14917 | mib[1] = HW_USERMEM; |
| 14918 | len = sizeof(r); |
| 14919 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14920 | |
| 14921 | ; |
| 14922 | return 0; |
| 14923 | } |
| 14924 | _ACEOF |
| 14925 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14926 | if { (ac_try="$ac_compile" |
| 14927 | case "(($ac_try" in |
| 14928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14929 | *) ac_try_echo=$ac_try;; |
| 14930 | esac |
| 14931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14932 | $as_echo "$ac_try_echo") >&5 |
| 14933 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14934 | ac_status=$? |
| 14935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14936 | rm -f conftest.er1 |
| 14937 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14939 | (exit $ac_status); } && { |
| 14940 | test -z "$ac_c_werror_flag" || |
| 14941 | test ! -s conftest.err |
| 14942 | } && test -s conftest.$ac_objext; then |
| 14943 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14944 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14945 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14946 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14947 | |
| 14948 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14949 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14950 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14951 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14952 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 14953 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14954 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14955 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14957 | |
| 14958 | { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 14959 | $as_echo_n "checking for sysinfo... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14960 | cat >conftest.$ac_ext <<_ACEOF |
| 14961 | /* confdefs.h. */ |
| 14962 | _ACEOF |
| 14963 | cat confdefs.h >>conftest.$ac_ext |
| 14964 | cat >>conftest.$ac_ext <<_ACEOF |
| 14965 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14966 | #include <sys/types.h> |
| 14967 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14968 | int |
| 14969 | main () |
| 14970 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14971 | struct sysinfo sinfo; |
| 14972 | int t; |
| 14973 | |
| 14974 | (void)sysinfo(&sinfo); |
| 14975 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14976 | |
| 14977 | ; |
| 14978 | return 0; |
| 14979 | } |
| 14980 | _ACEOF |
| 14981 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14982 | if { (ac_try="$ac_compile" |
| 14983 | case "(($ac_try" in |
| 14984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14985 | *) ac_try_echo=$ac_try;; |
| 14986 | esac |
| 14987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14988 | $as_echo "$ac_try_echo") >&5 |
| 14989 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14990 | ac_status=$? |
| 14991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14992 | rm -f conftest.er1 |
| 14993 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14995 | (exit $ac_status); } && { |
| 14996 | test -z "$ac_c_werror_flag" || |
| 14997 | test ! -s conftest.err |
| 14998 | } && test -s conftest.$ac_objext; then |
| 14999 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15000 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15001 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15002 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15003 | |
| 15004 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15005 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15006 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15007 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15008 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15009 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15010 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15011 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15013 | |
| 15014 | { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 |
| 15015 | $as_echo_n "checking for sysinfo.mem_unit... " >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15016 | cat >conftest.$ac_ext <<_ACEOF |
| 15017 | /* confdefs.h. */ |
| 15018 | _ACEOF |
| 15019 | cat confdefs.h >>conftest.$ac_ext |
| 15020 | cat >>conftest.$ac_ext <<_ACEOF |
| 15021 | /* end confdefs.h. */ |
| 15022 | #include <sys/types.h> |
| 15023 | #include <sys/sysinfo.h> |
| 15024 | int |
| 15025 | main () |
| 15026 | { |
| 15027 | struct sysinfo sinfo; |
| 15028 | sinfo.mem_unit = 1; |
| 15029 | |
| 15030 | ; |
| 15031 | return 0; |
| 15032 | } |
| 15033 | _ACEOF |
| 15034 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15035 | if { (ac_try="$ac_compile" |
| 15036 | case "(($ac_try" in |
| 15037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15038 | *) ac_try_echo=$ac_try;; |
| 15039 | esac |
| 15040 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15041 | $as_echo "$ac_try_echo") >&5 |
| 15042 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15043 | ac_status=$? |
| 15044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15045 | rm -f conftest.er1 |
| 15046 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15048 | (exit $ac_status); } && { |
| 15049 | test -z "$ac_c_werror_flag" || |
| 15050 | test ! -s conftest.err |
| 15051 | } && test -s conftest.$ac_objext; then |
| 15052 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15053 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15054 | #define HAVE_SYSINFO_MEM_UNIT 1 |
| 15055 | _ACEOF |
| 15056 | |
| 15057 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15058 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15060 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15061 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15062 | $as_echo "no" >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15063 | fi |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15064 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15066 | |
| 15067 | { $as_echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 15068 | $as_echo_n "checking for sysconf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15069 | cat >conftest.$ac_ext <<_ACEOF |
| 15070 | /* confdefs.h. */ |
| 15071 | _ACEOF |
| 15072 | cat confdefs.h >>conftest.$ac_ext |
| 15073 | cat >>conftest.$ac_ext <<_ACEOF |
| 15074 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15075 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15076 | int |
| 15077 | main () |
| 15078 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15079 | (void)sysconf(_SC_PAGESIZE); |
| 15080 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15081 | |
| 15082 | ; |
| 15083 | return 0; |
| 15084 | } |
| 15085 | _ACEOF |
| 15086 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15087 | if { (ac_try="$ac_compile" |
| 15088 | case "(($ac_try" in |
| 15089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15090 | *) ac_try_echo=$ac_try;; |
| 15091 | esac |
| 15092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15093 | $as_echo "$ac_try_echo") >&5 |
| 15094 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15095 | ac_status=$? |
| 15096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15097 | rm -f conftest.er1 |
| 15098 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15100 | (exit $ac_status); } && { |
| 15101 | test -z "$ac_c_werror_flag" || |
| 15102 | test ! -s conftest.err |
| 15103 | } && test -s conftest.$ac_objext; then |
| 15104 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15105 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15106 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15107 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15108 | |
| 15109 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15110 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15112 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15113 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15114 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15115 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15116 | |
| 15117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15118 | |
| 15119 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15120 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 15121 | $as_echo_n "checking size of int... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15122 | if test "${ac_cv_sizeof_int+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15123 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15124 | else |
| 15125 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15126 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 15127 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15128 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15129 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15130 | cat >conftest.$ac_ext <<_ACEOF |
| 15131 | /* confdefs.h. */ |
| 15132 | _ACEOF |
| 15133 | cat confdefs.h >>conftest.$ac_ext |
| 15134 | cat >>conftest.$ac_ext <<_ACEOF |
| 15135 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15136 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15137 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15138 | #if STDC_HEADERS |
| 15139 | # include <stdlib.h> |
| 15140 | # include <stddef.h> |
| 15141 | #endif |
| 15142 | main() |
| 15143 | { |
| 15144 | FILE *f=fopen("conftestval", "w"); |
| 15145 | if (!f) exit(1); |
| 15146 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 15147 | exit(0); |
| 15148 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15149 | _ACEOF |
| 15150 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15151 | if { (ac_try="$ac_link" |
| 15152 | case "(($ac_try" in |
| 15153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15154 | *) ac_try_echo=$ac_try;; |
| 15155 | esac |
| 15156 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15157 | $as_echo "$ac_try_echo") >&5 |
| 15158 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15159 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15161 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15162 | { (case "(($ac_try" in |
| 15163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15164 | *) ac_try_echo=$ac_try;; |
| 15165 | esac |
| 15166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15167 | $as_echo "$ac_try_echo") >&5 |
| 15168 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15169 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15171 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15172 | ac_cv_sizeof_int=`cat conftestval` |
| 15173 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15174 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15175 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15177 | |
| 15178 | ( exit $ac_status ) |
| 15179 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15180 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15181 | rm -rf conftest.dSYM |
| 15182 | rm -f core *.core core.conftest.* 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] | 15183 | fi |
| 15184 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15185 | |
| 15186 | fi |
| 15187 | |
| 15188 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 15189 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15190 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15191 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15192 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15193 | |
| 15194 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15195 | |
| 15196 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15197 | bcopy_test_prog=' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15198 | #include "confdefs.h" |
| 15199 | #ifdef HAVE_STRING_H |
| 15200 | # include <string.h> |
| 15201 | #endif |
| 15202 | #if STDC_HEADERS |
| 15203 | # include <stdlib.h> |
| 15204 | # include <stddef.h> |
| 15205 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15206 | main() { |
| 15207 | char buf[10]; |
| 15208 | strcpy(buf, "abcdefghi"); |
| 15209 | mch_memmove(buf, buf + 2, 3); |
| 15210 | if (strncmp(buf, "ababcf", 6)) |
| 15211 | exit(1); |
| 15212 | strcpy(buf, "abcdefghi"); |
| 15213 | mch_memmove(buf + 2, buf, 3); |
| 15214 | if (strncmp(buf, "cdedef", 6)) |
| 15215 | exit(1); |
| 15216 | exit(0); /* libc version works properly. */ |
| 15217 | }' |
| 15218 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15219 | { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5 |
| 15220 | $as_echo_n "checking whether memmove handles overlaps... " >&6; } |
| 15221 | if test "${vim_cv_memmove_handles_overlap+set}" = set; then |
| 15222 | $as_echo_n "(cached) " >&6 |
| 15223 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15224 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15225 | if test "$cross_compiling" = yes; then |
| 15226 | |
| 15227 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5 |
| 15228 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15229 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15230 | |
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 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15233 | #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] | 15234 | _ACEOF |
| 15235 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15236 | if { (ac_try="$ac_link" |
| 15237 | case "(($ac_try" in |
| 15238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15239 | *) ac_try_echo=$ac_try;; |
| 15240 | esac |
| 15241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15242 | $as_echo "$ac_try_echo") >&5 |
| 15243 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15244 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15246 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15247 | { (case "(($ac_try" in |
| 15248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15249 | *) ac_try_echo=$ac_try;; |
| 15250 | esac |
| 15251 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15252 | $as_echo "$ac_try_echo") >&5 |
| 15253 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15254 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15255 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15256 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15257 | |
| 15258 | vim_cv_memmove_handles_overlap=yes |
| 15259 | |
| 15260 | else |
| 15261 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15262 | $as_echo "$as_me: failed program was:" >&5 |
| 15263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15264 | |
| 15265 | ( exit $ac_status ) |
| 15266 | |
| 15267 | vim_cv_memmove_handles_overlap=no |
| 15268 | |
| 15269 | fi |
| 15270 | rm -rf conftest.dSYM |
| 15271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15272 | fi |
| 15273 | |
| 15274 | |
| 15275 | |
| 15276 | fi |
| 15277 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5 |
| 15278 | $as_echo "$vim_cv_memmove_handles_overlap" >&6; } |
| 15279 | |
| 15280 | if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15281 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15282 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15283 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15284 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15285 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15286 | { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5 |
| 15287 | $as_echo_n "checking whether bcopy handles overlaps... " >&6; } |
| 15288 | if test "${vim_cv_bcopy_handles_overlap+set}" = set; then |
| 15289 | $as_echo_n "(cached) " >&6 |
| 15290 | else |
| 15291 | |
| 15292 | if test "$cross_compiling" = yes; then |
| 15293 | |
| 15294 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5 |
| 15295 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;} |
| 15296 | { (exit 1); exit 1; }; } |
| 15297 | |
| 15298 | else |
| 15299 | cat >conftest.$ac_ext <<_ACEOF |
| 15300 | #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 15301 | _ACEOF |
| 15302 | rm -f conftest$ac_exeext |
| 15303 | if { (ac_try="$ac_link" |
| 15304 | case "(($ac_try" in |
| 15305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15306 | *) ac_try_echo=$ac_try;; |
| 15307 | esac |
| 15308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15309 | $as_echo "$ac_try_echo") >&5 |
| 15310 | (eval "$ac_link") 2>&5 |
| 15311 | ac_status=$? |
| 15312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15314 | { (case "(($ac_try" in |
| 15315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15316 | *) ac_try_echo=$ac_try;; |
| 15317 | esac |
| 15318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15319 | $as_echo "$ac_try_echo") >&5 |
| 15320 | (eval "$ac_try") 2>&5 |
| 15321 | ac_status=$? |
| 15322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15323 | (exit $ac_status); }; }; then |
| 15324 | |
| 15325 | vim_cv_bcopy_handles_overlap=yes |
| 15326 | |
| 15327 | else |
| 15328 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15329 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15331 | |
| 15332 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15333 | |
| 15334 | vim_cv_bcopy_handles_overlap=no |
| 15335 | |
| 15336 | fi |
| 15337 | rm -rf conftest.dSYM |
| 15338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15339 | fi |
| 15340 | |
| 15341 | |
| 15342 | |
| 15343 | fi |
| 15344 | { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5 |
| 15345 | $as_echo "$vim_cv_bcopy_handles_overlap" >&6; } |
| 15346 | |
| 15347 | if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then |
| 15348 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15349 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15350 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15351 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15352 | else |
| 15353 | { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5 |
| 15354 | $as_echo_n "checking whether memcpy handles overlaps... " >&6; } |
| 15355 | if test "${vim_cv_memcpy_handles_overlap+set}" = set; then |
| 15356 | $as_echo_n "(cached) " >&6 |
| 15357 | else |
| 15358 | |
| 15359 | if test "$cross_compiling" = yes; then |
| 15360 | |
| 15361 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5 |
| 15362 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15363 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15364 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15365 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15366 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15367 | #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15368 | _ACEOF |
| 15369 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15370 | if { (ac_try="$ac_link" |
| 15371 | case "(($ac_try" in |
| 15372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15373 | *) ac_try_echo=$ac_try;; |
| 15374 | esac |
| 15375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15376 | $as_echo "$ac_try_echo") >&5 |
| 15377 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15378 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15381 | { (case "(($ac_try" in |
| 15382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15383 | *) ac_try_echo=$ac_try;; |
| 15384 | esac |
| 15385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15386 | $as_echo "$ac_try_echo") >&5 |
| 15387 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15388 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15390 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15391 | |
| 15392 | vim_cv_memcpy_handles_overlap=yes |
| 15393 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15394 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15395 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15396 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15397 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15398 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15399 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15400 | |
| 15401 | vim_cv_memcpy_handles_overlap=no |
| 15402 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15403 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15404 | rm -rf conftest.dSYM |
| 15405 | rm -f core *.core core.conftest.* 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] | 15406 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15407 | |
| 15408 | |
| 15409 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15410 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15411 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5 |
| 15412 | $as_echo "$vim_cv_memcpy_handles_overlap" >&6; } |
| 15413 | |
| 15414 | if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then |
| 15415 | cat >>confdefs.h <<\_ACEOF |
| 15416 | #define USEMEMCPY 1 |
| 15417 | _ACEOF |
| 15418 | |
| 15419 | fi |
| 15420 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15421 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15422 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15423 | |
| 15424 | |
| 15425 | if test "$enable_multibyte" = "yes"; then |
| 15426 | cflags_save=$CFLAGS |
| 15427 | ldflags_save=$LDFLAGS |
| 15428 | if test -n "$x_includes" ; then |
| 15429 | CFLAGS="$CFLAGS -I$x_includes" |
| 15430 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15431 | { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 15432 | $as_echo_n "checking whether X_LOCALE needed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15433 | cat >conftest.$ac_ext <<_ACEOF |
| 15434 | /* confdefs.h. */ |
| 15435 | _ACEOF |
| 15436 | cat confdefs.h >>conftest.$ac_ext |
| 15437 | cat >>conftest.$ac_ext <<_ACEOF |
| 15438 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15439 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15440 | int |
| 15441 | main () |
| 15442 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15443 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15444 | ; |
| 15445 | return 0; |
| 15446 | } |
| 15447 | _ACEOF |
| 15448 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15449 | if { (ac_try="$ac_compile" |
| 15450 | case "(($ac_try" in |
| 15451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15452 | *) ac_try_echo=$ac_try;; |
| 15453 | esac |
| 15454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15455 | $as_echo "$ac_try_echo") >&5 |
| 15456 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15457 | ac_status=$? |
| 15458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15459 | rm -f conftest.er1 |
| 15460 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15461 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15462 | (exit $ac_status); } && { |
| 15463 | test -z "$ac_c_werror_flag" || |
| 15464 | test ! -s conftest.err |
| 15465 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15466 | cat >conftest.$ac_ext <<_ACEOF |
| 15467 | /* confdefs.h. */ |
| 15468 | _ACEOF |
| 15469 | cat confdefs.h >>conftest.$ac_ext |
| 15470 | cat >>conftest.$ac_ext <<_ACEOF |
| 15471 | /* end confdefs.h. */ |
| 15472 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15473 | /* Override any GCC internal prototype to avoid an error. |
| 15474 | Use char because int might match the return type of a GCC |
| 15475 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15476 | #ifdef __cplusplus |
| 15477 | extern "C" |
| 15478 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15479 | char _Xsetlocale (); |
| 15480 | int |
| 15481 | main () |
| 15482 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15483 | return _Xsetlocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15484 | ; |
| 15485 | return 0; |
| 15486 | } |
| 15487 | _ACEOF |
| 15488 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15489 | if { (ac_try="$ac_link" |
| 15490 | case "(($ac_try" in |
| 15491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15492 | *) ac_try_echo=$ac_try;; |
| 15493 | esac |
| 15494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15495 | $as_echo "$ac_try_echo") >&5 |
| 15496 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15497 | ac_status=$? |
| 15498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15499 | rm -f conftest.er1 |
| 15500 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15502 | (exit $ac_status); } && { |
| 15503 | test -z "$ac_c_werror_flag" || |
| 15504 | test ! -s conftest.err |
| 15505 | } && test -s conftest$ac_exeext && { |
| 15506 | test "$cross_compiling" = yes || |
| 15507 | $as_test_x conftest$ac_exeext |
| 15508 | }; then |
| 15509 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15510 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15511 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15512 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15513 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15514 | |
| 15515 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15516 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15518 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15519 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15520 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15521 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15522 | |
| 15523 | rm -rf conftest.dSYM |
| 15524 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15525 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15526 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15527 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15529 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15530 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15531 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15532 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15533 | |
| 15534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15535 | fi |
| 15536 | CFLAGS=$cflags_save |
| 15537 | LDFLAGS=$ldflags_save |
| 15538 | fi |
| 15539 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15540 | { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 15541 | $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15542 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15543 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15544 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15545 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15546 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15547 | cat >conftest.$ac_ext <<_ACEOF |
| 15548 | /* confdefs.h. */ |
| 15549 | _ACEOF |
| 15550 | cat confdefs.h >>conftest.$ac_ext |
| 15551 | cat >>conftest.$ac_ext <<_ACEOF |
| 15552 | /* end confdefs.h. */ |
| 15553 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15554 | /* Override any GCC internal prototype to avoid an error. |
| 15555 | Use char because int might match the return type of a GCC |
| 15556 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15557 | #ifdef __cplusplus |
| 15558 | extern "C" |
| 15559 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15560 | char _xpg4_setrunelocale (); |
| 15561 | int |
| 15562 | main () |
| 15563 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15564 | return _xpg4_setrunelocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15565 | ; |
| 15566 | return 0; |
| 15567 | } |
| 15568 | _ACEOF |
| 15569 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15570 | if { (ac_try="$ac_link" |
| 15571 | case "(($ac_try" in |
| 15572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15573 | *) ac_try_echo=$ac_try;; |
| 15574 | esac |
| 15575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15576 | $as_echo "$ac_try_echo") >&5 |
| 15577 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15578 | ac_status=$? |
| 15579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15580 | rm -f conftest.er1 |
| 15581 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15583 | (exit $ac_status); } && { |
| 15584 | test -z "$ac_c_werror_flag" || |
| 15585 | test ! -s conftest.err |
| 15586 | } && test -s conftest$ac_exeext && { |
| 15587 | test "$cross_compiling" = yes || |
| 15588 | $as_test_x conftest$ac_exeext |
| 15589 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15590 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15591 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15592 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15593 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15594 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15595 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15596 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15597 | |
| 15598 | rm -rf conftest.dSYM |
| 15599 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15600 | conftest$ac_exeext conftest.$ac_ext |
| 15601 | LIBS=$ac_check_lib_save_LIBS |
| 15602 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15603 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 15604 | $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15605 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15606 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15607 | fi |
| 15608 | |
| 15609 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15610 | { $as_echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 15611 | $as_echo_n "checking how to create tags... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15612 | test -f tags && mv tags tags.save |
| 15613 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 15614 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15615 | else |
| 15616 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 15617 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 15618 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 15619 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 15620 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 15621 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 15622 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 15623 | fi |
| 15624 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15625 | { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 15626 | $as_echo "$TAGPRG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15627 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15628 | { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 15629 | $as_echo_n "checking how to run man with a section nr... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15630 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 15631 | (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15632 | { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 15633 | $as_echo "$MANDEF" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15634 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15635 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15636 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15637 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15638 | |
| 15639 | fi |
| 15640 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15641 | { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 15642 | $as_echo_n "checking --disable-nls argument... " >&6; } |
| 15643 | # Check whether --enable-nls was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15644 | if test "${enable_nls+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15645 | enableval=$enable_nls; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15646 | else |
| 15647 | enable_nls="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15648 | fi |
| 15649 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15650 | |
| 15651 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15652 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15653 | $as_echo "no" >&6; } |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 15654 | |
| 15655 | INSTALL_LANGS=install-languages |
| 15656 | |
| 15657 | INSTALL_TOOL_LANGS=install-tool-languages |
| 15658 | |
| 15659 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15660 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 15661 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15662 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15663 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15664 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15665 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15666 | else |
| 15667 | if test -n "$MSGFMT"; then |
| 15668 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 15669 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15671 | for as_dir in $PATH |
| 15672 | do |
| 15673 | IFS=$as_save_IFS |
| 15674 | test -z "$as_dir" && as_dir=. |
| 15675 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15677 | ac_cv_prog_MSGFMT="msgfmt" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15678 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15679 | break 2 |
| 15680 | fi |
| 15681 | done |
| 15682 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15683 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15684 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15685 | fi |
| 15686 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15687 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15688 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15689 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 15690 | $as_echo "$MSGFMT" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15691 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15692 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15693 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15694 | fi |
| 15695 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15696 | |
| 15697 | { $as_echo "$as_me:$LINENO: checking for NLS" >&5 |
| 15698 | $as_echo_n "checking for NLS... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15699 | if test -f po/Makefile; then |
| 15700 | have_gettext="no" |
| 15701 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15702 | cat >conftest.$ac_ext <<_ACEOF |
| 15703 | /* confdefs.h. */ |
| 15704 | _ACEOF |
| 15705 | cat confdefs.h >>conftest.$ac_ext |
| 15706 | cat >>conftest.$ac_ext <<_ACEOF |
| 15707 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15708 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15709 | int |
| 15710 | main () |
| 15711 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15712 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15713 | ; |
| 15714 | return 0; |
| 15715 | } |
| 15716 | _ACEOF |
| 15717 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15718 | if { (ac_try="$ac_link" |
| 15719 | case "(($ac_try" in |
| 15720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15721 | *) ac_try_echo=$ac_try;; |
| 15722 | esac |
| 15723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15724 | $as_echo "$ac_try_echo") >&5 |
| 15725 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15726 | ac_status=$? |
| 15727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15728 | rm -f conftest.er1 |
| 15729 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15731 | (exit $ac_status); } && { |
| 15732 | test -z "$ac_c_werror_flag" || |
| 15733 | test ! -s conftest.err |
| 15734 | } && test -s conftest$ac_exeext && { |
| 15735 | test "$cross_compiling" = yes || |
| 15736 | $as_test_x conftest$ac_exeext |
| 15737 | }; then |
| 15738 | { $as_echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 15739 | $as_echo "gettext() works" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15740 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15741 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15743 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15744 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15745 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15746 | cat >conftest.$ac_ext <<_ACEOF |
| 15747 | /* confdefs.h. */ |
| 15748 | _ACEOF |
| 15749 | cat confdefs.h >>conftest.$ac_ext |
| 15750 | cat >>conftest.$ac_ext <<_ACEOF |
| 15751 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15752 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15753 | int |
| 15754 | main () |
| 15755 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15756 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15757 | ; |
| 15758 | return 0; |
| 15759 | } |
| 15760 | _ACEOF |
| 15761 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15762 | if { (ac_try="$ac_link" |
| 15763 | case "(($ac_try" in |
| 15764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15765 | *) ac_try_echo=$ac_try;; |
| 15766 | esac |
| 15767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15768 | $as_echo "$ac_try_echo") >&5 |
| 15769 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15770 | ac_status=$? |
| 15771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15772 | rm -f conftest.er1 |
| 15773 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15775 | (exit $ac_status); } && { |
| 15776 | test -z "$ac_c_werror_flag" || |
| 15777 | test ! -s conftest.err |
| 15778 | } && test -s conftest$ac_exeext && { |
| 15779 | test "$cross_compiling" = yes || |
| 15780 | $as_test_x conftest$ac_exeext |
| 15781 | }; then |
| 15782 | { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 15783 | $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15784 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15785 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15787 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15788 | { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 15789 | $as_echo "gettext() doesn't work" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15790 | LIBS=$olibs |
| 15791 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15792 | |
| 15793 | rm -rf conftest.dSYM |
| 15794 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15795 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15796 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15797 | |
| 15798 | rm -rf conftest.dSYM |
| 15799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15800 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15801 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15802 | { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 15803 | $as_echo "msgfmt not found - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15804 | fi |
| 15805 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15806 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15807 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15808 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15809 | |
| 15810 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15811 | |
| 15812 | |
| 15813 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15814 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15815 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15816 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15817 | $as_echo_n "checking for $ac_func... " >&6; } |
| 15818 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15819 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15820 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15821 | cat >conftest.$ac_ext <<_ACEOF |
| 15822 | /* confdefs.h. */ |
| 15823 | _ACEOF |
| 15824 | cat confdefs.h >>conftest.$ac_ext |
| 15825 | cat >>conftest.$ac_ext <<_ACEOF |
| 15826 | /* end confdefs.h. */ |
| 15827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15829 | #define $ac_func innocuous_$ac_func |
| 15830 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15831 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15832 | which can conflict with char $ac_func (); below. |
| 15833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15834 | <limits.h> exists even on freestanding compilers. */ |
| 15835 | |
| 15836 | #ifdef __STDC__ |
| 15837 | # include <limits.h> |
| 15838 | #else |
| 15839 | # include <assert.h> |
| 15840 | #endif |
| 15841 | |
| 15842 | #undef $ac_func |
| 15843 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15844 | /* Override any GCC internal prototype to avoid an error. |
| 15845 | Use char because int might match the return type of a GCC |
| 15846 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15847 | #ifdef __cplusplus |
| 15848 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15849 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15850 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15851 | /* The GNU C library defines this for functions which it implements |
| 15852 | to always fail with ENOSYS. Some functions are actually named |
| 15853 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15854 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15855 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15856 | #endif |
| 15857 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15858 | int |
| 15859 | main () |
| 15860 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15861 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15862 | ; |
| 15863 | return 0; |
| 15864 | } |
| 15865 | _ACEOF |
| 15866 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15867 | if { (ac_try="$ac_link" |
| 15868 | case "(($ac_try" in |
| 15869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15870 | *) ac_try_echo=$ac_try;; |
| 15871 | esac |
| 15872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15873 | $as_echo "$ac_try_echo") >&5 |
| 15874 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15875 | ac_status=$? |
| 15876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15877 | rm -f conftest.er1 |
| 15878 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15880 | (exit $ac_status); } && { |
| 15881 | test -z "$ac_c_werror_flag" || |
| 15882 | test ! -s conftest.err |
| 15883 | } && test -s conftest$ac_exeext && { |
| 15884 | test "$cross_compiling" = yes || |
| 15885 | $as_test_x conftest$ac_exeext |
| 15886 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15887 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15888 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15889 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15890 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15891 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15892 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15893 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15894 | |
| 15895 | rm -rf conftest.dSYM |
| 15896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15897 | conftest$ac_exeext conftest.$ac_ext |
| 15898 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15899 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 15900 | $as_echo "$as_val"'` |
| 15901 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15902 | $as_echo "$ac_res" >&6; } |
| 15903 | if test `eval 'as_val=${'$as_ac_var'} |
| 15904 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15905 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15906 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15907 | _ACEOF |
| 15908 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15909 | fi |
| 15910 | done |
| 15911 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15912 | { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 15913 | $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15914 | cat >conftest.$ac_ext <<_ACEOF |
| 15915 | /* confdefs.h. */ |
| 15916 | _ACEOF |
| 15917 | cat confdefs.h >>conftest.$ac_ext |
| 15918 | cat >>conftest.$ac_ext <<_ACEOF |
| 15919 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15920 | #include <libintl.h> |
| 15921 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15922 | int |
| 15923 | main () |
| 15924 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15925 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15926 | ; |
| 15927 | return 0; |
| 15928 | } |
| 15929 | _ACEOF |
| 15930 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15931 | if { (ac_try="$ac_link" |
| 15932 | case "(($ac_try" in |
| 15933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15934 | *) ac_try_echo=$ac_try;; |
| 15935 | esac |
| 15936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15937 | $as_echo "$ac_try_echo") >&5 |
| 15938 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15939 | ac_status=$? |
| 15940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15941 | rm -f conftest.er1 |
| 15942 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15944 | (exit $ac_status); } && { |
| 15945 | test -z "$ac_c_werror_flag" || |
| 15946 | test ! -s conftest.err |
| 15947 | } && test -s conftest$ac_exeext && { |
| 15948 | test "$cross_compiling" = yes || |
| 15949 | $as_test_x conftest$ac_exeext |
| 15950 | }; then |
| 15951 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15952 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15953 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15954 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15955 | |
| 15956 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15957 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15959 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15960 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15961 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15962 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15963 | |
| 15964 | rm -rf conftest.dSYM |
| 15965 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15966 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15967 | fi |
| 15968 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15969 | { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 15970 | $as_echo "no \"po/Makefile\" - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15971 | fi |
| 15972 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15973 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15974 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15975 | fi |
| 15976 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15977 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15978 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 15979 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15980 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15981 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15982 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15983 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 15984 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15985 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15986 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15987 | { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 15988 | $as_echo_n "checking dlfcn.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15989 | cat >conftest.$ac_ext <<_ACEOF |
| 15990 | /* confdefs.h. */ |
| 15991 | _ACEOF |
| 15992 | cat confdefs.h >>conftest.$ac_ext |
| 15993 | cat >>conftest.$ac_ext <<_ACEOF |
| 15994 | /* end confdefs.h. */ |
| 15995 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15996 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15997 | _ACEOF |
| 15998 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15999 | if { (ac_try="$ac_compile" |
| 16000 | case "(($ac_try" in |
| 16001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16002 | *) ac_try_echo=$ac_try;; |
| 16003 | esac |
| 16004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16005 | $as_echo "$ac_try_echo") >&5 |
| 16006 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16007 | ac_status=$? |
| 16008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16009 | rm -f conftest.er1 |
| 16010 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16011 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16012 | (exit $ac_status); } && { |
| 16013 | test -z "$ac_c_werror_flag" || |
| 16014 | test ! -s conftest.err |
| 16015 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16016 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16017 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16018 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16020 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16021 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16022 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16023 | |
| 16024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16025 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16026 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16027 | |
| 16028 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16029 | { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 16030 | $as_echo_n "checking dlfcn.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16031 | cat >conftest.$ac_ext <<_ACEOF |
| 16032 | /* confdefs.h. */ |
| 16033 | _ACEOF |
| 16034 | cat confdefs.h >>conftest.$ac_ext |
| 16035 | cat >>conftest.$ac_ext <<_ACEOF |
| 16036 | /* end confdefs.h. */ |
| 16037 | #include <dlfcn.h> |
| 16038 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16039 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16040 | case "(($ac_try" in |
| 16041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16042 | *) ac_try_echo=$ac_try;; |
| 16043 | esac |
| 16044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16045 | $as_echo "$ac_try_echo") >&5 |
| 16046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16047 | ac_status=$? |
| 16048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16049 | rm -f conftest.er1 |
| 16050 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16052 | (exit $ac_status); } >/dev/null && { |
| 16053 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16054 | test ! -s conftest.err |
| 16055 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16056 | ac_header_preproc=yes |
| 16057 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16058 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16060 | |
| 16061 | ac_header_preproc=no |
| 16062 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16063 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16064 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16065 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16066 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16067 | |
| 16068 | # So? What about this header? |
| 16069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16070 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16071 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16072 | $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16073 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 16074 | $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16075 | ac_header_preproc=yes |
| 16076 | ;; |
| 16077 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16078 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 16079 | $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 16080 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 16081 | $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 16082 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 16083 | $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 16084 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16085 | $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16086 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 16087 | $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 16088 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 16089 | $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 16090 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16091 | ;; |
| 16092 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16093 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16094 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16095 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16096 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16097 | else |
| 16098 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 16099 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16100 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16101 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16102 | |
| 16103 | fi |
| 16104 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16105 | DLL=dlfcn.h |
| 16106 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16107 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16108 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16109 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16110 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16111 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16112 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16113 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16114 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16115 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16116 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16117 | { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 16118 | $as_echo_n "checking dl.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16119 | cat >conftest.$ac_ext <<_ACEOF |
| 16120 | /* confdefs.h. */ |
| 16121 | _ACEOF |
| 16122 | cat confdefs.h >>conftest.$ac_ext |
| 16123 | cat >>conftest.$ac_ext <<_ACEOF |
| 16124 | /* end confdefs.h. */ |
| 16125 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16126 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16127 | _ACEOF |
| 16128 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16129 | if { (ac_try="$ac_compile" |
| 16130 | case "(($ac_try" in |
| 16131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16132 | *) ac_try_echo=$ac_try;; |
| 16133 | esac |
| 16134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16135 | $as_echo "$ac_try_echo") >&5 |
| 16136 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16137 | ac_status=$? |
| 16138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16139 | rm -f conftest.er1 |
| 16140 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16142 | (exit $ac_status); } && { |
| 16143 | test -z "$ac_c_werror_flag" || |
| 16144 | test ! -s conftest.err |
| 16145 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16146 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16147 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16148 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16150 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16151 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16152 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16153 | |
| 16154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16155 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16156 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16157 | |
| 16158 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16159 | { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 16160 | $as_echo_n "checking dl.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16161 | cat >conftest.$ac_ext <<_ACEOF |
| 16162 | /* confdefs.h. */ |
| 16163 | _ACEOF |
| 16164 | cat confdefs.h >>conftest.$ac_ext |
| 16165 | cat >>conftest.$ac_ext <<_ACEOF |
| 16166 | /* end confdefs.h. */ |
| 16167 | #include <dl.h> |
| 16168 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16169 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16170 | case "(($ac_try" in |
| 16171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16172 | *) ac_try_echo=$ac_try;; |
| 16173 | esac |
| 16174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16175 | $as_echo "$ac_try_echo") >&5 |
| 16176 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16177 | ac_status=$? |
| 16178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16179 | rm -f conftest.er1 |
| 16180 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16182 | (exit $ac_status); } >/dev/null && { |
| 16183 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16184 | test ! -s conftest.err |
| 16185 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16186 | ac_header_preproc=yes |
| 16187 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16188 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16190 | |
| 16191 | ac_header_preproc=no |
| 16192 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16193 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16194 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16195 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16196 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16197 | |
| 16198 | # So? What about this header? |
| 16199 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16200 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16201 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16202 | $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16203 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 16204 | $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16205 | ac_header_preproc=yes |
| 16206 | ;; |
| 16207 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16208 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 16209 | $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 16210 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 16211 | $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 16212 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 16213 | $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 16214 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16215 | $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16216 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 16217 | $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 16218 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 16219 | $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 16220 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16221 | ;; |
| 16222 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16223 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16224 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16225 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16226 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16227 | else |
| 16228 | ac_cv_header_dl_h=$ac_header_preproc |
| 16229 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16230 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16231 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16232 | |
| 16233 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16234 | if test $ac_cv_header_dl_h = yes; then |
| 16235 | DLL=dl.h |
| 16236 | fi |
| 16237 | |
| 16238 | |
| 16239 | fi |
| 16240 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16241 | |
| 16242 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16243 | |
| 16244 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16245 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16246 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16247 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16248 | { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 16249 | $as_echo_n "checking for dlopen()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16250 | cat >conftest.$ac_ext <<_ACEOF |
| 16251 | /* confdefs.h. */ |
| 16252 | _ACEOF |
| 16253 | cat confdefs.h >>conftest.$ac_ext |
| 16254 | cat >>conftest.$ac_ext <<_ACEOF |
| 16255 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16256 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16257 | int |
| 16258 | main () |
| 16259 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16260 | |
| 16261 | extern void* dlopen(); |
| 16262 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16263 | |
| 16264 | ; |
| 16265 | return 0; |
| 16266 | } |
| 16267 | _ACEOF |
| 16268 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16269 | if { (ac_try="$ac_link" |
| 16270 | case "(($ac_try" in |
| 16271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16272 | *) ac_try_echo=$ac_try;; |
| 16273 | esac |
| 16274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16275 | $as_echo "$ac_try_echo") >&5 |
| 16276 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16277 | ac_status=$? |
| 16278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16279 | rm -f conftest.er1 |
| 16280 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16282 | (exit $ac_status); } && { |
| 16283 | test -z "$ac_c_werror_flag" || |
| 16284 | test ! -s conftest.err |
| 16285 | } && test -s conftest$ac_exeext && { |
| 16286 | test "$cross_compiling" = yes || |
| 16287 | $as_test_x conftest$ac_exeext |
| 16288 | }; then |
| 16289 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16290 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16291 | |
| 16292 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16293 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16294 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16295 | |
| 16296 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16297 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16299 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16300 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16301 | $as_echo "no" >&6; }; |
| 16302 | { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 16303 | $as_echo_n "checking for dlopen() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16304 | olibs=$LIBS |
| 16305 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16306 | cat >conftest.$ac_ext <<_ACEOF |
| 16307 | /* confdefs.h. */ |
| 16308 | _ACEOF |
| 16309 | cat confdefs.h >>conftest.$ac_ext |
| 16310 | cat >>conftest.$ac_ext <<_ACEOF |
| 16311 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16312 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16313 | int |
| 16314 | main () |
| 16315 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16316 | |
| 16317 | extern void* dlopen(); |
| 16318 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16319 | |
| 16320 | ; |
| 16321 | return 0; |
| 16322 | } |
| 16323 | _ACEOF |
| 16324 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16325 | if { (ac_try="$ac_link" |
| 16326 | case "(($ac_try" in |
| 16327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16328 | *) ac_try_echo=$ac_try;; |
| 16329 | esac |
| 16330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16331 | $as_echo "$ac_try_echo") >&5 |
| 16332 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16333 | ac_status=$? |
| 16334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16335 | rm -f conftest.er1 |
| 16336 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16338 | (exit $ac_status); } && { |
| 16339 | test -z "$ac_c_werror_flag" || |
| 16340 | test ! -s conftest.err |
| 16341 | } && test -s conftest$ac_exeext && { |
| 16342 | test "$cross_compiling" = yes || |
| 16343 | $as_test_x conftest$ac_exeext |
| 16344 | }; then |
| 16345 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16346 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16347 | |
| 16348 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16349 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16350 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16351 | |
| 16352 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16353 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16355 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16356 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16357 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16358 | LIBS=$olibs |
| 16359 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16360 | |
| 16361 | rm -rf conftest.dSYM |
| 16362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16363 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16364 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16365 | |
| 16366 | rm -rf conftest.dSYM |
| 16367 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16368 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16369 | { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 16370 | $as_echo_n "checking for dlsym()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16371 | cat >conftest.$ac_ext <<_ACEOF |
| 16372 | /* confdefs.h. */ |
| 16373 | _ACEOF |
| 16374 | cat confdefs.h >>conftest.$ac_ext |
| 16375 | cat >>conftest.$ac_ext <<_ACEOF |
| 16376 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16378 | int |
| 16379 | main () |
| 16380 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16381 | |
| 16382 | extern void* dlsym(); |
| 16383 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16384 | |
| 16385 | ; |
| 16386 | return 0; |
| 16387 | } |
| 16388 | _ACEOF |
| 16389 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16390 | if { (ac_try="$ac_link" |
| 16391 | case "(($ac_try" in |
| 16392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16393 | *) ac_try_echo=$ac_try;; |
| 16394 | esac |
| 16395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16396 | $as_echo "$ac_try_echo") >&5 |
| 16397 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16398 | ac_status=$? |
| 16399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16400 | rm -f conftest.er1 |
| 16401 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16403 | (exit $ac_status); } && { |
| 16404 | test -z "$ac_c_werror_flag" || |
| 16405 | test ! -s conftest.err |
| 16406 | } && test -s conftest$ac_exeext && { |
| 16407 | test "$cross_compiling" = yes || |
| 16408 | $as_test_x conftest$ac_exeext |
| 16409 | }; then |
| 16410 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16411 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16412 | |
| 16413 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16414 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16415 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16416 | |
| 16417 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16418 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16420 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16421 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16422 | $as_echo "no" >&6; }; |
| 16423 | { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 16424 | $as_echo_n "checking for dlsym() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16425 | olibs=$LIBS |
| 16426 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16427 | cat >conftest.$ac_ext <<_ACEOF |
| 16428 | /* confdefs.h. */ |
| 16429 | _ACEOF |
| 16430 | cat confdefs.h >>conftest.$ac_ext |
| 16431 | cat >>conftest.$ac_ext <<_ACEOF |
| 16432 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16433 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16434 | int |
| 16435 | main () |
| 16436 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16437 | |
| 16438 | extern void* dlsym(); |
| 16439 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16440 | |
| 16441 | ; |
| 16442 | return 0; |
| 16443 | } |
| 16444 | _ACEOF |
| 16445 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16446 | if { (ac_try="$ac_link" |
| 16447 | case "(($ac_try" in |
| 16448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16449 | *) ac_try_echo=$ac_try;; |
| 16450 | esac |
| 16451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16452 | $as_echo "$ac_try_echo") >&5 |
| 16453 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16454 | ac_status=$? |
| 16455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16456 | rm -f conftest.er1 |
| 16457 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16459 | (exit $ac_status); } && { |
| 16460 | test -z "$ac_c_werror_flag" || |
| 16461 | test ! -s conftest.err |
| 16462 | } && test -s conftest$ac_exeext && { |
| 16463 | test "$cross_compiling" = yes || |
| 16464 | $as_test_x conftest$ac_exeext |
| 16465 | }; then |
| 16466 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16467 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16468 | |
| 16469 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16470 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16471 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16472 | |
| 16473 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16474 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16476 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16477 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16478 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16479 | LIBS=$olibs |
| 16480 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16481 | |
| 16482 | rm -rf conftest.dSYM |
| 16483 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16484 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16485 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16486 | |
| 16487 | rm -rf conftest.dSYM |
| 16488 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16489 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16490 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16491 | |
| 16492 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16493 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16494 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16495 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16496 | { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 16497 | $as_echo_n "checking for shl_load()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16498 | cat >conftest.$ac_ext <<_ACEOF |
| 16499 | /* confdefs.h. */ |
| 16500 | _ACEOF |
| 16501 | cat confdefs.h >>conftest.$ac_ext |
| 16502 | cat >>conftest.$ac_ext <<_ACEOF |
| 16503 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16504 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16505 | int |
| 16506 | main () |
| 16507 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16508 | |
| 16509 | extern void* shl_load(); |
| 16510 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16511 | |
| 16512 | ; |
| 16513 | return 0; |
| 16514 | } |
| 16515 | _ACEOF |
| 16516 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16517 | if { (ac_try="$ac_link" |
| 16518 | case "(($ac_try" in |
| 16519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16520 | *) ac_try_echo=$ac_try;; |
| 16521 | esac |
| 16522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16523 | $as_echo "$ac_try_echo") >&5 |
| 16524 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16525 | ac_status=$? |
| 16526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16527 | rm -f conftest.er1 |
| 16528 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16530 | (exit $ac_status); } && { |
| 16531 | test -z "$ac_c_werror_flag" || |
| 16532 | test ! -s conftest.err |
| 16533 | } && test -s conftest$ac_exeext && { |
| 16534 | test "$cross_compiling" = yes || |
| 16535 | $as_test_x conftest$ac_exeext |
| 16536 | }; then |
| 16537 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16538 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16539 | |
| 16540 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16541 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16542 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16543 | |
| 16544 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16545 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16547 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16548 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16549 | $as_echo "no" >&6; }; |
| 16550 | { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 16551 | $as_echo_n "checking for shl_load() in -ldld... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16552 | olibs=$LIBS |
| 16553 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16554 | cat >conftest.$ac_ext <<_ACEOF |
| 16555 | /* confdefs.h. */ |
| 16556 | _ACEOF |
| 16557 | cat confdefs.h >>conftest.$ac_ext |
| 16558 | cat >>conftest.$ac_ext <<_ACEOF |
| 16559 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16560 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16561 | int |
| 16562 | main () |
| 16563 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16564 | |
| 16565 | extern void* shl_load(); |
| 16566 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16567 | |
| 16568 | ; |
| 16569 | return 0; |
| 16570 | } |
| 16571 | _ACEOF |
| 16572 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16573 | if { (ac_try="$ac_link" |
| 16574 | case "(($ac_try" in |
| 16575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16576 | *) ac_try_echo=$ac_try;; |
| 16577 | esac |
| 16578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16579 | $as_echo "$ac_try_echo") >&5 |
| 16580 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16581 | ac_status=$? |
| 16582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16583 | rm -f conftest.er1 |
| 16584 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16586 | (exit $ac_status); } && { |
| 16587 | test -z "$ac_c_werror_flag" || |
| 16588 | test ! -s conftest.err |
| 16589 | } && test -s conftest$ac_exeext && { |
| 16590 | test "$cross_compiling" = yes || |
| 16591 | $as_test_x conftest$ac_exeext |
| 16592 | }; then |
| 16593 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16594 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16595 | |
| 16596 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16597 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16598 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16599 | |
| 16600 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16601 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16603 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16604 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16605 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16606 | LIBS=$olibs |
| 16607 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16608 | |
| 16609 | rm -rf conftest.dSYM |
| 16610 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16611 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16612 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16613 | |
| 16614 | rm -rf conftest.dSYM |
| 16615 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16616 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16617 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16618 | |
| 16619 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16620 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16621 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16622 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16623 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16624 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16625 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16626 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16627 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16628 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16629 | $as_echo "$as_val"'` |
| 16630 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16631 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16632 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16633 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16634 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16635 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16636 | cat >conftest.$ac_ext <<_ACEOF |
| 16637 | /* confdefs.h. */ |
| 16638 | _ACEOF |
| 16639 | cat confdefs.h >>conftest.$ac_ext |
| 16640 | cat >>conftest.$ac_ext <<_ACEOF |
| 16641 | /* end confdefs.h. */ |
| 16642 | $ac_includes_default |
| 16643 | #include <$ac_header> |
| 16644 | _ACEOF |
| 16645 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16646 | if { (ac_try="$ac_compile" |
| 16647 | case "(($ac_try" in |
| 16648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16649 | *) ac_try_echo=$ac_try;; |
| 16650 | esac |
| 16651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16652 | $as_echo "$ac_try_echo") >&5 |
| 16653 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16654 | ac_status=$? |
| 16655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16656 | rm -f conftest.er1 |
| 16657 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16659 | (exit $ac_status); } && { |
| 16660 | test -z "$ac_c_werror_flag" || |
| 16661 | test ! -s conftest.err |
| 16662 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16663 | ac_header_compiler=yes |
| 16664 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16665 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16667 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16668 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16669 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16670 | |
| 16671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16672 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16673 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16674 | |
| 16675 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16676 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16677 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16678 | cat >conftest.$ac_ext <<_ACEOF |
| 16679 | /* confdefs.h. */ |
| 16680 | _ACEOF |
| 16681 | cat confdefs.h >>conftest.$ac_ext |
| 16682 | cat >>conftest.$ac_ext <<_ACEOF |
| 16683 | /* end confdefs.h. */ |
| 16684 | #include <$ac_header> |
| 16685 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16686 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16687 | case "(($ac_try" in |
| 16688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16689 | *) ac_try_echo=$ac_try;; |
| 16690 | esac |
| 16691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16692 | $as_echo "$ac_try_echo") >&5 |
| 16693 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16694 | ac_status=$? |
| 16695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16696 | rm -f conftest.er1 |
| 16697 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16698 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16699 | (exit $ac_status); } >/dev/null && { |
| 16700 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16701 | test ! -s conftest.err |
| 16702 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16703 | ac_header_preproc=yes |
| 16704 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16705 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16707 | |
| 16708 | ac_header_preproc=no |
| 16709 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16710 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16711 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16712 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16713 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16714 | |
| 16715 | # So? What about this header? |
| 16716 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16717 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16718 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16719 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16720 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16721 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16722 | ac_header_preproc=yes |
| 16723 | ;; |
| 16724 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16725 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16726 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16727 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16728 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16729 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16730 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16731 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16732 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16733 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16734 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16735 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16736 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16737 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16738 | ;; |
| 16739 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16740 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16741 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16743 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16744 | else |
| 16745 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16746 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16747 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16748 | $as_echo "$as_val"'` |
| 16749 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16750 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16751 | |
| 16752 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16753 | if test `eval 'as_val=${'$as_ac_Header'} |
| 16754 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16755 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16756 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16757 | _ACEOF |
| 16758 | |
| 16759 | fi |
| 16760 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16761 | done |
| 16762 | |
| 16763 | |
| 16764 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 16765 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 16766 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 16767 | PERL_LIBS="$PERL_LIBS -ldl" |
| 16768 | fi |
| 16769 | fi |
| 16770 | |
| 16771 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 16772 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16773 | { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 16774 | $as_echo_n "checking whether we need -framework Carbon... " >&6; } |
Bram Moolenaar | b90daee | 2006-10-17 09:49:09 +0000 | [diff] [blame] | 16775 | if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16776 | || test "x$features" = "xhuge"; then |
| 16777 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16778 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16779 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16780 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16781 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16782 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16783 | fi |
| 16784 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 16785 | if test "x$MACARCH" = "xboth"; then |
| 16786 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 16787 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16788 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16789 | { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 16790 | $as_echo_n "checking for GCC 3 or later... " >&6; } |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16791 | DEPEND_CFLAGS_FILTER= |
| 16792 | if test "$GCC" = yes; then |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 16793 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 16794 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16795 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 16796 | fi |
| 16797 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16798 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16799 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16800 | $as_echo "no" >&6; } |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16801 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16802 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16803 | $as_echo "yes" >&6; } |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16804 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16805 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16806 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16807 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 16808 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16809 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16810 | # This file is a shell script that caches the results of configure |
| 16811 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16812 | # scripts and configure runs, see configure's option --config-cache. |
| 16813 | # It is not useful on other systems. If it contains results you don't |
| 16814 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16815 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16816 | # config.status only pays attention to the cache file if you give it |
| 16817 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16818 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16819 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16820 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16821 | # following values. |
| 16822 | |
| 16823 | _ACEOF |
| 16824 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16825 | # The following way of writing the cache mishandles newlines in values, |
| 16826 | # but we know of no workaround that is simple, portable, and efficient. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16827 | # So, we kill variables containing newlines. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16828 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16829 | # and sets the high bit in the cache file unless we assign to the vars. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16830 | ( |
| 16831 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16832 | eval ac_val=\$$ac_var |
| 16833 | case $ac_val in #( |
| 16834 | *${as_nl}*) |
| 16835 | case $ac_var in #( |
| 16836 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 16837 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 16838 | esac |
| 16839 | case $ac_var in #( |
| 16840 | _ | IFS | as_nl) ;; #( |
| 16841 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 16842 | *) $as_unset $ac_var ;; |
| 16843 | esac ;; |
| 16844 | esac |
| 16845 | done |
| 16846 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16847 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16848 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16849 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16850 | # `set' does not quote correctly, so add quotes (double-quote |
| 16851 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16852 | sed -n \ |
| 16853 | "s/'/'\\\\''/g; |
| 16854 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16855 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16856 | *) |
| 16857 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16858 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16859 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16860 | esac | |
| 16861 | sort |
| 16862 | ) | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16863 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16864 | /^ac_cv_env_/b end |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16865 | t clear |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16866 | :clear |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16867 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16868 | t end |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16869 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16870 | :end' >>confcache |
| 16871 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16872 | if test -w "$cache_file"; then |
| 16873 | test "x$cache_file" != "x/dev/null" && |
| 16874 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 16875 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16876 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16877 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16878 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 16879 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16880 | fi |
| 16881 | fi |
| 16882 | rm -f confcache |
| 16883 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16884 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16885 | # Let make expand exec_prefix. |
| 16886 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16887 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16888 | DEFS=-DHAVE_CONFIG_H |
| 16889 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16890 | ac_libobjs= |
| 16891 | ac_ltlibobjs= |
| 16892 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16893 | # 1. Remove the extension, and $U if already installed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16894 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16895 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 16896 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16897 | # will be set to the directory where LIBOBJS objects are built. |
| 16898 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16899 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16900 | done |
| 16901 | LIBOBJS=$ac_libobjs |
| 16902 | |
| 16903 | LTLIBOBJS=$ac_ltlibobjs |
| 16904 | |
| 16905 | |
| 16906 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16907 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16908 | ac_write_fail=0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16909 | ac_clean_files_save=$ac_clean_files |
| 16910 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16911 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16912 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16913 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16914 | #! $SHELL |
| 16915 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16916 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16917 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16918 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16919 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16920 | debug=false |
| 16921 | ac_cs_recheck=false |
| 16922 | ac_cs_silent=false |
| 16923 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16924 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16925 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16926 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16927 | ## --------------------- ## |
| 16928 | ## M4sh Initialization. ## |
| 16929 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16930 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16931 | # Be more Bourne compatible |
| 16932 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16933 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16934 | emulate sh |
| 16935 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16936 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16937 | # is contrary to our usage. Disable this feature. |
| 16938 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16939 | setopt NO_GLOB_SUBST |
| 16940 | else |
| 16941 | case `(set -o) 2>/dev/null` in |
| 16942 | *posix*) set -o posix ;; |
| 16943 | esac |
| 16944 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16945 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16946 | |
| 16947 | |
| 16948 | |
| 16949 | |
| 16950 | # PATH needs CR |
| 16951 | # Avoid depending upon Character Ranges. |
| 16952 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16953 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16954 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16955 | as_cr_digits='0123456789' |
| 16956 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16957 | |
| 16958 | as_nl=' |
| 16959 | ' |
| 16960 | export as_nl |
| 16961 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16962 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16963 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16964 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16965 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16966 | as_echo='printf %s\n' |
| 16967 | as_echo_n='printf %s' |
| 16968 | else |
| 16969 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16970 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16971 | as_echo_n='/usr/ucb/echo -n' |
| 16972 | else |
| 16973 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16974 | as_echo_n_body='eval |
| 16975 | arg=$1; |
| 16976 | case $arg in |
| 16977 | *"$as_nl"*) |
| 16978 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16979 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16980 | esac; |
| 16981 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16982 | ' |
| 16983 | export as_echo_n_body |
| 16984 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16985 | fi |
| 16986 | export as_echo_body |
| 16987 | as_echo='sh -c $as_echo_body as_echo' |
| 16988 | fi |
| 16989 | |
| 16990 | # The user is always right. |
| 16991 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16992 | PATH_SEPARATOR=: |
| 16993 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16994 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16995 | PATH_SEPARATOR=';' |
| 16996 | } |
| 16997 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16998 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16999 | # Support unset when possible. |
| 17000 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 17001 | as_unset=unset |
| 17002 | else |
| 17003 | as_unset=false |
| 17004 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17005 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17006 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17007 | # IFS |
| 17008 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17009 | # there to prevent editors from complaining about space-tab. |
| 17010 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17011 | # splitting by setting IFS to empty value.) |
| 17012 | IFS=" "" $as_nl" |
| 17013 | |
| 17014 | # Find who we are. Look in the path if we contain no directory separator. |
| 17015 | case $0 in |
| 17016 | *[\\/]* ) as_myself=$0 ;; |
| 17017 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17018 | for as_dir in $PATH |
| 17019 | do |
| 17020 | IFS=$as_save_IFS |
| 17021 | test -z "$as_dir" && as_dir=. |
| 17022 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17023 | done |
| 17024 | IFS=$as_save_IFS |
| 17025 | |
| 17026 | ;; |
| 17027 | esac |
| 17028 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17029 | # in which case we are not to be found in the path. |
| 17030 | if test "x$as_myself" = x; then |
| 17031 | as_myself=$0 |
| 17032 | fi |
| 17033 | if test ! -f "$as_myself"; then |
| 17034 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17035 | { (exit 1); exit 1; } |
| 17036 | fi |
| 17037 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17038 | # Work around bugs in pre-3.0 UWIN ksh. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17039 | for as_var in ENV MAIL MAILPATH |
| 17040 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 17041 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17042 | PS1='$ ' |
| 17043 | PS2='> ' |
| 17044 | PS4='+ ' |
| 17045 | |
| 17046 | # NLS nuisances. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17047 | LC_ALL=C |
| 17048 | export LC_ALL |
| 17049 | LANGUAGE=C |
| 17050 | export LANGUAGE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17051 | |
| 17052 | # Required to use basename. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17053 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17054 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17055 | as_expr=expr |
| 17056 | else |
| 17057 | as_expr=false |
| 17058 | fi |
| 17059 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17060 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17061 | as_basename=basename |
| 17062 | else |
| 17063 | as_basename=false |
| 17064 | fi |
| 17065 | |
| 17066 | |
| 17067 | # Name of the executable. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17068 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17069 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17070 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17071 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 17072 | $as_echo X/"$0" | |
| 17073 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17074 | s//\1/ |
| 17075 | q |
| 17076 | } |
| 17077 | /^X\/\(\/\/\)$/{ |
| 17078 | s//\1/ |
| 17079 | q |
| 17080 | } |
| 17081 | /^X\/\(\/\).*/{ |
| 17082 | s//\1/ |
| 17083 | q |
| 17084 | } |
| 17085 | s/.*/./; q'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17086 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17087 | # CDPATH. |
| 17088 | $as_unset CDPATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17089 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17090 | |
| 17091 | |
| 17092 | as_lineno_1=$LINENO |
| 17093 | as_lineno_2=$LINENO |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17094 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17095 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17096 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17097 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17098 | # uniformly replaced by the line number. The first 'sed' inserts a |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17099 | # line-number line after each line using $LINENO; the second 'sed' |
| 17100 | # does the real work. The second script uses 'N' to pair each |
| 17101 | # line-number line with the line containing $LINENO, and appends |
| 17102 | # trailing '-' during substitution so that $LINENO is not a special |
| 17103 | # case at line end. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17104 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17105 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 17106 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 17107 | sed -n ' |
| 17108 | p |
| 17109 | /[$]LINENO/= |
| 17110 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17111 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17112 | s/[$]LINENO.*/&-/ |
| 17113 | t lineno |
| 17114 | b |
| 17115 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17116 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17117 | :loop |
| 17118 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17119 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17120 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17121 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17122 | chmod +x "$as_me.lineno" || |
| 17123 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17124 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17125 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17126 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17127 | # (the dirname of $[0] is not the place where we might find the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17128 | # original and so on. Autoconf is especially sensitive to this). |
| 17129 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17130 | # Exit status is that of the last command. |
| 17131 | exit |
| 17132 | } |
| 17133 | |
| 17134 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17135 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17136 | as_dirname=dirname |
| 17137 | else |
| 17138 | as_dirname=false |
| 17139 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17140 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17141 | ECHO_C= ECHO_N= ECHO_T= |
| 17142 | case `echo -n x` in |
| 17143 | -n*) |
| 17144 | case `echo 'x\c'` in |
| 17145 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 17146 | *) ECHO_C='\c';; |
| 17147 | esac;; |
| 17148 | *) |
| 17149 | ECHO_N='-n';; |
| 17150 | esac |
| 17151 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17152 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17153 | as_expr=expr |
| 17154 | else |
| 17155 | as_expr=false |
| 17156 | fi |
| 17157 | |
| 17158 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17159 | if test -d conf$$.dir; then |
| 17160 | rm -f conf$$.dir/conf$$.file |
| 17161 | else |
| 17162 | rm -f conf$$.dir |
| 17163 | mkdir conf$$.dir 2>/dev/null |
| 17164 | fi |
| 17165 | if (echo >conf$$.file) 2>/dev/null; then |
| 17166 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17167 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17168 | # ... but there are two gotchas: |
| 17169 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17170 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 17171 | # In both cases, we have to default to `cp -p'. |
| 17172 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 17173 | as_ln_s='cp -p' |
| 17174 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17175 | as_ln_s=ln |
| 17176 | else |
| 17177 | as_ln_s='cp -p' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17178 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17179 | else |
| 17180 | as_ln_s='cp -p' |
| 17181 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17182 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17183 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17184 | |
| 17185 | if mkdir -p . 2>/dev/null; then |
| 17186 | as_mkdir_p=: |
| 17187 | else |
| 17188 | test -d ./-p && rmdir ./-p |
| 17189 | as_mkdir_p=false |
| 17190 | fi |
| 17191 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17192 | if test -x / >/dev/null 2>&1; then |
| 17193 | as_test_x='test -x' |
| 17194 | else |
| 17195 | if ls -dL / >/dev/null 2>&1; then |
| 17196 | as_ls_L_option=L |
| 17197 | else |
| 17198 | as_ls_L_option= |
| 17199 | fi |
| 17200 | as_test_x=' |
| 17201 | eval sh -c '\'' |
| 17202 | if test -d "$1"; then |
| 17203 | test -d "$1/."; |
| 17204 | else |
| 17205 | case $1 in |
| 17206 | -*)set "./$1";; |
| 17207 | esac; |
| 17208 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 17209 | ???[sx]*):;;*)false;;esac;fi |
| 17210 | '\'' sh |
| 17211 | ' |
| 17212 | fi |
| 17213 | as_executable_p=$as_test_x |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17214 | |
| 17215 | # Sed expression to map a string onto a valid CPP name. |
| 17216 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 17217 | |
| 17218 | # Sed expression to map a string onto a valid variable name. |
| 17219 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 17220 | |
| 17221 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17222 | exec 6>&1 |
| 17223 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17224 | # Save the log message, to keep $[0] and so on meaningful, and to |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17225 | # report actual input values of CONFIG_FILES etc. instead of their |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17226 | # values after options handling. |
| 17227 | ac_log=" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17228 | This file was extended by $as_me, which was |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17229 | generated by GNU Autoconf 2.62. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17230 | |
| 17231 | CONFIG_FILES = $CONFIG_FILES |
| 17232 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17233 | CONFIG_LINKS = $CONFIG_LINKS |
| 17234 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17235 | $ $0 $@ |
| 17236 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17237 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17238 | " |
| 17239 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17240 | _ACEOF |
| 17241 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17242 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17243 | # Files that config.status was made for. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17244 | config_files="$ac_config_files" |
| 17245 | config_headers="$ac_config_headers" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17246 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17247 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17248 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17249 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17250 | ac_cs_usage="\ |
| 17251 | \`$as_me' instantiates files from templates according to the |
| 17252 | current configuration. |
| 17253 | |
| 17254 | Usage: $0 [OPTIONS] [FILE]... |
| 17255 | |
| 17256 | -h, --help print this help, then exit |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17257 | -V, --version print version number and configuration settings, then exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17258 | -q, --quiet do not print progress messages |
| 17259 | -d, --debug don't remove temporary files |
| 17260 | --recheck update $as_me by reconfiguring in the same conditions |
| 17261 | --file=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17262 | instantiate the configuration file FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17263 | --header=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17264 | instantiate the configuration header FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17265 | |
| 17266 | Configuration files: |
| 17267 | $config_files |
| 17268 | |
| 17269 | Configuration headers: |
| 17270 | $config_headers |
| 17271 | |
| 17272 | Report bugs to <bug-autoconf@gnu.org>." |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17273 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17274 | _ACEOF |
| 17275 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17276 | ac_cs_version="\\ |
| 17277 | config.status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17278 | configured by $0, generated by GNU Autoconf 2.62, |
| 17279 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17280 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17281 | Copyright (C) 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17282 | This config.status script is free software; the Free Software Foundation |
| 17283 | gives unlimited permission to copy, distribute and modify it." |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17284 | |
| 17285 | ac_pwd='$ac_pwd' |
| 17286 | srcdir='$srcdir' |
| 17287 | AWK='$AWK' |
| 17288 | test -n "\$AWK" || AWK=awk |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17289 | _ACEOF |
| 17290 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17291 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17292 | # The default lists apply if the user does not specify any file. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17293 | ac_need_defaults=: |
| 17294 | while test $# != 0 |
| 17295 | do |
| 17296 | case $1 in |
| 17297 | --*=*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17298 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17299 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17300 | ac_shift=: |
| 17301 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17302 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17303 | ac_option=$1 |
| 17304 | ac_optarg=$2 |
| 17305 | ac_shift=shift |
| 17306 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17307 | esac |
| 17308 | |
| 17309 | case $ac_option in |
| 17310 | # Handling of the options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17311 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17312 | ac_cs_recheck=: ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17313 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 17314 | $as_echo "$ac_cs_version"; exit ;; |
| 17315 | --debug | --debu | --deb | --de | --d | -d ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17316 | debug=: ;; |
| 17317 | --file | --fil | --fi | --f ) |
| 17318 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17319 | case $ac_optarg in |
| 17320 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17321 | esac |
| 17322 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17323 | ac_need_defaults=false;; |
| 17324 | --header | --heade | --head | --hea ) |
| 17325 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17326 | case $ac_optarg in |
| 17327 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17328 | esac |
| 17329 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17330 | ac_need_defaults=false;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17331 | --he | --h) |
| 17332 | # Conflict between --help and --header |
| 17333 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 17334 | Try \`$0 --help' for more information." >&2 |
| 17335 | { (exit 1); exit 1; }; };; |
| 17336 | --help | --hel | -h ) |
| 17337 | $as_echo "$ac_cs_usage"; exit ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17338 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17339 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17340 | ac_cs_silent=: ;; |
| 17341 | |
| 17342 | # This is an error. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17343 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 17344 | Try \`$0 --help' for more information." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17345 | { (exit 1); exit 1; }; } ;; |
| 17346 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17347 | *) ac_config_targets="$ac_config_targets $1" |
| 17348 | ac_need_defaults=false ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17349 | |
| 17350 | esac |
| 17351 | shift |
| 17352 | done |
| 17353 | |
| 17354 | ac_configure_extra_args= |
| 17355 | |
| 17356 | if $ac_cs_silent; then |
| 17357 | exec 6>/dev/null |
| 17358 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17359 | fi |
| 17360 | |
| 17361 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17362 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17363 | if \$ac_cs_recheck; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17364 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 17365 | shift |
| 17366 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17367 | CONFIG_SHELL='$SHELL' |
| 17368 | export CONFIG_SHELL |
| 17369 | exec "\$@" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17370 | fi |
| 17371 | |
| 17372 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17373 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17374 | exec 5>>auto/config.log |
| 17375 | { |
| 17376 | echo |
| 17377 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17378 | ## Running $as_me. ## |
| 17379 | _ASBOX |
| 17380 | $as_echo "$ac_log" |
| 17381 | } >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17382 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17383 | _ACEOF |
| 17384 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17385 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17386 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17388 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17389 | # Handling of arguments. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17390 | for ac_config_target in $ac_config_targets |
| 17391 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17392 | case $ac_config_target in |
| 17393 | "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 17394 | "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 17395 | |
| 17396 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17397 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17398 | { (exit 1); exit 1; }; };; |
| 17399 | esac |
| 17400 | done |
| 17401 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17402 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17403 | # If the user did not use the arguments to specify the items to instantiate, |
| 17404 | # then the envvar interface is used. Set only those that are not. |
| 17405 | # We use the long form for the default assignment because of an extremely |
| 17406 | # bizarre bug on SunOS 4.1.3. |
| 17407 | if $ac_need_defaults; then |
| 17408 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17409 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17410 | fi |
| 17411 | |
| 17412 | # Have a temporary directory for convenience. Make it in the build tree |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17413 | # simply because there is no reason against having it here, and in addition, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17414 | # creating and moving files from /tmp can sometimes cause problems. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17415 | # Hook for its removal unless debugging. |
| 17416 | # Note that there is a small window in which the directory will not be cleaned: |
| 17417 | # after its creation but before its name has been assigned to `$tmp'. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17418 | $debug || |
| 17419 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17420 | tmp= |
| 17421 | trap 'exit_status=$? |
| 17422 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17423 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17424 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17425 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17426 | # Create a (secure) tmp directory for tmp files. |
| 17427 | |
| 17428 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17429 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17430 | test -n "$tmp" && test -d "$tmp" |
| 17431 | } || |
| 17432 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17433 | tmp=./conf$$-$RANDOM |
| 17434 | (umask 077 && mkdir "$tmp") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17435 | } || |
| 17436 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17437 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17438 | { (exit 1); exit 1; } |
| 17439 | } |
| 17440 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17441 | # Set up the scripts for CONFIG_FILES section. |
| 17442 | # No need to generate them if there are no CONFIG_FILES. |
| 17443 | # This happens for instance with `./config.status config.h'. |
| 17444 | if test -n "$CONFIG_FILES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17445 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17446 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17447 | ac_cr='
' |
| 17448 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17449 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 17450 | ac_cs_awk_cr='\\r' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17451 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17452 | ac_cs_awk_cr=$ac_cr |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17453 | fi |
| 17454 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17455 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17456 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17457 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17458 | |
| 17459 | { |
| 17460 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17461 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17462 | echo "_ACEOF" |
| 17463 | } >conf$$subs.sh || |
| 17464 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17465 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17466 | { (exit 1); exit 1; }; } |
| 17467 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 17468 | ac_delim='%!_!# ' |
| 17469 | for ac_last_try in false false false false false :; do |
| 17470 | . ./conf$$subs.sh || |
| 17471 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17472 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17473 | { (exit 1); exit 1; }; } |
| 17474 | |
| 17475 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then |
| 17476 | break |
| 17477 | elif $ac_last_try; then |
| 17478 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17479 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17480 | { (exit 1); exit 1; }; } |
| 17481 | else |
| 17482 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17483 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17484 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17485 | rm -f conf$$subs.sh |
| 17486 | |
| 17487 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17488 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17489 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17490 | sed -n ' |
| 17491 | h |
| 17492 | s/^/S["/; s/!.*/"]=/ |
| 17493 | p |
| 17494 | g |
| 17495 | s/^[^!]*!// |
| 17496 | :repl |
| 17497 | t repl |
| 17498 | s/'"$ac_delim"'$// |
| 17499 | t delim |
| 17500 | :nl |
| 17501 | h |
| 17502 | s/\(.\{148\}\).*/\1/ |
| 17503 | t more1 |
| 17504 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17505 | p |
| 17506 | n |
| 17507 | b repl |
| 17508 | :more1 |
| 17509 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17510 | p |
| 17511 | g |
| 17512 | s/.\{148\}// |
| 17513 | t nl |
| 17514 | :delim |
| 17515 | h |
| 17516 | s/\(.\{148\}\).*/\1/ |
| 17517 | t more2 |
| 17518 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17519 | p |
| 17520 | b |
| 17521 | :more2 |
| 17522 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17523 | p |
| 17524 | g |
| 17525 | s/.\{148\}// |
| 17526 | t delim |
| 17527 | ' <conf$$subs.awk | sed ' |
| 17528 | /^[^""]/{ |
| 17529 | N |
| 17530 | s/\n// |
| 17531 | } |
| 17532 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17533 | rm -f conf$$subs.awk |
| 17534 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17535 | _ACAWK |
| 17536 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 17537 | for (key in S) S_is_set[key] = 1 |
| 17538 | FS = "" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17539 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17540 | } |
| 17541 | { |
| 17542 | line = $ 0 |
| 17543 | nfields = split(line, field, "@") |
| 17544 | substed = 0 |
| 17545 | len = length(field[1]) |
| 17546 | for (i = 2; i < nfields; i++) { |
| 17547 | key = field[i] |
| 17548 | keylen = length(key) |
| 17549 | if (S_is_set[key]) { |
| 17550 | value = S[key] |
| 17551 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17552 | len += length(value) + length(field[++i]) |
| 17553 | substed = 1 |
| 17554 | } else |
| 17555 | len += 1 + keylen |
| 17556 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17557 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17558 | print line |
| 17559 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17560 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17561 | _ACAWK |
| 17562 | _ACEOF |
| 17563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17564 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17565 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17566 | else |
| 17567 | cat |
| 17568 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 17569 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 17570 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 17571 | { (exit 1); exit 1; }; } |
| 17572 | _ACEOF |
| 17573 | |
| 17574 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17575 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17576 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17577 | # (actually we leave an empty line to preserve line numbers). |
| 17578 | if test "x$srcdir" = x.; then |
| 17579 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17580 | s/:*\$(srcdir):*/:/ |
| 17581 | s/:*\${srcdir}:*/:/ |
| 17582 | s/:*@srcdir@:*/:/ |
| 17583 | s/^\([^=]*=[ ]*\):*/\1/ |
| 17584 | s/:*$// |
| 17585 | s/^[^=]*=[ ]*$// |
| 17586 | }' |
| 17587 | fi |
| 17588 | |
| 17589 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17590 | fi # test -n "$CONFIG_FILES" |
| 17591 | |
| 17592 | # Set up the scripts for CONFIG_HEADERS section. |
| 17593 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17594 | # This happens for instance with `./config.status Makefile'. |
| 17595 | if test -n "$CONFIG_HEADERS"; then |
| 17596 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 17597 | BEGIN { |
| 17598 | _ACEOF |
| 17599 | |
| 17600 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17601 | # here-document in config.status, that substitutes the proper values into |
| 17602 | # config.h.in to produce config.h. |
| 17603 | |
| 17604 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17605 | # handling of long lines. |
| 17606 | ac_delim='%!_!# ' |
| 17607 | for ac_last_try in false false :; do |
| 17608 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 17609 | if test -z "$ac_t"; then |
| 17610 | break |
| 17611 | elif $ac_last_try; then |
| 17612 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 17613 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 17614 | { (exit 1); exit 1; }; } |
| 17615 | else |
| 17616 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17617 | fi |
| 17618 | done |
| 17619 | |
| 17620 | # For the awk script, D is an array of macro values keyed by name, |
| 17621 | # likewise P contains macro parameters if any. Preserve backslash |
| 17622 | # newline sequences. |
| 17623 | |
| 17624 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17625 | sed -n ' |
| 17626 | s/.\{148\}/&'"$ac_delim"'/g |
| 17627 | t rset |
| 17628 | :rset |
| 17629 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17630 | t def |
| 17631 | d |
| 17632 | :def |
| 17633 | s/\\$// |
| 17634 | t bsnl |
| 17635 | s/["\\]/\\&/g |
| 17636 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17637 | D["\1"]=" \3"/p |
| 17638 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17639 | d |
| 17640 | :bsnl |
| 17641 | s/["\\]/\\&/g |
| 17642 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17643 | D["\1"]=" \3\\\\\\n"\\/p |
| 17644 | t cont |
| 17645 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17646 | t cont |
| 17647 | d |
| 17648 | :cont |
| 17649 | n |
| 17650 | s/.\{148\}/&'"$ac_delim"'/g |
| 17651 | t clear |
| 17652 | :clear |
| 17653 | s/\\$// |
| 17654 | t bsnlc |
| 17655 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17656 | d |
| 17657 | :bsnlc |
| 17658 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17659 | b cont |
| 17660 | ' <confdefs.h | sed ' |
| 17661 | s/'"$ac_delim"'/"\\\ |
| 17662 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17663 | |
| 17664 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17665 | for (key in D) D_is_set[key] = 1 |
| 17666 | FS = "" |
| 17667 | } |
| 17668 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17669 | line = \$ 0 |
| 17670 | split(line, arg, " ") |
| 17671 | if (arg[1] == "#") { |
| 17672 | defundef = arg[2] |
| 17673 | mac1 = arg[3] |
| 17674 | } else { |
| 17675 | defundef = substr(arg[1], 2) |
| 17676 | mac1 = arg[2] |
| 17677 | } |
| 17678 | split(mac1, mac2, "(") #) |
| 17679 | macro = mac2[1] |
| 17680 | if (D_is_set[macro]) { |
| 17681 | # Preserve the white space surrounding the "#". |
| 17682 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 17683 | print prefix "define", macro P[macro] D[macro] |
| 17684 | next |
| 17685 | } else { |
| 17686 | # Replace #undef with comments. This is necessary, for example, |
| 17687 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 17688 | # on some systems where configure will not decide to define it. |
| 17689 | if (defundef == "undef") { |
| 17690 | print "/*", line, "*/" |
| 17691 | next |
| 17692 | } |
| 17693 | } |
| 17694 | } |
| 17695 | { print } |
| 17696 | _ACAWK |
| 17697 | _ACEOF |
| 17698 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17699 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 17700 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 17701 | { (exit 1); exit 1; }; } |
| 17702 | fi # test -n "$CONFIG_HEADERS" |
| 17703 | |
| 17704 | |
| 17705 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 17706 | shift |
| 17707 | for ac_tag |
| 17708 | do |
| 17709 | case $ac_tag in |
| 17710 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17711 | esac |
| 17712 | case $ac_mode$ac_tag in |
| 17713 | :[FHL]*:*);; |
| 17714 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 17715 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 17716 | { (exit 1); exit 1; }; };; |
| 17717 | :[FH]-) ac_tag=-:-;; |
| 17718 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17719 | esac |
| 17720 | ac_save_IFS=$IFS |
| 17721 | IFS=: |
| 17722 | set x $ac_tag |
| 17723 | IFS=$ac_save_IFS |
| 17724 | shift |
| 17725 | ac_file=$1 |
| 17726 | shift |
| 17727 | |
| 17728 | case $ac_mode in |
| 17729 | :L) ac_source=$1;; |
| 17730 | :[FH]) |
| 17731 | ac_file_inputs= |
| 17732 | for ac_f |
| 17733 | do |
| 17734 | case $ac_f in |
| 17735 | -) ac_f="$tmp/stdin";; |
| 17736 | *) # Look for the file first in the build tree, then in the source tree |
| 17737 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17738 | # because $ac_f cannot contain `:'. |
| 17739 | test -f "$ac_f" || |
| 17740 | case $ac_f in |
| 17741 | [\\/$]*) false;; |
| 17742 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17743 | esac || |
| 17744 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 17745 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 17746 | { (exit 1); exit 1; }; };; |
| 17747 | esac |
| 17748 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17749 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 17750 | done |
| 17751 | |
| 17752 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17753 | # use $as_me), people would be surprised to read: |
| 17754 | # /* config.h. Generated by config.status. */ |
| 17755 | configure_input='Generated from '` |
| 17756 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17757 | `' by configure.' |
| 17758 | if test x"$ac_file" != x-; then |
| 17759 | configure_input="$ac_file. $configure_input" |
| 17760 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17761 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 17762 | fi |
| 17763 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17764 | case $configure_input in #( |
| 17765 | *\&* | *\|* | *\\* ) |
| 17766 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17767 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17768 | *) ac_sed_conf_input=$configure_input;; |
| 17769 | esac |
| 17770 | |
| 17771 | case $ac_tag in |
| 17772 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 17773 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17774 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17775 | { (exit 1); exit 1; }; } ;; |
| 17776 | esac |
| 17777 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17778 | esac |
| 17779 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17780 | ac_dir=`$as_dirname -- "$ac_file" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17781 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17782 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17783 | X"$ac_file" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17784 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 17785 | $as_echo X"$ac_file" | |
| 17786 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17787 | s//\1/ |
| 17788 | q |
| 17789 | } |
| 17790 | /^X\(\/\/\)[^/].*/{ |
| 17791 | s//\1/ |
| 17792 | q |
| 17793 | } |
| 17794 | /^X\(\/\/\)$/{ |
| 17795 | s//\1/ |
| 17796 | q |
| 17797 | } |
| 17798 | /^X\(\/\).*/{ |
| 17799 | s//\1/ |
| 17800 | q |
| 17801 | } |
| 17802 | s/.*/./; q'` |
| 17803 | { as_dir="$ac_dir" |
| 17804 | case $as_dir in #( |
| 17805 | -*) as_dir=./$as_dir;; |
| 17806 | esac |
| 17807 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17808 | as_dirs= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17809 | while :; do |
| 17810 | case $as_dir in #( |
| 17811 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 17812 | *) as_qdir=$as_dir;; |
| 17813 | esac |
| 17814 | as_dirs="'$as_qdir' $as_dirs" |
| 17815 | as_dir=`$as_dirname -- "$as_dir" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17816 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17817 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17818 | X"$as_dir" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17819 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 17820 | $as_echo X"$as_dir" | |
| 17821 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17822 | s//\1/ |
| 17823 | q |
| 17824 | } |
| 17825 | /^X\(\/\/\)[^/].*/{ |
| 17826 | s//\1/ |
| 17827 | q |
| 17828 | } |
| 17829 | /^X\(\/\/\)$/{ |
| 17830 | s//\1/ |
| 17831 | q |
| 17832 | } |
| 17833 | /^X\(\/\).*/{ |
| 17834 | s//\1/ |
| 17835 | q |
| 17836 | } |
| 17837 | s/.*/./; q'` |
| 17838 | test -d "$as_dir" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17839 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17840 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 17841 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 17842 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17843 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17844 | ac_builddir=. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17845 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17846 | case "$ac_dir" in |
| 17847 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17848 | *) |
| 17849 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 17850 | # A ".." for each directory in $ac_dir_suffix. |
| 17851 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 17852 | case $ac_top_builddir_sub in |
| 17853 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17854 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17855 | esac ;; |
| 17856 | esac |
| 17857 | ac_abs_top_builddir=$ac_pwd |
| 17858 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17859 | # for backward compatibility: |
| 17860 | ac_top_builddir=$ac_top_build_prefix |
| 17861 | |
| 17862 | case $srcdir in |
| 17863 | .) # We are building in place. |
| 17864 | ac_srcdir=. |
| 17865 | ac_top_srcdir=$ac_top_builddir_sub |
| 17866 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17867 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 17868 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17869 | ac_top_srcdir=$srcdir |
| 17870 | ac_abs_top_srcdir=$srcdir ;; |
| 17871 | *) # Relative name. |
| 17872 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17873 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17874 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 17875 | esac |
| 17876 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 17877 | |
| 17878 | |
| 17879 | case $ac_mode in |
| 17880 | :F) |
| 17881 | # |
| 17882 | # CONFIG_FILE |
| 17883 | # |
| 17884 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17885 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17886 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17887 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17888 | # If the template does not know about datarootdir, expand it. |
| 17889 | # FIXME: This hack should be removed a few years after 2.60. |
| 17890 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17891 | |
| 17892 | ac_sed_dataroot=' |
| 17893 | /datarootdir/ { |
| 17894 | p |
| 17895 | q |
| 17896 | } |
| 17897 | /@datadir@/p |
| 17898 | /@docdir@/p |
| 17899 | /@infodir@/p |
| 17900 | /@localedir@/p |
| 17901 | /@mandir@/p |
| 17902 | ' |
| 17903 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 17904 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17905 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 17906 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17907 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 17908 | _ACEOF |
| 17909 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17910 | ac_datarootdir_hack=' |
| 17911 | s&@datadir@&$datadir&g |
| 17912 | s&@docdir@&$docdir&g |
| 17913 | s&@infodir@&$infodir&g |
| 17914 | s&@localedir@&$localedir&g |
| 17915 | s&@mandir@&$mandir&g |
| 17916 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17917 | esac |
| 17918 | _ACEOF |
| 17919 | |
| 17920 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17921 | # Shell code in configure.ac might set extrasub. |
| 17922 | # FIXME: do we really want to maintain this feature? |
| 17923 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17924 | ac_sed_extra="$ac_vpsub |
| 17925 | $extrasub |
| 17926 | _ACEOF |
| 17927 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17928 | :t |
| 17929 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17930 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 17931 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 17932 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 17933 | s&@srcdir@&$ac_srcdir&;t t |
| 17934 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17935 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17936 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17937 | s&@builddir@&$ac_builddir&;t t |
| 17938 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17939 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17940 | $ac_datarootdir_hack |
| 17941 | " |
| 17942 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 17943 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17944 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17945 | { (exit 1); exit 1; }; } |
| 17946 | |
| 17947 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17948 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 17949 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 17950 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17951 | which seems to be undefined. Please make sure it is defined." >&5 |
| 17952 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17953 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 17954 | |
| 17955 | rm -f "$tmp/stdin" |
| 17956 | case $ac_file in |
| 17957 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 17958 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 17959 | esac \ |
| 17960 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17961 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17962 | { (exit 1); exit 1; }; } |
| 17963 | ;; |
| 17964 | :H) |
| 17965 | # |
| 17966 | # CONFIG_HEADER |
| 17967 | # |
| 17968 | if test x"$ac_file" != x-; then |
| 17969 | { |
| 17970 | $as_echo "/* $configure_input */" \ |
| 17971 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 17972 | } >"$tmp/config.h" \ |
| 17973 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17974 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17975 | { (exit 1); exit 1; }; } |
| 17976 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 17977 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17978 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 17979 | else |
| 17980 | rm -f "$ac_file" |
| 17981 | mv "$tmp/config.h" "$ac_file" \ |
| 17982 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17983 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17984 | { (exit 1); exit 1; }; } |
| 17985 | fi |
| 17986 | else |
| 17987 | $as_echo "/* $configure_input */" \ |
| 17988 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 17989 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 17990 | $as_echo "$as_me: error: could not create -" >&2;} |
| 17991 | { (exit 1); exit 1; }; } |
| 17992 | fi |
| 17993 | ;; |
| 17994 | |
| 17995 | |
| 17996 | esac |
| 17997 | |
| 17998 | done # for ac_tag |
| 17999 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18000 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18001 | { (exit 0); exit 0; } |
| 18002 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18003 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18004 | ac_clean_files=$ac_clean_files_save |
| 18005 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18006 | test $ac_write_fail = 0 || |
| 18007 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 18008 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 18009 | { (exit 1); exit 1; }; } |
| 18010 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18011 | |
| 18012 | # configure is writing to config.log, and then calls config.status. |
| 18013 | # config.status does its own redirection, appending to config.log. |
| 18014 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18015 | # by configure, so config.status won't be able to write to it; its |
| 18016 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18017 | # effectively closing config.log, so it can be properly (re)opened and |
| 18018 | # appended to by config.status. When coming back to configure, we |
| 18019 | # need to make the FD available again. |
| 18020 | if test "$no_create" != yes; then |
| 18021 | ac_cs_success=: |
| 18022 | ac_config_status_args= |
| 18023 | test "$silent" = yes && |
| 18024 | ac_config_status_args="$ac_config_status_args --quiet" |
| 18025 | exec 5>/dev/null |
| 18026 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 18027 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18028 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18029 | # would make configure fail if this is the last instruction. |
| 18030 | $ac_cs_success || { (exit 1); exit 1; } |
| 18031 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18032 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 18033 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 |
| 18034 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} |
| 18035 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18036 | |
| 18037 | |