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 |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 775 | with_local_dir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 776 | with_vim_name |
| 777 | with_ex_name |
| 778 | with_view_name |
| 779 | with_global_runtime |
| 780 | with_modified_by |
| 781 | enable_selinux |
| 782 | with_features |
| 783 | with_compiledby |
| 784 | enable_xsmp |
| 785 | enable_xsmp_interact |
| 786 | enable_mzschemeinterp |
| 787 | with_plthome |
| 788 | enable_perlinterp |
| 789 | enable_pythoninterp |
| 790 | with_python_config_dir |
| 791 | enable_tclinterp |
| 792 | with_tclsh |
| 793 | enable_rubyinterp |
| 794 | enable_cscope |
| 795 | enable_workshop |
| 796 | enable_netbeans |
| 797 | enable_sniff |
| 798 | enable_multibyte |
| 799 | enable_hangulinput |
| 800 | enable_xim |
| 801 | enable_fontset |
| 802 | with_x |
| 803 | enable_gui |
| 804 | enable_gtk_check |
| 805 | enable_gtk2_check |
| 806 | enable_gnome_check |
| 807 | enable_motif_check |
| 808 | enable_athena_check |
| 809 | enable_nextaw_check |
| 810 | enable_carbon_check |
| 811 | with_gtk_prefix |
| 812 | with_gtk_exec_prefix |
| 813 | enable_gtktest |
| 814 | with_gnome_includes |
| 815 | with_gnome_libs |
| 816 | with_gnome |
| 817 | with_motif_lib |
| 818 | with_tlib |
| 819 | enable_acl |
| 820 | enable_gpm |
| 821 | enable_sysmouse |
| 822 | enable_nls |
| 823 | ' |
| 824 | ac_precious_vars='build_alias |
| 825 | host_alias |
| 826 | target_alias |
| 827 | CC |
| 828 | CFLAGS |
| 829 | LDFLAGS |
| 830 | LIBS |
| 831 | CPPFLAGS |
| 832 | CPP |
| 833 | XMKMF' |
| 834 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 835 | |
| 836 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 837 | ac_init_help= |
| 838 | ac_init_version=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 839 | ac_unrecognized_opts= |
| 840 | ac_unrecognized_sep= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 841 | # The variables have the same names as the options, with |
| 842 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 843 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 844 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 845 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 846 | no_recursion= |
| 847 | prefix=NONE |
| 848 | program_prefix=NONE |
| 849 | program_suffix=NONE |
| 850 | program_transform_name=s,x,x, |
| 851 | silent= |
| 852 | site= |
| 853 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 854 | verbose= |
| 855 | x_includes=NONE |
| 856 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 857 | |
| 858 | # Installation directory options. |
| 859 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 860 | # and all the variables that are supposed to be based on exec_prefix |
| 861 | # by default will actually change. |
| 862 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 863 | # (The list follows the same order as the GNU Coding Standards.) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 864 | bindir='${exec_prefix}/bin' |
| 865 | sbindir='${exec_prefix}/sbin' |
| 866 | libexecdir='${exec_prefix}/libexec' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 867 | datarootdir='${prefix}/share' |
| 868 | datadir='${datarootdir}' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 869 | sysconfdir='${prefix}/etc' |
| 870 | sharedstatedir='${prefix}/com' |
| 871 | localstatedir='${prefix}/var' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 872 | includedir='${prefix}/include' |
| 873 | oldincludedir='/usr/include' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 874 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 875 | infodir='${datarootdir}/info' |
| 876 | htmldir='${docdir}' |
| 877 | dvidir='${docdir}' |
| 878 | pdfdir='${docdir}' |
| 879 | psdir='${docdir}' |
| 880 | libdir='${exec_prefix}/lib' |
| 881 | localedir='${datarootdir}/locale' |
| 882 | mandir='${datarootdir}/man' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 883 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 884 | ac_prev= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 885 | ac_dashdash= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 886 | for ac_option |
| 887 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 888 | # If the previous option needs an argument, assign it. |
| 889 | if test -n "$ac_prev"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 890 | eval $ac_prev=\$ac_option |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 891 | ac_prev= |
| 892 | continue |
| 893 | fi |
| 894 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 895 | case $ac_option in |
| 896 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 897 | *) ac_optarg=yes ;; |
| 898 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 899 | |
| 900 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 901 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 902 | case $ac_dashdash$ac_option in |
| 903 | --) |
| 904 | ac_dashdash=yes ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 905 | |
| 906 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 907 | ac_prev=bindir ;; |
| 908 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 909 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 910 | |
| 911 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 912 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 913 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 914 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 915 | |
| 916 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 917 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 918 | ac_prev=cache_file ;; |
| 919 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 920 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 921 | cache_file=$ac_optarg ;; |
| 922 | |
| 923 | --config-cache | -C) |
| 924 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 925 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 926 | -datadir | --datadir | --datadi | --datad) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 927 | ac_prev=datadir ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 928 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 929 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 930 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 931 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 932 | | --dataroo | --dataro | --datar) |
| 933 | ac_prev=datarootdir ;; |
| 934 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 935 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 936 | datarootdir=$ac_optarg ;; |
| 937 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 938 | -disable-* | --disable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 939 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 940 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 941 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 942 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 943 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 944 | ac_useropt_orig=$ac_useropt |
| 945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 946 | case $ac_user_opts in |
| 947 | *" |
| 948 | "enable_$ac_useropt" |
| 949 | "*) ;; |
| 950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 951 | ac_unrecognized_sep=', ';; |
| 952 | esac |
| 953 | eval enable_$ac_useropt=no ;; |
| 954 | |
| 955 | -docdir | --docdir | --docdi | --doc | --do) |
| 956 | ac_prev=docdir ;; |
| 957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 958 | docdir=$ac_optarg ;; |
| 959 | |
| 960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 961 | ac_prev=dvidir ;; |
| 962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 963 | dvidir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 964 | |
| 965 | -enable-* | --enable-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 966 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 967 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 969 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 970 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 971 | ac_useropt_orig=$ac_useropt |
| 972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 973 | case $ac_user_opts in |
| 974 | *" |
| 975 | "enable_$ac_useropt" |
| 976 | "*) ;; |
| 977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 978 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 979 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 980 | eval enable_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 981 | |
| 982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 984 | | --exec | --exe | --ex) |
| 985 | ac_prev=exec_prefix ;; |
| 986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 988 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 989 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 990 | |
| 991 | -gas | --gas | --ga | --g) |
| 992 | # Obsolete; use --with-gas. |
| 993 | with_gas=yes ;; |
| 994 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 995 | -help | --help | --hel | --he | -h) |
| 996 | ac_init_help=long ;; |
| 997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 998 | ac_init_help=recursive ;; |
| 999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1000 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1001 | |
| 1002 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1003 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1004 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1005 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1006 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1008 | ac_prev=htmldir ;; |
| 1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1010 | | --ht=*) |
| 1011 | htmldir=$ac_optarg ;; |
| 1012 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1013 | -includedir | --includedir | --includedi | --included | --include \ |
| 1014 | | --includ | --inclu | --incl | --inc) |
| 1015 | ac_prev=includedir ;; |
| 1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1017 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1018 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1019 | |
| 1020 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1021 | ac_prev=infodir ;; |
| 1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1023 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1024 | |
| 1025 | -libdir | --libdir | --libdi | --libd) |
| 1026 | ac_prev=libdir ;; |
| 1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1028 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1029 | |
| 1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1031 | | --libexe | --libex | --libe) |
| 1032 | ac_prev=libexecdir ;; |
| 1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1034 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1035 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1036 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1037 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1038 | ac_prev=localedir ;; |
| 1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1040 | localedir=$ac_optarg ;; |
| 1041 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1043 | | --localstate | --localstat | --localsta | --localst | --locals) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1044 | ac_prev=localstatedir ;; |
| 1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1047 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1048 | |
| 1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1050 | ac_prev=mandir ;; |
| 1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1052 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1053 | |
| 1054 | -nfp | --nfp | --nf) |
| 1055 | # Obsolete; use --without-fp. |
| 1056 | with_fp=no ;; |
| 1057 | |
| 1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1059 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1060 | no_create=yes ;; |
| 1061 | |
| 1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1064 | no_recursion=yes ;; |
| 1065 | |
| 1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1068 | | --oldin | --oldi | --old | --ol | --o) |
| 1069 | ac_prev=oldincludedir ;; |
| 1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1073 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1074 | |
| 1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1076 | ac_prev=prefix ;; |
| 1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1078 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1079 | |
| 1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1081 | | --program-pre | --program-pr | --program-p) |
| 1082 | ac_prev=program_prefix ;; |
| 1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1085 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1086 | |
| 1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1088 | | --program-suf | --program-su | --program-s) |
| 1089 | ac_prev=program_suffix ;; |
| 1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1092 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1093 | |
| 1094 | -program-transform-name | --program-transform-name \ |
| 1095 | | --program-transform-nam | --program-transform-na \ |
| 1096 | | --program-transform-n | --program-transform- \ |
| 1097 | | --program-transform | --program-transfor \ |
| 1098 | | --program-transfo | --program-transf \ |
| 1099 | | --program-trans | --program-tran \ |
| 1100 | | --progr-tra | --program-tr | --program-t) |
| 1101 | ac_prev=program_transform_name ;; |
| 1102 | -program-transform-name=* | --program-transform-name=* \ |
| 1103 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1104 | | --program-transform-n=* | --program-transform-=* \ |
| 1105 | | --program-transform=* | --program-transfor=* \ |
| 1106 | | --program-transfo=* | --program-transf=* \ |
| 1107 | | --program-trans=* | --program-tran=* \ |
| 1108 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1109 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1110 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1112 | ac_prev=pdfdir ;; |
| 1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1114 | pdfdir=$ac_optarg ;; |
| 1115 | |
| 1116 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1117 | ac_prev=psdir ;; |
| 1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1119 | psdir=$ac_optarg ;; |
| 1120 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1122 | | -silent | --silent | --silen | --sile | --sil) |
| 1123 | silent=yes ;; |
| 1124 | |
| 1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1126 | ac_prev=sbindir ;; |
| 1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1128 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1129 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1130 | |
| 1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1133 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1134 | | --sha | --sh) |
| 1135 | ac_prev=sharedstatedir ;; |
| 1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1139 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1140 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1141 | |
| 1142 | -site | --site | --sit) |
| 1143 | ac_prev=site ;; |
| 1144 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1145 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1146 | |
| 1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1148 | ac_prev=srcdir ;; |
| 1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1150 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1151 | |
| 1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1153 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1154 | ac_prev=sysconfdir ;; |
| 1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1157 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1158 | |
| 1159 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1160 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1162 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1163 | |
| 1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1165 | verbose=yes ;; |
| 1166 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1167 | -version | --version | --versio | --versi | --vers | -V) |
| 1168 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1169 | |
| 1170 | -with-* | --with-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1172 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1174 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1175 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1176 | ac_useropt_orig=$ac_useropt |
| 1177 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1178 | case $ac_user_opts in |
| 1179 | *" |
| 1180 | "with_$ac_useropt" |
| 1181 | "*) ;; |
| 1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1183 | ac_unrecognized_sep=', ';; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1184 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1185 | eval with_$ac_useropt=\$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1186 | |
| 1187 | -without-* | --without-*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1188 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1189 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1191 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1192 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1193 | ac_useropt_orig=$ac_useropt |
| 1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1195 | case $ac_user_opts in |
| 1196 | *" |
| 1197 | "with_$ac_useropt" |
| 1198 | "*) ;; |
| 1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1200 | ac_unrecognized_sep=', ';; |
| 1201 | esac |
| 1202 | eval with_$ac_useropt=no ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1203 | |
| 1204 | --x) |
| 1205 | # Obsolete; use --with-x. |
| 1206 | with_x=yes ;; |
| 1207 | |
| 1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1209 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1210 | ac_prev=x_includes ;; |
| 1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1213 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1214 | |
| 1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1217 | ac_prev=x_libraries ;; |
| 1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1220 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1221 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1222 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1223 | Try \`$0 --help' for more information." >&2 |
| 1224 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1225 | ;; |
| 1226 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1227 | *=*) |
| 1228 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1229 | # Reject names that are not valid shell variable names. |
| 1230 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1231 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1232 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1233 | eval $ac_envvar=\$ac_optarg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1234 | export $ac_envvar ;; |
| 1235 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1236 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1237 | # FIXME: should be removed in autoconf 3.0. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1241 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1242 | ;; |
| 1243 | |
| 1244 | esac |
| 1245 | done |
| 1246 | |
| 1247 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1249 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1250 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1251 | fi |
| 1252 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1253 | if test -n "$ac_unrecognized_opts"; then |
| 1254 | case $enable_option_checking in |
| 1255 | no) ;; |
| 1256 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 |
| 1257 | { (exit 1); exit 1; }; } ;; |
| 1258 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1259 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1260 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1261 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1262 | # Check all directory arguments for consistency. |
| 1263 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1264 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1265 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1266 | libdir localedir mandir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1267 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1268 | eval ac_val=\$$ac_var |
| 1269 | # Remove trailing slashes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1270 | case $ac_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1271 | */ ) |
| 1272 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1273 | eval $ac_var=\$ac_val;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1274 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1275 | # Be sure to have absolute directory names. |
| 1276 | case $ac_val in |
| 1277 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1278 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1279 | esac |
| 1280 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1281 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1282 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1283 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1284 | # There might be people who depend on the old broken behavior: `$host' |
| 1285 | # used to hold the argument of --host etc. |
| 1286 | # FIXME: To remove some day. |
| 1287 | build=$build_alias |
| 1288 | host=$host_alias |
| 1289 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1290 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1291 | # FIXME: To remove some day. |
| 1292 | if test "x$host_alias" != x; then |
| 1293 | if test "x$build_alias" = x; then |
| 1294 | cross_compiling=maybe |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1295 | $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] | 1296 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1297 | elif test "x$build_alias" != "x$host_alias"; then |
| 1298 | cross_compiling=yes |
| 1299 | fi |
| 1300 | fi |
| 1301 | |
| 1302 | ac_tool_prefix= |
| 1303 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1304 | |
| 1305 | test "$silent" = yes && exec 6>/dev/null |
| 1306 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1307 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1308 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1309 | ac_ls_di=`ls -di .` && |
| 1310 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1311 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1312 | { (exit 1); exit 1; }; } |
| 1313 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1314 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1315 | { (exit 1); exit 1; }; } |
| 1316 | |
| 1317 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1318 | # Find the source files, if location was not specified. |
| 1319 | if test -z "$srcdir"; then |
| 1320 | ac_srcdir_defaulted=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1321 | # Try the directory containing this script, then the parent directory. |
| 1322 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1323 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1324 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1325 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1326 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1327 | $as_echo X"$as_myself" | |
| 1328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1329 | s//\1/ |
| 1330 | q |
| 1331 | } |
| 1332 | /^X\(\/\/\)[^/].*/{ |
| 1333 | s//\1/ |
| 1334 | q |
| 1335 | } |
| 1336 | /^X\(\/\/\)$/{ |
| 1337 | s//\1/ |
| 1338 | q |
| 1339 | } |
| 1340 | /^X\(\/\).*/{ |
| 1341 | s//\1/ |
| 1342 | q |
| 1343 | } |
| 1344 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1345 | srcdir=$ac_confdir |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1346 | if test ! -r "$srcdir/$ac_unique_file"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1347 | srcdir=.. |
| 1348 | fi |
| 1349 | else |
| 1350 | ac_srcdir_defaulted=no |
| 1351 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1352 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1353 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1354 | { $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] | 1355 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1356 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1357 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1358 | ac_abs_confdir=`( |
| 1359 | 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] | 1360 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1361 | pwd)` |
| 1362 | # When building in place, set srcdir=. |
| 1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1364 | srcdir=. |
| 1365 | fi |
| 1366 | # Remove unnecessary trailing slashes from srcdir. |
| 1367 | # Double slashes in file names in object file debugging info |
| 1368 | # mess up M-x gdb in Emacs. |
| 1369 | case $srcdir in |
| 1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1371 | esac |
| 1372 | for ac_var in $ac_precious_vars; do |
| 1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1374 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1377 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1378 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1379 | # |
| 1380 | # Report the --help message. |
| 1381 | # |
| 1382 | if test "$ac_init_help" = "long"; then |
| 1383 | # Omit some internal or obsolete options to make the list less imposing. |
| 1384 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1385 | cat <<_ACEOF |
| 1386 | \`configure' configures this package to adapt to many kinds of systems. |
| 1387 | |
| 1388 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1389 | |
| 1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1391 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1392 | |
| 1393 | Defaults for the options are specified in brackets. |
| 1394 | |
| 1395 | Configuration: |
| 1396 | -h, --help display this help and exit |
| 1397 | --help=short display options specific to this package |
| 1398 | --help=recursive display the short help of all the included packages |
| 1399 | -V, --version display version information and exit |
| 1400 | -q, --quiet, --silent do not print \`checking...' messages |
| 1401 | --cache-file=FILE cache test results in FILE [disabled] |
| 1402 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1403 | -n, --no-create do not create output files |
| 1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1405 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1406 | Installation directories: |
| 1407 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1408 | [$ac_default_prefix] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1410 | [PREFIX] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1411 | |
| 1412 | By default, \`make install' will install all the files in |
| 1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1415 | for instance \`--prefix=\$HOME'. |
| 1416 | |
| 1417 | For better control, use the options below. |
| 1418 | |
| 1419 | Fine tuning of the installation directories: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1420 | --bindir=DIR user executables [EPREFIX/bin] |
| 1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1422 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1426 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1427 | --includedir=DIR C header files [PREFIX/include] |
| 1428 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1429 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1430 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1431 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1432 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1433 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1434 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1435 | --htmldir=DIR html documentation [DOCDIR] |
| 1436 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1437 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1438 | --psdir=DIR ps documentation [DOCDIR] |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1439 | _ACEOF |
| 1440 | |
| 1441 | cat <<\_ACEOF |
| 1442 | |
| 1443 | X features: |
| 1444 | --x-includes=DIR X include files are in DIR |
| 1445 | --x-libraries=DIR X library files are in DIR |
| 1446 | _ACEOF |
| 1447 | fi |
| 1448 | |
| 1449 | if test -n "$ac_init_help"; then |
| 1450 | |
| 1451 | cat <<\_ACEOF |
| 1452 | |
| 1453 | Optional Features: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1454 | --disable-option-checking ignore unrecognized --enable/--with options |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1455 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1456 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1457 | --disable-darwin Disable Darwin (Mac OS X) support. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 1458 | --disable-selinux Don't check for SELinux support. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1459 | --disable-xsmp Disable XSMP session management |
| 1460 | --disable-xsmp-interact Disable XSMP interaction |
| 1461 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 1462 | --enable-perlinterp Include Perl interpreter. |
| 1463 | --enable-pythoninterp Include Python interpreter. |
| 1464 | --enable-tclinterp Include Tcl interpreter. |
| 1465 | --enable-rubyinterp Include Ruby interpreter. |
| 1466 | --enable-cscope Include cscope interface. |
| 1467 | --enable-workshop Include Sun Visual Workshop support. |
| 1468 | --disable-netbeans Disable NetBeans integration support. |
| 1469 | --enable-sniff Include Sniff interface. |
| 1470 | --enable-multibyte Include multibyte editing support. |
| 1471 | --enable-hangulinput Include Hangul input support. |
| 1472 | --enable-xim Include XIM input support. |
| 1473 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 1474 | --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] | 1475 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 1476 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 1477 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 1478 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 1479 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 1480 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 1481 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1482 | --disable-gtktest Do not try to compile and run a test GTK program |
| 1483 | --disable-acl Don't check for ACL support. |
| 1484 | --disable-gpm Don't use gpm (Linux mouse daemon). |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1485 | --disable-sysmouse Don't use sysmouse (mouse in *BSD console). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1486 | --disable-nls Don't support NLS (gettext()). |
| 1487 | |
| 1488 | Optional Packages: |
| 1489 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1490 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 1491 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 1492 | --with-local-dir=PATH search PATH instead of /usr/local for local libraries. |
| 1493 | --without-local-dir do not search /usr/local for local libraries. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1494 | --with-vim-name=NAME what to call the Vim executable |
| 1495 | --with-ex-name=NAME what to call the Ex executable |
| 1496 | --with-view-name=NAME what to call the View executable |
| 1497 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 1498 | --with-modified-by=NAME name of who modified a release version |
| 1499 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 1500 | --with-compiledby=NAME name to show in :version message |
| 1501 | --with-plthome=PLTHOME Use PLTHOME. |
| 1502 | --with-python-config-dir=PATH Python's config directory |
| 1503 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 1504 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1505 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 1506 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 1507 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 1508 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 1509 | --with-gnome Specify prefix for GNOME files |
| 1510 | --with-motif-lib=STRING Library for Motif |
| 1511 | --with-tlib=library terminal library to be used |
| 1512 | |
| 1513 | Some influential environment variables: |
| 1514 | CC C compiler command |
| 1515 | CFLAGS C compiler flags |
| 1516 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1517 | nonstandard directory <lib dir> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1518 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1519 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1520 | you have headers in a nonstandard directory <include dir> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1521 | CPP C preprocessor |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1522 | XMKMF Path to xmkmf, Makefile generator for X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1523 | |
| 1524 | Use these variables to override the choices made by `configure' or to help |
| 1525 | it to find libraries and programs with nonstandard names/locations. |
| 1526 | |
| 1527 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1528 | ac_status=$? |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1529 | fi |
| 1530 | |
| 1531 | if test "$ac_init_help" = "recursive"; then |
| 1532 | # If there are subdirs, report their specific --help. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1533 | 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] | 1534 | test -d "$ac_dir" || |
| 1535 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1536 | continue |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1537 | ac_builddir=. |
| 1538 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1539 | case "$ac_dir" in |
| 1540 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1541 | *) |
| 1542 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1543 | # A ".." for each directory in $ac_dir_suffix. |
| 1544 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1545 | case $ac_top_builddir_sub in |
| 1546 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1547 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1548 | esac ;; |
| 1549 | esac |
| 1550 | ac_abs_top_builddir=$ac_pwd |
| 1551 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1552 | # for backward compatibility: |
| 1553 | ac_top_builddir=$ac_top_build_prefix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1554 | |
| 1555 | case $srcdir in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1556 | .) # We are building in place. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1557 | ac_srcdir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1558 | ac_top_srcdir=$ac_top_builddir_sub |
| 1559 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1560 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1561 | ac_srcdir=$srcdir$ac_dir_suffix; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1562 | ac_top_srcdir=$srcdir |
| 1563 | ac_abs_top_srcdir=$srcdir ;; |
| 1564 | *) # Relative name. |
| 1565 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1566 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1567 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1568 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1569 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1570 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1571 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1572 | # Check for guested configure. |
| 1573 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1574 | echo && |
| 1575 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1576 | elif test -f "$ac_srcdir/configure"; then |
| 1577 | echo && |
| 1578 | $SHELL "$ac_srcdir/configure" --help=recursive |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1579 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1580 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1581 | fi || ac_status=$? |
| 1582 | cd "$ac_pwd" || { ac_status=$?; break; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1583 | done |
| 1584 | fi |
| 1585 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1586 | test -n "$ac_init_help" && exit $ac_status |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1587 | if $ac_init_version; then |
| 1588 | cat <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1589 | configure |
| 1590 | generated by GNU Autoconf 2.62 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1591 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1592 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1593 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1594 | This configure script is free software; the Free Software Foundation |
| 1595 | gives unlimited permission to copy, distribute and modify it. |
| 1596 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1597 | exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1598 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1599 | cat >auto/config.log <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1600 | This file contains any messages produced by compilers while |
| 1601 | running configure, to aid debugging if configure makes a mistake. |
| 1602 | |
| 1603 | It was created by $as_me, which was |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1604 | generated by GNU Autoconf 2.62. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1605 | |
| 1606 | $ $0 $@ |
| 1607 | |
| 1608 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1609 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1610 | { |
| 1611 | cat <<_ASUNAME |
| 1612 | ## --------- ## |
| 1613 | ## Platform. ## |
| 1614 | ## --------- ## |
| 1615 | |
| 1616 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1617 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1618 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1619 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1620 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1621 | |
| 1622 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1623 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1624 | |
| 1625 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1626 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1627 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1628 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1629 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1630 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1631 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1632 | |
| 1633 | _ASUNAME |
| 1634 | |
| 1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1636 | for as_dir in $PATH |
| 1637 | do |
| 1638 | IFS=$as_save_IFS |
| 1639 | test -z "$as_dir" && as_dir=. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1640 | $as_echo "PATH: $as_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1641 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1642 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1643 | |
| 1644 | } >&5 |
| 1645 | |
| 1646 | cat >&5 <<_ACEOF |
| 1647 | |
| 1648 | |
| 1649 | ## ----------- ## |
| 1650 | ## Core tests. ## |
| 1651 | ## ----------- ## |
| 1652 | |
| 1653 | _ACEOF |
| 1654 | |
| 1655 | |
| 1656 | # Keep a trace of the command line. |
| 1657 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1658 | # Strip out --silent because we don't want to record it for future runs. |
| 1659 | # Also quote any args containing shell meta-characters. |
| 1660 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1661 | ac_configure_args= |
| 1662 | ac_configure_args0= |
| 1663 | ac_configure_args1= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1664 | ac_must_keep_next=false |
| 1665 | for ac_pass in 1 2 |
| 1666 | do |
| 1667 | for ac_arg |
| 1668 | do |
| 1669 | case $ac_arg in |
| 1670 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1671 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1672 | | -silent | --silent | --silen | --sile | --sil) |
| 1673 | continue ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1674 | *\'*) |
| 1675 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1676 | esac |
| 1677 | case $ac_pass in |
| 1678 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1679 | 2) |
| 1680 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1681 | if test $ac_must_keep_next = true; then |
| 1682 | ac_must_keep_next=false # Got value, back to normal. |
| 1683 | else |
| 1684 | case $ac_arg in |
| 1685 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1686 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1687 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1688 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1689 | case "$ac_configure_args0 " in |
| 1690 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1691 | esac |
| 1692 | ;; |
| 1693 | -* ) ac_must_keep_next=true ;; |
| 1694 | esac |
| 1695 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1696 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1697 | ;; |
| 1698 | esac |
| 1699 | done |
| 1700 | done |
| 1701 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1702 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1703 | |
| 1704 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1705 | # config.log. We remove comments because anyway the quotes in there |
| 1706 | # would cause problems or look ugly. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1707 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1708 | # 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] | 1709 | trap 'exit_status=$? |
| 1710 | # Save into config.log some information that might help in debugging. |
| 1711 | { |
| 1712 | echo |
| 1713 | |
| 1714 | cat <<\_ASBOX |
| 1715 | ## ---------------- ## |
| 1716 | ## Cache variables. ## |
| 1717 | ## ---------------- ## |
| 1718 | _ASBOX |
| 1719 | echo |
| 1720 | # The following way of writing the cache mishandles newlines in values, |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1721 | ( |
| 1722 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1723 | eval ac_val=\$$ac_var |
| 1724 | case $ac_val in #( |
| 1725 | *${as_nl}*) |
| 1726 | case $ac_var in #( |
| 1727 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1728 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1729 | esac |
| 1730 | case $ac_var in #( |
| 1731 | _ | IFS | as_nl) ;; #( |
| 1732 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1733 | *) $as_unset $ac_var ;; |
| 1734 | esac ;; |
| 1735 | esac |
| 1736 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1737 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1738 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1739 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1740 | sed -n \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1741 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1742 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1743 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1744 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1745 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1746 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1747 | esac | |
| 1748 | sort |
| 1749 | ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1750 | echo |
| 1751 | |
| 1752 | cat <<\_ASBOX |
| 1753 | ## ----------------- ## |
| 1754 | ## Output variables. ## |
| 1755 | ## ----------------- ## |
| 1756 | _ASBOX |
| 1757 | echo |
| 1758 | for ac_var in $ac_subst_vars |
| 1759 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1760 | eval ac_val=\$$ac_var |
| 1761 | case $ac_val in |
| 1762 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1763 | esac |
| 1764 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1765 | done | sort |
| 1766 | echo |
| 1767 | |
| 1768 | if test -n "$ac_subst_files"; then |
| 1769 | cat <<\_ASBOX |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1770 | ## ------------------- ## |
| 1771 | ## File substitutions. ## |
| 1772 | ## ------------------- ## |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1773 | _ASBOX |
| 1774 | echo |
| 1775 | for ac_var in $ac_subst_files |
| 1776 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1777 | eval ac_val=\$$ac_var |
| 1778 | case $ac_val in |
| 1779 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1780 | esac |
| 1781 | $as_echo "$ac_var='\''$ac_val'\''" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1782 | done | sort |
| 1783 | echo |
| 1784 | fi |
| 1785 | |
| 1786 | if test -s confdefs.h; then |
| 1787 | cat <<\_ASBOX |
| 1788 | ## ----------- ## |
| 1789 | ## confdefs.h. ## |
| 1790 | ## ----------- ## |
| 1791 | _ASBOX |
| 1792 | echo |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1793 | cat confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1794 | echo |
| 1795 | fi |
| 1796 | test "$ac_signal" != 0 && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1797 | $as_echo "$as_me: caught signal $ac_signal" |
| 1798 | $as_echo "$as_me: exit $exit_status" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1799 | } >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1800 | rm -f core *.core core.conftest.* && |
| 1801 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1802 | exit $exit_status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1803 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1804 | for ac_signal in 1 2 13 15; do |
| 1805 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1806 | done |
| 1807 | ac_signal=0 |
| 1808 | |
| 1809 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1810 | rm -f -r conftest* confdefs.h |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1811 | |
| 1812 | # Predefined preprocessor variables. |
| 1813 | |
| 1814 | cat >>confdefs.h <<_ACEOF |
| 1815 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1816 | _ACEOF |
| 1817 | |
| 1818 | |
| 1819 | cat >>confdefs.h <<_ACEOF |
| 1820 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1821 | _ACEOF |
| 1822 | |
| 1823 | |
| 1824 | cat >>confdefs.h <<_ACEOF |
| 1825 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1826 | _ACEOF |
| 1827 | |
| 1828 | |
| 1829 | cat >>confdefs.h <<_ACEOF |
| 1830 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1831 | _ACEOF |
| 1832 | |
| 1833 | |
| 1834 | cat >>confdefs.h <<_ACEOF |
| 1835 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1836 | _ACEOF |
| 1837 | |
| 1838 | |
| 1839 | # 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] | 1840 | # Prefer an explicitly selected file to automatically selected ones. |
| 1841 | ac_site_file1=NONE |
| 1842 | ac_site_file2=NONE |
| 1843 | if test -n "$CONFIG_SITE"; then |
| 1844 | ac_site_file1=$CONFIG_SITE |
| 1845 | elif test "x$prefix" != xNONE; then |
| 1846 | ac_site_file1=$prefix/share/config.site |
| 1847 | ac_site_file2=$prefix/etc/config.site |
| 1848 | else |
| 1849 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1850 | ac_site_file2=$ac_default_prefix/etc/config.site |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1851 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1852 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1853 | do |
| 1854 | test "x$ac_site_file" = xNONE && continue |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1855 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1856 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1857 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1858 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1859 | . "$ac_site_file" |
| 1860 | fi |
| 1861 | done |
| 1862 | |
| 1863 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1864 | # Some versions of bash will fail to source /dev/null (special |
| 1865 | # files actually), so we avoid doing that. |
| 1866 | if test -f "$cache_file"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1867 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1868 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1869 | case $cache_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1870 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1871 | *) . "./$cache_file";; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1872 | esac |
| 1873 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1874 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1875 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1876 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1877 | >$cache_file |
| 1878 | fi |
| 1879 | |
| 1880 | # Check that the precious variables saved in the cache have kept the same |
| 1881 | # value. |
| 1882 | ac_cache_corrupted=false |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1883 | for ac_var in $ac_precious_vars; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1884 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1885 | eval ac_new_set=\$ac_env_${ac_var}_set |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1886 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1887 | eval ac_new_val=\$ac_env_${ac_var}_value |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1888 | case $ac_old_set,$ac_new_set in |
| 1889 | set,) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1890 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1891 | $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] | 1892 | ac_cache_corrupted=: ;; |
| 1893 | ,set) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1894 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1895 | $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] | 1896 | ac_cache_corrupted=: ;; |
| 1897 | ,);; |
| 1898 | *) |
| 1899 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1900 | # differences in whitespace do not lead to failure. |
| 1901 | ac_old_val_w=`echo x $ac_old_val` |
| 1902 | ac_new_val_w=`echo x $ac_new_val` |
| 1903 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1904 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1905 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1906 | ac_cache_corrupted=: |
| 1907 | else |
| 1908 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1909 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1910 | eval $ac_var=\$ac_old_val |
| 1911 | fi |
| 1912 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1913 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1914 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1915 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1916 | fi;; |
| 1917 | esac |
| 1918 | # Pass precious variables to config.status. |
| 1919 | if test "$ac_new_set" = set; then |
| 1920 | case $ac_new_val in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1921 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1922 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1923 | esac |
| 1924 | case " $ac_configure_args " in |
| 1925 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1926 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1927 | esac |
| 1928 | fi |
| 1929 | done |
| 1930 | if $ac_cache_corrupted; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1931 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1932 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1933 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1934 | $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] | 1935 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1936 | fi |
| 1937 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1938 | |
| 1939 | |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1954 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1955 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1959 | |
| 1960 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1961 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1962 | |
| 1963 | |
| 1964 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1965 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1966 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1967 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1968 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1969 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 1970 | set x ${MAKE-make} |
| 1971 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 1972 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 1973 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1974 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1975 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1976 | SHELL = /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1977 | all: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1978 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1979 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1980 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1981 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 1982 | *@@@%%%=?*=@@@%%%*) |
| 1983 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 1984 | *) |
| 1985 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 1986 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1987 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1988 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1989 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 1990 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 1991 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1992 | SET_MAKE= |
| 1993 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 1994 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 1995 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1996 | SET_MAKE="MAKE=${MAKE-make}" |
| 1997 | fi |
| 1998 | |
| 1999 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2000 | ac_ext=c |
| 2001 | ac_cpp='$CPP $CPPFLAGS' |
| 2002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2005 | if test -n "$ac_tool_prefix"; then |
| 2006 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2007 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2008 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2009 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2010 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2011 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2012 | else |
| 2013 | if test -n "$CC"; then |
| 2014 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2015 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2017 | for as_dir in $PATH |
| 2018 | do |
| 2019 | IFS=$as_save_IFS |
| 2020 | test -z "$as_dir" && as_dir=. |
| 2021 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2022 | 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] | 2023 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2024 | $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] | 2025 | break 2 |
| 2026 | fi |
| 2027 | done |
| 2028 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2029 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2030 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2031 | fi |
| 2032 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2033 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2034 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2035 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2036 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2037 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2038 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2039 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2040 | fi |
| 2041 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2042 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2043 | fi |
| 2044 | if test -z "$ac_cv_prog_CC"; then |
| 2045 | ac_ct_CC=$CC |
| 2046 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2047 | set dummy gcc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2048 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2049 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2050 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2051 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2052 | else |
| 2053 | if test -n "$ac_ct_CC"; then |
| 2054 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2055 | else |
| 2056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2057 | for as_dir in $PATH |
| 2058 | do |
| 2059 | IFS=$as_save_IFS |
| 2060 | test -z "$as_dir" && as_dir=. |
| 2061 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2062 | 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] | 2063 | ac_cv_prog_ac_ct_CC="gcc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2064 | $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] | 2065 | break 2 |
| 2066 | fi |
| 2067 | done |
| 2068 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2069 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2070 | |
| 2071 | fi |
| 2072 | fi |
| 2073 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2074 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2075 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2076 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2077 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2078 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2079 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2080 | fi |
| 2081 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2082 | if test "x$ac_ct_CC" = x; then |
| 2083 | CC="" |
| 2084 | else |
| 2085 | case $cross_compiling:$ac_tool_warned in |
| 2086 | yes:) |
| 2087 | { $as_echo "$as_me:$LINENO: 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." >&5 |
| 2090 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2091 | whose name does not start with the host triplet. If you think this |
| 2092 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2093 | ac_tool_warned=yes ;; |
| 2094 | esac |
| 2095 | CC=$ac_ct_CC |
| 2096 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2097 | else |
| 2098 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2099 | fi |
| 2100 | |
| 2101 | if test -z "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2102 | if test -n "$ac_tool_prefix"; then |
| 2103 | # 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] | 2104 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2105 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2106 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2107 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2108 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2109 | else |
| 2110 | if test -n "$CC"; then |
| 2111 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2112 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2114 | for as_dir in $PATH |
| 2115 | do |
| 2116 | IFS=$as_save_IFS |
| 2117 | test -z "$as_dir" && as_dir=. |
| 2118 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2119 | 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] | 2120 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2121 | $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] | 2122 | break 2 |
| 2123 | fi |
| 2124 | done |
| 2125 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2126 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2127 | |
| 2128 | fi |
| 2129 | fi |
| 2130 | CC=$ac_cv_prog_CC |
| 2131 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2132 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2133 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2134 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2135 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2136 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2137 | fi |
| 2138 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2139 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2140 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2141 | fi |
| 2142 | if test -z "$CC"; then |
| 2143 | # Extract the first word of "cc", so it can be a program name with args. |
| 2144 | set dummy cc; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2145 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2146 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2147 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2148 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2149 | else |
| 2150 | if test -n "$CC"; then |
| 2151 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2152 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2153 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2155 | for as_dir in $PATH |
| 2156 | do |
| 2157 | IFS=$as_save_IFS |
| 2158 | test -z "$as_dir" && as_dir=. |
| 2159 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2160 | 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] | 2161 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2162 | ac_prog_rejected=yes |
| 2163 | continue |
| 2164 | fi |
| 2165 | ac_cv_prog_CC="cc" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2166 | $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] | 2167 | break 2 |
| 2168 | fi |
| 2169 | done |
| 2170 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2171 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2172 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2173 | if test $ac_prog_rejected = yes; then |
| 2174 | # We found a bogon in the path, so make sure we never use it. |
| 2175 | set dummy $ac_cv_prog_CC |
| 2176 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2177 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2178 | # We chose a different compiler from the bogus one. |
| 2179 | # However, it has the same basename, so the bogon will be chosen |
| 2180 | # first if we set CC to just the basename; use the full file name. |
| 2181 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2182 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2183 | fi |
| 2184 | fi |
| 2185 | fi |
| 2186 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2187 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2188 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2189 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2190 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2191 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2192 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2193 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2194 | fi |
| 2195 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2196 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2197 | fi |
| 2198 | if test -z "$CC"; then |
| 2199 | if test -n "$ac_tool_prefix"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2200 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2201 | do |
| 2202 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2203 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2204 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2205 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2206 | if test "${ac_cv_prog_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2207 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2208 | else |
| 2209 | if test -n "$CC"; then |
| 2210 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2211 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2213 | for as_dir in $PATH |
| 2214 | do |
| 2215 | IFS=$as_save_IFS |
| 2216 | test -z "$as_dir" && as_dir=. |
| 2217 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2218 | 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] | 2219 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2220 | $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] | 2221 | break 2 |
| 2222 | fi |
| 2223 | done |
| 2224 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2225 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2226 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2227 | fi |
| 2228 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2229 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2230 | if test -n "$CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2231 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2232 | $as_echo "$CC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2233 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2234 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2235 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2236 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2237 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2238 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2239 | test -n "$CC" && break |
| 2240 | done |
| 2241 | fi |
| 2242 | if test -z "$CC"; then |
| 2243 | ac_ct_CC=$CC |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2244 | for ac_prog in cl.exe |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2245 | do |
| 2246 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2247 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2248 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2249 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2250 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2251 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2252 | else |
| 2253 | if test -n "$ac_ct_CC"; then |
| 2254 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2255 | else |
| 2256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2257 | for as_dir in $PATH |
| 2258 | do |
| 2259 | IFS=$as_save_IFS |
| 2260 | test -z "$as_dir" && as_dir=. |
| 2261 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2262 | 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] | 2263 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2264 | $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] | 2265 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2266 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2267 | done |
| 2268 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2269 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2270 | |
| 2271 | fi |
| 2272 | fi |
| 2273 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2274 | if test -n "$ac_ct_CC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2275 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2276 | $as_echo "$ac_ct_CC" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2277 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2278 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2279 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2280 | fi |
| 2281 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2283 | test -n "$ac_ct_CC" && break |
| 2284 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2285 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2286 | if test "x$ac_ct_CC" = x; then |
| 2287 | CC="" |
| 2288 | else |
| 2289 | case $cross_compiling:$ac_tool_warned in |
| 2290 | yes:) |
| 2291 | { $as_echo "$as_me:$LINENO: 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." >&5 |
| 2294 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2295 | whose name does not start with the host triplet. If you think this |
| 2296 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2297 | ac_tool_warned=yes ;; |
| 2298 | esac |
| 2299 | CC=$ac_ct_CC |
| 2300 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2301 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2302 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2303 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2304 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2305 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2306 | 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] | 2307 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2308 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2309 | See \`config.log' for more details." >&2;} |
| 2310 | { (exit 1); exit 1; }; } |
| 2311 | |
| 2312 | # Provide some information about the compiler. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2313 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2314 | set X $ac_compile |
| 2315 | ac_compiler=$2 |
| 2316 | { (ac_try="$ac_compiler --version >&5" |
| 2317 | case "(($ac_try" in |
| 2318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2319 | *) ac_try_echo=$ac_try;; |
| 2320 | esac |
| 2321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2322 | $as_echo "$ac_try_echo") >&5 |
| 2323 | (eval "$ac_compiler --version >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2324 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2326 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2327 | { (ac_try="$ac_compiler -v >&5" |
| 2328 | case "(($ac_try" in |
| 2329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2330 | *) ac_try_echo=$ac_try;; |
| 2331 | esac |
| 2332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2333 | $as_echo "$ac_try_echo") >&5 |
| 2334 | (eval "$ac_compiler -v >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2335 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2337 | (exit $ac_status); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2338 | { (ac_try="$ac_compiler -V >&5" |
| 2339 | case "(($ac_try" in |
| 2340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2341 | *) ac_try_echo=$ac_try;; |
| 2342 | esac |
| 2343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2344 | $as_echo "$ac_try_echo") >&5 |
| 2345 | (eval "$ac_compiler -V >&5") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2346 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2348 | (exit $ac_status); } |
| 2349 | |
| 2350 | cat >conftest.$ac_ext <<_ACEOF |
| 2351 | /* confdefs.h. */ |
| 2352 | _ACEOF |
| 2353 | cat confdefs.h >>conftest.$ac_ext |
| 2354 | cat >>conftest.$ac_ext <<_ACEOF |
| 2355 | /* end confdefs.h. */ |
| 2356 | |
| 2357 | int |
| 2358 | main () |
| 2359 | { |
| 2360 | |
| 2361 | ; |
| 2362 | return 0; |
| 2363 | } |
| 2364 | _ACEOF |
| 2365 | ac_clean_files_save=$ac_clean_files |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2366 | 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] | 2367 | # Try to create an executable without -o first, disregard a.out. |
| 2368 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2369 | # of exeext. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2370 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2371 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2372 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2373 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2374 | # The possible output files: |
| 2375 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2376 | |
| 2377 | ac_rmfiles= |
| 2378 | for ac_file in $ac_files |
| 2379 | do |
| 2380 | case $ac_file in |
| 2381 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2382 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2383 | esac |
| 2384 | done |
| 2385 | rm -f $ac_rmfiles |
| 2386 | |
| 2387 | if { (ac_try="$ac_link_default" |
| 2388 | case "(($ac_try" in |
| 2389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2390 | *) ac_try_echo=$ac_try;; |
| 2391 | esac |
| 2392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2393 | $as_echo "$ac_try_echo") >&5 |
| 2394 | (eval "$ac_link_default") 2>&5 |
| 2395 | ac_status=$? |
| 2396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); }; then |
| 2398 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2399 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2400 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2401 | # so that the user can short-circuit this test for compilers unknown to |
| 2402 | # Autoconf. |
| 2403 | for ac_file in $ac_files '' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2404 | do |
| 2405 | test -f "$ac_file" || continue |
| 2406 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2407 | *.$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] | 2408 | ;; |
| 2409 | [ab].out ) |
| 2410 | # We found the default executable, but exeext='' is most |
| 2411 | # certainly right. |
| 2412 | break;; |
| 2413 | *.* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2414 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2415 | then :; else |
| 2416 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2417 | fi |
| 2418 | # We set ac_cv_exeext here because the later test for it is not |
| 2419 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2420 | # argument, so we may need to know it at that point already. |
| 2421 | # Even if this section looks crufty: it has the advantage of |
| 2422 | # actually working. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2423 | break;; |
| 2424 | * ) |
| 2425 | break;; |
| 2426 | esac |
| 2427 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2428 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2430 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2431 | ac_file='' |
| 2432 | fi |
| 2433 | |
| 2434 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2435 | $as_echo "$ac_file" >&6; } |
| 2436 | if test -z "$ac_file"; then |
| 2437 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2439 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2440 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2441 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2442 | $as_echo "$as_me: error: C compiler cannot create executables |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2443 | See \`config.log' for more details." >&2;} |
| 2444 | { (exit 77); exit 77; }; } |
| 2445 | fi |
| 2446 | |
| 2447 | ac_exeext=$ac_cv_exeext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2448 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2449 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2450 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2451 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2452 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2453 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2454 | # If not cross compiling, check that we can run a simple program. |
| 2455 | if test "$cross_compiling" != yes; then |
| 2456 | if { ac_try='./$ac_file' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2457 | { (case "(($ac_try" in |
| 2458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2459 | *) ac_try_echo=$ac_try;; |
| 2460 | esac |
| 2461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2462 | $as_echo "$ac_try_echo") >&5 |
| 2463 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2464 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2466 | (exit $ac_status); }; }; then |
| 2467 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2468 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2469 | if test "$cross_compiling" = maybe; then |
| 2470 | cross_compiling=yes |
| 2471 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2472 | { { $as_echo "$as_me:$LINENO: 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." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2475 | $as_echo "$as_me: error: cannot run C compiled programs. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2476 | If you meant to cross compile, use \`--host'. |
| 2477 | See \`config.log' for more details." >&2;} |
| 2478 | { (exit 1); exit 1; }; } |
| 2479 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2480 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2481 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2482 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2483 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2484 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2485 | 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] | 2486 | ac_clean_files=$ac_clean_files_save |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2487 | # Check that the compiler produces executables we can run. If not, either |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2488 | # the compiler is broken, or we cross compile. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2489 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2490 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2491 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2492 | $as_echo "$cross_compiling" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2493 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2494 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2495 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2496 | if { (ac_try="$ac_link" |
| 2497 | case "(($ac_try" in |
| 2498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2499 | *) ac_try_echo=$ac_try;; |
| 2500 | esac |
| 2501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2502 | $as_echo "$ac_try_echo") >&5 |
| 2503 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2504 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2506 | (exit $ac_status); }; then |
| 2507 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2508 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2509 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2510 | # `rm'. |
| 2511 | for ac_file in conftest.exe conftest conftest.*; do |
| 2512 | test -f "$ac_file" || continue |
| 2513 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2514 | *.$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] | 2515 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2516 | break;; |
| 2517 | * ) break;; |
| 2518 | esac |
| 2519 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2520 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2521 | { { $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] | 2522 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2523 | $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] | 2524 | See \`config.log' for more details." >&2;} |
| 2525 | { (exit 1); exit 1; }; } |
| 2526 | fi |
| 2527 | |
| 2528 | rm -f conftest$ac_cv_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2529 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2530 | $as_echo "$ac_cv_exeext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2531 | |
| 2532 | rm -f conftest.$ac_ext |
| 2533 | EXEEXT=$ac_cv_exeext |
| 2534 | ac_exeext=$EXEEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2535 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2536 | $as_echo_n "checking for suffix of object files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2537 | if test "${ac_cv_objext+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2538 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2539 | else |
| 2540 | cat >conftest.$ac_ext <<_ACEOF |
| 2541 | /* confdefs.h. */ |
| 2542 | _ACEOF |
| 2543 | cat confdefs.h >>conftest.$ac_ext |
| 2544 | cat >>conftest.$ac_ext <<_ACEOF |
| 2545 | /* end confdefs.h. */ |
| 2546 | |
| 2547 | int |
| 2548 | main () |
| 2549 | { |
| 2550 | |
| 2551 | ; |
| 2552 | return 0; |
| 2553 | } |
| 2554 | _ACEOF |
| 2555 | rm -f conftest.o conftest.obj |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2556 | if { (ac_try="$ac_compile" |
| 2557 | case "(($ac_try" in |
| 2558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2559 | *) ac_try_echo=$ac_try;; |
| 2560 | esac |
| 2561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2562 | $as_echo "$ac_try_echo") >&5 |
| 2563 | (eval "$ac_compile") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2564 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2566 | (exit $ac_status); }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2567 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2568 | test -f "$ac_file" || continue; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2569 | case $ac_file in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2570 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2571 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2572 | break;; |
| 2573 | esac |
| 2574 | done |
| 2575 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2576 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2578 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2579 | { { $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] | 2580 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2581 | $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] | 2582 | See \`config.log' for more details." >&2;} |
| 2583 | { (exit 1); exit 1; }; } |
| 2584 | fi |
| 2585 | |
| 2586 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2587 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2588 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2589 | $as_echo "$ac_cv_objext" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2590 | OBJEXT=$ac_cv_objext |
| 2591 | ac_objext=$OBJEXT |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2592 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2593 | $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] | 2594 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2595 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2596 | else |
| 2597 | cat >conftest.$ac_ext <<_ACEOF |
| 2598 | /* confdefs.h. */ |
| 2599 | _ACEOF |
| 2600 | cat confdefs.h >>conftest.$ac_ext |
| 2601 | cat >>conftest.$ac_ext <<_ACEOF |
| 2602 | /* end confdefs.h. */ |
| 2603 | |
| 2604 | int |
| 2605 | main () |
| 2606 | { |
| 2607 | #ifndef __GNUC__ |
| 2608 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2609 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2610 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2611 | ; |
| 2612 | return 0; |
| 2613 | } |
| 2614 | _ACEOF |
| 2615 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2616 | if { (ac_try="$ac_compile" |
| 2617 | case "(($ac_try" in |
| 2618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2619 | *) ac_try_echo=$ac_try;; |
| 2620 | esac |
| 2621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2622 | $as_echo "$ac_try_echo") >&5 |
| 2623 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2624 | ac_status=$? |
| 2625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2626 | rm -f conftest.er1 |
| 2627 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2629 | (exit $ac_status); } && { |
| 2630 | test -z "$ac_c_werror_flag" || |
| 2631 | test ! -s conftest.err |
| 2632 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2633 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2634 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2635 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2637 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2638 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2639 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2640 | |
| 2641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2642 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2643 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2644 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2645 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2646 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2647 | if test $ac_compiler_gnu = yes; then |
| 2648 | GCC=yes |
| 2649 | else |
| 2650 | GCC= |
| 2651 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2652 | ac_test_CFLAGS=${CFLAGS+set} |
| 2653 | ac_save_CFLAGS=$CFLAGS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2654 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2655 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2656 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2657 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2658 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2659 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2660 | ac_c_werror_flag=yes |
| 2661 | ac_cv_prog_cc_g=no |
| 2662 | CFLAGS="-g" |
| 2663 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2664 | /* confdefs.h. */ |
| 2665 | _ACEOF |
| 2666 | cat confdefs.h >>conftest.$ac_ext |
| 2667 | cat >>conftest.$ac_ext <<_ACEOF |
| 2668 | /* end confdefs.h. */ |
| 2669 | |
| 2670 | int |
| 2671 | main () |
| 2672 | { |
| 2673 | |
| 2674 | ; |
| 2675 | return 0; |
| 2676 | } |
| 2677 | _ACEOF |
| 2678 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2679 | if { (ac_try="$ac_compile" |
| 2680 | case "(($ac_try" in |
| 2681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2682 | *) ac_try_echo=$ac_try;; |
| 2683 | esac |
| 2684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2685 | $as_echo "$ac_try_echo") >&5 |
| 2686 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2687 | ac_status=$? |
| 2688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2689 | rm -f conftest.er1 |
| 2690 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2692 | (exit $ac_status); } && { |
| 2693 | test -z "$ac_c_werror_flag" || |
| 2694 | test ! -s conftest.err |
| 2695 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2696 | ac_cv_prog_cc_g=yes |
| 2697 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2698 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2699 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2700 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2701 | CFLAGS="" |
| 2702 | cat >conftest.$ac_ext <<_ACEOF |
| 2703 | /* confdefs.h. */ |
| 2704 | _ACEOF |
| 2705 | cat confdefs.h >>conftest.$ac_ext |
| 2706 | cat >>conftest.$ac_ext <<_ACEOF |
| 2707 | /* end confdefs.h. */ |
| 2708 | |
| 2709 | int |
| 2710 | main () |
| 2711 | { |
| 2712 | |
| 2713 | ; |
| 2714 | return 0; |
| 2715 | } |
| 2716 | _ACEOF |
| 2717 | rm -f conftest.$ac_objext |
| 2718 | if { (ac_try="$ac_compile" |
| 2719 | case "(($ac_try" in |
| 2720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2721 | *) ac_try_echo=$ac_try;; |
| 2722 | esac |
| 2723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2724 | $as_echo "$ac_try_echo") >&5 |
| 2725 | (eval "$ac_compile") 2>conftest.er1 |
| 2726 | ac_status=$? |
| 2727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2728 | rm -f conftest.er1 |
| 2729 | cat conftest.err >&5 |
| 2730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2731 | (exit $ac_status); } && { |
| 2732 | test -z "$ac_c_werror_flag" || |
| 2733 | test ! -s conftest.err |
| 2734 | } && test -s conftest.$ac_objext; then |
| 2735 | : |
| 2736 | else |
| 2737 | $as_echo "$as_me: failed program was:" >&5 |
| 2738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2739 | |
| 2740 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2741 | CFLAGS="-g" |
| 2742 | cat >conftest.$ac_ext <<_ACEOF |
| 2743 | /* confdefs.h. */ |
| 2744 | _ACEOF |
| 2745 | cat confdefs.h >>conftest.$ac_ext |
| 2746 | cat >>conftest.$ac_ext <<_ACEOF |
| 2747 | /* end confdefs.h. */ |
| 2748 | |
| 2749 | int |
| 2750 | main () |
| 2751 | { |
| 2752 | |
| 2753 | ; |
| 2754 | return 0; |
| 2755 | } |
| 2756 | _ACEOF |
| 2757 | rm -f conftest.$ac_objext |
| 2758 | if { (ac_try="$ac_compile" |
| 2759 | case "(($ac_try" in |
| 2760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2761 | *) ac_try_echo=$ac_try;; |
| 2762 | esac |
| 2763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2764 | $as_echo "$ac_try_echo") >&5 |
| 2765 | (eval "$ac_compile") 2>conftest.er1 |
| 2766 | ac_status=$? |
| 2767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2768 | rm -f conftest.er1 |
| 2769 | cat conftest.err >&5 |
| 2770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2771 | (exit $ac_status); } && { |
| 2772 | test -z "$ac_c_werror_flag" || |
| 2773 | test ! -s conftest.err |
| 2774 | } && test -s conftest.$ac_objext; then |
| 2775 | ac_cv_prog_cc_g=yes |
| 2776 | else |
| 2777 | $as_echo "$as_me: failed program was:" >&5 |
| 2778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2779 | |
| 2780 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +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 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2784 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2785 | |
| 2786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2787 | fi |
| 2788 | |
| 2789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2790 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2791 | fi |
| 2792 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2793 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2794 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2795 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2796 | elif test $ac_cv_prog_cc_g = yes; then |
| 2797 | if test "$GCC" = yes; then |
| 2798 | CFLAGS="-g -O2" |
| 2799 | else |
| 2800 | CFLAGS="-g" |
| 2801 | fi |
| 2802 | else |
| 2803 | if test "$GCC" = yes; then |
| 2804 | CFLAGS="-O2" |
| 2805 | else |
| 2806 | CFLAGS= |
| 2807 | fi |
| 2808 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2809 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2810 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2811 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2812 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2813 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2814 | ac_cv_prog_cc_c89=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2815 | ac_save_CC=$CC |
| 2816 | cat >conftest.$ac_ext <<_ACEOF |
| 2817 | /* confdefs.h. */ |
| 2818 | _ACEOF |
| 2819 | cat confdefs.h >>conftest.$ac_ext |
| 2820 | cat >>conftest.$ac_ext <<_ACEOF |
| 2821 | /* end confdefs.h. */ |
| 2822 | #include <stdarg.h> |
| 2823 | #include <stdio.h> |
| 2824 | #include <sys/types.h> |
| 2825 | #include <sys/stat.h> |
| 2826 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2827 | struct buf { int x; }; |
| 2828 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2829 | static char *e (p, i) |
| 2830 | char **p; |
| 2831 | int i; |
| 2832 | { |
| 2833 | return p[i]; |
| 2834 | } |
| 2835 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2836 | { |
| 2837 | char *s; |
| 2838 | va_list v; |
| 2839 | va_start (v,p); |
| 2840 | s = g (p, va_arg (v,int)); |
| 2841 | va_end (v); |
| 2842 | return s; |
| 2843 | } |
| 2844 | |
| 2845 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2846 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2847 | These don't provoke an error unfortunately, instead are silently treated |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2848 | 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] | 2849 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2850 | 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] | 2851 | that's true only with -std. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2852 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2853 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2854 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2855 | inside strings and character constants. */ |
| 2856 | #define FOO(x) 'x' |
| 2857 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2858 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2859 | int test (int i, double x); |
| 2860 | struct s1 {int (*f) (int a);}; |
| 2861 | struct s2 {int (*f) (double a);}; |
| 2862 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2863 | int argc; |
| 2864 | char **argv; |
| 2865 | int |
| 2866 | main () |
| 2867 | { |
| 2868 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2869 | ; |
| 2870 | return 0; |
| 2871 | } |
| 2872 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2873 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2874 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2875 | do |
| 2876 | CC="$ac_save_CC $ac_arg" |
| 2877 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2878 | if { (ac_try="$ac_compile" |
| 2879 | case "(($ac_try" in |
| 2880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2881 | *) ac_try_echo=$ac_try;; |
| 2882 | esac |
| 2883 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2884 | $as_echo "$ac_try_echo") >&5 |
| 2885 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2886 | ac_status=$? |
| 2887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2888 | rm -f conftest.er1 |
| 2889 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2890 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2891 | (exit $ac_status); } && { |
| 2892 | test -z "$ac_c_werror_flag" || |
| 2893 | test ! -s conftest.err |
| 2894 | } && test -s conftest.$ac_objext; then |
| 2895 | ac_cv_prog_cc_c89=$ac_arg |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2896 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2897 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2899 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2900 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2901 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2902 | |
| 2903 | rm -f core conftest.err conftest.$ac_objext |
| 2904 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2905 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2906 | rm -f conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2907 | CC=$ac_save_CC |
| 2908 | |
| 2909 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2910 | # AC_CACHE_VAL |
| 2911 | case "x$ac_cv_prog_cc_c89" in |
| 2912 | x) |
| 2913 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 2914 | $as_echo "none needed" >&6; } ;; |
| 2915 | xno) |
| 2916 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2917 | $as_echo "unsupported" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2918 | *) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2919 | CC="$CC $ac_cv_prog_cc_c89" |
| 2920 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2921 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2922 | esac |
| 2923 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2924 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2925 | ac_ext=c |
| 2926 | ac_cpp='$CPP $CPPFLAGS' |
| 2927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2930 | ac_ext=c |
| 2931 | ac_cpp='$CPP $CPPFLAGS' |
| 2932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2935 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2936 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2937 | # On Suns, sometimes $CPP names a directory. |
| 2938 | if test -n "$CPP" && test -d "$CPP"; then |
| 2939 | CPP= |
| 2940 | fi |
| 2941 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2942 | if test "${ac_cv_prog_CPP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2943 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2944 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2945 | # Double quotes because CPP needs to be expanded |
| 2946 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2947 | do |
| 2948 | ac_preproc_ok=false |
| 2949 | for ac_c_preproc_warn_flag in '' yes |
| 2950 | do |
| 2951 | # Use a header file that comes with gcc, so configuring glibc |
| 2952 | # with a fresh cross-compiler works. |
| 2953 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2954 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2955 | # 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] | 2956 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2957 | cat >conftest.$ac_ext <<_ACEOF |
| 2958 | /* confdefs.h. */ |
| 2959 | _ACEOF |
| 2960 | cat confdefs.h >>conftest.$ac_ext |
| 2961 | cat >>conftest.$ac_ext <<_ACEOF |
| 2962 | /* end confdefs.h. */ |
| 2963 | #ifdef __STDC__ |
| 2964 | # include <limits.h> |
| 2965 | #else |
| 2966 | # include <assert.h> |
| 2967 | #endif |
| 2968 | Syntax error |
| 2969 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2971 | case "(($ac_try" in |
| 2972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2973 | *) ac_try_echo=$ac_try;; |
| 2974 | esac |
| 2975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2976 | $as_echo "$ac_try_echo") >&5 |
| 2977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2978 | ac_status=$? |
| 2979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2980 | rm -f conftest.er1 |
| 2981 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2983 | (exit $ac_status); } >/dev/null && { |
| 2984 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2985 | test ! -s conftest.err |
| 2986 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2987 | : |
| 2988 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2989 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2991 | |
| 2992 | # Broken: fails on valid input. |
| 2993 | continue |
| 2994 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2995 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2996 | rm -f conftest.err conftest.$ac_ext |
| 2997 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 2998 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2999 | # can be detected and how. |
| 3000 | cat >conftest.$ac_ext <<_ACEOF |
| 3001 | /* confdefs.h. */ |
| 3002 | _ACEOF |
| 3003 | cat confdefs.h >>conftest.$ac_ext |
| 3004 | cat >>conftest.$ac_ext <<_ACEOF |
| 3005 | /* end confdefs.h. */ |
| 3006 | #include <ac_nonexistent.h> |
| 3007 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3008 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3009 | case "(($ac_try" in |
| 3010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3011 | *) ac_try_echo=$ac_try;; |
| 3012 | esac |
| 3013 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3014 | $as_echo "$ac_try_echo") >&5 |
| 3015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3016 | ac_status=$? |
| 3017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3018 | rm -f conftest.er1 |
| 3019 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3021 | (exit $ac_status); } >/dev/null && { |
| 3022 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3023 | test ! -s conftest.err |
| 3024 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3025 | # Broken: success on invalid input. |
| 3026 | continue |
| 3027 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3028 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3030 | |
| 3031 | # Passes both tests. |
| 3032 | ac_preproc_ok=: |
| 3033 | break |
| 3034 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3035 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3036 | rm -f conftest.err conftest.$ac_ext |
| 3037 | |
| 3038 | done |
| 3039 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3040 | rm -f conftest.err conftest.$ac_ext |
| 3041 | if $ac_preproc_ok; then |
| 3042 | break |
| 3043 | fi |
| 3044 | |
| 3045 | done |
| 3046 | ac_cv_prog_CPP=$CPP |
| 3047 | |
| 3048 | fi |
| 3049 | CPP=$ac_cv_prog_CPP |
| 3050 | else |
| 3051 | ac_cv_prog_CPP=$CPP |
| 3052 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3053 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3054 | $as_echo "$CPP" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3055 | ac_preproc_ok=false |
| 3056 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3057 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3058 | # Use a header file that comes with gcc, so configuring glibc |
| 3059 | # with a fresh cross-compiler works. |
| 3060 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3061 | # <limits.h> exists even on freestanding compilers. |
| 3062 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3063 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3064 | cat >conftest.$ac_ext <<_ACEOF |
| 3065 | /* confdefs.h. */ |
| 3066 | _ACEOF |
| 3067 | cat confdefs.h >>conftest.$ac_ext |
| 3068 | cat >>conftest.$ac_ext <<_ACEOF |
| 3069 | /* end confdefs.h. */ |
| 3070 | #ifdef __STDC__ |
| 3071 | # include <limits.h> |
| 3072 | #else |
| 3073 | # include <assert.h> |
| 3074 | #endif |
| 3075 | Syntax error |
| 3076 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3077 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3078 | case "(($ac_try" in |
| 3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3080 | *) ac_try_echo=$ac_try;; |
| 3081 | esac |
| 3082 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3083 | $as_echo "$ac_try_echo") >&5 |
| 3084 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3085 | ac_status=$? |
| 3086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3087 | rm -f conftest.er1 |
| 3088 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3089 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3090 | (exit $ac_status); } >/dev/null && { |
| 3091 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3092 | test ! -s conftest.err |
| 3093 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3094 | : |
| 3095 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3096 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3098 | |
| 3099 | # Broken: fails on valid input. |
| 3100 | continue |
| 3101 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3102 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3103 | rm -f conftest.err conftest.$ac_ext |
| 3104 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3105 | # OK, works on sane cases. Now check whether nonexistent headers |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3106 | # can be detected and how. |
| 3107 | cat >conftest.$ac_ext <<_ACEOF |
| 3108 | /* confdefs.h. */ |
| 3109 | _ACEOF |
| 3110 | cat confdefs.h >>conftest.$ac_ext |
| 3111 | cat >>conftest.$ac_ext <<_ACEOF |
| 3112 | /* end confdefs.h. */ |
| 3113 | #include <ac_nonexistent.h> |
| 3114 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3115 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3116 | case "(($ac_try" in |
| 3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3118 | *) ac_try_echo=$ac_try;; |
| 3119 | esac |
| 3120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3121 | $as_echo "$ac_try_echo") >&5 |
| 3122 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3123 | ac_status=$? |
| 3124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3125 | rm -f conftest.er1 |
| 3126 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3128 | (exit $ac_status); } >/dev/null && { |
| 3129 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3130 | test ! -s conftest.err |
| 3131 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3132 | # Broken: success on invalid input. |
| 3133 | continue |
| 3134 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3135 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3137 | |
| 3138 | # Passes both tests. |
| 3139 | ac_preproc_ok=: |
| 3140 | break |
| 3141 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3142 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3143 | rm -f conftest.err conftest.$ac_ext |
| 3144 | |
| 3145 | done |
| 3146 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3147 | rm -f conftest.err conftest.$ac_ext |
| 3148 | if $ac_preproc_ok; then |
| 3149 | : |
| 3150 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3151 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3152 | See \`config.log' for more details." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3153 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3154 | See \`config.log' for more details." >&2;} |
| 3155 | { (exit 1); exit 1; }; } |
| 3156 | fi |
| 3157 | |
| 3158 | ac_ext=c |
| 3159 | ac_cpp='$CPP $CPPFLAGS' |
| 3160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3163 | |
| 3164 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3165 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3166 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3167 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3168 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3169 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3170 | if test -z "$GREP"; then |
| 3171 | ac_path_GREP_found=false |
| 3172 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3174 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3175 | do |
| 3176 | IFS=$as_save_IFS |
| 3177 | test -z "$as_dir" && as_dir=. |
| 3178 | for ac_prog in grep ggrep; do |
| 3179 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3180 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3181 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3182 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3183 | # Check for GNU $ac_path_GREP |
| 3184 | case `"$ac_path_GREP" --version 2>&1` in |
| 3185 | *GNU*) |
| 3186 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3187 | *) |
| 3188 | ac_count=0 |
| 3189 | $as_echo_n 0123456789 >"conftest.in" |
| 3190 | while : |
| 3191 | do |
| 3192 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3193 | mv "conftest.tmp" "conftest.in" |
| 3194 | cp "conftest.in" "conftest.nl" |
| 3195 | $as_echo 'GREP' >> "conftest.nl" |
| 3196 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3197 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3198 | ac_count=`expr $ac_count + 1` |
| 3199 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3200 | # Best one so far, save it but keep looking for a better one |
| 3201 | ac_cv_path_GREP="$ac_path_GREP" |
| 3202 | ac_path_GREP_max=$ac_count |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3203 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3204 | # 10*(2^10) chars as input seems more than enough |
| 3205 | test $ac_count -gt 10 && break |
| 3206 | done |
| 3207 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3208 | esac |
| 3209 | |
| 3210 | $ac_path_GREP_found && break 3 |
| 3211 | done |
| 3212 | done |
| 3213 | done |
| 3214 | IFS=$as_save_IFS |
| 3215 | if test -z "$ac_cv_path_GREP"; then |
| 3216 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3217 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3218 | { (exit 1); exit 1; }; } |
| 3219 | fi |
| 3220 | else |
| 3221 | ac_cv_path_GREP=$GREP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3222 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3223 | |
| 3224 | fi |
| 3225 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3226 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3227 | GREP="$ac_cv_path_GREP" |
| 3228 | |
| 3229 | |
| 3230 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3231 | $as_echo_n "checking for egrep... " >&6; } |
| 3232 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3233 | $as_echo_n "(cached) " >&6 |
| 3234 | else |
| 3235 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3236 | then ac_cv_path_EGREP="$GREP -E" |
| 3237 | else |
| 3238 | if test -z "$EGREP"; then |
| 3239 | ac_path_EGREP_found=false |
| 3240 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3242 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3243 | do |
| 3244 | IFS=$as_save_IFS |
| 3245 | test -z "$as_dir" && as_dir=. |
| 3246 | for ac_prog in egrep; do |
| 3247 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3248 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3249 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3250 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3251 | # Check for GNU $ac_path_EGREP |
| 3252 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3253 | *GNU*) |
| 3254 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3255 | *) |
| 3256 | ac_count=0 |
| 3257 | $as_echo_n 0123456789 >"conftest.in" |
| 3258 | while : |
| 3259 | do |
| 3260 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3261 | mv "conftest.tmp" "conftest.in" |
| 3262 | cp "conftest.in" "conftest.nl" |
| 3263 | $as_echo 'EGREP' >> "conftest.nl" |
| 3264 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3265 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3266 | ac_count=`expr $ac_count + 1` |
| 3267 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3268 | # Best one so far, save it but keep looking for a better one |
| 3269 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3270 | ac_path_EGREP_max=$ac_count |
| 3271 | fi |
| 3272 | # 10*(2^10) chars as input seems more than enough |
| 3273 | test $ac_count -gt 10 && break |
| 3274 | done |
| 3275 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3276 | esac |
| 3277 | |
| 3278 | $ac_path_EGREP_found && break 3 |
| 3279 | done |
| 3280 | done |
| 3281 | done |
| 3282 | IFS=$as_save_IFS |
| 3283 | if test -z "$ac_cv_path_EGREP"; then |
| 3284 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3285 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3286 | { (exit 1); exit 1; }; } |
| 3287 | fi |
| 3288 | else |
| 3289 | ac_cv_path_EGREP=$EGREP |
| 3290 | fi |
| 3291 | |
| 3292 | fi |
| 3293 | fi |
| 3294 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3295 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3296 | EGREP="$ac_cv_path_EGREP" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3297 | |
| 3298 | |
| 3299 | cat >conftest.$ac_ext <<_ACEOF |
| 3300 | /* confdefs.h. */ |
| 3301 | _ACEOF |
| 3302 | cat confdefs.h >>conftest.$ac_ext |
| 3303 | cat >>conftest.$ac_ext <<_ACEOF |
| 3304 | /* end confdefs.h. */ |
| 3305 | |
| 3306 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3307 | rm -f conftest* |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3308 | { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 3309 | $as_echo_n "checking for library containing strerror... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3310 | if test "${ac_cv_search_strerror+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3311 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3312 | else |
| 3313 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3314 | cat >conftest.$ac_ext <<_ACEOF |
| 3315 | /* confdefs.h. */ |
| 3316 | _ACEOF |
| 3317 | cat confdefs.h >>conftest.$ac_ext |
| 3318 | cat >>conftest.$ac_ext <<_ACEOF |
| 3319 | /* end confdefs.h. */ |
| 3320 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3321 | /* Override any GCC internal prototype to avoid an error. |
| 3322 | Use char because int might match the return type of a GCC |
| 3323 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3324 | #ifdef __cplusplus |
| 3325 | extern "C" |
| 3326 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3327 | char strerror (); |
| 3328 | int |
| 3329 | main () |
| 3330 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3331 | return strerror (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3332 | ; |
| 3333 | return 0; |
| 3334 | } |
| 3335 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3336 | for ac_lib in '' cposix; do |
| 3337 | if test -z "$ac_lib"; then |
| 3338 | ac_res="none required" |
| 3339 | else |
| 3340 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3341 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3342 | fi |
| 3343 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3344 | if { (ac_try="$ac_link" |
| 3345 | case "(($ac_try" in |
| 3346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3347 | *) ac_try_echo=$ac_try;; |
| 3348 | esac |
| 3349 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3350 | $as_echo "$ac_try_echo") >&5 |
| 3351 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3352 | ac_status=$? |
| 3353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3354 | rm -f conftest.er1 |
| 3355 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3356 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3357 | (exit $ac_status); } && { |
| 3358 | test -z "$ac_c_werror_flag" || |
| 3359 | test ! -s conftest.err |
| 3360 | } && test -s conftest$ac_exeext && { |
| 3361 | test "$cross_compiling" = yes || |
| 3362 | $as_test_x conftest$ac_exeext |
| 3363 | }; then |
| 3364 | ac_cv_search_strerror=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3365 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3366 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3368 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3369 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3370 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3371 | |
| 3372 | rm -rf conftest.dSYM |
| 3373 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3374 | conftest$ac_exeext |
| 3375 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3376 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3377 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3378 | done |
| 3379 | if test "${ac_cv_search_strerror+set}" = set; then |
| 3380 | : |
| 3381 | else |
| 3382 | ac_cv_search_strerror=no |
| 3383 | fi |
| 3384 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3385 | LIBS=$ac_func_search_save_LIBS |
| 3386 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3387 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 3388 | $as_echo "$ac_cv_search_strerror" >&6; } |
| 3389 | ac_res=$ac_cv_search_strerror |
| 3390 | if test "$ac_res" != no; then |
| 3391 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3392 | |
| 3393 | fi |
| 3394 | for ac_prog in gawk mawk nawk awk |
| 3395 | do |
| 3396 | # 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] | 3397 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3398 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3399 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3400 | if test "${ac_cv_prog_AWK+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3401 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3402 | else |
| 3403 | if test -n "$AWK"; then |
| 3404 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3405 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3407 | for as_dir in $PATH |
| 3408 | do |
| 3409 | IFS=$as_save_IFS |
| 3410 | test -z "$as_dir" && as_dir=. |
| 3411 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3412 | 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] | 3413 | ac_cv_prog_AWK="$ac_prog" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3414 | $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] | 3415 | break 2 |
| 3416 | fi |
| 3417 | done |
| 3418 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3419 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3420 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3421 | fi |
| 3422 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3423 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3424 | if test -n "$AWK"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3425 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 3426 | $as_echo "$AWK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3427 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3428 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3429 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3430 | fi |
| 3431 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3432 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3433 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3434 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3435 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3436 | # Extract the first word of "strip", so it can be a program name with args. |
| 3437 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3438 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3439 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3440 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3441 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3442 | else |
| 3443 | if test -n "$STRIP"; then |
| 3444 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3445 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3447 | for as_dir in $PATH |
| 3448 | do |
| 3449 | IFS=$as_save_IFS |
| 3450 | test -z "$as_dir" && as_dir=. |
| 3451 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3452 | 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] | 3453 | ac_cv_prog_STRIP="strip" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3454 | $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] | 3455 | break 2 |
| 3456 | fi |
| 3457 | done |
| 3458 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3459 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3460 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3461 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 3462 | fi |
| 3463 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3464 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3465 | if test -n "$STRIP"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3466 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3467 | $as_echo "$STRIP" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3468 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3469 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3470 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3471 | fi |
| 3472 | |
| 3473 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3474 | |
| 3475 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3476 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3477 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3478 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3479 | if test "${ac_cv_header_stdc+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3480 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3481 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3482 | cat >conftest.$ac_ext <<_ACEOF |
| 3483 | /* confdefs.h. */ |
| 3484 | _ACEOF |
| 3485 | cat confdefs.h >>conftest.$ac_ext |
| 3486 | cat >>conftest.$ac_ext <<_ACEOF |
| 3487 | /* end confdefs.h. */ |
| 3488 | #include <stdlib.h> |
| 3489 | #include <stdarg.h> |
| 3490 | #include <string.h> |
| 3491 | #include <float.h> |
| 3492 | |
| 3493 | int |
| 3494 | main () |
| 3495 | { |
| 3496 | |
| 3497 | ; |
| 3498 | return 0; |
| 3499 | } |
| 3500 | _ACEOF |
| 3501 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3502 | if { (ac_try="$ac_compile" |
| 3503 | case "(($ac_try" in |
| 3504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3505 | *) ac_try_echo=$ac_try;; |
| 3506 | esac |
| 3507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3508 | $as_echo "$ac_try_echo") >&5 |
| 3509 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3510 | ac_status=$? |
| 3511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3512 | rm -f conftest.er1 |
| 3513 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3515 | (exit $ac_status); } && { |
| 3516 | test -z "$ac_c_werror_flag" || |
| 3517 | test ! -s conftest.err |
| 3518 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3519 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3520 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3521 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3523 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3524 | ac_cv_header_stdc=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3525 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3526 | |
| 3527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3528 | |
| 3529 | if test $ac_cv_header_stdc = yes; then |
| 3530 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3531 | cat >conftest.$ac_ext <<_ACEOF |
| 3532 | /* confdefs.h. */ |
| 3533 | _ACEOF |
| 3534 | cat confdefs.h >>conftest.$ac_ext |
| 3535 | cat >>conftest.$ac_ext <<_ACEOF |
| 3536 | /* end confdefs.h. */ |
| 3537 | #include <string.h> |
| 3538 | |
| 3539 | _ACEOF |
| 3540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3541 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3542 | : |
| 3543 | else |
| 3544 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3545 | fi |
| 3546 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3547 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3548 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3549 | |
| 3550 | if test $ac_cv_header_stdc = yes; then |
| 3551 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3552 | cat >conftest.$ac_ext <<_ACEOF |
| 3553 | /* confdefs.h. */ |
| 3554 | _ACEOF |
| 3555 | cat confdefs.h >>conftest.$ac_ext |
| 3556 | cat >>conftest.$ac_ext <<_ACEOF |
| 3557 | /* end confdefs.h. */ |
| 3558 | #include <stdlib.h> |
| 3559 | |
| 3560 | _ACEOF |
| 3561 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3562 | $EGREP "free" >/dev/null 2>&1; then |
| 3563 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3564 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3565 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3566 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3567 | rm -f conftest* |
| 3568 | |
| 3569 | fi |
| 3570 | |
| 3571 | if test $ac_cv_header_stdc = yes; then |
| 3572 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3573 | if test "$cross_compiling" = yes; then |
| 3574 | : |
| 3575 | else |
| 3576 | cat >conftest.$ac_ext <<_ACEOF |
| 3577 | /* confdefs.h. */ |
| 3578 | _ACEOF |
| 3579 | cat confdefs.h >>conftest.$ac_ext |
| 3580 | cat >>conftest.$ac_ext <<_ACEOF |
| 3581 | /* end confdefs.h. */ |
| 3582 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3583 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3584 | #if ((' ' & 0x0FF) == 0x020) |
| 3585 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3586 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3587 | #else |
| 3588 | # define ISLOWER(c) \ |
| 3589 | (('a' <= (c) && (c) <= 'i') \ |
| 3590 | || ('j' <= (c) && (c) <= 'r') \ |
| 3591 | || ('s' <= (c) && (c) <= 'z')) |
| 3592 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3593 | #endif |
| 3594 | |
| 3595 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3596 | int |
| 3597 | main () |
| 3598 | { |
| 3599 | int i; |
| 3600 | for (i = 0; i < 256; i++) |
| 3601 | if (XOR (islower (i), ISLOWER (i)) |
| 3602 | || toupper (i) != TOUPPER (i)) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3603 | return 2; |
| 3604 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3605 | } |
| 3606 | _ACEOF |
| 3607 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3608 | if { (ac_try="$ac_link" |
| 3609 | case "(($ac_try" in |
| 3610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3611 | *) ac_try_echo=$ac_try;; |
| 3612 | esac |
| 3613 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3614 | $as_echo "$ac_try_echo") >&5 |
| 3615 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3616 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3618 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3619 | { (case "(($ac_try" in |
| 3620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3621 | *) ac_try_echo=$ac_try;; |
| 3622 | esac |
| 3623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3624 | $as_echo "$ac_try_echo") >&5 |
| 3625 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3626 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3628 | (exit $ac_status); }; }; then |
| 3629 | : |
| 3630 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3631 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3632 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3634 | |
| 3635 | ( exit $ac_status ) |
| 3636 | ac_cv_header_stdc=no |
| 3637 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3638 | rm -rf conftest.dSYM |
| 3639 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3640 | fi |
| 3641 | |
| 3642 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3643 | fi |
| 3644 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3645 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3646 | $as_echo "$ac_cv_header_stdc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3647 | if test $ac_cv_header_stdc = yes; then |
| 3648 | |
| 3649 | cat >>confdefs.h <<\_ACEOF |
| 3650 | #define STDC_HEADERS 1 |
| 3651 | _ACEOF |
| 3652 | |
| 3653 | fi |
| 3654 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3655 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 3656 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 3657 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 3658 | $as_echo_n "(cached) " >&6 |
| 3659 | else |
| 3660 | cat >conftest.$ac_ext <<_ACEOF |
| 3661 | /* confdefs.h. */ |
| 3662 | _ACEOF |
| 3663 | cat confdefs.h >>conftest.$ac_ext |
| 3664 | cat >>conftest.$ac_ext <<_ACEOF |
| 3665 | /* end confdefs.h. */ |
| 3666 | #include <sys/types.h> |
| 3667 | #include <sys/wait.h> |
| 3668 | #ifndef WEXITSTATUS |
| 3669 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 3670 | #endif |
| 3671 | #ifndef WIFEXITED |
| 3672 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 3673 | #endif |
| 3674 | |
| 3675 | int |
| 3676 | main () |
| 3677 | { |
| 3678 | int s; |
| 3679 | wait (&s); |
| 3680 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 3681 | ; |
| 3682 | return 0; |
| 3683 | } |
| 3684 | _ACEOF |
| 3685 | rm -f conftest.$ac_objext |
| 3686 | if { (ac_try="$ac_compile" |
| 3687 | case "(($ac_try" in |
| 3688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3689 | *) ac_try_echo=$ac_try;; |
| 3690 | esac |
| 3691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3692 | $as_echo "$ac_try_echo") >&5 |
| 3693 | (eval "$ac_compile") 2>conftest.er1 |
| 3694 | ac_status=$? |
| 3695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3696 | rm -f conftest.er1 |
| 3697 | cat conftest.err >&5 |
| 3698 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3699 | (exit $ac_status); } && { |
| 3700 | test -z "$ac_c_werror_flag" || |
| 3701 | test ! -s conftest.err |
| 3702 | } && test -s conftest.$ac_objext; then |
| 3703 | ac_cv_header_sys_wait_h=yes |
| 3704 | else |
| 3705 | $as_echo "$as_me: failed program was:" >&5 |
| 3706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3707 | |
| 3708 | ac_cv_header_sys_wait_h=no |
| 3709 | fi |
| 3710 | |
| 3711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3712 | fi |
| 3713 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 3714 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 3715 | if test $ac_cv_header_sys_wait_h = yes; then |
| 3716 | |
| 3717 | cat >>confdefs.h <<\_ACEOF |
| 3718 | #define HAVE_SYS_WAIT_H 1 |
| 3719 | _ACEOF |
| 3720 | |
| 3721 | fi |
| 3722 | |
| 3723 | |
| 3724 | if test -z "$CFLAGS"; then |
| 3725 | CFLAGS="-O" |
| 3726 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 3727 | fi |
| 3728 | if test "$GCC" = yes; then |
| 3729 | gccversion=`"$CC" -dumpversion` |
| 3730 | if test "x$gccversion" = "x"; then |
| 3731 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 3732 | fi |
| 3733 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
| 3734 | echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
| 3735 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 3736 | else |
| 3737 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 3738 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 3739 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 3740 | fi |
| 3741 | fi |
| 3742 | fi |
| 3743 | |
| 3744 | if test "$cross_compiling" = yes; then |
| 3745 | { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 |
| 3746 | $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } |
| 3747 | fi |
| 3748 | |
| 3749 | test "$GCC" = yes && CPP_MM=M; |
| 3750 | |
| 3751 | if test -f ./toolcheck; then |
| 3752 | { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 3753 | $as_echo "$as_me: checking for buggy tools..." >&6;} |
| 3754 | sh ./toolcheck 1>&6 |
| 3755 | fi |
| 3756 | |
| 3757 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 3758 | |
| 3759 | { $as_echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 3760 | $as_echo_n "checking for BeOS... " >&6; } |
| 3761 | case `uname` in |
| 3762 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
| 3763 | BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3764 | $as_echo "yes" >&6; };; |
| 3765 | *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3766 | $as_echo "no" >&6; };; |
| 3767 | esac |
| 3768 | |
| 3769 | { $as_echo "$as_me:$LINENO: checking for QNX" >&5 |
| 3770 | $as_echo_n "checking for QNX... " >&6; } |
| 3771 | case `uname` in |
| 3772 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 3773 | test -z "$with_x" && with_x=no |
| 3774 | QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3775 | $as_echo "yes" >&6; };; |
| 3776 | *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3777 | $as_echo "no" >&6; };; |
| 3778 | esac |
| 3779 | |
| 3780 | { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 3781 | $as_echo_n "checking for Darwin (Mac OS X)... " >&6; } |
| 3782 | if test "`(uname) 2>/dev/null`" = Darwin; then |
| 3783 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3784 | $as_echo "yes" >&6; } |
| 3785 | |
| 3786 | { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 3787 | $as_echo_n "checking --disable-darwin argument... " >&6; } |
| 3788 | # Check whether --enable-darwin was given. |
| 3789 | if test "${enable_darwin+set}" = set; then |
| 3790 | enableval=$enable_darwin; |
| 3791 | else |
| 3792 | enable_darwin="yes" |
| 3793 | fi |
| 3794 | |
| 3795 | if test "$enable_darwin" = "yes"; then |
| 3796 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3797 | $as_echo "no" >&6; } |
| 3798 | { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 3799 | $as_echo_n "checking if Darwin files are there... " >&6; } |
| 3800 | if test -f os_macosx.c; then |
| 3801 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3802 | $as_echo "yes" >&6; } |
| 3803 | else |
| 3804 | { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 3805 | $as_echo "no, Darwin support disabled" >&6; } |
| 3806 | enable_darwin=no |
| 3807 | fi |
| 3808 | else |
| 3809 | { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 3810 | $as_echo "yes, Darwin support excluded" >&6; } |
| 3811 | fi |
| 3812 | |
| 3813 | { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 3814 | $as_echo_n "checking --with-mac-arch argument... " >&6; } |
| 3815 | |
| 3816 | # Check whether --with-mac-arch was given. |
| 3817 | if test "${with_mac_arch+set}" = set; then |
| 3818 | withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 3819 | $as_echo "$MACARCH" >&6; } |
| 3820 | else |
| 3821 | MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
| 3822 | $as_echo "defaulting to $MACARCH" >&6; } |
| 3823 | fi |
| 3824 | |
| 3825 | |
| 3826 | if test "x$MACARCH" = "xboth"; then |
| 3827 | { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 3828 | $as_echo_n "checking for 10.4 universal SDK... " >&6; } |
| 3829 | save_cppflags="$CPPFLAGS" |
| 3830 | save_cflags="$CFLAGS" |
| 3831 | save_ldflags="$LDFLAGS" |
| 3832 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 3833 | cat >conftest.$ac_ext <<_ACEOF |
| 3834 | /* confdefs.h. */ |
| 3835 | _ACEOF |
| 3836 | cat confdefs.h >>conftest.$ac_ext |
| 3837 | cat >>conftest.$ac_ext <<_ACEOF |
| 3838 | /* end confdefs.h. */ |
| 3839 | |
| 3840 | int |
| 3841 | main () |
| 3842 | { |
| 3843 | |
| 3844 | ; |
| 3845 | return 0; |
| 3846 | } |
| 3847 | _ACEOF |
| 3848 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3849 | if { (ac_try="$ac_link" |
| 3850 | case "(($ac_try" in |
| 3851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3852 | *) ac_try_echo=$ac_try;; |
| 3853 | esac |
| 3854 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3855 | $as_echo "$ac_try_echo") >&5 |
| 3856 | (eval "$ac_link") 2>conftest.er1 |
| 3857 | ac_status=$? |
| 3858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3859 | rm -f conftest.er1 |
| 3860 | cat conftest.err >&5 |
| 3861 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3862 | (exit $ac_status); } && { |
| 3863 | test -z "$ac_c_werror_flag" || |
| 3864 | test ! -s conftest.err |
| 3865 | } && test -s conftest$ac_exeext && { |
| 3866 | test "$cross_compiling" = yes || |
| 3867 | $as_test_x conftest$ac_exeext |
| 3868 | }; then |
| 3869 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 3870 | $as_echo "found" >&6; } |
| 3871 | else |
| 3872 | $as_echo "$as_me: failed program was:" >&5 |
| 3873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3874 | |
| 3875 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 3876 | $as_echo "not found" >&6; } |
| 3877 | CFLAGS="$save_cflags" |
| 3878 | { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
| 3879 | $as_echo_n "checking if Intel architecture is supported... " >&6; } |
| 3880 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 3881 | LDFLAGS="$save_ldflags -arch i386" |
| 3882 | cat >conftest.$ac_ext <<_ACEOF |
| 3883 | /* confdefs.h. */ |
| 3884 | _ACEOF |
| 3885 | cat confdefs.h >>conftest.$ac_ext |
| 3886 | cat >>conftest.$ac_ext <<_ACEOF |
| 3887 | /* end confdefs.h. */ |
| 3888 | |
| 3889 | int |
| 3890 | main () |
| 3891 | { |
| 3892 | |
| 3893 | ; |
| 3894 | return 0; |
| 3895 | } |
| 3896 | _ACEOF |
| 3897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3898 | if { (ac_try="$ac_link" |
| 3899 | case "(($ac_try" in |
| 3900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3901 | *) ac_try_echo=$ac_try;; |
| 3902 | esac |
| 3903 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3904 | $as_echo "$ac_try_echo") >&5 |
| 3905 | (eval "$ac_link") 2>conftest.er1 |
| 3906 | ac_status=$? |
| 3907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3908 | rm -f conftest.er1 |
| 3909 | cat conftest.err >&5 |
| 3910 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3911 | (exit $ac_status); } && { |
| 3912 | test -z "$ac_c_werror_flag" || |
| 3913 | test ! -s conftest.err |
| 3914 | } && test -s conftest$ac_exeext && { |
| 3915 | test "$cross_compiling" = yes || |
| 3916 | $as_test_x conftest$ac_exeext |
| 3917 | }; then |
| 3918 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3919 | $as_echo "yes" >&6; }; MACARCH="intel" |
| 3920 | else |
| 3921 | $as_echo "$as_me: failed program was:" >&5 |
| 3922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3923 | |
| 3924 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3925 | $as_echo "no" >&6; } |
| 3926 | MACARCH="ppc" |
| 3927 | CPPFLAGS="$save_cppflags -arch ppc" |
| 3928 | LDFLAGS="$save_ldflags -arch ppc" |
| 3929 | fi |
| 3930 | |
| 3931 | rm -rf conftest.dSYM |
| 3932 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3933 | conftest$ac_exeext conftest.$ac_ext |
| 3934 | fi |
| 3935 | |
| 3936 | rm -rf conftest.dSYM |
| 3937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3938 | conftest$ac_exeext conftest.$ac_ext |
| 3939 | elif test "x$MACARCH" = "xintel"; then |
| 3940 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 3941 | LDFLAGS="$LDFLAGS -arch intel" |
| 3942 | elif test "x$MACARCH" = "xppc"; then |
| 3943 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 3944 | LDFLAGS="$LDFLAGS -arch ppc" |
| 3945 | fi |
| 3946 | |
| 3947 | if test "$enable_darwin" = "yes"; then |
| 3948 | MACOSX=yes |
| 3949 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 3950 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
| 3951 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3952 | if test "x$MACARCH" = "xboth"; then |
| 3953 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3954 | else |
| 3955 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3956 | fi |
| 3957 | |
| 3958 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3969 | inttypes.h stdint.h unistd.h |
| 3970 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3971 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3972 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3973 | $as_echo_n "checking for $ac_header... " >&6; } |
| 3974 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3975 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3976 | else |
| 3977 | cat >conftest.$ac_ext <<_ACEOF |
| 3978 | /* confdefs.h. */ |
| 3979 | _ACEOF |
| 3980 | cat confdefs.h >>conftest.$ac_ext |
| 3981 | cat >>conftest.$ac_ext <<_ACEOF |
| 3982 | /* end confdefs.h. */ |
| 3983 | $ac_includes_default |
| 3984 | |
| 3985 | #include <$ac_header> |
| 3986 | _ACEOF |
| 3987 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 3988 | if { (ac_try="$ac_compile" |
| 3989 | case "(($ac_try" in |
| 3990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3991 | *) ac_try_echo=$ac_try;; |
| 3992 | esac |
| 3993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3994 | $as_echo "$ac_try_echo") >&5 |
| 3995 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3996 | ac_status=$? |
| 3997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3998 | rm -f conftest.er1 |
| 3999 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4001 | (exit $ac_status); } && { |
| 4002 | test -z "$ac_c_werror_flag" || |
| 4003 | test ! -s conftest.err |
| 4004 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4005 | eval "$as_ac_Header=yes" |
| 4006 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4007 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4009 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4010 | eval "$as_ac_Header=no" |
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 | |
| 4013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4014 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4015 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 4016 | $as_echo "$as_val"'` |
| 4017 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4018 | $as_echo "$ac_res" >&6; } |
| 4019 | if test `eval 'as_val=${'$as_ac_Header'} |
| 4020 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4021 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4022 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4023 | _ACEOF |
| 4024 | |
| 4025 | fi |
| 4026 | |
| 4027 | done |
| 4028 | |
| 4029 | |
| 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 "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4032 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4033 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4034 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4035 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4036 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4037 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4038 | else |
| 4039 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4040 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 4041 | $as_echo_n "checking Carbon/Carbon.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4042 | cat >conftest.$ac_ext <<_ACEOF |
| 4043 | /* confdefs.h. */ |
| 4044 | _ACEOF |
| 4045 | cat confdefs.h >>conftest.$ac_ext |
| 4046 | cat >>conftest.$ac_ext <<_ACEOF |
| 4047 | /* end confdefs.h. */ |
| 4048 | $ac_includes_default |
| 4049 | #include <Carbon/Carbon.h> |
| 4050 | _ACEOF |
| 4051 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4052 | if { (ac_try="$ac_compile" |
| 4053 | case "(($ac_try" in |
| 4054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4055 | *) ac_try_echo=$ac_try;; |
| 4056 | esac |
| 4057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4058 | $as_echo "$ac_try_echo") >&5 |
| 4059 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4060 | ac_status=$? |
| 4061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4062 | rm -f conftest.er1 |
| 4063 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4065 | (exit $ac_status); } && { |
| 4066 | test -z "$ac_c_werror_flag" || |
| 4067 | test ! -s conftest.err |
| 4068 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4069 | ac_header_compiler=yes |
| 4070 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4071 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4073 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4074 | ac_header_compiler=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4075 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4076 | |
| 4077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4078 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4079 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4080 | |
| 4081 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4082 | { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 4083 | $as_echo_n "checking Carbon/Carbon.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4084 | cat >conftest.$ac_ext <<_ACEOF |
| 4085 | /* confdefs.h. */ |
| 4086 | _ACEOF |
| 4087 | cat confdefs.h >>conftest.$ac_ext |
| 4088 | cat >>conftest.$ac_ext <<_ACEOF |
| 4089 | /* end confdefs.h. */ |
| 4090 | #include <Carbon/Carbon.h> |
| 4091 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4092 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4093 | case "(($ac_try" in |
| 4094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4095 | *) ac_try_echo=$ac_try;; |
| 4096 | esac |
| 4097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4098 | $as_echo "$ac_try_echo") >&5 |
| 4099 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4100 | ac_status=$? |
| 4101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4102 | rm -f conftest.er1 |
| 4103 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4105 | (exit $ac_status); } >/dev/null && { |
| 4106 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4107 | test ! -s conftest.err |
| 4108 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4109 | ac_header_preproc=yes |
| 4110 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4111 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4113 | |
| 4114 | ac_header_preproc=no |
| 4115 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4116 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4117 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4118 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4119 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4120 | |
| 4121 | # So? What about this header? |
| 4122 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4123 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4124 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4125 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4126 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 4127 | $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] | 4128 | ac_header_preproc=yes |
| 4129 | ;; |
| 4130 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4131 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 4132 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 4133 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 4134 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 4135 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 4136 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 4137 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4138 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4139 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 4140 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 4141 | { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 4142 | $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 4143 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4144 | ;; |
| 4145 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4146 | { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 4147 | $as_echo_n "checking for Carbon/Carbon.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4148 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4149 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4150 | else |
| 4151 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 4152 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4153 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 4154 | $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4155 | |
| 4156 | fi |
| 4157 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 4158 | CARBON=yes |
| 4159 | fi |
| 4160 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4161 | |
| 4162 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 4163 | 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] | 4164 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4165 | fi |
| 4166 | fi |
| 4167 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 4168 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 4169 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 4170 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 4171 | fi |
| 4172 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4173 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4174 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4175 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4176 | fi |
| 4177 | |
| 4178 | |
| 4179 | |
| 4180 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4181 | if test "$cross_compiling" = no; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4182 | { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5 |
| 4183 | $as_echo_n "checking --with-local-dir argument... " >&6; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4184 | have_local_include='' |
| 4185 | have_local_lib='' |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4186 | |
| 4187 | # Check whether --with-local-dir was given. |
| 4188 | if test "${with_local_dir+set}" = set; then |
| 4189 | withval=$with_local_dir; |
| 4190 | local_dir="$withval" |
| 4191 | case "$withval" in |
| 4192 | */*) ;; |
| 4193 | no) |
| 4194 | # avoid adding local dir to LDFLAGS and CPPFLAGS |
| 4195 | have_local_dir=yes |
| 4196 | have_local_lib=yes |
| 4197 | ;; |
| 4198 | *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5 |
| 4199 | $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;} |
| 4200 | { (exit 1); exit 1; }; } ;; |
| 4201 | esac |
| 4202 | { $as_echo "$as_me:$LINENO: result: $local_dir" >&5 |
| 4203 | $as_echo "$local_dir" >&6; } |
| 4204 | |
| 4205 | else |
| 4206 | |
| 4207 | local_dir=/usr/local |
| 4208 | { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5 |
| 4209 | $as_echo "Defaulting to $local_dir" >&6; } |
| 4210 | |
| 4211 | fi |
| 4212 | |
| 4213 | if test "$GCC" = yes -a "$local_dir" != no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4214 | echo 'void f(){}' > conftest.c |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4215 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"` |
| 4216 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4217 | rm -f conftest.c conftest.o |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4218 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4219 | if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then |
| 4220 | tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4221 | if test "$tt" = "$LDFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4222 | LDFLAGS="$LDFLAGS -L${local_dir}/lib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4223 | fi |
| 4224 | fi |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4225 | if test -z "$have_local_include" -a -d "${local_dir}/include"; then |
| 4226 | tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4227 | if test "$tt" = "$CPPFLAGS"; then |
Bram Moolenaar | c236c16 | 2008-07-13 17:41:49 +0000 | [diff] [blame] | 4228 | CPPFLAGS="$CPPFLAGS -I${local_dir}/include" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4229 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4230 | fi |
| 4231 | fi |
| 4232 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4233 | { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 4234 | $as_echo_n "checking --with-vim-name argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4235 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4236 | # Check whether --with-vim-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4237 | if test "${with_vim_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4238 | withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 4239 | $as_echo "$VIMNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4240 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4241 | VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
| 4242 | $as_echo "Defaulting to $VIMNAME" >&6; } |
| 4243 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4244 | |
| 4245 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4246 | { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 4247 | $as_echo_n "checking --with-ex-name argument... " >&6; } |
| 4248 | |
| 4249 | # Check whether --with-ex-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4250 | if test "${with_ex_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4251 | withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 4252 | $as_echo "$EXNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4253 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4254 | EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 4255 | $as_echo "Defaulting to ex" >&6; } |
| 4256 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4257 | |
| 4258 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4259 | { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 4260 | $as_echo_n "checking --with-view-name argument... " >&6; } |
| 4261 | |
| 4262 | # Check whether --with-view-name was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4263 | if test "${with_view_name+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4264 | withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 4265 | $as_echo "$VIEWNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4266 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4267 | VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 4268 | $as_echo "Defaulting to view" >&6; } |
| 4269 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4270 | |
| 4271 | |
| 4272 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4273 | { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 4274 | $as_echo_n "checking --with-global-runtime argument... " >&6; } |
| 4275 | |
| 4276 | # Check whether --with-global-runtime was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4277 | if test "${with_global_runtime+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4278 | withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4279 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4280 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4281 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4282 | |
| 4283 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4284 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4285 | $as_echo "no" >&6; } |
| 4286 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4287 | |
| 4288 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4289 | { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 4290 | $as_echo_n "checking --with-modified-by argument... " >&6; } |
| 4291 | |
| 4292 | # Check whether --with-modified-by was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4293 | if test "${with_modified_by+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4294 | withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4295 | $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4296 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4297 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4298 | |
| 4299 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4300 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4301 | $as_echo "no" >&6; } |
| 4302 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4303 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4304 | |
| 4305 | { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 4306 | $as_echo_n "checking if character set is EBCDIC... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4307 | cat >conftest.$ac_ext <<_ACEOF |
| 4308 | /* confdefs.h. */ |
| 4309 | _ACEOF |
| 4310 | cat confdefs.h >>conftest.$ac_ext |
| 4311 | cat >>conftest.$ac_ext <<_ACEOF |
| 4312 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4313 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4314 | int |
| 4315 | main () |
| 4316 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4317 | /* TryCompile function for CharSet. |
| 4318 | Treat any failure as ASCII for compatibility with existing art. |
| 4319 | Use compile-time rather than run-time tests for cross-compiler |
| 4320 | tolerance. */ |
| 4321 | #if '0'!=240 |
| 4322 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4323 | #endif |
| 4324 | ; |
| 4325 | return 0; |
| 4326 | } |
| 4327 | _ACEOF |
| 4328 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4329 | if { (ac_try="$ac_compile" |
| 4330 | case "(($ac_try" in |
| 4331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4332 | *) ac_try_echo=$ac_try;; |
| 4333 | esac |
| 4334 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4335 | $as_echo "$ac_try_echo") >&5 |
| 4336 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4337 | ac_status=$? |
| 4338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4339 | rm -f conftest.er1 |
| 4340 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4342 | (exit $ac_status); } && { |
| 4343 | test -z "$ac_c_werror_flag" || |
| 4344 | test ! -s conftest.err |
| 4345 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4346 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4347 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4348 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4349 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4351 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4352 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4353 | cf_cv_ebcdic=no |
| 4354 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4355 | |
| 4356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4357 | # end of TryCompile ]) |
| 4358 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4359 | { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 4360 | $as_echo "$cf_cv_ebcdic" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4361 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4362 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4363 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4364 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4365 | |
| 4366 | line_break='"\\n"' |
| 4367 | ;; |
| 4368 | *) line_break='"\\012"';; |
| 4369 | esac |
| 4370 | |
| 4371 | |
| 4372 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4373 | { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 4374 | $as_echo_n "checking for OS/390 Unix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4375 | case `uname` in |
| 4376 | OS/390) OS390Unix="yes"; |
| 4377 | if test "$CC" = "cc"; then |
| 4378 | ccm="$_CC_CCMODE" |
| 4379 | ccn="CC" |
| 4380 | else |
| 4381 | if test "$CC" = "c89"; then |
| 4382 | ccm="$_CC_C89MODE" |
| 4383 | ccn="C89" |
| 4384 | else |
| 4385 | ccm=1 |
| 4386 | fi |
| 4387 | fi |
| 4388 | if test "$ccm" != "1"; then |
| 4389 | echo "" |
| 4390 | echo "------------------------------------------" |
| 4391 | echo " On OS/390 Unix, the environment variable" |
| 4392 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 4393 | echo " Do:" |
| 4394 | echo " export _CC_${ccn}MODE=1" |
| 4395 | echo " and then call configure again." |
| 4396 | echo "------------------------------------------" |
| 4397 | exit 1 |
| 4398 | fi |
| 4399 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4400 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4401 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4402 | ;; |
| 4403 | *) OS390Unix="no"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4404 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4405 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4406 | ;; |
| 4407 | esac |
| 4408 | fi |
| 4409 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4410 | { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5 |
| 4411 | $as_echo_n "checking --disable-selinux argument... " >&6; } |
| 4412 | # Check whether --enable-selinux was given. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4413 | if test "${enable_selinux+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4414 | enableval=$enable_selinux; |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4415 | else |
| 4416 | enable_selinux="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4417 | fi |
| 4418 | |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4419 | if test "$enable_selinux" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4420 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4421 | $as_echo "no" >&6; } |
| 4422 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
| 4423 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4424 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4425 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4426 | else |
| 4427 | ac_check_lib_save_LIBS=$LIBS |
| 4428 | LIBS="-lselinux $LIBS" |
| 4429 | cat >conftest.$ac_ext <<_ACEOF |
| 4430 | /* confdefs.h. */ |
| 4431 | _ACEOF |
| 4432 | cat confdefs.h >>conftest.$ac_ext |
| 4433 | cat >>conftest.$ac_ext <<_ACEOF |
| 4434 | /* end confdefs.h. */ |
| 4435 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4436 | /* Override any GCC internal prototype to avoid an error. |
| 4437 | Use char because int might match the return type of a GCC |
| 4438 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4439 | #ifdef __cplusplus |
| 4440 | extern "C" |
| 4441 | #endif |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4442 | char is_selinux_enabled (); |
| 4443 | int |
| 4444 | main () |
| 4445 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4446 | return is_selinux_enabled (); |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4447 | ; |
| 4448 | return 0; |
| 4449 | } |
| 4450 | _ACEOF |
| 4451 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4452 | if { (ac_try="$ac_link" |
| 4453 | case "(($ac_try" in |
| 4454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4455 | *) ac_try_echo=$ac_try;; |
| 4456 | esac |
| 4457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4458 | $as_echo "$ac_try_echo") >&5 |
| 4459 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4460 | ac_status=$? |
| 4461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4462 | rm -f conftest.er1 |
| 4463 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4465 | (exit $ac_status); } && { |
| 4466 | test -z "$ac_c_werror_flag" || |
| 4467 | test ! -s conftest.err |
| 4468 | } && test -s conftest$ac_exeext && { |
| 4469 | test "$cross_compiling" = yes || |
| 4470 | $as_test_x conftest$ac_exeext |
| 4471 | }; then |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4472 | ac_cv_lib_selinux_is_selinux_enabled=yes |
| 4473 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4474 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4476 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4477 | ac_cv_lib_selinux_is_selinux_enabled=no |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4478 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4479 | |
| 4480 | rm -rf conftest.dSYM |
| 4481 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4482 | conftest$ac_exeext conftest.$ac_ext |
| 4483 | LIBS=$ac_check_lib_save_LIBS |
| 4484 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4485 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 4486 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4487 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
| 4488 | LIBS="$LIBS -lselinux" |
| 4489 | cat >>confdefs.h <<\_ACEOF |
| 4490 | #define HAVE_SELINUX 1 |
| 4491 | _ACEOF |
| 4492 | |
| 4493 | fi |
| 4494 | |
| 4495 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4496 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4497 | $as_echo "yes" >&6; } |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 4498 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4499 | |
| 4500 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4501 | { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 4502 | $as_echo_n "checking --with-features argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4503 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4504 | # Check whether --with-features was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4505 | if test "${with_features+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4506 | withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5 |
| 4507 | $as_echo "$features" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4508 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4509 | features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 4510 | $as_echo "Defaulting to normal" >&6; } |
| 4511 | fi |
| 4512 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4513 | |
| 4514 | dovimdiff="" |
| 4515 | dogvimdiff="" |
| 4516 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4517 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4518 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4519 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4520 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4521 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4522 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4523 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4524 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4525 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4526 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4527 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4528 | dovimdiff="installvimdiff"; |
| 4529 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4530 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4531 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4532 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4533 | dovimdiff="installvimdiff"; |
| 4534 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4535 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4536 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4537 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4538 | dovimdiff="installvimdiff"; |
| 4539 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4540 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 4541 | $as_echo "Sorry, $features is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4542 | esac |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4547 | { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 4548 | $as_echo_n "checking --with-compiledby argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4549 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4550 | # Check whether --with-compiledby was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4551 | if test "${with_compiledby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4552 | withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5 |
| 4553 | $as_echo "$withval" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4554 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4555 | compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4556 | $as_echo "no" >&6; } |
| 4557 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4558 | |
| 4559 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4560 | |
| 4561 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 4562 | $as_echo_n "checking --disable-xsmp argument... " >&6; } |
| 4563 | # Check whether --enable-xsmp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4564 | if test "${enable_xsmp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4565 | enableval=$enable_xsmp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4566 | else |
| 4567 | enable_xsmp="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4568 | fi |
| 4569 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4570 | |
| 4571 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4572 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4573 | $as_echo "no" >&6; } |
| 4574 | { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 4575 | $as_echo_n "checking --disable-xsmp-interact argument... " >&6; } |
| 4576 | # Check whether --enable-xsmp-interact was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4577 | if test "${enable_xsmp_interact+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4578 | enableval=$enable_xsmp_interact; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4579 | else |
| 4580 | enable_xsmp_interact="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4581 | fi |
| 4582 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4583 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4584 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4585 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4586 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4587 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4588 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4589 | |
| 4590 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4591 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4592 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4593 | fi |
| 4594 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4595 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4596 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4597 | fi |
| 4598 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4599 | { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 4600 | $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } |
| 4601 | # Check whether --enable-mzschemeinterp was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4602 | if test "${enable_mzschemeinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4603 | enableval=$enable_mzschemeinterp; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4604 | else |
| 4605 | enable_mzschemeinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4606 | fi |
| 4607 | |
| 4608 | { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 4609 | $as_echo "$enable_mzschemeinterp" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4610 | |
| 4611 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4612 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4613 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4614 | { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 4615 | $as_echo_n "checking --with-plthome argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4616 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4617 | # Check whether --with-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4618 | if test "${with_plthome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4619 | withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 4620 | $as_echo "$with_plthome" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4621 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4622 | with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4623 | $as_echo "\"no\"" >&6; } |
| 4624 | fi |
| 4625 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4626 | |
| 4627 | if test "X$with_plthome" != "X"; then |
| 4628 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 4629 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4630 | { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 4631 | $as_echo_n "checking PLTHOME environment var... " >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4632 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4633 | { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 4634 | $as_echo "\"$PLTHOME\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4635 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4636 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4637 | { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 4638 | $as_echo "\"not set\"" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4639 | # 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] | 4640 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4641 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4642 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4643 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4644 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4645 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4646 | case $vi_cv_path_mzscheme in |
| 4647 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4648 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 4649 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4650 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4652 | for as_dir in $PATH |
| 4653 | do |
| 4654 | IFS=$as_save_IFS |
| 4655 | test -z "$as_dir" && as_dir=. |
| 4656 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4657 | 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] | 4658 | 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] | 4659 | $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] | 4660 | break 2 |
| 4661 | fi |
| 4662 | done |
| 4663 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4664 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4665 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4666 | ;; |
| 4667 | esac |
| 4668 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4669 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4670 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4671 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 4672 | $as_echo "$vi_cv_path_mzscheme" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4673 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4674 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4675 | $as_echo "no" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4676 | fi |
| 4677 | |
| 4678 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4679 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4680 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4681 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 4682 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 4683 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 4684 | fi |
| 4685 | fi |
| 4686 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4687 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4688 | { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 4689 | $as_echo_n "checking MzScheme install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4690 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4691 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4692 | else |
| 4693 | vi_cv_path_mzscheme_pfx=` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4694 | ${vi_cv_path_mzscheme} -evm \ |
| 4695 | "(display (simplify-path \ |
| 4696 | (build-path (call-with-values \ |
| 4697 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
| 4698 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4699 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4700 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 4701 | $as_echo "$vi_cv_path_mzscheme_pfx" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4702 | 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] | 4703 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4704 | fi |
| 4705 | fi |
| 4706 | |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4707 | SCHEME_INC= |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4708 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4709 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 4710 | $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] | 4711 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4712 | { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 4713 | $as_echo "\"yes\"" >&6; } |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4714 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4715 | { $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4716 | $as_echo "\"no\"" >&6; } |
| 4717 | { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5 |
| 4718 | $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] | 4719 | 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] | 4720 | { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 4721 | $as_echo "\"yes\"" >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4722 | SCHEME_INC=/plt |
| 4723 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4724 | { $as_echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 4725 | $as_echo "\"no\"" >&6; } |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4726 | vi_cv_path_mzscheme_pfx= |
| 4727 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4728 | fi |
| 4729 | fi |
| 4730 | |
| 4731 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 4732 | if test "x$MACOSX" = "xyes"; then |
| 4733 | MZSCHEME_LIBS="-framework PLT_MzScheme" |
| 4734 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4735 | 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] | 4736 | else |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 4737 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4738 | if test "$GCC" = yes; then |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 4739 | 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] | 4740 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 4741 | uname -r | grep '^5' >/dev/null; then |
| 4742 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 4743 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4744 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4745 | if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then |
| 4746 | SCHEME_COLLECTS=lib/plt/ |
| 4747 | fi |
| 4748 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \ |
| 4749 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4750 | MZSCHEME_SRC="if_mzsch.c" |
| 4751 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 4752 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4753 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4754 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4755 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4756 | |
| 4757 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4758 | |
| 4759 | |
| 4760 | |
| 4761 | |
| 4762 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 4763 | fi |
| 4764 | |
| 4765 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4766 | { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 4767 | $as_echo_n "checking --enable-perlinterp argument... " >&6; } |
| 4768 | # Check whether --enable-perlinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4769 | if test "${enable_perlinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4770 | enableval=$enable_perlinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4771 | else |
| 4772 | enable_perlinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4773 | fi |
| 4774 | |
| 4775 | { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 4776 | $as_echo "$enable_perlinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4777 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4778 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4779 | # Extract the first word of "perl", so it can be a program name with args. |
| 4780 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4781 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4782 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4783 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4784 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4785 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4786 | case $vi_cv_path_perl in |
| 4787 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4788 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 4789 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4790 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4792 | for as_dir in $PATH |
| 4793 | do |
| 4794 | IFS=$as_save_IFS |
| 4795 | test -z "$as_dir" && as_dir=. |
| 4796 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4797 | 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] | 4798 | 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] | 4799 | $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] | 4800 | break 2 |
| 4801 | fi |
| 4802 | done |
| 4803 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4804 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4805 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4806 | ;; |
| 4807 | esac |
| 4808 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4809 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4810 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4811 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 4812 | $as_echo "$vi_cv_path_perl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4813 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4814 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4815 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4816 | fi |
| 4817 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4818 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4819 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4820 | { $as_echo "$as_me:$LINENO: checking Perl version" >&5 |
| 4821 | $as_echo_n "checking Perl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4822 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 4823 | eval `$vi_cv_path_perl -V:usethreads` |
| 4824 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 4825 | badthreads=no |
| 4826 | else |
| 4827 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 4828 | eval `$vi_cv_path_perl -V:use5005threads` |
| 4829 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 4830 | badthreads=no |
| 4831 | else |
| 4832 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4833 | { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 4834 | $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] | 4835 | fi |
| 4836 | else |
| 4837 | badthreads=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4838 | { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 4839 | $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4840 | fi |
| 4841 | fi |
| 4842 | if test $badthreads = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4843 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 4844 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4845 | eval `$vi_cv_path_perl -V:shrpenv` |
| 4846 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 4847 | shrpenv="" |
| 4848 | fi |
| 4849 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4850 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4851 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 4852 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 4853 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 4854 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 4855 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 4856 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 4857 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 4858 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4859 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 4860 | $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] | 4861 | cflags_save=$CFLAGS |
| 4862 | libs_save=$LIBS |
| 4863 | ldflags_save=$LDFLAGS |
| 4864 | CFLAGS="$CFLAGS $perlcppflags" |
| 4865 | LIBS="$LIBS $perllibs" |
| 4866 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4867 | cat >conftest.$ac_ext <<_ACEOF |
| 4868 | /* confdefs.h. */ |
| 4869 | _ACEOF |
| 4870 | cat confdefs.h >>conftest.$ac_ext |
| 4871 | cat >>conftest.$ac_ext <<_ACEOF |
| 4872 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4873 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4874 | int |
| 4875 | main () |
| 4876 | { |
| 4877 | |
| 4878 | ; |
| 4879 | return 0; |
| 4880 | } |
| 4881 | _ACEOF |
| 4882 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4883 | if { (ac_try="$ac_link" |
| 4884 | case "(($ac_try" in |
| 4885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4886 | *) ac_try_echo=$ac_try;; |
| 4887 | esac |
| 4888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4889 | $as_echo "$ac_try_echo") >&5 |
| 4890 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4891 | ac_status=$? |
| 4892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4893 | rm -f conftest.er1 |
| 4894 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4896 | (exit $ac_status); } && { |
| 4897 | test -z "$ac_c_werror_flag" || |
| 4898 | test ! -s conftest.err |
| 4899 | } && test -s conftest$ac_exeext && { |
| 4900 | test "$cross_compiling" = yes || |
| 4901 | $as_test_x conftest$ac_exeext |
| 4902 | }; then |
| 4903 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4904 | $as_echo "yes" >&6; }; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4905 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4906 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4908 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4909 | { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4910 | $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4911 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4912 | |
| 4913 | rm -rf conftest.dSYM |
| 4914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4915 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4916 | CFLAGS=$cflags_save |
| 4917 | LIBS=$libs_save |
| 4918 | LDFLAGS=$ldflags_save |
| 4919 | if test $perl_ok = yes; then |
| 4920 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4921 | PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4922 | fi |
| 4923 | if test "X$perlldflags" != "X"; then |
| 4924 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4925 | fi |
| 4926 | PERL_LIBS=$perllibs |
| 4927 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4928 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4929 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4930 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4931 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4932 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4933 | |
| 4934 | fi |
| 4935 | fi |
| 4936 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4937 | { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4938 | $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] | 4939 | fi |
| 4940 | fi |
| 4941 | |
| 4942 | if test "x$MACOSX" = "xyes"; then |
| 4943 | dir=/System/Library/Perl |
| 4944 | darwindir=$dir/darwin |
| 4945 | if test -d $darwindir; then |
| 4946 | PERL=/usr/bin/perl |
| 4947 | else |
| 4948 | dir=/System/Library/Perl/5.8.1 |
| 4949 | darwindir=$dir/darwin-thread-multi-2level |
| 4950 | if test -d $darwindir; then |
| 4951 | PERL=/usr/bin/perl |
| 4952 | fi |
| 4953 | fi |
| 4954 | if test -n "$PERL"; then |
| 4955 | PERL_DIR="$dir" |
| 4956 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4957 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4958 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4959 | fi |
| 4960 | fi |
| 4961 | fi |
| 4962 | |
| 4963 | |
| 4964 | |
| 4965 | |
| 4966 | |
| 4967 | |
| 4968 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4969 | { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 4970 | $as_echo_n "checking --enable-pythoninterp argument... " >&6; } |
| 4971 | # Check whether --enable-pythoninterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4972 | if test "${enable_pythoninterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4973 | enableval=$enable_pythoninterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4974 | else |
| 4975 | enable_pythoninterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4976 | fi |
| 4977 | |
| 4978 | { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 4979 | $as_echo "$enable_pythoninterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4980 | if test "$enable_pythoninterp" = "yes"; then |
| 4981 | # Extract the first word of "python", so it can be a program name with args. |
| 4982 | set dummy python; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4983 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4984 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4985 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4986 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4987 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4988 | case $vi_cv_path_python in |
| 4989 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4990 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 4991 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4992 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4994 | for as_dir in $PATH |
| 4995 | do |
| 4996 | IFS=$as_save_IFS |
| 4997 | test -z "$as_dir" && as_dir=. |
| 4998 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 4999 | 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] | 5000 | 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] | 5001 | $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] | 5002 | break 2 |
| 5003 | fi |
| 5004 | done |
| 5005 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5006 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5007 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5008 | ;; |
| 5009 | esac |
| 5010 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5011 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5012 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5013 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 5014 | $as_echo "$vi_cv_path_python" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5015 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5016 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5017 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5018 | fi |
| 5019 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5020 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5021 | if test "X$vi_cv_path_python" != "X"; then |
| 5022 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5023 | { $as_echo "$as_me:$LINENO: checking Python version" >&5 |
| 5024 | $as_echo_n "checking Python version... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5025 | if test "${vi_cv_var_python_version+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_var_python_version=` |
| 5029 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5030 | |
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_var_python_version" >&5 |
| 5033 | $as_echo "$vi_cv_var_python_version" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5034 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5035 | { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 5036 | $as_echo_n "checking Python is 1.4 or better... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5037 | if ${vi_cv_path_python} -c \ |
| 5038 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 5039 | then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5040 | { $as_echo "$as_me:$LINENO: result: yep" >&5 |
| 5041 | $as_echo "yep" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5042 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5043 | { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 5044 | $as_echo_n "checking Python's install prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5045 | if test "${vi_cv_path_python_pfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5046 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5047 | else |
| 5048 | vi_cv_path_python_pfx=` |
| 5049 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5050 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5051 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5052 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 5053 | $as_echo "$vi_cv_path_python_pfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5054 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5055 | { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 5056 | $as_echo_n "checking Python's execution prefix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5057 | if test "${vi_cv_path_python_epfx+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5058 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5059 | else |
| 5060 | vi_cv_path_python_epfx=` |
| 5061 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5062 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5063 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5064 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 5065 | $as_echo "$vi_cv_path_python_epfx" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5066 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5067 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5068 | if test "${vi_cv_path_pythonpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5069 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5070 | else |
| 5071 | vi_cv_path_pythonpath=` |
| 5072 | unset PYTHONPATH; |
| 5073 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5074 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5075 | fi |
| 5076 | |
| 5077 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5078 | |
| 5079 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5080 | # Check whether --with-python-config-dir was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5081 | if test "${with_python_config_dir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5082 | withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" |
| 5083 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5084 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5085 | |
| 5086 | { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 5087 | $as_echo_n "checking Python's configuration directory... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5088 | if test "${vi_cv_path_python_conf+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5089 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5090 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5091 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5092 | vi_cv_path_python_conf= |
| 5093 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 5094 | for subdir in lib share; do |
| 5095 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 5096 | if test -d "$d" && test -f "$d/config.c"; then |
| 5097 | vi_cv_path_python_conf="$d" |
| 5098 | fi |
| 5099 | done |
| 5100 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5101 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5102 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5103 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 5104 | $as_echo "$vi_cv_path_python_conf" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5105 | |
| 5106 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 5107 | |
| 5108 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5109 | { $as_echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 5110 | $as_echo "can't find it!" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5111 | else |
| 5112 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5113 | if test "${vi_cv_path_python_plibs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5114 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5115 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5116 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5117 | tmp_mkf="/tmp/Makefile-conf$$" |
| 5118 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 5119 | __: |
| 5120 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 5121 | @echo "python_LIBS='$(LIBS)'" |
| 5122 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 5123 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 5124 | eof |
| 5125 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 5126 | rm -f ${tmp_mkf} |
| 5127 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 5128 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 5129 | vi_cv_path_python_plibs="-framework Python" |
| 5130 | else |
| 5131 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5132 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 5133 | else |
| 5134 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 5135 | fi |
| 5136 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 5137 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 5138 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5139 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5140 | fi |
| 5141 | |
| 5142 | |
| 5143 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 5144 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 5145 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 5146 | else |
| 5147 | 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}" |
| 5148 | fi |
| 5149 | PYTHON_SRC="if_python.c" |
| 5150 | if test "x$MACOSX" = "xyes"; then |
| 5151 | PYTHON_OBJ="objects/if_python.o" |
| 5152 | else |
| 5153 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 5154 | fi |
| 5155 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 5156 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 5157 | fi |
| 5158 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 5159 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5160 | { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 5161 | $as_echo_n "checking if -pthread should be used... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5162 | threadsafe_flag= |
| 5163 | thread_lib= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 5164 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5165 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 5166 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 5167 | threadsafe_flag="-D_THREAD_SAFE" |
| 5168 | thread_lib="-pthread" |
| 5169 | fi |
| 5170 | fi |
| 5171 | libs_save_old=$LIBS |
| 5172 | if test -n "$threadsafe_flag"; then |
| 5173 | cflags_save=$CFLAGS |
| 5174 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 5175 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5176 | cat >conftest.$ac_ext <<_ACEOF |
| 5177 | /* confdefs.h. */ |
| 5178 | _ACEOF |
| 5179 | cat confdefs.h >>conftest.$ac_ext |
| 5180 | cat >>conftest.$ac_ext <<_ACEOF |
| 5181 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5182 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5183 | int |
| 5184 | main () |
| 5185 | { |
| 5186 | |
| 5187 | ; |
| 5188 | return 0; |
| 5189 | } |
| 5190 | _ACEOF |
| 5191 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5192 | if { (ac_try="$ac_link" |
| 5193 | case "(($ac_try" in |
| 5194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5195 | *) ac_try_echo=$ac_try;; |
| 5196 | esac |
| 5197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5198 | $as_echo "$ac_try_echo") >&5 |
| 5199 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5200 | ac_status=$? |
| 5201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5202 | rm -f conftest.er1 |
| 5203 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5205 | (exit $ac_status); } && { |
| 5206 | test -z "$ac_c_werror_flag" || |
| 5207 | test ! -s conftest.err |
| 5208 | } && test -s conftest$ac_exeext && { |
| 5209 | test "$cross_compiling" = yes || |
| 5210 | $as_test_x conftest$ac_exeext |
| 5211 | }; then |
| 5212 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5213 | $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5214 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5215 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5217 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5218 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5219 | $as_echo "no" >&6; }; LIBS=$libs_save_old |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5220 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5221 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5222 | |
| 5223 | rm -rf conftest.dSYM |
| 5224 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5225 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5226 | CFLAGS=$cflags_save |
| 5227 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5228 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5229 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5230 | fi |
| 5231 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5232 | { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 5233 | $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] | 5234 | cflags_save=$CFLAGS |
| 5235 | libs_save=$LIBS |
| 5236 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 5237 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5238 | cat >conftest.$ac_ext <<_ACEOF |
| 5239 | /* confdefs.h. */ |
| 5240 | _ACEOF |
| 5241 | cat confdefs.h >>conftest.$ac_ext |
| 5242 | cat >>conftest.$ac_ext <<_ACEOF |
| 5243 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5244 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5245 | int |
| 5246 | main () |
| 5247 | { |
| 5248 | |
| 5249 | ; |
| 5250 | return 0; |
| 5251 | } |
| 5252 | _ACEOF |
| 5253 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5254 | if { (ac_try="$ac_link" |
| 5255 | case "(($ac_try" in |
| 5256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5257 | *) ac_try_echo=$ac_try;; |
| 5258 | esac |
| 5259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5260 | $as_echo "$ac_try_echo") >&5 |
| 5261 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5262 | ac_status=$? |
| 5263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5264 | rm -f conftest.er1 |
| 5265 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5267 | (exit $ac_status); } && { |
| 5268 | test -z "$ac_c_werror_flag" || |
| 5269 | test ! -s conftest.err |
| 5270 | } && test -s conftest$ac_exeext && { |
| 5271 | test "$cross_compiling" = yes || |
| 5272 | $as_test_x conftest$ac_exeext |
| 5273 | }; then |
| 5274 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5275 | $as_echo "yes" >&6; }; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5276 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5277 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5279 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5280 | { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 5281 | $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5282 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5283 | |
| 5284 | rm -rf conftest.dSYM |
| 5285 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5286 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5287 | CFLAGS=$cflags_save |
| 5288 | LIBS=$libs_save |
| 5289 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5290 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5291 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5292 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5293 | |
| 5294 | else |
| 5295 | LIBS=$libs_save_old |
| 5296 | PYTHON_SRC= |
| 5297 | PYTHON_OBJ= |
| 5298 | PYTHON_LIBS= |
| 5299 | PYTHON_CFLAGS= |
| 5300 | fi |
| 5301 | |
| 5302 | fi |
| 5303 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5304 | { $as_echo "$as_me:$LINENO: result: too old" >&5 |
| 5305 | $as_echo "too old" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5306 | fi |
| 5307 | fi |
| 5308 | fi |
| 5309 | |
| 5310 | |
| 5311 | |
| 5312 | |
| 5313 | |
| 5314 | |
| 5315 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5316 | { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 5317 | $as_echo_n "checking --enable-tclinterp argument... " >&6; } |
| 5318 | # Check whether --enable-tclinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5319 | if test "${enable_tclinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5320 | enableval=$enable_tclinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5321 | else |
| 5322 | enable_tclinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5323 | fi |
| 5324 | |
| 5325 | { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 5326 | $as_echo "$enable_tclinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5327 | |
| 5328 | if test "$enable_tclinterp" = "yes"; then |
| 5329 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5330 | { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 5331 | $as_echo_n "checking --with-tclsh argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5332 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5333 | # Check whether --with-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5334 | if test "${with_tclsh+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5335 | withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 5336 | $as_echo "$tclsh_name" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5337 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5338 | tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5339 | $as_echo "no" >&6; } |
| 5340 | fi |
| 5341 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5342 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5343 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5344 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5345 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5346 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5347 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5348 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5349 | case $vi_cv_path_tcl in |
| 5350 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5351 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5352 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5353 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5355 | for as_dir in $PATH |
| 5356 | do |
| 5357 | IFS=$as_save_IFS |
| 5358 | test -z "$as_dir" && as_dir=. |
| 5359 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5360 | 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] | 5361 | 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] | 5362 | $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] | 5363 | break 2 |
| 5364 | fi |
| 5365 | done |
| 5366 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5367 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5368 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5369 | ;; |
| 5370 | esac |
| 5371 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5372 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5373 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5374 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5375 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5376 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5377 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5378 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5379 | fi |
| 5380 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5381 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5382 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5383 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5384 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 5385 | tclsh_name="tclsh8.4" |
| 5386 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5387 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5388 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5389 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5390 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5391 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5392 | else |
| 5393 | case $vi_cv_path_tcl in |
| 5394 | [\\/]* | ?:[\\/]*) |
| 5395 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5396 | ;; |
| 5397 | *) |
| 5398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5399 | for as_dir in $PATH |
| 5400 | do |
| 5401 | IFS=$as_save_IFS |
| 5402 | test -z "$as_dir" && as_dir=. |
| 5403 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5404 | 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] | 5405 | 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] | 5406 | $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] | 5407 | break 2 |
| 5408 | fi |
| 5409 | done |
| 5410 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5411 | IFS=$as_save_IFS |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5412 | |
| 5413 | ;; |
| 5414 | esac |
| 5415 | fi |
| 5416 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5417 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5418 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5419 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5420 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5421 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5422 | $as_echo "no" >&6; } |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5423 | fi |
| 5424 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5425 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5426 | fi |
| 5427 | 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] | 5428 | tclsh_name="tclsh8.2" |
| 5429 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5430 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5431 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5432 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5433 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5434 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5435 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5436 | case $vi_cv_path_tcl in |
| 5437 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5438 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5439 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5440 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5442 | for as_dir in $PATH |
| 5443 | do |
| 5444 | IFS=$as_save_IFS |
| 5445 | test -z "$as_dir" && as_dir=. |
| 5446 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5447 | 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] | 5448 | 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] | 5449 | $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] | 5450 | break 2 |
| 5451 | fi |
| 5452 | done |
| 5453 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5454 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5455 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5456 | ;; |
| 5457 | esac |
| 5458 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5459 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5460 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5461 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5462 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5463 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5464 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5465 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5466 | fi |
| 5467 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5468 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5469 | fi |
| 5470 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 5471 | tclsh_name="tclsh8.0" |
| 5472 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5473 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5474 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5475 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5476 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5477 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5478 | else |
| 5479 | case $vi_cv_path_tcl in |
| 5480 | [\\/]* | ?:[\\/]*) |
| 5481 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5482 | ;; |
| 5483 | *) |
| 5484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5485 | for as_dir in $PATH |
| 5486 | do |
| 5487 | IFS=$as_save_IFS |
| 5488 | test -z "$as_dir" && as_dir=. |
| 5489 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5490 | 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] | 5491 | 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] | 5492 | $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] | 5493 | break 2 |
| 5494 | fi |
| 5495 | done |
| 5496 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5497 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5498 | |
| 5499 | ;; |
| 5500 | esac |
| 5501 | fi |
| 5502 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5503 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5504 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5505 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5506 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5507 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5508 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5509 | fi |
| 5510 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5511 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5512 | fi |
| 5513 | if test "X$vi_cv_path_tcl" = "X"; then |
| 5514 | tclsh_name="tclsh" |
| 5515 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 5516 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5517 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5518 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5519 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5520 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5521 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5522 | case $vi_cv_path_tcl in |
| 5523 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5524 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 5525 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5526 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5528 | for as_dir in $PATH |
| 5529 | do |
| 5530 | IFS=$as_save_IFS |
| 5531 | test -z "$as_dir" && as_dir=. |
| 5532 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5533 | 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] | 5534 | 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] | 5535 | $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] | 5536 | break 2 |
| 5537 | fi |
| 5538 | done |
| 5539 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5540 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5541 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5542 | ;; |
| 5543 | esac |
| 5544 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5545 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5546 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5547 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 5548 | $as_echo "$vi_cv_path_tcl" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5549 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5550 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5551 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5552 | fi |
| 5553 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5554 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5555 | fi |
| 5556 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5557 | { $as_echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 5558 | $as_echo_n "checking Tcl version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5559 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 5560 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5561 | { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 5562 | $as_echo "$tclver - OK" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5563 | 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 -` |
| 5564 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5565 | { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 5566 | $as_echo_n "checking for location of Tcl include... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5567 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5568 | 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] | 5569 | else |
| 5570 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 5571 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 5572 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5573 | for try in $tclinc; do |
| 5574 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5575 | { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 5576 | $as_echo "$try/tcl.h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5577 | TCL_INC=$try |
| 5578 | break |
| 5579 | fi |
| 5580 | done |
| 5581 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5582 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5583 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5584 | SKIP_TCL=YES |
| 5585 | fi |
| 5586 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5587 | { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 5588 | $as_echo_n "checking for location of tclConfig.sh script... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5589 | if test "x$MACOSX" != "xyes"; then |
| 5590 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5591 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5592 | else |
| 5593 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 5594 | fi |
| 5595 | for try in $tclcnf; do |
| 5596 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5597 | { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 5598 | $as_echo "$try/tclConfig.sh" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5599 | . $try/tclConfig.sh |
| 5600 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 4394bff | 2008-07-24 11:21:31 +0000 | [diff] [blame] | 5601 | TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -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] | 5602 | break |
| 5603 | fi |
| 5604 | done |
| 5605 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5606 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5607 | $as_echo "<not found>" >&6; } |
| 5608 | { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 5609 | $as_echo_n "checking for Tcl library by myself... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5610 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 5611 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5612 | for ext in .so .a ; do |
| 5613 | for ver in "" $tclver ; do |
| 5614 | for try in $tcllib ; do |
| 5615 | trylib=tcl$ver$ext |
| 5616 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5617 | { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 5618 | $as_echo "$try/lib$trylib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5619 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 5620 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 5621 | uname -r | grep '^5' >/dev/null; then |
| 5622 | TCL_LIBS="$TCL_LIBS -R $try" |
| 5623 | fi |
| 5624 | break 3 |
| 5625 | fi |
| 5626 | done |
| 5627 | done |
| 5628 | done |
| 5629 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5630 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 5631 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5632 | SKIP_TCL=YES |
| 5633 | fi |
| 5634 | fi |
| 5635 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5636 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5637 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5638 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5639 | |
| 5640 | TCL_SRC=if_tcl.c |
| 5641 | TCL_OBJ=objects/if_tcl.o |
| 5642 | TCL_PRO=if_tcl.pro |
| 5643 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 5644 | fi |
| 5645 | fi |
| 5646 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5647 | { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 5648 | $as_echo "too old; need Tcl version 8.0 or later" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5649 | fi |
| 5650 | fi |
| 5651 | fi |
| 5652 | |
| 5653 | |
| 5654 | |
| 5655 | |
| 5656 | |
| 5657 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5658 | { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 5659 | $as_echo_n "checking --enable-rubyinterp argument... " >&6; } |
| 5660 | # Check whether --enable-rubyinterp was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5661 | if test "${enable_rubyinterp+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5662 | enableval=$enable_rubyinterp; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5663 | else |
| 5664 | enable_rubyinterp="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5665 | fi |
| 5666 | |
| 5667 | { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 5668 | $as_echo "$enable_rubyinterp" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5669 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5670 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5671 | # Extract the first word of "ruby", so it can be a program name with args. |
| 5672 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5673 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5674 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5675 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5676 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5677 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5678 | case $vi_cv_path_ruby in |
| 5679 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5680 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 5681 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5682 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5684 | for as_dir in $PATH |
| 5685 | do |
| 5686 | IFS=$as_save_IFS |
| 5687 | test -z "$as_dir" && as_dir=. |
| 5688 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5689 | 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] | 5690 | 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] | 5691 | $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] | 5692 | break 2 |
| 5693 | fi |
| 5694 | done |
| 5695 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5696 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5697 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5698 | ;; |
| 5699 | esac |
| 5700 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5701 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5702 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5703 | { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 5704 | $as_echo "$vi_cv_path_ruby" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5705 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5706 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5707 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5708 | fi |
| 5709 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5710 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5711 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5712 | { $as_echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 5713 | $as_echo_n "checking Ruby version... " >&6; } |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 5714 | 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] | 5715 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 5716 | $as_echo "OK" >&6; } |
| 5717 | { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 5718 | $as_echo_n "checking Ruby header files... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5719 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 5720 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5721 | { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 5722 | $as_echo "$rubyhdrdir" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5723 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 5724 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 5725 | if test "X$rubylibs" != "X"; then |
| 5726 | RUBY_LIBS="$rubylibs" |
| 5727 | fi |
| 5728 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 5729 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 5730 | librubyarg="$rubyhdrdir/$librubyarg" |
| 5731 | else |
| 5732 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 5733 | if test -f "$rubylibdir/$librubyarg"; then |
| 5734 | librubyarg="$rubylibdir/$librubyarg" |
| 5735 | elif test "$librubyarg" = "libruby.a"; then |
| 5736 | librubyarg="-lruby" |
| 5737 | else |
| 5738 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 5739 | fi |
| 5740 | fi |
| 5741 | |
| 5742 | if test "X$librubyarg" != "X"; then |
| 5743 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 5744 | fi |
| 5745 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 5746 | if test "X$rubyldflags" != "X"; then |
| 5747 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 5748 | fi |
| 5749 | RUBY_SRC="if_ruby.c" |
| 5750 | RUBY_OBJ="objects/if_ruby.o" |
| 5751 | RUBY_PRO="if_ruby.pro" |
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_RUBY 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 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5757 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 5758 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5759 | fi |
| 5760 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5761 | { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 5762 | $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] | 5763 | fi |
| 5764 | fi |
| 5765 | fi |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | |
| 5771 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5772 | { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 5773 | $as_echo_n "checking --enable-cscope argument... " >&6; } |
| 5774 | # Check whether --enable-cscope was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5775 | if test "${enable_cscope+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5776 | enableval=$enable_cscope; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5777 | else |
| 5778 | enable_cscope="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5779 | fi |
| 5780 | |
| 5781 | { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 5782 | $as_echo "$enable_cscope" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5783 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5784 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5785 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5786 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5787 | |
| 5788 | fi |
| 5789 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5790 | { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 5791 | $as_echo_n "checking --enable-workshop argument... " >&6; } |
| 5792 | # Check whether --enable-workshop was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5793 | if test "${enable_workshop+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5794 | enableval=$enable_workshop; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5795 | else |
| 5796 | enable_workshop="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5797 | fi |
| 5798 | |
| 5799 | { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 5800 | $as_echo "$enable_workshop" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5801 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5802 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5803 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5804 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5805 | |
| 5806 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5807 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5808 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5809 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5810 | if test "${enable_gui-xxx}" = xxx; then |
| 5811 | enable_gui=motif |
| 5812 | fi |
| 5813 | fi |
| 5814 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5815 | { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 5816 | $as_echo_n "checking --disable-netbeans argument... " >&6; } |
| 5817 | # Check whether --enable-netbeans was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5818 | if test "${enable_netbeans+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5819 | enableval=$enable_netbeans; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5820 | else |
| 5821 | enable_netbeans="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5822 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5823 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5824 | if test "$enable_netbeans" = "yes"; then |
| 5825 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5826 | $as_echo "no" >&6; } |
| 5827 | |
| 5828 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 5829 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5830 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5831 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5832 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5833 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5834 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5835 | cat >conftest.$ac_ext <<_ACEOF |
| 5836 | /* confdefs.h. */ |
| 5837 | _ACEOF |
| 5838 | cat confdefs.h >>conftest.$ac_ext |
| 5839 | cat >>conftest.$ac_ext <<_ACEOF |
| 5840 | /* end confdefs.h. */ |
| 5841 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5842 | /* Override any GCC internal prototype to avoid an error. |
| 5843 | Use char because int might match the return type of a GCC |
| 5844 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5845 | #ifdef __cplusplus |
| 5846 | extern "C" |
| 5847 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5848 | char socket (); |
| 5849 | int |
| 5850 | main () |
| 5851 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5852 | return socket (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5853 | ; |
| 5854 | return 0; |
| 5855 | } |
| 5856 | _ACEOF |
| 5857 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5858 | if { (ac_try="$ac_link" |
| 5859 | case "(($ac_try" in |
| 5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5861 | *) ac_try_echo=$ac_try;; |
| 5862 | esac |
| 5863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5864 | $as_echo "$ac_try_echo") >&5 |
| 5865 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5866 | ac_status=$? |
| 5867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5868 | rm -f conftest.er1 |
| 5869 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5871 | (exit $ac_status); } && { |
| 5872 | test -z "$ac_c_werror_flag" || |
| 5873 | test ! -s conftest.err |
| 5874 | } && test -s conftest$ac_exeext && { |
| 5875 | test "$cross_compiling" = yes || |
| 5876 | $as_test_x conftest$ac_exeext |
| 5877 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5878 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5879 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5880 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5881 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5882 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5883 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5884 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5885 | |
| 5886 | rm -rf conftest.dSYM |
| 5887 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5888 | conftest$ac_exeext conftest.$ac_ext |
| 5889 | LIBS=$ac_check_lib_save_LIBS |
| 5890 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5891 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 5892 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5893 | if test $ac_cv_lib_socket_socket = yes; then |
| 5894 | cat >>confdefs.h <<_ACEOF |
| 5895 | #define HAVE_LIBSOCKET 1 |
| 5896 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5897 | |
| 5898 | LIBS="-lsocket $LIBS" |
| 5899 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5900 | fi |
| 5901 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5902 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5903 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5904 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5905 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5906 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5907 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5908 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5909 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5910 | cat >conftest.$ac_ext <<_ACEOF |
| 5911 | /* confdefs.h. */ |
| 5912 | _ACEOF |
| 5913 | cat confdefs.h >>conftest.$ac_ext |
| 5914 | cat >>conftest.$ac_ext <<_ACEOF |
| 5915 | /* end confdefs.h. */ |
| 5916 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5917 | /* Override any GCC internal prototype to avoid an error. |
| 5918 | Use char because int might match the return type of a GCC |
| 5919 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5920 | #ifdef __cplusplus |
| 5921 | extern "C" |
| 5922 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5923 | char gethostbyname (); |
| 5924 | int |
| 5925 | main () |
| 5926 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5927 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5928 | ; |
| 5929 | return 0; |
| 5930 | } |
| 5931 | _ACEOF |
| 5932 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5933 | if { (ac_try="$ac_link" |
| 5934 | case "(($ac_try" in |
| 5935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5936 | *) ac_try_echo=$ac_try;; |
| 5937 | esac |
| 5938 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5939 | $as_echo "$ac_try_echo") >&5 |
| 5940 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5941 | ac_status=$? |
| 5942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5943 | rm -f conftest.er1 |
| 5944 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5946 | (exit $ac_status); } && { |
| 5947 | test -z "$ac_c_werror_flag" || |
| 5948 | test ! -s conftest.err |
| 5949 | } && test -s conftest$ac_exeext && { |
| 5950 | test "$cross_compiling" = yes || |
| 5951 | $as_test_x conftest$ac_exeext |
| 5952 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5953 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5954 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5955 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5956 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5957 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5958 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5959 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5960 | |
| 5961 | rm -rf conftest.dSYM |
| 5962 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5963 | conftest$ac_exeext conftest.$ac_ext |
| 5964 | LIBS=$ac_check_lib_save_LIBS |
| 5965 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5966 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5967 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5968 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 5969 | cat >>confdefs.h <<_ACEOF |
| 5970 | #define HAVE_LIBNSL 1 |
| 5971 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5972 | |
| 5973 | LIBS="-lnsl $LIBS" |
| 5974 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5975 | fi |
| 5976 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 5977 | { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 5978 | $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5979 | cat >conftest.$ac_ext <<_ACEOF |
| 5980 | /* confdefs.h. */ |
| 5981 | _ACEOF |
| 5982 | cat confdefs.h >>conftest.$ac_ext |
| 5983 | cat >>conftest.$ac_ext <<_ACEOF |
| 5984 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5985 | |
| 5986 | #include <stdio.h> |
| 5987 | #include <stdlib.h> |
| 5988 | #include <stdarg.h> |
| 5989 | #include <fcntl.h> |
| 5990 | #include <netdb.h> |
| 5991 | #include <netinet/in.h> |
| 5992 | #include <errno.h> |
| 5993 | #include <sys/types.h> |
| 5994 | #include <sys/socket.h> |
| 5995 | /* Check bitfields */ |
| 5996 | struct nbbuf { |
| 5997 | unsigned int initDone:1; |
| 5998 | ushort signmaplen; |
| 5999 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6000 | |
| 6001 | int |
| 6002 | main () |
| 6003 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6004 | |
| 6005 | /* Check creating a socket. */ |
| 6006 | struct sockaddr_in server; |
| 6007 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 6008 | (void)htons(100); |
| 6009 | (void)gethostbyname("microsoft.com"); |
| 6010 | if (errno == ECONNREFUSED) |
| 6011 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6012 | |
| 6013 | ; |
| 6014 | return 0; |
| 6015 | } |
| 6016 | _ACEOF |
| 6017 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6018 | if { (ac_try="$ac_link" |
| 6019 | case "(($ac_try" in |
| 6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6021 | *) ac_try_echo=$ac_try;; |
| 6022 | esac |
| 6023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6024 | $as_echo "$ac_try_echo") >&5 |
| 6025 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6026 | ac_status=$? |
| 6027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6028 | rm -f conftest.er1 |
| 6029 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6031 | (exit $ac_status); } && { |
| 6032 | test -z "$ac_c_werror_flag" || |
| 6033 | test ! -s conftest.err |
| 6034 | } && test -s conftest$ac_exeext && { |
| 6035 | test "$cross_compiling" = yes || |
| 6036 | $as_test_x conftest$ac_exeext |
| 6037 | }; then |
| 6038 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6039 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6040 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6041 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6043 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6044 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6045 | $as_echo "no" >&6; }; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6046 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6047 | |
| 6048 | rm -rf conftest.dSYM |
| 6049 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6050 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6051 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6052 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6053 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6054 | fi |
| 6055 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6056 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6057 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6058 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6059 | |
| 6060 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6061 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6062 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6063 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6064 | fi |
| 6065 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6066 | { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 6067 | $as_echo_n "checking --enable-sniff argument... " >&6; } |
| 6068 | # Check whether --enable-sniff was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6069 | if test "${enable_sniff+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6070 | enableval=$enable_sniff; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6071 | else |
| 6072 | enable_sniff="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6073 | fi |
| 6074 | |
| 6075 | { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 6076 | $as_echo "$enable_sniff" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6077 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6078 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6079 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6080 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6081 | |
| 6082 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6083 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6084 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6085 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6086 | fi |
| 6087 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6088 | { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 6089 | $as_echo_n "checking --enable-multibyte argument... " >&6; } |
| 6090 | # Check whether --enable-multibyte was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6091 | if test "${enable_multibyte+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6092 | enableval=$enable_multibyte; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6093 | else |
| 6094 | enable_multibyte="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6095 | fi |
| 6096 | |
| 6097 | { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 6098 | $as_echo "$enable_multibyte" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6099 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6100 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6101 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6102 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6103 | |
| 6104 | fi |
| 6105 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6106 | { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 6107 | $as_echo_n "checking --enable-hangulinput argument... " >&6; } |
| 6108 | # Check whether --enable-hangulinput was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6109 | if test "${enable_hangulinput+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6110 | enableval=$enable_hangulinput; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6111 | else |
| 6112 | enable_hangulinput="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6113 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6114 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6115 | { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 6116 | $as_echo "$enable_hangulinput" >&6; } |
| 6117 | |
| 6118 | { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 6119 | $as_echo_n "checking --enable-xim argument... " >&6; } |
| 6120 | # Check whether --enable-xim was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6121 | if test "${enable_xim+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6122 | enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 6123 | $as_echo "$enable_xim" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6124 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6125 | enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 6126 | $as_echo "defaulting to auto" >&6; } |
| 6127 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6128 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6129 | |
| 6130 | { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 6131 | $as_echo_n "checking --enable-fontset argument... " >&6; } |
| 6132 | # Check whether --enable-fontset was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6133 | if test "${enable_fontset+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6134 | enableval=$enable_fontset; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6135 | else |
| 6136 | enable_fontset="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6137 | fi |
| 6138 | |
| 6139 | { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 6140 | $as_echo "$enable_fontset" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6141 | |
| 6142 | test -z "$with_x" && with_x=yes |
| 6143 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 6144 | if test "$with_x" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6145 | { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 6146 | $as_echo "defaulting to: don't HAVE_X11" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6147 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6148 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6149 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 6150 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6151 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6152 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6153 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6154 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6155 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6156 | case $xmkmfpath in |
| 6157 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6158 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 6159 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6160 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6162 | for as_dir in $PATH |
| 6163 | do |
| 6164 | IFS=$as_save_IFS |
| 6165 | test -z "$as_dir" && as_dir=. |
| 6166 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6167 | 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] | 6168 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6169 | $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] | 6170 | break 2 |
| 6171 | fi |
| 6172 | done |
| 6173 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6174 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6175 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6176 | ;; |
| 6177 | esac |
| 6178 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6179 | xmkmfpath=$ac_cv_path_xmkmfpath |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6180 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6181 | { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 6182 | $as_echo "$xmkmfpath" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6183 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6184 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6185 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6186 | fi |
| 6187 | |
| 6188 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6189 | |
| 6190 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| 6191 | $as_echo_n "checking for X... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6192 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6193 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6194 | # Check whether --with-x was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6195 | if test "${with_x+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6196 | withval=$with_x; |
| 6197 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6198 | |
| 6199 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 6200 | if test "x$with_x" = xno; then |
| 6201 | # The user explicitly disabled X. |
| 6202 | have_x=disabled |
| 6203 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6204 | case $x_includes,$x_libraries in #( |
| 6205 | *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
| 6206 | $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
| 6207 | { (exit 1); exit 1; }; };; #( |
| 6208 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 6209 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6210 | else |
| 6211 | # 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] | 6212 | ac_x_includes=no ac_x_libraries=no |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6213 | rm -f -r conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6214 | if mkdir conftest.dir; then |
| 6215 | cd conftest.dir |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6216 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6217 | incroot: |
| 6218 | @echo incroot='${INCROOT}' |
| 6219 | usrlibdir: |
| 6220 | @echo usrlibdir='${USRLIBDIR}' |
| 6221 | libdir: |
| 6222 | @echo libdir='${LIBDIR}' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6223 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6224 | 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] | 6225 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6226 | for ac_var in incroot usrlibdir libdir; do |
| 6227 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 6228 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6229 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6230 | for ac_extension in a so sl dylib la dll; do |
| 6231 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 6232 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6233 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6234 | fi |
| 6235 | done |
| 6236 | # Screen out bogus values from the imake configuration. They are |
| 6237 | # bogus both because they are the default anyway, and because |
| 6238 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6239 | case $ac_im_incroot in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6240 | /usr/include) ac_x_includes= ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6241 | *) 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] | 6242 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6243 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6244 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6245 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6246 | esac |
| 6247 | fi |
| 6248 | cd .. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6249 | rm -f -r conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6250 | fi |
| 6251 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6252 | # Standard set of common directories for X headers. |
| 6253 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 6254 | ac_x_header_dirs=' |
| 6255 | /usr/X11/include |
| 6256 | /usr/X11R6/include |
| 6257 | /usr/X11R5/include |
| 6258 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6259 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6260 | /usr/include/X11 |
| 6261 | /usr/include/X11R6 |
| 6262 | /usr/include/X11R5 |
| 6263 | /usr/include/X11R4 |
| 6264 | |
| 6265 | /usr/local/X11/include |
| 6266 | /usr/local/X11R6/include |
| 6267 | /usr/local/X11R5/include |
| 6268 | /usr/local/X11R4/include |
| 6269 | |
| 6270 | /usr/local/include/X11 |
| 6271 | /usr/local/include/X11R6 |
| 6272 | /usr/local/include/X11R5 |
| 6273 | /usr/local/include/X11R4 |
| 6274 | |
| 6275 | /usr/X386/include |
| 6276 | /usr/x386/include |
| 6277 | /usr/XFree86/include/X11 |
| 6278 | |
| 6279 | /usr/include |
| 6280 | /usr/local/include |
| 6281 | /usr/unsupported/include |
| 6282 | /usr/athena/include |
| 6283 | /usr/local/x11r5/include |
| 6284 | /usr/lpp/Xamples/include |
| 6285 | |
| 6286 | /usr/openwin/include |
| 6287 | /usr/openwin/share/include' |
| 6288 | |
| 6289 | if test "$ac_x_includes" = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6290 | # Guess where to find include files, by looking for Xlib.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6291 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6292 | cat >conftest.$ac_ext <<_ACEOF |
| 6293 | /* confdefs.h. */ |
| 6294 | _ACEOF |
| 6295 | cat confdefs.h >>conftest.$ac_ext |
| 6296 | cat >>conftest.$ac_ext <<_ACEOF |
| 6297 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6298 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6299 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6300 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6301 | case "(($ac_try" in |
| 6302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6303 | *) ac_try_echo=$ac_try;; |
| 6304 | esac |
| 6305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6306 | $as_echo "$ac_try_echo") >&5 |
| 6307 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6308 | ac_status=$? |
| 6309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6310 | rm -f conftest.er1 |
| 6311 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6313 | (exit $ac_status); } >/dev/null && { |
| 6314 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6315 | test ! -s conftest.err |
| 6316 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6317 | # We can compile using X headers with no special include directory. |
| 6318 | ac_x_includes= |
| 6319 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6320 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6322 | |
| 6323 | for ac_dir in $ac_x_header_dirs; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6324 | if test -r "$ac_dir/X11/Xlib.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6325 | ac_x_includes=$ac_dir |
| 6326 | break |
| 6327 | fi |
| 6328 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6329 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6330 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6331 | rm -f conftest.err conftest.$ac_ext |
| 6332 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6333 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6334 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6335 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6336 | # See if we find them without any special options. |
| 6337 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6338 | ac_save_LIBS=$LIBS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6339 | LIBS="-lX11 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6340 | cat >conftest.$ac_ext <<_ACEOF |
| 6341 | /* confdefs.h. */ |
| 6342 | _ACEOF |
| 6343 | cat confdefs.h >>conftest.$ac_ext |
| 6344 | cat >>conftest.$ac_ext <<_ACEOF |
| 6345 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6346 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6347 | int |
| 6348 | main () |
| 6349 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6350 | XrmInitialize () |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6351 | ; |
| 6352 | return 0; |
| 6353 | } |
| 6354 | _ACEOF |
| 6355 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6356 | if { (ac_try="$ac_link" |
| 6357 | case "(($ac_try" in |
| 6358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6359 | *) ac_try_echo=$ac_try;; |
| 6360 | esac |
| 6361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6362 | $as_echo "$ac_try_echo") >&5 |
| 6363 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6364 | ac_status=$? |
| 6365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6366 | rm -f conftest.er1 |
| 6367 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6369 | (exit $ac_status); } && { |
| 6370 | test -z "$ac_c_werror_flag" || |
| 6371 | test ! -s conftest.err |
| 6372 | } && test -s conftest$ac_exeext && { |
| 6373 | test "$cross_compiling" = yes || |
| 6374 | $as_test_x conftest$ac_exeext |
| 6375 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6376 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6377 | # We can link X programs with no special library path. |
| 6378 | ac_x_libraries= |
| 6379 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6380 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6382 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6383 | LIBS=$ac_save_LIBS |
| 6384 | 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] | 6385 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6386 | # 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] | 6387 | for ac_extension in a so sl dylib la dll; do |
| 6388 | if test -r "$ac_dir/libX11.$ac_extension"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6389 | ac_x_libraries=$ac_dir |
| 6390 | break 2 |
| 6391 | fi |
| 6392 | done |
| 6393 | done |
| 6394 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6395 | |
| 6396 | rm -rf conftest.dSYM |
| 6397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6398 | conftest$ac_exeext conftest.$ac_ext |
| 6399 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6400 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6401 | case $ac_x_includes,$ac_x_libraries in #( |
| 6402 | no,* | *,no | *\'*) |
| 6403 | # Didn't find X, or a directory has "'" in its name. |
| 6404 | ac_cv_have_x="have_x=no";; #( |
| 6405 | *) |
| 6406 | # Record where we found X for the cache. |
| 6407 | ac_cv_have_x="have_x=yes\ |
| 6408 | ac_x_includes='$ac_x_includes'\ |
| 6409 | ac_x_libraries='$ac_x_libraries'" |
| 6410 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6411 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6412 | ;; #( |
| 6413 | *) have_x=yes;; |
| 6414 | esac |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6415 | eval "$ac_cv_have_x" |
| 6416 | fi # $with_x != no |
| 6417 | |
| 6418 | if test "$have_x" != yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6419 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| 6420 | $as_echo "$have_x" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6421 | no_x=yes |
| 6422 | else |
| 6423 | # If each of the values was on the command line, it overrides each guess. |
| 6424 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 6425 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 6426 | # Update the cache value to reflect the command line values. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6427 | ac_cv_have_x="have_x=yes\ |
| 6428 | ac_x_includes='$x_includes'\ |
| 6429 | ac_x_libraries='$x_libraries'" |
| 6430 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 6431 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6432 | fi |
| 6433 | |
| 6434 | if test "$no_x" = yes; then |
| 6435 | # 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] | 6436 | |
| 6437 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6438 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6439 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6440 | |
| 6441 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 6442 | else |
| 6443 | if test -n "$x_includes"; then |
| 6444 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6445 | fi |
| 6446 | |
| 6447 | # It would also be nice to do this for all -L options, not just this one. |
| 6448 | if test -n "$x_libraries"; then |
| 6449 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6450 | # For Solaris; some versions of Sun CC require a space after -R and |
| 6451 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6452 | { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 6453 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 6454 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 6455 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 6456 | ac_c_werror_flag=yes |
| 6457 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6458 | /* confdefs.h. */ |
| 6459 | _ACEOF |
| 6460 | cat confdefs.h >>conftest.$ac_ext |
| 6461 | cat >>conftest.$ac_ext <<_ACEOF |
| 6462 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6463 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6464 | int |
| 6465 | main () |
| 6466 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6467 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6468 | ; |
| 6469 | return 0; |
| 6470 | } |
| 6471 | _ACEOF |
| 6472 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6473 | if { (ac_try="$ac_link" |
| 6474 | case "(($ac_try" in |
| 6475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6476 | *) ac_try_echo=$ac_try;; |
| 6477 | esac |
| 6478 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6479 | $as_echo "$ac_try_echo") >&5 |
| 6480 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6481 | ac_status=$? |
| 6482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6483 | rm -f conftest.er1 |
| 6484 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6485 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6486 | (exit $ac_status); } && { |
| 6487 | test -z "$ac_c_werror_flag" || |
| 6488 | test ! -s conftest.err |
| 6489 | } && test -s conftest$ac_exeext && { |
| 6490 | test "$cross_compiling" = yes || |
| 6491 | $as_test_x conftest$ac_exeext |
| 6492 | }; then |
| 6493 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6494 | $as_echo "no" >&6; } |
| 6495 | X_LIBS="$X_LIBS -R$x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6496 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6497 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6499 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6500 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6501 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6502 | /* confdefs.h. */ |
| 6503 | _ACEOF |
| 6504 | cat confdefs.h >>conftest.$ac_ext |
| 6505 | cat >>conftest.$ac_ext <<_ACEOF |
| 6506 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6507 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6508 | int |
| 6509 | main () |
| 6510 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6511 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6512 | ; |
| 6513 | return 0; |
| 6514 | } |
| 6515 | _ACEOF |
| 6516 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6517 | if { (ac_try="$ac_link" |
| 6518 | case "(($ac_try" in |
| 6519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6520 | *) ac_try_echo=$ac_try;; |
| 6521 | esac |
| 6522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6523 | $as_echo "$ac_try_echo") >&5 |
| 6524 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6525 | ac_status=$? |
| 6526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6527 | rm -f conftest.er1 |
| 6528 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6530 | (exit $ac_status); } && { |
| 6531 | test -z "$ac_c_werror_flag" || |
| 6532 | test ! -s conftest.err |
| 6533 | } && test -s conftest$ac_exeext && { |
| 6534 | test "$cross_compiling" = yes || |
| 6535 | $as_test_x conftest$ac_exeext |
| 6536 | }; then |
| 6537 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6538 | $as_echo "yes" >&6; } |
| 6539 | X_LIBS="$X_LIBS -R $x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6540 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6541 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6543 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6544 | { $as_echo "$as_me:$LINENO: result: neither works" >&5 |
| 6545 | $as_echo "neither works" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6546 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6547 | |
| 6548 | rm -rf conftest.dSYM |
| 6549 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6550 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6551 | fi |
| 6552 | |
| 6553 | rm -rf conftest.dSYM |
| 6554 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6555 | conftest$ac_exeext conftest.$ac_ext |
| 6556 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 6557 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6558 | fi |
| 6559 | |
| 6560 | # Check for system-dependent libraries X programs must link with. |
| 6561 | # Do this before checking for the system-independent R6 libraries |
| 6562 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 6563 | |
| 6564 | if test "$ISC" = yes; then |
| 6565 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 6566 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6567 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 6568 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6569 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6570 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 6571 | cat >conftest.$ac_ext <<_ACEOF |
| 6572 | /* confdefs.h. */ |
| 6573 | _ACEOF |
| 6574 | cat confdefs.h >>conftest.$ac_ext |
| 6575 | cat >>conftest.$ac_ext <<_ACEOF |
| 6576 | /* end confdefs.h. */ |
| 6577 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6578 | /* Override any GCC internal prototype to avoid an error. |
| 6579 | Use char because int might match the return type of a GCC |
| 6580 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6581 | #ifdef __cplusplus |
| 6582 | extern "C" |
| 6583 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6584 | char XOpenDisplay (); |
| 6585 | int |
| 6586 | main () |
| 6587 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6588 | return XOpenDisplay (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6589 | ; |
| 6590 | return 0; |
| 6591 | } |
| 6592 | _ACEOF |
| 6593 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6594 | if { (ac_try="$ac_link" |
| 6595 | case "(($ac_try" in |
| 6596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6597 | *) ac_try_echo=$ac_try;; |
| 6598 | esac |
| 6599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6600 | $as_echo "$ac_try_echo") >&5 |
| 6601 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6602 | ac_status=$? |
| 6603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6604 | rm -f conftest.er1 |
| 6605 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6607 | (exit $ac_status); } && { |
| 6608 | test -z "$ac_c_werror_flag" || |
| 6609 | test ! -s conftest.err |
| 6610 | } && test -s conftest$ac_exeext && { |
| 6611 | test "$cross_compiling" = yes || |
| 6612 | $as_test_x conftest$ac_exeext |
| 6613 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6614 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6615 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6616 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6617 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6618 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6619 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 6620 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6621 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6622 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6623 | else |
| 6624 | ac_check_lib_save_LIBS=$LIBS |
| 6625 | LIBS="-ldnet $LIBS" |
| 6626 | cat >conftest.$ac_ext <<_ACEOF |
| 6627 | /* confdefs.h. */ |
| 6628 | _ACEOF |
| 6629 | cat confdefs.h >>conftest.$ac_ext |
| 6630 | cat >>conftest.$ac_ext <<_ACEOF |
| 6631 | /* end confdefs.h. */ |
| 6632 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6633 | /* Override any GCC internal prototype to avoid an error. |
| 6634 | Use char because int might match the return type of a GCC |
| 6635 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6636 | #ifdef __cplusplus |
| 6637 | extern "C" |
| 6638 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6639 | char dnet_ntoa (); |
| 6640 | int |
| 6641 | main () |
| 6642 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6643 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6644 | ; |
| 6645 | return 0; |
| 6646 | } |
| 6647 | _ACEOF |
| 6648 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6649 | if { (ac_try="$ac_link" |
| 6650 | case "(($ac_try" in |
| 6651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6652 | *) ac_try_echo=$ac_try;; |
| 6653 | esac |
| 6654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6655 | $as_echo "$ac_try_echo") >&5 |
| 6656 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6657 | ac_status=$? |
| 6658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6659 | rm -f conftest.er1 |
| 6660 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6662 | (exit $ac_status); } && { |
| 6663 | test -z "$ac_c_werror_flag" || |
| 6664 | test ! -s conftest.err |
| 6665 | } && test -s conftest$ac_exeext && { |
| 6666 | test "$cross_compiling" = yes || |
| 6667 | $as_test_x conftest$ac_exeext |
| 6668 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6669 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 6670 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6671 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6673 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6674 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6675 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6676 | |
| 6677 | rm -rf conftest.dSYM |
| 6678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6679 | conftest$ac_exeext conftest.$ac_ext |
| 6680 | LIBS=$ac_check_lib_save_LIBS |
| 6681 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6682 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 6683 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6684 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6685 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6686 | fi |
| 6687 | |
| 6688 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6689 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 6690 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6691 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6692 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6693 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6694 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6695 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6696 | cat >conftest.$ac_ext <<_ACEOF |
| 6697 | /* confdefs.h. */ |
| 6698 | _ACEOF |
| 6699 | cat confdefs.h >>conftest.$ac_ext |
| 6700 | cat >>conftest.$ac_ext <<_ACEOF |
| 6701 | /* end confdefs.h. */ |
| 6702 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6703 | /* Override any GCC internal prototype to avoid an error. |
| 6704 | Use char because int might match the return type of a GCC |
| 6705 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6706 | #ifdef __cplusplus |
| 6707 | extern "C" |
| 6708 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6709 | char dnet_ntoa (); |
| 6710 | int |
| 6711 | main () |
| 6712 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6713 | return dnet_ntoa (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6714 | ; |
| 6715 | return 0; |
| 6716 | } |
| 6717 | _ACEOF |
| 6718 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6719 | if { (ac_try="$ac_link" |
| 6720 | case "(($ac_try" in |
| 6721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6722 | *) ac_try_echo=$ac_try;; |
| 6723 | esac |
| 6724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6725 | $as_echo "$ac_try_echo") >&5 |
| 6726 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6727 | ac_status=$? |
| 6728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6729 | rm -f conftest.er1 |
| 6730 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6732 | (exit $ac_status); } && { |
| 6733 | test -z "$ac_c_werror_flag" || |
| 6734 | test ! -s conftest.err |
| 6735 | } && test -s conftest$ac_exeext && { |
| 6736 | test "$cross_compiling" = yes || |
| 6737 | $as_test_x conftest$ac_exeext |
| 6738 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6739 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6740 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6741 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6742 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6743 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6744 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6745 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6746 | |
| 6747 | rm -rf conftest.dSYM |
| 6748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6749 | conftest$ac_exeext conftest.$ac_ext |
| 6750 | LIBS=$ac_check_lib_save_LIBS |
| 6751 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 6753 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6754 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6755 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6756 | fi |
| 6757 | |
| 6758 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6759 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6760 | |
| 6761 | rm -rf conftest.dSYM |
| 6762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6763 | conftest$ac_exeext conftest.$ac_ext |
| 6764 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6765 | |
| 6766 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 6767 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6768 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6769 | # needs -lnsl. |
| 6770 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6771 | # on Irix 5.2, according to T.E. Dickey. |
| 6772 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 6773 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6774 | { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 6775 | $as_echo_n "checking for gethostbyname... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6776 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6777 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6778 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6779 | cat >conftest.$ac_ext <<_ACEOF |
| 6780 | /* confdefs.h. */ |
| 6781 | _ACEOF |
| 6782 | cat confdefs.h >>conftest.$ac_ext |
| 6783 | cat >>conftest.$ac_ext <<_ACEOF |
| 6784 | /* end confdefs.h. */ |
| 6785 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 6786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6787 | #define gethostbyname innocuous_gethostbyname |
| 6788 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6789 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6790 | which can conflict with char gethostbyname (); below. |
| 6791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6792 | <limits.h> exists even on freestanding compilers. */ |
| 6793 | |
| 6794 | #ifdef __STDC__ |
| 6795 | # include <limits.h> |
| 6796 | #else |
| 6797 | # include <assert.h> |
| 6798 | #endif |
| 6799 | |
| 6800 | #undef gethostbyname |
| 6801 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6802 | /* Override any GCC internal prototype to avoid an error. |
| 6803 | Use char because int might match the return type of a GCC |
| 6804 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6805 | #ifdef __cplusplus |
| 6806 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6807 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6808 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6809 | /* The GNU C library defines this for functions which it implements |
| 6810 | to always fail with ENOSYS. Some functions are actually named |
| 6811 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6812 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6813 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6814 | #endif |
| 6815 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6816 | int |
| 6817 | main () |
| 6818 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6819 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6820 | ; |
| 6821 | return 0; |
| 6822 | } |
| 6823 | _ACEOF |
| 6824 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6825 | if { (ac_try="$ac_link" |
| 6826 | case "(($ac_try" in |
| 6827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6828 | *) ac_try_echo=$ac_try;; |
| 6829 | esac |
| 6830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6831 | $as_echo "$ac_try_echo") >&5 |
| 6832 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6833 | ac_status=$? |
| 6834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6835 | rm -f conftest.er1 |
| 6836 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6838 | (exit $ac_status); } && { |
| 6839 | test -z "$ac_c_werror_flag" || |
| 6840 | test ! -s conftest.err |
| 6841 | } && test -s conftest$ac_exeext && { |
| 6842 | test "$cross_compiling" = yes || |
| 6843 | $as_test_x conftest$ac_exeext |
| 6844 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6845 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6846 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6847 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6848 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6849 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6850 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6851 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6852 | |
| 6853 | rm -rf conftest.dSYM |
| 6854 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6855 | conftest$ac_exeext conftest.$ac_ext |
| 6856 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6857 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6858 | $as_echo "$ac_cv_func_gethostbyname" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6859 | |
| 6860 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6861 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6862 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6863 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6864 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6865 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6866 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6867 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6868 | cat >conftest.$ac_ext <<_ACEOF |
| 6869 | /* confdefs.h. */ |
| 6870 | _ACEOF |
| 6871 | cat confdefs.h >>conftest.$ac_ext |
| 6872 | cat >>conftest.$ac_ext <<_ACEOF |
| 6873 | /* end confdefs.h. */ |
| 6874 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6875 | /* Override any GCC internal prototype to avoid an error. |
| 6876 | Use char because int might match the return type of a GCC |
| 6877 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6878 | #ifdef __cplusplus |
| 6879 | extern "C" |
| 6880 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6881 | char gethostbyname (); |
| 6882 | int |
| 6883 | main () |
| 6884 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6885 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6886 | ; |
| 6887 | return 0; |
| 6888 | } |
| 6889 | _ACEOF |
| 6890 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6891 | if { (ac_try="$ac_link" |
| 6892 | case "(($ac_try" in |
| 6893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6894 | *) ac_try_echo=$ac_try;; |
| 6895 | esac |
| 6896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6897 | $as_echo "$ac_try_echo") >&5 |
| 6898 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6899 | ac_status=$? |
| 6900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6901 | rm -f conftest.er1 |
| 6902 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6904 | (exit $ac_status); } && { |
| 6905 | test -z "$ac_c_werror_flag" || |
| 6906 | test ! -s conftest.err |
| 6907 | } && test -s conftest$ac_exeext && { |
| 6908 | test "$cross_compiling" = yes || |
| 6909 | $as_test_x conftest$ac_exeext |
| 6910 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6911 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6912 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6913 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6914 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6915 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6916 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6917 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6918 | |
| 6919 | rm -rf conftest.dSYM |
| 6920 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6921 | conftest$ac_exeext conftest.$ac_ext |
| 6922 | LIBS=$ac_check_lib_save_LIBS |
| 6923 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6924 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6925 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6926 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6927 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6928 | fi |
| 6929 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6930 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6931 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 6932 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6933 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6934 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6935 | else |
| 6936 | ac_check_lib_save_LIBS=$LIBS |
| 6937 | LIBS="-lbsd $LIBS" |
| 6938 | cat >conftest.$ac_ext <<_ACEOF |
| 6939 | /* confdefs.h. */ |
| 6940 | _ACEOF |
| 6941 | cat confdefs.h >>conftest.$ac_ext |
| 6942 | cat >>conftest.$ac_ext <<_ACEOF |
| 6943 | /* end confdefs.h. */ |
| 6944 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6945 | /* Override any GCC internal prototype to avoid an error. |
| 6946 | Use char because int might match the return type of a GCC |
| 6947 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6948 | #ifdef __cplusplus |
| 6949 | extern "C" |
| 6950 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6951 | char gethostbyname (); |
| 6952 | int |
| 6953 | main () |
| 6954 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6955 | return gethostbyname (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6956 | ; |
| 6957 | return 0; |
| 6958 | } |
| 6959 | _ACEOF |
| 6960 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6961 | if { (ac_try="$ac_link" |
| 6962 | case "(($ac_try" in |
| 6963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6964 | *) ac_try_echo=$ac_try;; |
| 6965 | esac |
| 6966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6967 | $as_echo "$ac_try_echo") >&5 |
| 6968 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6969 | ac_status=$? |
| 6970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6971 | rm -f conftest.er1 |
| 6972 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6974 | (exit $ac_status); } && { |
| 6975 | test -z "$ac_c_werror_flag" || |
| 6976 | test ! -s conftest.err |
| 6977 | } && test -s conftest$ac_exeext && { |
| 6978 | test "$cross_compiling" = yes || |
| 6979 | $as_test_x conftest$ac_exeext |
| 6980 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6981 | ac_cv_lib_bsd_gethostbyname=yes |
| 6982 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6983 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6985 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6986 | ac_cv_lib_bsd_gethostbyname=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6987 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6988 | |
| 6989 | rm -rf conftest.dSYM |
| 6990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6991 | conftest$ac_exeext conftest.$ac_ext |
| 6992 | LIBS=$ac_check_lib_save_LIBS |
| 6993 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 6994 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 6995 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6996 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 6997 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 6998 | fi |
| 6999 | |
| 7000 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7001 | fi |
| 7002 | |
| 7003 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7004 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7005 | # 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] | 7006 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7007 | # variants that don't use the name server (or something). -lsocket |
| 7008 | # must be given before -lnsl if both are needed. We assume that |
| 7009 | # if connect needs -lnsl, so does gethostbyname. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7010 | { $as_echo "$as_me:$LINENO: checking for connect" >&5 |
| 7011 | $as_echo_n "checking for connect... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7012 | if test "${ac_cv_func_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7013 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7014 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7015 | cat >conftest.$ac_ext <<_ACEOF |
| 7016 | /* confdefs.h. */ |
| 7017 | _ACEOF |
| 7018 | cat confdefs.h >>conftest.$ac_ext |
| 7019 | cat >>conftest.$ac_ext <<_ACEOF |
| 7020 | /* end confdefs.h. */ |
| 7021 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 7022 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7023 | #define connect innocuous_connect |
| 7024 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7025 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7026 | which can conflict with char connect (); below. |
| 7027 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7028 | <limits.h> exists even on freestanding compilers. */ |
| 7029 | |
| 7030 | #ifdef __STDC__ |
| 7031 | # include <limits.h> |
| 7032 | #else |
| 7033 | # include <assert.h> |
| 7034 | #endif |
| 7035 | |
| 7036 | #undef connect |
| 7037 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7038 | /* Override any GCC internal prototype to avoid an error. |
| 7039 | Use char because int might match the return type of a GCC |
| 7040 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7041 | #ifdef __cplusplus |
| 7042 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7043 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7044 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7045 | /* The GNU C library defines this for functions which it implements |
| 7046 | to always fail with ENOSYS. Some functions are actually named |
| 7047 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7048 | #if defined __stub_connect || defined __stub___connect |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7049 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7050 | #endif |
| 7051 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7052 | int |
| 7053 | main () |
| 7054 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7055 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7056 | ; |
| 7057 | return 0; |
| 7058 | } |
| 7059 | _ACEOF |
| 7060 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7061 | if { (ac_try="$ac_link" |
| 7062 | case "(($ac_try" in |
| 7063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7064 | *) ac_try_echo=$ac_try;; |
| 7065 | esac |
| 7066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7067 | $as_echo "$ac_try_echo") >&5 |
| 7068 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7069 | ac_status=$? |
| 7070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7071 | rm -f conftest.er1 |
| 7072 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7074 | (exit $ac_status); } && { |
| 7075 | test -z "$ac_c_werror_flag" || |
| 7076 | test ! -s conftest.err |
| 7077 | } && test -s conftest$ac_exeext && { |
| 7078 | test "$cross_compiling" = yes || |
| 7079 | $as_test_x conftest$ac_exeext |
| 7080 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7081 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7082 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7083 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7084 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7085 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7086 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7087 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7088 | |
| 7089 | rm -rf conftest.dSYM |
| 7090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7091 | conftest$ac_exeext conftest.$ac_ext |
| 7092 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7093 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 7094 | $as_echo "$ac_cv_func_connect" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7095 | |
| 7096 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7097 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7098 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7099 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7100 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7101 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7102 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7103 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7104 | cat >conftest.$ac_ext <<_ACEOF |
| 7105 | /* confdefs.h. */ |
| 7106 | _ACEOF |
| 7107 | cat confdefs.h >>conftest.$ac_ext |
| 7108 | cat >>conftest.$ac_ext <<_ACEOF |
| 7109 | /* end confdefs.h. */ |
| 7110 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7111 | /* Override any GCC internal prototype to avoid an error. |
| 7112 | Use char because int might match the return type of a GCC |
| 7113 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7114 | #ifdef __cplusplus |
| 7115 | extern "C" |
| 7116 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7117 | char connect (); |
| 7118 | int |
| 7119 | main () |
| 7120 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7121 | return connect (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7122 | ; |
| 7123 | return 0; |
| 7124 | } |
| 7125 | _ACEOF |
| 7126 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7127 | if { (ac_try="$ac_link" |
| 7128 | case "(($ac_try" in |
| 7129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7130 | *) ac_try_echo=$ac_try;; |
| 7131 | esac |
| 7132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7133 | $as_echo "$ac_try_echo") >&5 |
| 7134 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7135 | ac_status=$? |
| 7136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7137 | rm -f conftest.er1 |
| 7138 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7140 | (exit $ac_status); } && { |
| 7141 | test -z "$ac_c_werror_flag" || |
| 7142 | test ! -s conftest.err |
| 7143 | } && test -s conftest$ac_exeext && { |
| 7144 | test "$cross_compiling" = yes || |
| 7145 | $as_test_x conftest$ac_exeext |
| 7146 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7147 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7148 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7149 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7150 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7151 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7152 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7153 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7154 | |
| 7155 | rm -rf conftest.dSYM |
| 7156 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7157 | conftest$ac_exeext conftest.$ac_ext |
| 7158 | LIBS=$ac_check_lib_save_LIBS |
| 7159 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7160 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7161 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7162 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7163 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7164 | fi |
| 7165 | |
| 7166 | fi |
| 7167 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7168 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7169 | { $as_echo "$as_me:$LINENO: checking for remove" >&5 |
| 7170 | $as_echo_n "checking for remove... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7171 | if test "${ac_cv_func_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7172 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7173 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7174 | cat >conftest.$ac_ext <<_ACEOF |
| 7175 | /* confdefs.h. */ |
| 7176 | _ACEOF |
| 7177 | cat confdefs.h >>conftest.$ac_ext |
| 7178 | cat >>conftest.$ac_ext <<_ACEOF |
| 7179 | /* end confdefs.h. */ |
| 7180 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 7181 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7182 | #define remove innocuous_remove |
| 7183 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7184 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7185 | which can conflict with char remove (); below. |
| 7186 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7187 | <limits.h> exists even on freestanding compilers. */ |
| 7188 | |
| 7189 | #ifdef __STDC__ |
| 7190 | # include <limits.h> |
| 7191 | #else |
| 7192 | # include <assert.h> |
| 7193 | #endif |
| 7194 | |
| 7195 | #undef remove |
| 7196 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7197 | /* Override any GCC internal prototype to avoid an error. |
| 7198 | Use char because int might match the return type of a GCC |
| 7199 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7200 | #ifdef __cplusplus |
| 7201 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7202 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7203 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7204 | /* The GNU C library defines this for functions which it implements |
| 7205 | to always fail with ENOSYS. Some functions are actually named |
| 7206 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7207 | #if defined __stub_remove || defined __stub___remove |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7208 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7209 | #endif |
| 7210 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7211 | int |
| 7212 | main () |
| 7213 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7214 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7215 | ; |
| 7216 | return 0; |
| 7217 | } |
| 7218 | _ACEOF |
| 7219 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7220 | if { (ac_try="$ac_link" |
| 7221 | case "(($ac_try" in |
| 7222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7223 | *) ac_try_echo=$ac_try;; |
| 7224 | esac |
| 7225 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7226 | $as_echo "$ac_try_echo") >&5 |
| 7227 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7228 | ac_status=$? |
| 7229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7230 | rm -f conftest.er1 |
| 7231 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7233 | (exit $ac_status); } && { |
| 7234 | test -z "$ac_c_werror_flag" || |
| 7235 | test ! -s conftest.err |
| 7236 | } && test -s conftest$ac_exeext && { |
| 7237 | test "$cross_compiling" = yes || |
| 7238 | $as_test_x conftest$ac_exeext |
| 7239 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7240 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7241 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7242 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7243 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7244 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7245 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7246 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7247 | |
| 7248 | rm -rf conftest.dSYM |
| 7249 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7250 | conftest$ac_exeext conftest.$ac_ext |
| 7251 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7252 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 7253 | $as_echo "$ac_cv_func_remove" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7254 | |
| 7255 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7256 | { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 7257 | $as_echo_n "checking for remove in -lposix... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7258 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7259 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7260 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7261 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7262 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7263 | cat >conftest.$ac_ext <<_ACEOF |
| 7264 | /* confdefs.h. */ |
| 7265 | _ACEOF |
| 7266 | cat confdefs.h >>conftest.$ac_ext |
| 7267 | cat >>conftest.$ac_ext <<_ACEOF |
| 7268 | /* end confdefs.h. */ |
| 7269 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7270 | /* Override any GCC internal prototype to avoid an error. |
| 7271 | Use char because int might match the return type of a GCC |
| 7272 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7273 | #ifdef __cplusplus |
| 7274 | extern "C" |
| 7275 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7276 | char remove (); |
| 7277 | int |
| 7278 | main () |
| 7279 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7280 | return remove (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7281 | ; |
| 7282 | return 0; |
| 7283 | } |
| 7284 | _ACEOF |
| 7285 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7286 | if { (ac_try="$ac_link" |
| 7287 | case "(($ac_try" in |
| 7288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7289 | *) ac_try_echo=$ac_try;; |
| 7290 | esac |
| 7291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7292 | $as_echo "$ac_try_echo") >&5 |
| 7293 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7294 | ac_status=$? |
| 7295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7296 | rm -f conftest.er1 |
| 7297 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7299 | (exit $ac_status); } && { |
| 7300 | test -z "$ac_c_werror_flag" || |
| 7301 | test ! -s conftest.err |
| 7302 | } && test -s conftest$ac_exeext && { |
| 7303 | test "$cross_compiling" = yes || |
| 7304 | $as_test_x conftest$ac_exeext |
| 7305 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7306 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7307 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7308 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7309 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7310 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7311 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7312 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7313 | |
| 7314 | rm -rf conftest.dSYM |
| 7315 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7316 | conftest$ac_exeext conftest.$ac_ext |
| 7317 | LIBS=$ac_check_lib_save_LIBS |
| 7318 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7319 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 7320 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7321 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7322 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7323 | fi |
| 7324 | |
| 7325 | fi |
| 7326 | |
| 7327 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7328 | { $as_echo "$as_me:$LINENO: checking for shmat" >&5 |
| 7329 | $as_echo_n "checking for shmat... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7330 | if test "${ac_cv_func_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7331 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7332 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7333 | cat >conftest.$ac_ext <<_ACEOF |
| 7334 | /* confdefs.h. */ |
| 7335 | _ACEOF |
| 7336 | cat confdefs.h >>conftest.$ac_ext |
| 7337 | cat >>conftest.$ac_ext <<_ACEOF |
| 7338 | /* end confdefs.h. */ |
| 7339 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 7340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7341 | #define shmat innocuous_shmat |
| 7342 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7343 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7344 | which can conflict with char shmat (); below. |
| 7345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7346 | <limits.h> exists even on freestanding compilers. */ |
| 7347 | |
| 7348 | #ifdef __STDC__ |
| 7349 | # include <limits.h> |
| 7350 | #else |
| 7351 | # include <assert.h> |
| 7352 | #endif |
| 7353 | |
| 7354 | #undef shmat |
| 7355 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7356 | /* Override any GCC internal prototype to avoid an error. |
| 7357 | Use char because int might match the return type of a GCC |
| 7358 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7359 | #ifdef __cplusplus |
| 7360 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7361 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7362 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7363 | /* The GNU C library defines this for functions which it implements |
| 7364 | to always fail with ENOSYS. Some functions are actually named |
| 7365 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7366 | #if defined __stub_shmat || defined __stub___shmat |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7367 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7368 | #endif |
| 7369 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7370 | int |
| 7371 | main () |
| 7372 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7373 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7374 | ; |
| 7375 | return 0; |
| 7376 | } |
| 7377 | _ACEOF |
| 7378 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7379 | if { (ac_try="$ac_link" |
| 7380 | case "(($ac_try" in |
| 7381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7382 | *) ac_try_echo=$ac_try;; |
| 7383 | esac |
| 7384 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7385 | $as_echo "$ac_try_echo") >&5 |
| 7386 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7387 | ac_status=$? |
| 7388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7389 | rm -f conftest.er1 |
| 7390 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7392 | (exit $ac_status); } && { |
| 7393 | test -z "$ac_c_werror_flag" || |
| 7394 | test ! -s conftest.err |
| 7395 | } && test -s conftest$ac_exeext && { |
| 7396 | test "$cross_compiling" = yes || |
| 7397 | $as_test_x conftest$ac_exeext |
| 7398 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7399 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7400 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7401 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7402 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7403 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7404 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7405 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7406 | |
| 7407 | rm -rf conftest.dSYM |
| 7408 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7409 | conftest$ac_exeext conftest.$ac_ext |
| 7410 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 7412 | $as_echo "$ac_cv_func_shmat" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7413 | |
| 7414 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7415 | { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 7416 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7417 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7418 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7419 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7420 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7421 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7422 | cat >conftest.$ac_ext <<_ACEOF |
| 7423 | /* confdefs.h. */ |
| 7424 | _ACEOF |
| 7425 | cat confdefs.h >>conftest.$ac_ext |
| 7426 | cat >>conftest.$ac_ext <<_ACEOF |
| 7427 | /* end confdefs.h. */ |
| 7428 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7429 | /* Override any GCC internal prototype to avoid an error. |
| 7430 | Use char because int might match the return type of a GCC |
| 7431 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7432 | #ifdef __cplusplus |
| 7433 | extern "C" |
| 7434 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7435 | char shmat (); |
| 7436 | int |
| 7437 | main () |
| 7438 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7439 | return shmat (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7440 | ; |
| 7441 | return 0; |
| 7442 | } |
| 7443 | _ACEOF |
| 7444 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7445 | if { (ac_try="$ac_link" |
| 7446 | case "(($ac_try" in |
| 7447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7448 | *) ac_try_echo=$ac_try;; |
| 7449 | esac |
| 7450 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7451 | $as_echo "$ac_try_echo") >&5 |
| 7452 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7453 | ac_status=$? |
| 7454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7455 | rm -f conftest.er1 |
| 7456 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7458 | (exit $ac_status); } && { |
| 7459 | test -z "$ac_c_werror_flag" || |
| 7460 | test ! -s conftest.err |
| 7461 | } && test -s conftest$ac_exeext && { |
| 7462 | test "$cross_compiling" = yes || |
| 7463 | $as_test_x conftest$ac_exeext |
| 7464 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7465 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7466 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7467 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7468 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7469 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7470 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7471 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7472 | |
| 7473 | rm -rf conftest.dSYM |
| 7474 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7475 | conftest$ac_exeext conftest.$ac_ext |
| 7476 | LIBS=$ac_check_lib_save_LIBS |
| 7477 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7478 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 7479 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7480 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7481 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7482 | fi |
| 7483 | |
| 7484 | fi |
| 7485 | fi |
| 7486 | |
| 7487 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7488 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7489 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7490 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7491 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7492 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7493 | # These have to be linked with before -lX11, unlike the other |
| 7494 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7495 | # John Interrante, Karl Berry |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7496 | { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 7497 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7498 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7499 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7500 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7501 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7502 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7503 | cat >conftest.$ac_ext <<_ACEOF |
| 7504 | /* confdefs.h. */ |
| 7505 | _ACEOF |
| 7506 | cat confdefs.h >>conftest.$ac_ext |
| 7507 | cat >>conftest.$ac_ext <<_ACEOF |
| 7508 | /* end confdefs.h. */ |
| 7509 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7510 | /* Override any GCC internal prototype to avoid an error. |
| 7511 | Use char because int might match the return type of a GCC |
| 7512 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7513 | #ifdef __cplusplus |
| 7514 | extern "C" |
| 7515 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7516 | char IceConnectionNumber (); |
| 7517 | int |
| 7518 | main () |
| 7519 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7520 | return IceConnectionNumber (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7521 | ; |
| 7522 | return 0; |
| 7523 | } |
| 7524 | _ACEOF |
| 7525 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7526 | if { (ac_try="$ac_link" |
| 7527 | case "(($ac_try" in |
| 7528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7529 | *) ac_try_echo=$ac_try;; |
| 7530 | esac |
| 7531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7532 | $as_echo "$ac_try_echo") >&5 |
| 7533 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7534 | ac_status=$? |
| 7535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7536 | rm -f conftest.er1 |
| 7537 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7539 | (exit $ac_status); } && { |
| 7540 | test -z "$ac_c_werror_flag" || |
| 7541 | test ! -s conftest.err |
| 7542 | } && test -s conftest$ac_exeext && { |
| 7543 | test "$cross_compiling" = yes || |
| 7544 | $as_test_x conftest$ac_exeext |
| 7545 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7546 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7547 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7548 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7549 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7550 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7551 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7552 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7553 | |
| 7554 | rm -rf conftest.dSYM |
| 7555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7556 | conftest$ac_exeext conftest.$ac_ext |
| 7557 | LIBS=$ac_check_lib_save_LIBS |
| 7558 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7559 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 7560 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7561 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7562 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7563 | fi |
| 7564 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7565 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7566 | |
| 7567 | fi |
| 7568 | |
| 7569 | |
| 7570 | if test "$OS390Unix" = "yes"; then |
| 7571 | CFLAGS="$CFLAGS -W c,dll" |
| 7572 | LDFLAGS="$LDFLAGS -W l,dll" |
| 7573 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 7574 | fi |
| 7575 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7576 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7577 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 7578 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7579 | { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 7580 | $as_echo "Corrected X libraries to $x_libraries" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7581 | X_LIBS="$X_LIBS -L$x_libraries" |
| 7582 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 7583 | uname -r | grep '^5' >/dev/null; then |
| 7584 | X_LIBS="$X_LIBS -R $x_libraries" |
| 7585 | fi |
| 7586 | fi |
| 7587 | |
| 7588 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 7589 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7590 | { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 7591 | $as_echo "Corrected X includes to $x_includes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7592 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 7593 | fi |
| 7594 | |
| 7595 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 7596 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 7597 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 7598 | |
| 7599 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7600 | { $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] | 7601 | $as_echo_n "checking if X11 header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7602 | cflags_save=$CFLAGS |
| 7603 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7604 | cat >conftest.$ac_ext <<_ACEOF |
| 7605 | /* confdefs.h. */ |
| 7606 | _ACEOF |
| 7607 | cat confdefs.h >>conftest.$ac_ext |
| 7608 | cat >>conftest.$ac_ext <<_ACEOF |
| 7609 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7610 | #include <X11/Xlib.h> |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 7611 | #include <X11/Intrinsic.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7612 | int |
| 7613 | main () |
| 7614 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7616 | ; |
| 7617 | return 0; |
| 7618 | } |
| 7619 | _ACEOF |
| 7620 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7621 | if { (ac_try="$ac_compile" |
| 7622 | case "(($ac_try" in |
| 7623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7624 | *) ac_try_echo=$ac_try;; |
| 7625 | esac |
| 7626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7627 | $as_echo "$ac_try_echo") >&5 |
| 7628 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7629 | ac_status=$? |
| 7630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7631 | rm -f conftest.er1 |
| 7632 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7634 | (exit $ac_status); } && { |
| 7635 | test -z "$ac_c_werror_flag" || |
| 7636 | test ! -s conftest.err |
| 7637 | } && test -s conftest.$ac_objext; then |
| 7638 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7639 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7640 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7641 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7643 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7644 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7645 | $as_echo "no" >&6; }; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7646 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7647 | |
| 7648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7649 | CFLAGS=$cflags_save |
| 7650 | |
| 7651 | if test "${no_x-no}" = yes; then |
| 7652 | with_x=no |
| 7653 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7654 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7655 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7656 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7657 | |
| 7658 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7659 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7660 | |
| 7661 | ac_save_LDFLAGS="$LDFLAGS" |
| 7662 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 7663 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7664 | { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 7665 | $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7666 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7667 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7668 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7669 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7670 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7671 | cat >conftest.$ac_ext <<_ACEOF |
| 7672 | /* confdefs.h. */ |
| 7673 | _ACEOF |
| 7674 | cat confdefs.h >>conftest.$ac_ext |
| 7675 | cat >>conftest.$ac_ext <<_ACEOF |
| 7676 | /* end confdefs.h. */ |
| 7677 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7678 | /* Override any GCC internal prototype to avoid an error. |
| 7679 | Use char because int might match the return type of a GCC |
| 7680 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7681 | #ifdef __cplusplus |
| 7682 | extern "C" |
| 7683 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7684 | char _XdmcpAuthDoIt (); |
| 7685 | int |
| 7686 | main () |
| 7687 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7688 | return _XdmcpAuthDoIt (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7689 | ; |
| 7690 | return 0; |
| 7691 | } |
| 7692 | _ACEOF |
| 7693 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7694 | if { (ac_try="$ac_link" |
| 7695 | case "(($ac_try" in |
| 7696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7697 | *) ac_try_echo=$ac_try;; |
| 7698 | esac |
| 7699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7700 | $as_echo "$ac_try_echo") >&5 |
| 7701 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7702 | ac_status=$? |
| 7703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7704 | rm -f conftest.er1 |
| 7705 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7707 | (exit $ac_status); } && { |
| 7708 | test -z "$ac_c_werror_flag" || |
| 7709 | test ! -s conftest.err |
| 7710 | } && test -s conftest$ac_exeext && { |
| 7711 | test "$cross_compiling" = yes || |
| 7712 | $as_test_x conftest$ac_exeext |
| 7713 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7714 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7715 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7716 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7717 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7718 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7719 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7720 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7721 | |
| 7722 | rm -rf conftest.dSYM |
| 7723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7724 | conftest$ac_exeext conftest.$ac_ext |
| 7725 | LIBS=$ac_check_lib_save_LIBS |
| 7726 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7727 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 7728 | $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7729 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7730 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7731 | fi |
| 7732 | |
| 7733 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7734 | { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 7735 | $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7736 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7737 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7738 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7739 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7740 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7741 | cat >conftest.$ac_ext <<_ACEOF |
| 7742 | /* confdefs.h. */ |
| 7743 | _ACEOF |
| 7744 | cat confdefs.h >>conftest.$ac_ext |
| 7745 | cat >>conftest.$ac_ext <<_ACEOF |
| 7746 | /* end confdefs.h. */ |
| 7747 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7748 | /* Override any GCC internal prototype to avoid an error. |
| 7749 | Use char because int might match the return type of a GCC |
| 7750 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7751 | #ifdef __cplusplus |
| 7752 | extern "C" |
| 7753 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7754 | char IceOpenConnection (); |
| 7755 | int |
| 7756 | main () |
| 7757 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7758 | return IceOpenConnection (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7759 | ; |
| 7760 | return 0; |
| 7761 | } |
| 7762 | _ACEOF |
| 7763 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7764 | if { (ac_try="$ac_link" |
| 7765 | case "(($ac_try" in |
| 7766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7767 | *) ac_try_echo=$ac_try;; |
| 7768 | esac |
| 7769 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7770 | $as_echo "$ac_try_echo") >&5 |
| 7771 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7772 | ac_status=$? |
| 7773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7774 | rm -f conftest.er1 |
| 7775 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7777 | (exit $ac_status); } && { |
| 7778 | test -z "$ac_c_werror_flag" || |
| 7779 | test ! -s conftest.err |
| 7780 | } && test -s conftest$ac_exeext && { |
| 7781 | test "$cross_compiling" = yes || |
| 7782 | $as_test_x conftest$ac_exeext |
| 7783 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7784 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7785 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7786 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7787 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7788 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7789 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7790 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7791 | |
| 7792 | rm -rf conftest.dSYM |
| 7793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7794 | conftest$ac_exeext conftest.$ac_ext |
| 7795 | LIBS=$ac_check_lib_save_LIBS |
| 7796 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7797 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 7798 | $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7799 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7800 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7801 | fi |
| 7802 | |
| 7803 | |
| 7804 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7805 | { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 7806 | $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7807 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7808 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7809 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7810 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7811 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7812 | cat >conftest.$ac_ext <<_ACEOF |
| 7813 | /* confdefs.h. */ |
| 7814 | _ACEOF |
| 7815 | cat confdefs.h >>conftest.$ac_ext |
| 7816 | cat >>conftest.$ac_ext <<_ACEOF |
| 7817 | /* end confdefs.h. */ |
| 7818 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7819 | /* Override any GCC internal prototype to avoid an error. |
| 7820 | Use char because int might match the return type of a GCC |
| 7821 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7822 | #ifdef __cplusplus |
| 7823 | extern "C" |
| 7824 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7825 | char XpmCreatePixmapFromData (); |
| 7826 | int |
| 7827 | main () |
| 7828 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7829 | return XpmCreatePixmapFromData (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7830 | ; |
| 7831 | return 0; |
| 7832 | } |
| 7833 | _ACEOF |
| 7834 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7835 | if { (ac_try="$ac_link" |
| 7836 | case "(($ac_try" in |
| 7837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7838 | *) ac_try_echo=$ac_try;; |
| 7839 | esac |
| 7840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7841 | $as_echo "$ac_try_echo") >&5 |
| 7842 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7843 | ac_status=$? |
| 7844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7845 | rm -f conftest.er1 |
| 7846 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7848 | (exit $ac_status); } && { |
| 7849 | test -z "$ac_c_werror_flag" || |
| 7850 | test ! -s conftest.err |
| 7851 | } && test -s conftest$ac_exeext && { |
| 7852 | test "$cross_compiling" = yes || |
| 7853 | $as_test_x conftest$ac_exeext |
| 7854 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7855 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7856 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7857 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7858 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7859 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7860 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7861 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7862 | |
| 7863 | rm -rf conftest.dSYM |
| 7864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7865 | conftest$ac_exeext conftest.$ac_ext |
| 7866 | LIBS=$ac_check_lib_save_LIBS |
| 7867 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7868 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 7869 | $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7870 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7871 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7872 | fi |
| 7873 | |
| 7874 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7875 | { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 7876 | $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] | 7877 | cflags_save=$CFLAGS |
| 7878 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7879 | cat >conftest.$ac_ext <<_ACEOF |
| 7880 | /* confdefs.h. */ |
| 7881 | _ACEOF |
| 7882 | cat confdefs.h >>conftest.$ac_ext |
| 7883 | cat >>conftest.$ac_ext <<_ACEOF |
| 7884 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7885 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7886 | int |
| 7887 | main () |
| 7888 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7889 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7890 | ; |
| 7891 | return 0; |
| 7892 | } |
| 7893 | _ACEOF |
| 7894 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7895 | if { (ac_try="$ac_compile" |
| 7896 | case "(($ac_try" in |
| 7897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7898 | *) ac_try_echo=$ac_try;; |
| 7899 | esac |
| 7900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7901 | $as_echo "$ac_try_echo") >&5 |
| 7902 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7903 | ac_status=$? |
| 7904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7905 | rm -f conftest.er1 |
| 7906 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7908 | (exit $ac_status); } && { |
| 7909 | test -z "$ac_c_werror_flag" || |
| 7910 | test ! -s conftest.err |
| 7911 | } && test -s conftest.$ac_objext; then |
| 7912 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7913 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7914 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7915 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7917 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7918 | CFLAGS="$CFLAGS -Wno-implicit-int" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7919 | cat >conftest.$ac_ext <<_ACEOF |
| 7920 | /* confdefs.h. */ |
| 7921 | _ACEOF |
| 7922 | cat confdefs.h >>conftest.$ac_ext |
| 7923 | cat >>conftest.$ac_ext <<_ACEOF |
| 7924 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7925 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7926 | int |
| 7927 | main () |
| 7928 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7929 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7930 | ; |
| 7931 | return 0; |
| 7932 | } |
| 7933 | _ACEOF |
| 7934 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7935 | if { (ac_try="$ac_compile" |
| 7936 | case "(($ac_try" in |
| 7937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7938 | *) ac_try_echo=$ac_try;; |
| 7939 | esac |
| 7940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7941 | $as_echo "$ac_try_echo") >&5 |
| 7942 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7943 | ac_status=$? |
| 7944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7945 | rm -f conftest.er1 |
| 7946 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7948 | (exit $ac_status); } && { |
| 7949 | test -z "$ac_c_werror_flag" || |
| 7950 | test ! -s conftest.err |
| 7951 | } && test -s conftest.$ac_objext; then |
| 7952 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 7953 | $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7954 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7955 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7957 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7958 | { $as_echo "$as_me:$LINENO: result: test failed" >&5 |
| 7959 | $as_echo "test failed" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7960 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7961 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7962 | |
| 7963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7964 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7965 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7966 | |
| 7967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7968 | CFLAGS=$cflags_save |
| 7969 | |
| 7970 | LDFLAGS="$ac_save_LDFLAGS" |
| 7971 | |
| 7972 | fi |
| 7973 | fi |
| 7974 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 7975 | 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] | 7976 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7977 | { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 7978 | $as_echo_n "checking --enable-gui argument... " >&6; } |
| 7979 | # Check whether --enable-gui was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7980 | if test "${enable_gui+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7981 | enableval=$enable_gui; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7982 | else |
| 7983 | enable_gui="auto" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7984 | fi |
| 7985 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7986 | |
| 7987 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 7988 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 7989 | |
| 7990 | SKIP_GTK=YES |
| 7991 | SKIP_GTK2=YES |
| 7992 | SKIP_GNOME=YES |
| 7993 | SKIP_MOTIF=YES |
| 7994 | SKIP_ATHENA=YES |
| 7995 | SKIP_NEXTAW=YES |
| 7996 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7997 | SKIP_CARBON=YES |
| 7998 | GUITYPE=NONE |
| 7999 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8000 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8001 | SKIP_PHOTON= |
| 8002 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8003 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8004 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8005 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8006 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 8007 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 8008 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 8009 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 8010 | photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 8011 | $as_echo "Photon GUI support" >&6; } ;; |
| 8012 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8013 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8014 | SKIP_PHOTON=YES ;; |
| 8015 | esac |
| 8016 | |
| 8017 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 8018 | SKIP_CARBON= |
| 8019 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8020 | no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8021 | $as_echo "no GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8022 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8023 | yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 8024 | $as_echo "yes - automatic GUI support" >&6; } ;; |
| 8025 | auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 8026 | $as_echo "auto - automatic GUI support" >&6; } ;; |
| 8027 | carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 8028 | $as_echo "Carbon GUI support" >&6; } ;; |
| 8029 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8030 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8031 | SKIP_CARBON=YES ;; |
| 8032 | esac |
| 8033 | |
| 8034 | else |
| 8035 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8036 | case "$enable_gui_canon" in |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8037 | no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 8038 | $as_echo "no GUI support" >&6; } ;; |
| 8039 | yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 8040 | $as_echo "yes/auto - automatic GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8041 | SKIP_GTK= |
| 8042 | SKIP_GTK2= |
| 8043 | SKIP_GNOME= |
| 8044 | SKIP_MOTIF= |
| 8045 | SKIP_ATHENA= |
| 8046 | SKIP_NEXTAW= |
| 8047 | SKIP_CARBON=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8048 | gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 8049 | $as_echo "GTK+ 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8050 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8051 | gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 8052 | $as_echo "GTK+ 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8053 | SKIP_GTK= |
| 8054 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8055 | gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 8056 | $as_echo "GNOME 1.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8057 | SKIP_GNOME= |
| 8058 | SKIP_GTK=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8059 | gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 8060 | $as_echo "GNOME 2.x GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8061 | SKIP_GNOME= |
| 8062 | SKIP_GTK= |
| 8063 | SKIP_GTK2=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8064 | motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 8065 | $as_echo "Motif GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8066 | SKIP_MOTIF=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8067 | athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 8068 | $as_echo "Athena GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8069 | SKIP_ATHENA=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8070 | nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 8071 | $as_echo "neXtaw GUI support" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8072 | SKIP_NEXTAW=;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8073 | *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 8074 | $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8075 | esac |
| 8076 | |
| 8077 | fi |
| 8078 | |
| 8079 | 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] | 8080 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 8081 | $as_echo_n "checking whether or not to look for GTK... " >&6; } |
| 8082 | # Check whether --enable-gtk-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8083 | if test "${enable_gtk_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8084 | enableval=$enable_gtk_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8085 | else |
| 8086 | enable_gtk_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8087 | fi |
| 8088 | |
| 8089 | { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 8090 | $as_echo "$enable_gtk_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8091 | if test "x$enable_gtk_check" = "xno"; then |
| 8092 | SKIP_GTK=YES |
| 8093 | SKIP_GNOME=YES |
| 8094 | fi |
| 8095 | fi |
| 8096 | |
| 8097 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 8098 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8099 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 8100 | $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } |
| 8101 | # Check whether --enable-gtk2-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8102 | if test "${enable_gtk2_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8103 | enableval=$enable_gtk2_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8104 | else |
| 8105 | enable_gtk2_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8106 | fi |
| 8107 | |
| 8108 | { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 8109 | $as_echo "$enable_gtk2_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8110 | if test "x$enable_gtk2_check" = "xno"; then |
| 8111 | SKIP_GTK2=YES |
| 8112 | fi |
| 8113 | fi |
| 8114 | |
| 8115 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 8116 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8117 | { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 8118 | $as_echo_n "checking whether or not to look for GNOME... " >&6; } |
| 8119 | # Check whether --enable-gnome-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8120 | if test "${enable_gnome_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8121 | enableval=$enable_gnome_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8122 | else |
| 8123 | enable_gnome_check="no" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8124 | fi |
| 8125 | |
| 8126 | { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 8127 | $as_echo "$enable_gnome_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8128 | if test "x$enable_gnome_check" = "xno"; then |
| 8129 | SKIP_GNOME=YES |
| 8130 | fi |
| 8131 | fi |
| 8132 | |
| 8133 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8134 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 8135 | $as_echo_n "checking whether or not to look for Motif... " >&6; } |
| 8136 | # Check whether --enable-motif-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8137 | if test "${enable_motif_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8138 | enableval=$enable_motif_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8139 | else |
| 8140 | enable_motif_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8141 | fi |
| 8142 | |
| 8143 | { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 8144 | $as_echo "$enable_motif_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8145 | if test "x$enable_motif_check" = "xno"; then |
| 8146 | SKIP_MOTIF=YES |
| 8147 | fi |
| 8148 | fi |
| 8149 | |
| 8150 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8151 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 8152 | $as_echo_n "checking whether or not to look for Athena... " >&6; } |
| 8153 | # Check whether --enable-athena-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8154 | if test "${enable_athena_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8155 | enableval=$enable_athena_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8156 | else |
| 8157 | enable_athena_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8158 | fi |
| 8159 | |
| 8160 | { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 8161 | $as_echo "$enable_athena_check" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8162 | if test "x$enable_athena_check" = "xno"; then |
| 8163 | SKIP_ATHENA=YES |
| 8164 | fi |
| 8165 | fi |
| 8166 | |
| 8167 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8168 | { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 8169 | $as_echo_n "checking whether or not to look for neXtaw... " >&6; } |
| 8170 | # Check whether --enable-nextaw-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8171 | if test "${enable_nextaw_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8172 | enableval=$enable_nextaw_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8173 | else |
| 8174 | enable_nextaw_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8175 | fi |
| 8176 | |
| 8177 | { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 8178 | $as_echo "$enable_nextaw_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8179 | if test "x$enable_nextaw_check" = "xno"; then |
| 8180 | SKIP_NEXTAW=YES |
| 8181 | fi |
| 8182 | fi |
| 8183 | |
| 8184 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8185 | { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 8186 | $as_echo_n "checking whether or not to look for Carbon... " >&6; } |
| 8187 | # Check whether --enable-carbon-check was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8188 | if test "${enable_carbon_check+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8189 | enableval=$enable_carbon_check; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8190 | else |
| 8191 | enable_carbon_check="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8192 | fi |
| 8193 | |
| 8194 | { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 8195 | $as_echo "$enable_carbon_check" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8196 | if test "x$enable_carbon_check" = "xno"; then |
| 8197 | SKIP_CARBON=YES |
| 8198 | fi |
| 8199 | fi |
| 8200 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8201 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8202 | 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] | 8203 | { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 8204 | $as_echo_n "checking for Carbon GUI... " >&6; } |
| 8205 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8206 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8207 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 8208 | if test "$VIMNAME" = "vim"; then |
| 8209 | VIMNAME=Vim |
| 8210 | fi |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 8211 | |
| 8212 | if test x$prefix = xNONE; then |
| 8213 | prefix=/Applications |
| 8214 | fi |
| 8215 | |
| 8216 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 8217 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8218 | SKIP_GTK=YES; |
| 8219 | SKIP_GTK2=YES; |
| 8220 | SKIP_GNOME=YES; |
| 8221 | SKIP_MOTIF=YES; |
| 8222 | SKIP_ATHENA=YES; |
| 8223 | SKIP_NEXTAW=YES; |
| 8224 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8225 | SKIP_CARBON=YES |
| 8226 | fi |
| 8227 | |
| 8228 | |
| 8229 | |
| 8230 | |
| 8231 | |
| 8232 | |
| 8233 | |
| 8234 | |
| 8235 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8236 | if test -z "$SKIP_GTK"; then |
| 8237 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8238 | { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 8239 | $as_echo_n "checking --with-gtk-prefix argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8240 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8241 | # Check whether --with-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8242 | if test "${with_gtk_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8243 | withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8244 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8245 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8246 | gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8247 | $as_echo "no" >&6; } |
| 8248 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8249 | |
| 8250 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8251 | { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 8252 | $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; } |
| 8253 | |
| 8254 | # Check whether --with-gtk-exec-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8255 | if test "${with_gtk_exec_prefix+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8256 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 8257 | $as_echo "$gtk_config_prefix" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8258 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8259 | gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8260 | $as_echo "no" >&6; } |
| 8261 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8262 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8263 | |
| 8264 | { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 8265 | $as_echo_n "checking --disable-gtktest argument... " >&6; } |
| 8266 | # Check whether --enable-gtktest was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8267 | if test "${enable_gtktest+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8268 | enableval=$enable_gtktest; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8269 | else |
| 8270 | enable_gtktest=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8271 | fi |
| 8272 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8273 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8274 | { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 8275 | $as_echo "gtk test enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8276 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8277 | { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 8278 | $as_echo "gtk test disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8279 | fi |
| 8280 | |
| 8281 | if test "x$gtk_config_prefix" != "x" ; then |
| 8282 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 8283 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 8284 | fi |
| 8285 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 8286 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 8287 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 8288 | fi |
| 8289 | if test "X$GTK_CONFIG" = "X"; then |
| 8290 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 8291 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8292 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8293 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8294 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8295 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8296 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8297 | case $GTK_CONFIG in |
| 8298 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8299 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 8300 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8301 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8303 | for as_dir in $PATH |
| 8304 | do |
| 8305 | IFS=$as_save_IFS |
| 8306 | test -z "$as_dir" && as_dir=. |
| 8307 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8308 | 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] | 8309 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8310 | $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] | 8311 | break 2 |
| 8312 | fi |
| 8313 | done |
| 8314 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8315 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8317 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 8318 | ;; |
| 8319 | esac |
| 8320 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8321 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8322 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8323 | { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 8324 | $as_echo "$GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8325 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8326 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8327 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8328 | fi |
| 8329 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8330 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8331 | if test "X$GTK_CONFIG" = "Xno"; then |
| 8332 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 8333 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8334 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8335 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8336 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8337 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8338 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8339 | case $GTK12_CONFIG in |
| 8340 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8341 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 8342 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8343 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8345 | for as_dir in $PATH |
| 8346 | do |
| 8347 | IFS=$as_save_IFS |
| 8348 | test -z "$as_dir" && as_dir=. |
| 8349 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8350 | 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] | 8351 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8352 | $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] | 8353 | break 2 |
| 8354 | fi |
| 8355 | done |
| 8356 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8357 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8358 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8359 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 8360 | ;; |
| 8361 | esac |
| 8362 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8363 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8364 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8365 | { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 8366 | $as_echo "$GTK12_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8367 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8368 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8369 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8370 | fi |
| 8371 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8372 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8373 | GTK_CONFIG="$GTK12_CONFIG" |
| 8374 | fi |
| 8375 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8376 | { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 8377 | $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8378 | fi |
| 8379 | if test "X$PKG_CONFIG" = "X"; then |
| 8380 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8381 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8382 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8383 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8384 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8385 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8386 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8387 | case $PKG_CONFIG in |
| 8388 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8389 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8390 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8391 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8393 | for as_dir in $PATH |
| 8394 | do |
| 8395 | IFS=$as_save_IFS |
| 8396 | test -z "$as_dir" && as_dir=. |
| 8397 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8398 | 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] | 8399 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8400 | $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] | 8401 | break 2 |
| 8402 | fi |
| 8403 | done |
| 8404 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8405 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8406 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8407 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8408 | ;; |
| 8409 | esac |
| 8410 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8411 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8412 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8413 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 8414 | $as_echo "$PKG_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8415 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8416 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8417 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8418 | fi |
| 8419 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8420 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8421 | fi |
| 8422 | |
| 8423 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 8424 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8425 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8426 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8427 | { |
| 8428 | min_gtk_version=2.2.0 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8429 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8430 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8431 | no_gtk="" |
| 8432 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8433 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8434 | { |
| 8435 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8436 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8437 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8438 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8439 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8440 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8441 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8442 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8443 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8444 | } |
| 8445 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8446 | { |
| 8447 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8448 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8449 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8450 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8451 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8452 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8453 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8454 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8455 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8456 | } |
| 8457 | else |
| 8458 | no_gtk=yes |
| 8459 | fi |
| 8460 | |
| 8461 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8462 | { |
| 8463 | ac_save_CFLAGS="$CFLAGS" |
| 8464 | ac_save_LIBS="$LIBS" |
| 8465 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8466 | LIBS="$LIBS $GTK_LIBS" |
| 8467 | |
| 8468 | rm -f conf.gtktest |
| 8469 | if test "$cross_compiling" = yes; then |
| 8470 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8471 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8472 | cat >conftest.$ac_ext <<_ACEOF |
| 8473 | /* confdefs.h. */ |
| 8474 | _ACEOF |
| 8475 | cat confdefs.h >>conftest.$ac_ext |
| 8476 | cat >>conftest.$ac_ext <<_ACEOF |
| 8477 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8478 | |
| 8479 | #include <gtk/gtk.h> |
| 8480 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8481 | #if STDC_HEADERS |
| 8482 | # include <stdlib.h> |
| 8483 | # include <stddef.h> |
| 8484 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8485 | |
| 8486 | int |
| 8487 | main () |
| 8488 | { |
| 8489 | int major, minor, micro; |
| 8490 | char *tmp_version; |
| 8491 | |
| 8492 | system ("touch conf.gtktest"); |
| 8493 | |
| 8494 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8495 | tmp_version = g_strdup("$min_gtk_version"); |
| 8496 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8497 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8498 | exit(1); |
| 8499 | } |
| 8500 | |
| 8501 | if ((gtk_major_version > major) || |
| 8502 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8503 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8504 | (gtk_micro_version >= micro))) |
| 8505 | { |
| 8506 | return 0; |
| 8507 | } |
| 8508 | return 1; |
| 8509 | } |
| 8510 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8511 | _ACEOF |
| 8512 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8513 | if { (ac_try="$ac_link" |
| 8514 | case "(($ac_try" in |
| 8515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8516 | *) ac_try_echo=$ac_try;; |
| 8517 | esac |
| 8518 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8519 | $as_echo "$ac_try_echo") >&5 |
| 8520 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8521 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8523 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8524 | { (case "(($ac_try" in |
| 8525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8526 | *) ac_try_echo=$ac_try;; |
| 8527 | esac |
| 8528 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8529 | $as_echo "$ac_try_echo") >&5 |
| 8530 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8531 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8533 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8534 | : |
| 8535 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8536 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8537 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8538 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8539 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8540 | ( exit $ac_status ) |
| 8541 | no_gtk=yes |
| 8542 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8543 | rm -rf conftest.dSYM |
| 8544 | 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] | 8545 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8546 | |
| 8547 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8548 | CFLAGS="$ac_save_CFLAGS" |
| 8549 | LIBS="$ac_save_LIBS" |
| 8550 | } |
| 8551 | fi |
| 8552 | if test "x$no_gtk" = x ; then |
| 8553 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8554 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8555 | $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] | 8556 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8557 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8558 | $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] | 8559 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8560 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 8561 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8562 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8563 | else |
| 8564 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8565 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8566 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8567 | GTK_CFLAGS="" |
| 8568 | GTK_LIBS="" |
| 8569 | : |
| 8570 | } |
| 8571 | fi |
| 8572 | } |
| 8573 | else |
| 8574 | GTK_CFLAGS="" |
| 8575 | GTK_LIBS="" |
| 8576 | : |
| 8577 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8578 | |
| 8579 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8580 | rm -f conf.gtktest |
| 8581 | |
| 8582 | if test "x$GTK_CFLAGS" != "x"; then |
| 8583 | SKIP_ATHENA=YES |
| 8584 | SKIP_NEXTAW=YES |
| 8585 | SKIP_MOTIF=YES |
| 8586 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8587 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8588 | fi |
| 8589 | fi |
| 8590 | |
| 8591 | if test "x$GUITYPE" != "xGTK"; then |
| 8592 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8593 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8594 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 8595 | { |
| 8596 | min_gtk_version=1.1.16 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8597 | { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 8598 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8599 | no_gtk="" |
| 8600 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 8601 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 8602 | { |
| 8603 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8604 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8605 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 8606 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8607 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8608 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8609 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8610 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 8611 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8612 | } |
| 8613 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 8614 | { |
| 8615 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 8616 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8617 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 8618 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8619 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 8620 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8621 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 8622 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 8623 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 8624 | } |
| 8625 | else |
| 8626 | no_gtk=yes |
| 8627 | fi |
| 8628 | |
| 8629 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 8630 | { |
| 8631 | ac_save_CFLAGS="$CFLAGS" |
| 8632 | ac_save_LIBS="$LIBS" |
| 8633 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 8634 | LIBS="$LIBS $GTK_LIBS" |
| 8635 | |
| 8636 | rm -f conf.gtktest |
| 8637 | if test "$cross_compiling" = yes; then |
| 8638 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 8639 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8640 | cat >conftest.$ac_ext <<_ACEOF |
| 8641 | /* confdefs.h. */ |
| 8642 | _ACEOF |
| 8643 | cat confdefs.h >>conftest.$ac_ext |
| 8644 | cat >>conftest.$ac_ext <<_ACEOF |
| 8645 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8646 | |
| 8647 | #include <gtk/gtk.h> |
| 8648 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8649 | #if STDC_HEADERS |
| 8650 | # include <stdlib.h> |
| 8651 | # include <stddef.h> |
| 8652 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8653 | |
| 8654 | int |
| 8655 | main () |
| 8656 | { |
| 8657 | int major, minor, micro; |
| 8658 | char *tmp_version; |
| 8659 | |
| 8660 | system ("touch conf.gtktest"); |
| 8661 | |
| 8662 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 8663 | tmp_version = g_strdup("$min_gtk_version"); |
| 8664 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 8665 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 8666 | exit(1); |
| 8667 | } |
| 8668 | |
| 8669 | if ((gtk_major_version > major) || |
| 8670 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 8671 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 8672 | (gtk_micro_version >= micro))) |
| 8673 | { |
| 8674 | return 0; |
| 8675 | } |
| 8676 | return 1; |
| 8677 | } |
| 8678 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8679 | _ACEOF |
| 8680 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8681 | if { (ac_try="$ac_link" |
| 8682 | case "(($ac_try" in |
| 8683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8684 | *) ac_try_echo=$ac_try;; |
| 8685 | esac |
| 8686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8687 | $as_echo "$ac_try_echo") >&5 |
| 8688 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8689 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8691 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8692 | { (case "(($ac_try" in |
| 8693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8694 | *) ac_try_echo=$ac_try;; |
| 8695 | esac |
| 8696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8697 | $as_echo "$ac_try_echo") >&5 |
| 8698 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8699 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8701 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8702 | : |
| 8703 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8704 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8705 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8706 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8707 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8708 | ( exit $ac_status ) |
| 8709 | no_gtk=yes |
| 8710 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8711 | rm -rf conftest.dSYM |
| 8712 | 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] | 8713 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8714 | |
| 8715 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8716 | CFLAGS="$ac_save_CFLAGS" |
| 8717 | LIBS="$ac_save_LIBS" |
| 8718 | } |
| 8719 | fi |
| 8720 | if test "x$no_gtk" = x ; then |
| 8721 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8722 | { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8723 | $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] | 8724 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8725 | { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 8726 | $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] | 8727 | fi |
| 8728 | GTK_LIBNAME="$GTK_LIBS" |
| 8729 | GUI_INC_LOC="$GTK_CFLAGS" |
| 8730 | else |
| 8731 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8732 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8733 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8734 | GTK_CFLAGS="" |
| 8735 | GTK_LIBS="" |
| 8736 | : |
| 8737 | } |
| 8738 | fi |
| 8739 | } |
| 8740 | else |
| 8741 | GTK_CFLAGS="" |
| 8742 | GTK_LIBS="" |
| 8743 | : |
| 8744 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8745 | |
| 8746 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8747 | rm -f conf.gtktest |
| 8748 | |
| 8749 | if test "x$GTK_CFLAGS" != "x"; then |
| 8750 | SKIP_ATHENA=YES |
| 8751 | SKIP_NEXTAW=YES |
| 8752 | SKIP_MOTIF=YES |
| 8753 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8754 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8755 | fi |
| 8756 | fi |
| 8757 | fi |
| 8758 | if test "x$GUITYPE" = "xGTK"; then |
| 8759 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 8760 | -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] | 8761 | { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 8762 | $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] | 8763 | else |
| 8764 | { |
| 8765 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8766 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8767 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8768 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8769 | |
| 8770 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 8771 | || test "0$gtk_minor_version" -ge 2 \ |
| 8772 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8773 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8774 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8775 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8776 | |
| 8777 | fi |
| 8778 | fi |
| 8779 | if test -z "$SKIP_GNOME"; then |
| 8780 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8781 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8782 | |
| 8783 | |
| 8784 | |
| 8785 | |
| 8786 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8787 | # Check whether --with-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8788 | if test "${with_gnome_includes+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8789 | withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8790 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8791 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8792 | |
| 8793 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8794 | |
| 8795 | # Check whether --with-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8796 | if test "${with_gnome_libs+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8797 | withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8798 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8799 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8800 | |
| 8801 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8802 | |
| 8803 | # Check whether --with-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8804 | if test "${with_gnome+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8805 | withval=$with_gnome; if test x$withval = xyes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8806 | want_gnome=yes |
| 8807 | have_gnome=yes |
| 8808 | else |
| 8809 | if test "x$withval" = xno; then |
| 8810 | want_gnome=no |
| 8811 | else |
| 8812 | want_gnome=yes |
| 8813 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 8814 | CFLAGS="$CFLAGS -I$withval/include" |
| 8815 | gnome_prefix=$withval/lib |
| 8816 | fi |
| 8817 | fi |
| 8818 | else |
| 8819 | want_gnome=yes |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8820 | fi |
| 8821 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8822 | |
| 8823 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 8824 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8825 | { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 8826 | $as_echo_n "checking for libgnomeui-2.0... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8827 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8828 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8829 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8830 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 8831 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 8832 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8833 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8834 | { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 8835 | $as_echo_n "checking for FreeBSD... " >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8836 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8837 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8838 | $as_echo "yes" >&6; } |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 8839 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8840 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 8841 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8842 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8843 | $as_echo "no" >&6; } |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8844 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8845 | have_gnome=yes |
| 8846 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8847 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 8848 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8849 | if test "x" = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8850 | { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 8851 | $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] | 8852 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8853 | fi |
| 8854 | fi |
| 8855 | } |
| 8856 | elif test "x$want_gnome" = xyes; then |
| 8857 | { |
| 8858 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 8859 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8860 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8861 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8862 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8863 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8864 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8865 | case $GNOME_CONFIG in |
| 8866 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8867 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 8868 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8869 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8871 | for as_dir in $PATH |
| 8872 | do |
| 8873 | IFS=$as_save_IFS |
| 8874 | test -z "$as_dir" && as_dir=. |
| 8875 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8876 | 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] | 8877 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8878 | $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] | 8879 | break 2 |
| 8880 | fi |
| 8881 | done |
| 8882 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8883 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8884 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8885 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 8886 | ;; |
| 8887 | esac |
| 8888 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8889 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8890 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8891 | { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 8892 | $as_echo "$GNOME_CONFIG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8893 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8894 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8895 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8896 | fi |
| 8897 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8898 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8899 | if test "$GNOME_CONFIG" = "no"; then |
| 8900 | no_gnome_config="yes" |
| 8901 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8902 | { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 8903 | $as_echo_n "checking if $GNOME_CONFIG works... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8904 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8905 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8906 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8907 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 8908 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 8909 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 8910 | have_gnome=yes |
| 8911 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8912 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8913 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8914 | no_gnome_config="yes" |
| 8915 | fi |
| 8916 | fi |
| 8917 | |
| 8918 | if test x$exec_prefix = xNONE; then |
| 8919 | if test x$prefix = xNONE; then |
| 8920 | gnome_prefix=$ac_default_prefix/lib |
| 8921 | else |
| 8922 | gnome_prefix=$prefix/lib |
| 8923 | fi |
| 8924 | else |
| 8925 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 8926 | fi |
| 8927 | |
| 8928 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8929 | { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 8930 | $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8931 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8932 | { $as_echo "$as_me:$LINENO: result: found" >&5 |
| 8933 | $as_echo "found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8934 | echo "loading gnome configuration from" \ |
| 8935 | "$gnome_prefix/gnomeConf.sh" |
| 8936 | . $gnome_prefix/gnomeConf.sh |
| 8937 | have_gnome=yes |
| 8938 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8939 | { $as_echo "$as_me:$LINENO: result: not found" >&5 |
| 8940 | $as_echo "not found" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8941 | if test x = xfail; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8942 | { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 8943 | $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] | 8944 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8945 | fi |
| 8946 | fi |
| 8947 | fi |
| 8948 | } |
| 8949 | fi |
| 8950 | |
| 8951 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8952 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8953 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8954 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8955 | |
| 8956 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 8957 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 8958 | fi |
| 8959 | } |
| 8960 | fi |
| 8961 | } |
| 8962 | fi |
| 8963 | fi |
| 8964 | fi |
| 8965 | |
| 8966 | |
| 8967 | if test -z "$SKIP_MOTIF"; then |
| 8968 | 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" |
| 8969 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 8970 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8971 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 8972 | $as_echo_n "checking for location of Motif GUI includes... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8973 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 8974 | GUI_INC_LOC= |
| 8975 | for try in $gui_includes; do |
| 8976 | if test -f "$try/Xm/Xm.h"; then |
| 8977 | GUI_INC_LOC=$try |
| 8978 | fi |
| 8979 | done |
| 8980 | if test -n "$GUI_INC_LOC"; then |
| 8981 | if test "$GUI_INC_LOC" = /usr/include; then |
| 8982 | GUI_INC_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8983 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 8984 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8985 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8986 | { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 8987 | $as_echo "$GUI_INC_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8988 | fi |
| 8989 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8990 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8991 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8992 | SKIP_MOTIF=YES |
| 8993 | fi |
| 8994 | fi |
| 8995 | |
| 8996 | |
| 8997 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 8998 | { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 8999 | $as_echo_n "checking --with-motif-lib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9000 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9001 | # Check whether --with-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9002 | if test "${with_motif_lib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9003 | withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" |
| 9004 | fi |
| 9005 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9006 | |
| 9007 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9008 | { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 9009 | $as_echo "$MOTIF_LIBNAME" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9010 | GUI_LIB_LOC= |
| 9011 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9012 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9013 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9014 | |
| 9015 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 9016 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9017 | { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 9018 | $as_echo_n "checking for location of Motif GUI libs... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9019 | 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" |
| 9020 | GUI_LIB_LOC= |
| 9021 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 9022 | 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] | 9023 | if test -f "$libtry"; then |
| 9024 | GUI_LIB_LOC=$try |
| 9025 | fi |
| 9026 | done |
| 9027 | done |
| 9028 | if test -n "$GUI_LIB_LOC"; then |
| 9029 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 9030 | GUI_LIB_LOC= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9031 | { $as_echo "$as_me:$LINENO: result: in default path" >&5 |
| 9032 | $as_echo "in default path" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9033 | else |
| 9034 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9035 | { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 9036 | $as_echo "$GUI_LIB_LOC" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9037 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 9038 | uname -r | grep '^5' >/dev/null; then |
| 9039 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 9040 | fi |
| 9041 | fi |
| 9042 | fi |
| 9043 | MOTIF_LIBNAME=-lXm |
| 9044 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9045 | { $as_echo "$as_me:$LINENO: result: <not found>" >&5 |
| 9046 | $as_echo "<not found>" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9047 | SKIP_MOTIF=YES |
| 9048 | fi |
| 9049 | fi |
| 9050 | fi |
| 9051 | |
| 9052 | if test -z "$SKIP_MOTIF"; then |
| 9053 | SKIP_ATHENA=YES |
| 9054 | SKIP_NEXTAW=YES |
| 9055 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9056 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9057 | fi |
| 9058 | |
| 9059 | |
| 9060 | GUI_X_LIBS= |
| 9061 | |
| 9062 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9063 | { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 9064 | $as_echo_n "checking if Athena header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9065 | cflags_save=$CFLAGS |
| 9066 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9067 | cat >conftest.$ac_ext <<_ACEOF |
| 9068 | /* confdefs.h. */ |
| 9069 | _ACEOF |
| 9070 | cat confdefs.h >>conftest.$ac_ext |
| 9071 | cat >>conftest.$ac_ext <<_ACEOF |
| 9072 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9073 | |
| 9074 | #include <X11/Intrinsic.h> |
| 9075 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9076 | int |
| 9077 | main () |
| 9078 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9079 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9080 | ; |
| 9081 | return 0; |
| 9082 | } |
| 9083 | _ACEOF |
| 9084 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9085 | if { (ac_try="$ac_compile" |
| 9086 | case "(($ac_try" in |
| 9087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9088 | *) ac_try_echo=$ac_try;; |
| 9089 | esac |
| 9090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9091 | $as_echo "$ac_try_echo") >&5 |
| 9092 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9093 | ac_status=$? |
| 9094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9095 | rm -f conftest.er1 |
| 9096 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9098 | (exit $ac_status); } && { |
| 9099 | test -z "$ac_c_werror_flag" || |
| 9100 | test ! -s conftest.err |
| 9101 | } && test -s conftest.$ac_objext; then |
| 9102 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9103 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9104 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9105 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9107 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9108 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9109 | $as_echo "no" >&6; }; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9110 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9111 | |
| 9112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9113 | CFLAGS=$cflags_save |
| 9114 | fi |
| 9115 | |
| 9116 | if test -z "$SKIP_ATHENA"; then |
| 9117 | GUITYPE=ATHENA |
| 9118 | fi |
| 9119 | |
| 9120 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9121 | { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 9122 | $as_echo_n "checking if neXtaw header files can be found... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9123 | cflags_save=$CFLAGS |
| 9124 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9125 | cat >conftest.$ac_ext <<_ACEOF |
| 9126 | /* confdefs.h. */ |
| 9127 | _ACEOF |
| 9128 | cat confdefs.h >>conftest.$ac_ext |
| 9129 | cat >>conftest.$ac_ext <<_ACEOF |
| 9130 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9131 | |
| 9132 | #include <X11/Intrinsic.h> |
| 9133 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9134 | int |
| 9135 | main () |
| 9136 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9137 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9138 | ; |
| 9139 | return 0; |
| 9140 | } |
| 9141 | _ACEOF |
| 9142 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9143 | if { (ac_try="$ac_compile" |
| 9144 | case "(($ac_try" in |
| 9145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9146 | *) ac_try_echo=$ac_try;; |
| 9147 | esac |
| 9148 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9149 | $as_echo "$ac_try_echo") >&5 |
| 9150 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9151 | ac_status=$? |
| 9152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9153 | rm -f conftest.er1 |
| 9154 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9156 | (exit $ac_status); } && { |
| 9157 | test -z "$ac_c_werror_flag" || |
| 9158 | test ! -s conftest.err |
| 9159 | } && test -s conftest.$ac_objext; then |
| 9160 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9161 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9162 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9163 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9165 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9166 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9167 | $as_echo "no" >&6; }; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9168 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9169 | |
| 9170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9171 | CFLAGS=$cflags_save |
| 9172 | fi |
| 9173 | |
| 9174 | if test -z "$SKIP_NEXTAW"; then |
| 9175 | GUITYPE=NEXTAW |
| 9176 | fi |
| 9177 | |
| 9178 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9179 | if test -n "$GUI_INC_LOC"; then |
| 9180 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 9181 | fi |
| 9182 | if test -n "$GUI_LIB_LOC"; then |
| 9183 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 9184 | fi |
| 9185 | |
| 9186 | ldflags_save=$LDFLAGS |
| 9187 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9188 | { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 9189 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9190 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9191 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9192 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9193 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9194 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9195 | cat >conftest.$ac_ext <<_ACEOF |
| 9196 | /* confdefs.h. */ |
| 9197 | _ACEOF |
| 9198 | cat confdefs.h >>conftest.$ac_ext |
| 9199 | cat >>conftest.$ac_ext <<_ACEOF |
| 9200 | /* end confdefs.h. */ |
| 9201 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9202 | /* Override any GCC internal prototype to avoid an error. |
| 9203 | Use char because int might match the return type of a GCC |
| 9204 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9205 | #ifdef __cplusplus |
| 9206 | extern "C" |
| 9207 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9208 | char XShapeQueryExtension (); |
| 9209 | int |
| 9210 | main () |
| 9211 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9212 | return XShapeQueryExtension (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9213 | ; |
| 9214 | return 0; |
| 9215 | } |
| 9216 | _ACEOF |
| 9217 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9218 | if { (ac_try="$ac_link" |
| 9219 | case "(($ac_try" in |
| 9220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9221 | *) ac_try_echo=$ac_try;; |
| 9222 | esac |
| 9223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9224 | $as_echo "$ac_try_echo") >&5 |
| 9225 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9226 | ac_status=$? |
| 9227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9228 | rm -f conftest.er1 |
| 9229 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9231 | (exit $ac_status); } && { |
| 9232 | test -z "$ac_c_werror_flag" || |
| 9233 | test ! -s conftest.err |
| 9234 | } && test -s conftest$ac_exeext && { |
| 9235 | test "$cross_compiling" = yes || |
| 9236 | $as_test_x conftest$ac_exeext |
| 9237 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9238 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9239 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9240 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9241 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9242 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9243 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9244 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9245 | |
| 9246 | rm -rf conftest.dSYM |
| 9247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9248 | conftest$ac_exeext conftest.$ac_ext |
| 9249 | LIBS=$ac_check_lib_save_LIBS |
| 9250 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9251 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 9252 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9253 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9254 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9255 | fi |
| 9256 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9257 | { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 9258 | $as_echo_n "checking for wslen in -lw... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9259 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9260 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9261 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9262 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9263 | 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] | 9264 | cat >conftest.$ac_ext <<_ACEOF |
| 9265 | /* confdefs.h. */ |
| 9266 | _ACEOF |
| 9267 | cat confdefs.h >>conftest.$ac_ext |
| 9268 | cat >>conftest.$ac_ext <<_ACEOF |
| 9269 | /* end confdefs.h. */ |
| 9270 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9271 | /* Override any GCC internal prototype to avoid an error. |
| 9272 | Use char because int might match the return type of a GCC |
| 9273 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9274 | #ifdef __cplusplus |
| 9275 | extern "C" |
| 9276 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9277 | char wslen (); |
| 9278 | int |
| 9279 | main () |
| 9280 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9281 | return wslen (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9282 | ; |
| 9283 | return 0; |
| 9284 | } |
| 9285 | _ACEOF |
| 9286 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9287 | if { (ac_try="$ac_link" |
| 9288 | case "(($ac_try" in |
| 9289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9290 | *) ac_try_echo=$ac_try;; |
| 9291 | esac |
| 9292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9293 | $as_echo "$ac_try_echo") >&5 |
| 9294 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9295 | ac_status=$? |
| 9296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9297 | rm -f conftest.er1 |
| 9298 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9300 | (exit $ac_status); } && { |
| 9301 | test -z "$ac_c_werror_flag" || |
| 9302 | test ! -s conftest.err |
| 9303 | } && test -s conftest$ac_exeext && { |
| 9304 | test "$cross_compiling" = yes || |
| 9305 | $as_test_x conftest$ac_exeext |
| 9306 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9307 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9308 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9309 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9310 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9311 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9312 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9313 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9314 | |
| 9315 | rm -rf conftest.dSYM |
| 9316 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9317 | conftest$ac_exeext conftest.$ac_ext |
| 9318 | LIBS=$ac_check_lib_save_LIBS |
| 9319 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9320 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 9321 | $as_echo "$ac_cv_lib_w_wslen" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9322 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9323 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9324 | fi |
| 9325 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9326 | { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 9327 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9328 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9329 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9330 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9331 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9332 | 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] | 9333 | cat >conftest.$ac_ext <<_ACEOF |
| 9334 | /* confdefs.h. */ |
| 9335 | _ACEOF |
| 9336 | cat confdefs.h >>conftest.$ac_ext |
| 9337 | cat >>conftest.$ac_ext <<_ACEOF |
| 9338 | /* end confdefs.h. */ |
| 9339 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9340 | /* Override any GCC internal prototype to avoid an error. |
| 9341 | Use char because int might match the return type of a GCC |
| 9342 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9343 | #ifdef __cplusplus |
| 9344 | extern "C" |
| 9345 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9346 | char dlsym (); |
| 9347 | int |
| 9348 | main () |
| 9349 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9350 | return dlsym (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9351 | ; |
| 9352 | return 0; |
| 9353 | } |
| 9354 | _ACEOF |
| 9355 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9356 | if { (ac_try="$ac_link" |
| 9357 | case "(($ac_try" in |
| 9358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9359 | *) ac_try_echo=$ac_try;; |
| 9360 | esac |
| 9361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9362 | $as_echo "$ac_try_echo") >&5 |
| 9363 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9364 | ac_status=$? |
| 9365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9366 | rm -f conftest.er1 |
| 9367 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9369 | (exit $ac_status); } && { |
| 9370 | test -z "$ac_c_werror_flag" || |
| 9371 | test ! -s conftest.err |
| 9372 | } && test -s conftest$ac_exeext && { |
| 9373 | test "$cross_compiling" = yes || |
| 9374 | $as_test_x conftest$ac_exeext |
| 9375 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9376 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9377 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9378 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9379 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9380 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9381 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9382 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9383 | |
| 9384 | rm -rf conftest.dSYM |
| 9385 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9386 | conftest$ac_exeext conftest.$ac_ext |
| 9387 | LIBS=$ac_check_lib_save_LIBS |
| 9388 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9389 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 9390 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9391 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9392 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9393 | fi |
| 9394 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9395 | { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 9396 | $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9397 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9398 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9399 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9400 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9401 | 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] | 9402 | cat >conftest.$ac_ext <<_ACEOF |
| 9403 | /* confdefs.h. */ |
| 9404 | _ACEOF |
| 9405 | cat confdefs.h >>conftest.$ac_ext |
| 9406 | cat >>conftest.$ac_ext <<_ACEOF |
| 9407 | /* end confdefs.h. */ |
| 9408 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9409 | /* Override any GCC internal prototype to avoid an error. |
| 9410 | Use char because int might match the return type of a GCC |
| 9411 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9412 | #ifdef __cplusplus |
| 9413 | extern "C" |
| 9414 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9415 | char XmuCreateStippledPixmap (); |
| 9416 | int |
| 9417 | main () |
| 9418 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9419 | return XmuCreateStippledPixmap (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9420 | ; |
| 9421 | return 0; |
| 9422 | } |
| 9423 | _ACEOF |
| 9424 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9425 | if { (ac_try="$ac_link" |
| 9426 | case "(($ac_try" in |
| 9427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9428 | *) ac_try_echo=$ac_try;; |
| 9429 | esac |
| 9430 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9431 | $as_echo "$ac_try_echo") >&5 |
| 9432 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9433 | ac_status=$? |
| 9434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9435 | rm -f conftest.er1 |
| 9436 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9437 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9438 | (exit $ac_status); } && { |
| 9439 | test -z "$ac_c_werror_flag" || |
| 9440 | test ! -s conftest.err |
| 9441 | } && test -s conftest$ac_exeext && { |
| 9442 | test "$cross_compiling" = yes || |
| 9443 | $as_test_x conftest$ac_exeext |
| 9444 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9445 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9446 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9447 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9448 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9449 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9450 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9451 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9452 | |
| 9453 | rm -rf conftest.dSYM |
| 9454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9455 | conftest$ac_exeext conftest.$ac_ext |
| 9456 | LIBS=$ac_check_lib_save_LIBS |
| 9457 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9458 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 9459 | $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9460 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9461 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9462 | fi |
| 9463 | |
| 9464 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9465 | { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 9466 | $as_echo_n "checking for XpEndJob in -lXp... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9467 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9468 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9469 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9470 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9471 | 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] | 9472 | cat >conftest.$ac_ext <<_ACEOF |
| 9473 | /* confdefs.h. */ |
| 9474 | _ACEOF |
| 9475 | cat confdefs.h >>conftest.$ac_ext |
| 9476 | cat >>conftest.$ac_ext <<_ACEOF |
| 9477 | /* end confdefs.h. */ |
| 9478 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9479 | /* Override any GCC internal prototype to avoid an error. |
| 9480 | Use char because int might match the return type of a GCC |
| 9481 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9482 | #ifdef __cplusplus |
| 9483 | extern "C" |
| 9484 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9485 | char XpEndJob (); |
| 9486 | int |
| 9487 | main () |
| 9488 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9489 | return XpEndJob (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9490 | ; |
| 9491 | return 0; |
| 9492 | } |
| 9493 | _ACEOF |
| 9494 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9495 | if { (ac_try="$ac_link" |
| 9496 | case "(($ac_try" in |
| 9497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9498 | *) ac_try_echo=$ac_try;; |
| 9499 | esac |
| 9500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9501 | $as_echo "$ac_try_echo") >&5 |
| 9502 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9503 | ac_status=$? |
| 9504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9505 | rm -f conftest.er1 |
| 9506 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9508 | (exit $ac_status); } && { |
| 9509 | test -z "$ac_c_werror_flag" || |
| 9510 | test ! -s conftest.err |
| 9511 | } && test -s conftest$ac_exeext && { |
| 9512 | test "$cross_compiling" = yes || |
| 9513 | $as_test_x conftest$ac_exeext |
| 9514 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9515 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9516 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9517 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9518 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9519 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9520 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9521 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9522 | |
| 9523 | rm -rf conftest.dSYM |
| 9524 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9525 | conftest$ac_exeext conftest.$ac_ext |
| 9526 | LIBS=$ac_check_lib_save_LIBS |
| 9527 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9528 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 9529 | $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9530 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9531 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9532 | fi |
| 9533 | |
| 9534 | fi |
| 9535 | LDFLAGS=$ldflags_save |
| 9536 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9537 | { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 9538 | $as_echo_n "checking for extra X11 defines... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9539 | NARROW_PROTO= |
| 9540 | rm -fr conftestdir |
| 9541 | if mkdir conftestdir; then |
| 9542 | cd conftestdir |
| 9543 | cat > Imakefile <<'EOF' |
| 9544 | acfindx: |
| 9545 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 9546 | EOF |
| 9547 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9548 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 9549 | fi |
| 9550 | cd .. |
| 9551 | rm -fr conftestdir |
| 9552 | fi |
| 9553 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9554 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9555 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9556 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9557 | { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 9558 | $as_echo "$NARROW_PROTO" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9559 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9560 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9561 | fi |
| 9562 | |
| 9563 | if test "$enable_xsmp" = "yes"; then |
| 9564 | cppflags_save=$CPPFLAGS |
| 9565 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9566 | |
| 9567 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9568 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9569 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9570 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9571 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9572 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9573 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9574 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9575 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9576 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9577 | $as_echo "$as_val"'` |
| 9578 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9579 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9580 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9581 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9582 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9583 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9584 | cat >conftest.$ac_ext <<_ACEOF |
| 9585 | /* confdefs.h. */ |
| 9586 | _ACEOF |
| 9587 | cat confdefs.h >>conftest.$ac_ext |
| 9588 | cat >>conftest.$ac_ext <<_ACEOF |
| 9589 | /* end confdefs.h. */ |
| 9590 | $ac_includes_default |
| 9591 | #include <$ac_header> |
| 9592 | _ACEOF |
| 9593 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9594 | if { (ac_try="$ac_compile" |
| 9595 | case "(($ac_try" in |
| 9596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9597 | *) ac_try_echo=$ac_try;; |
| 9598 | esac |
| 9599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9600 | $as_echo "$ac_try_echo") >&5 |
| 9601 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9602 | ac_status=$? |
| 9603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9604 | rm -f conftest.er1 |
| 9605 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9607 | (exit $ac_status); } && { |
| 9608 | test -z "$ac_c_werror_flag" || |
| 9609 | test ! -s conftest.err |
| 9610 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9611 | ac_header_compiler=yes |
| 9612 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9613 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9615 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9616 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9617 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9618 | |
| 9619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9620 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9621 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9622 | |
| 9623 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9624 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9625 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9626 | cat >conftest.$ac_ext <<_ACEOF |
| 9627 | /* confdefs.h. */ |
| 9628 | _ACEOF |
| 9629 | cat confdefs.h >>conftest.$ac_ext |
| 9630 | cat >>conftest.$ac_ext <<_ACEOF |
| 9631 | /* end confdefs.h. */ |
| 9632 | #include <$ac_header> |
| 9633 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9634 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9635 | case "(($ac_try" in |
| 9636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9637 | *) ac_try_echo=$ac_try;; |
| 9638 | esac |
| 9639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9640 | $as_echo "$ac_try_echo") >&5 |
| 9641 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9642 | ac_status=$? |
| 9643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9644 | rm -f conftest.er1 |
| 9645 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9647 | (exit $ac_status); } >/dev/null && { |
| 9648 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9649 | test ! -s conftest.err |
| 9650 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9651 | ac_header_preproc=yes |
| 9652 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9653 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9655 | |
| 9656 | ac_header_preproc=no |
| 9657 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9658 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9659 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9660 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9661 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9662 | |
| 9663 | # So? What about this header? |
| 9664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9665 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9666 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9667 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9668 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9669 | $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] | 9670 | ac_header_preproc=yes |
| 9671 | ;; |
| 9672 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9673 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9674 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9675 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9676 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9678 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9680 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9682 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9684 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9685 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9686 | ;; |
| 9687 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9688 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9689 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9690 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9691 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9692 | else |
| 9693 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9694 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9695 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9696 | $as_echo "$as_val"'` |
| 9697 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9698 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9699 | |
| 9700 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9701 | if test `eval 'as_val=${'$as_ac_Header'} |
| 9702 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9703 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9704 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9705 | _ACEOF |
| 9706 | |
| 9707 | fi |
| 9708 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9709 | done |
| 9710 | |
| 9711 | CPPFLAGS=$cppflags_save |
| 9712 | fi |
| 9713 | |
| 9714 | |
| 9715 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 9716 | cppflags_save=$CPPFLAGS |
| 9717 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9718 | |
| 9719 | |
| 9720 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9721 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9722 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9723 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9724 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9725 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9726 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9727 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9728 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9729 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9730 | $as_echo "$as_val"'` |
| 9731 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9732 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9733 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9734 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9735 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9736 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9737 | cat >conftest.$ac_ext <<_ACEOF |
| 9738 | /* confdefs.h. */ |
| 9739 | _ACEOF |
| 9740 | cat confdefs.h >>conftest.$ac_ext |
| 9741 | cat >>conftest.$ac_ext <<_ACEOF |
| 9742 | /* end confdefs.h. */ |
| 9743 | $ac_includes_default |
| 9744 | #include <$ac_header> |
| 9745 | _ACEOF |
| 9746 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9747 | if { (ac_try="$ac_compile" |
| 9748 | case "(($ac_try" in |
| 9749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9750 | *) ac_try_echo=$ac_try;; |
| 9751 | esac |
| 9752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9753 | $as_echo "$ac_try_echo") >&5 |
| 9754 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9755 | ac_status=$? |
| 9756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9757 | rm -f conftest.er1 |
| 9758 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9760 | (exit $ac_status); } && { |
| 9761 | test -z "$ac_c_werror_flag" || |
| 9762 | test ! -s conftest.err |
| 9763 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9764 | ac_header_compiler=yes |
| 9765 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9766 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9768 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9769 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9770 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9771 | |
| 9772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9773 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9774 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9775 | |
| 9776 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9777 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9778 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9779 | cat >conftest.$ac_ext <<_ACEOF |
| 9780 | /* confdefs.h. */ |
| 9781 | _ACEOF |
| 9782 | cat confdefs.h >>conftest.$ac_ext |
| 9783 | cat >>conftest.$ac_ext <<_ACEOF |
| 9784 | /* end confdefs.h. */ |
| 9785 | #include <$ac_header> |
| 9786 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9787 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9788 | case "(($ac_try" in |
| 9789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9790 | *) ac_try_echo=$ac_try;; |
| 9791 | esac |
| 9792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9793 | $as_echo "$ac_try_echo") >&5 |
| 9794 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9795 | ac_status=$? |
| 9796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9797 | rm -f conftest.er1 |
| 9798 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9800 | (exit $ac_status); } >/dev/null && { |
| 9801 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9802 | test ! -s conftest.err |
| 9803 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9804 | ac_header_preproc=yes |
| 9805 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9806 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9808 | |
| 9809 | ac_header_preproc=no |
| 9810 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9811 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9812 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9813 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9814 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9815 | |
| 9816 | # So? What about this header? |
| 9817 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9818 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9819 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9820 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9821 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9822 | $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] | 9823 | ac_header_preproc=yes |
| 9824 | ;; |
| 9825 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9826 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9827 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9828 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9829 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9830 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9831 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9833 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9835 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9837 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9838 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9839 | ;; |
| 9840 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9841 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9842 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9843 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9844 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9845 | else |
| 9846 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9847 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9848 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9849 | $as_echo "$as_val"'` |
| 9850 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9851 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9852 | |
| 9853 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9854 | if test `eval 'as_val=${'$as_ac_Header'} |
| 9855 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9856 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9857 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9858 | _ACEOF |
| 9859 | |
| 9860 | fi |
| 9861 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9862 | done |
| 9863 | |
| 9864 | |
| 9865 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9866 | { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 9867 | $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9868 | cat >conftest.$ac_ext <<_ACEOF |
| 9869 | /* confdefs.h. */ |
| 9870 | _ACEOF |
| 9871 | cat confdefs.h >>conftest.$ac_ext |
| 9872 | cat >>conftest.$ac_ext <<_ACEOF |
| 9873 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9874 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9875 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9876 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9877 | $EGREP "XIMText" >/dev/null 2>&1; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9878 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9879 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9880 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9881 | { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 9882 | $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9883 | fi |
| 9884 | rm -f conftest* |
| 9885 | |
| 9886 | fi |
| 9887 | CPPFLAGS=$cppflags_save |
| 9888 | |
| 9889 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 9890 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9891 | { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 9892 | $as_echo "X GUI selected; xim has been enabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9893 | enable_xim="yes" |
| 9894 | fi |
| 9895 | fi |
| 9896 | |
| 9897 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9898 | cppflags_save=$CPPFLAGS |
| 9899 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9900 | { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 9901 | $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9902 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9903 | /* confdefs.h. */ |
| 9904 | _ACEOF |
| 9905 | cat confdefs.h >>conftest.$ac_ext |
| 9906 | cat >>conftest.$ac_ext <<_ACEOF |
| 9907 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9908 | |
| 9909 | #include <X11/Intrinsic.h> |
| 9910 | #include <X11/Xmu/Editres.h> |
| 9911 | int |
| 9912 | main () |
| 9913 | { |
| 9914 | int i; i = 0; |
| 9915 | ; |
| 9916 | return 0; |
| 9917 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9918 | _ACEOF |
| 9919 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9920 | if { (ac_try="$ac_compile" |
| 9921 | case "(($ac_try" in |
| 9922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9923 | *) ac_try_echo=$ac_try;; |
| 9924 | esac |
| 9925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9926 | $as_echo "$ac_try_echo") >&5 |
| 9927 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9928 | ac_status=$? |
| 9929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9930 | rm -f conftest.er1 |
| 9931 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9933 | (exit $ac_status); } && { |
| 9934 | test -z "$ac_c_werror_flag" || |
| 9935 | test ! -s conftest.err |
| 9936 | } && test -s conftest.$ac_objext; then |
| 9937 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 9938 | $as_echo "yes" >&6; } |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9939 | cat >>confdefs.h <<\_ACEOF |
| 9940 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 9941 | _ACEOF |
| 9942 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9943 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9944 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9946 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9947 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9948 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9949 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9950 | |
| 9951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9952 | CPPFLAGS=$cppflags_save |
| 9953 | fi |
| 9954 | |
| 9955 | if test -z "$SKIP_MOTIF"; then |
| 9956 | cppflags_save=$CPPFLAGS |
| 9957 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9958 | |
| 9959 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9960 | |
| 9961 | |
| 9962 | |
| 9963 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 9964 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9965 | 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] | 9966 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9967 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9968 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9969 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9970 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9971 | $as_echo_n "checking for $ac_header... " >&6; } |
| 9972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9973 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9974 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9975 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9976 | $as_echo "$as_val"'` |
| 9977 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9978 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9979 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9980 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9981 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9982 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9983 | cat >conftest.$ac_ext <<_ACEOF |
| 9984 | /* confdefs.h. */ |
| 9985 | _ACEOF |
| 9986 | cat confdefs.h >>conftest.$ac_ext |
| 9987 | cat >>conftest.$ac_ext <<_ACEOF |
| 9988 | /* end confdefs.h. */ |
| 9989 | $ac_includes_default |
| 9990 | #include <$ac_header> |
| 9991 | _ACEOF |
| 9992 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 9993 | if { (ac_try="$ac_compile" |
| 9994 | case "(($ac_try" in |
| 9995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9996 | *) ac_try_echo=$ac_try;; |
| 9997 | esac |
| 9998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9999 | $as_echo "$ac_try_echo") >&5 |
| 10000 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10001 | ac_status=$? |
| 10002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10003 | rm -f conftest.er1 |
| 10004 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10006 | (exit $ac_status); } && { |
| 10007 | test -z "$ac_c_werror_flag" || |
| 10008 | test ! -s conftest.err |
| 10009 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10010 | ac_header_compiler=yes |
| 10011 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10012 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10014 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10015 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10016 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10017 | |
| 10018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10019 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10020 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10021 | |
| 10022 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10023 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10024 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10025 | cat >conftest.$ac_ext <<_ACEOF |
| 10026 | /* confdefs.h. */ |
| 10027 | _ACEOF |
| 10028 | cat confdefs.h >>conftest.$ac_ext |
| 10029 | cat >>conftest.$ac_ext <<_ACEOF |
| 10030 | /* end confdefs.h. */ |
| 10031 | #include <$ac_header> |
| 10032 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10033 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10034 | case "(($ac_try" in |
| 10035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10036 | *) ac_try_echo=$ac_try;; |
| 10037 | esac |
| 10038 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10039 | $as_echo "$ac_try_echo") >&5 |
| 10040 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10041 | ac_status=$? |
| 10042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10043 | rm -f conftest.er1 |
| 10044 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10045 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10046 | (exit $ac_status); } >/dev/null && { |
| 10047 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10048 | test ! -s conftest.err |
| 10049 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10050 | ac_header_preproc=yes |
| 10051 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10052 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10054 | |
| 10055 | ac_header_preproc=no |
| 10056 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10057 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10058 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10059 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10060 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10061 | |
| 10062 | # So? What about this header? |
| 10063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10064 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10065 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10066 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10067 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10068 | $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] | 10069 | ac_header_preproc=yes |
| 10070 | ;; |
| 10071 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10072 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10073 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10074 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10075 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10076 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10077 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10078 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10079 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10080 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10081 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10083 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10084 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10085 | ;; |
| 10086 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10087 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10088 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10089 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10090 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10091 | else |
| 10092 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10093 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10094 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10095 | $as_echo "$as_val"'` |
| 10096 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10097 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10098 | |
| 10099 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10100 | if test `eval 'as_val=${'$as_ac_Header'} |
| 10101 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10102 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10103 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10104 | _ACEOF |
| 10105 | |
| 10106 | fi |
| 10107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10108 | done |
| 10109 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10110 | |
| 10111 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10112 | { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 10113 | $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10114 | cat >conftest.$ac_ext <<_ACEOF |
| 10115 | /* confdefs.h. */ |
| 10116 | _ACEOF |
| 10117 | cat confdefs.h >>conftest.$ac_ext |
| 10118 | cat >>conftest.$ac_ext <<_ACEOF |
| 10119 | /* end confdefs.h. */ |
| 10120 | #include <Xm/XpmP.h> |
| 10121 | int |
| 10122 | main () |
| 10123 | { |
| 10124 | XpmAttributes_21 attr; |
| 10125 | ; |
| 10126 | return 0; |
| 10127 | } |
| 10128 | _ACEOF |
| 10129 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10130 | if { (ac_try="$ac_compile" |
| 10131 | case "(($ac_try" in |
| 10132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10133 | *) ac_try_echo=$ac_try;; |
| 10134 | esac |
| 10135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10136 | $as_echo "$ac_try_echo") >&5 |
| 10137 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10138 | ac_status=$? |
| 10139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10140 | rm -f conftest.er1 |
| 10141 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10143 | (exit $ac_status); } && { |
| 10144 | test -z "$ac_c_werror_flag" || |
| 10145 | test ! -s conftest.err |
| 10146 | } && test -s conftest.$ac_objext; then |
| 10147 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10148 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10149 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 10150 | _ACEOF |
| 10151 | |
| 10152 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10153 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10155 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10156 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10157 | $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10158 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 10159 | _ACEOF |
| 10160 | |
| 10161 | |
| 10162 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10163 | |
| 10164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10165 | else |
| 10166 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 10167 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 10168 | _ACEOF |
| 10169 | |
| 10170 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10171 | CPPFLAGS=$cppflags_save |
| 10172 | fi |
| 10173 | |
| 10174 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10175 | { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 10176 | $as_echo "no GUI selected; xim has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10177 | enable_xim="no" |
| 10178 | fi |
| 10179 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10180 | { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 10181 | $as_echo "no GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10182 | enable_fontset="no" |
| 10183 | fi |
| 10184 | 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] | 10185 | { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 10186 | $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10187 | enable_fontset="no" |
| 10188 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10189 | |
| 10190 | if test -z "$SKIP_PHOTON"; then |
| 10191 | GUITYPE=PHOTONGUI |
| 10192 | fi |
| 10193 | |
| 10194 | |
| 10195 | |
| 10196 | |
| 10197 | |
| 10198 | |
| 10199 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10200 | { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 10201 | $as_echo "$as_me: error: cannot use workshop without Motif" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10202 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10203 | fi |
| 10204 | |
| 10205 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10206 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10207 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10208 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10209 | |
| 10210 | fi |
| 10211 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10212 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10213 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10214 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10215 | |
| 10216 | fi |
| 10217 | |
| 10218 | |
| 10219 | |
| 10220 | |
| 10221 | if test "$enable_hangulinput" = "yes"; then |
| 10222 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10223 | { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 10224 | $as_echo "no GUI selected; hangul input has been disabled" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10225 | enable_hangulinput=no |
| 10226 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10227 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10228 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10229 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10230 | |
| 10231 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10232 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10233 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10234 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10235 | fi |
| 10236 | fi |
| 10237 | |
| 10238 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10239 | { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5 |
| 10240 | $as_echo_n "checking whether toupper is broken... " >&6; } |
| 10241 | if test "${vim_cv_toupper_broken+set}" = set; then |
| 10242 | $as_echo_n "(cached) " >&6 |
| 10243 | else |
| 10244 | |
| 10245 | if test "$cross_compiling" = yes; then |
| 10246 | |
| 10247 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5 |
| 10248 | $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] | 10249 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10250 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10251 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10252 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10253 | |
| 10254 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10255 | #include <ctype.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10256 | #if STDC_HEADERS |
| 10257 | # include <stdlib.h> |
| 10258 | # include <stddef.h> |
| 10259 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10260 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10261 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10262 | _ACEOF |
| 10263 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10264 | if { (ac_try="$ac_link" |
| 10265 | case "(($ac_try" in |
| 10266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10267 | *) ac_try_echo=$ac_try;; |
| 10268 | esac |
| 10269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10270 | $as_echo "$ac_try_echo") >&5 |
| 10271 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10272 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10275 | { (case "(($ac_try" in |
| 10276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10277 | *) ac_try_echo=$ac_try;; |
| 10278 | esac |
| 10279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10280 | $as_echo "$ac_try_echo") >&5 |
| 10281 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10282 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10284 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10285 | |
| 10286 | vim_cv_toupper_broken=yes |
| 10287 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10288 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10289 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 10290 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10292 | |
| 10293 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10294 | |
| 10295 | vim_cv_toupper_broken=no |
| 10296 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10297 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10298 | rm -rf conftest.dSYM |
| 10299 | 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] | 10300 | fi |
| 10301 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10302 | |
| 10303 | fi |
| 10304 | { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5 |
| 10305 | $as_echo "$vim_cv_toupper_broken" >&6; } |
| 10306 | |
| 10307 | if test "x$vim_cv_toupper_broken" = "xyes" ; then |
| 10308 | cat >>confdefs.h <<\_ACEOF |
| 10309 | #define BROKEN_TOUPPER 1 |
| 10310 | _ACEOF |
| 10311 | |
| 10312 | fi |
| 10313 | |
| 10314 | { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 10315 | $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10316 | cat >conftest.$ac_ext <<_ACEOF |
| 10317 | /* confdefs.h. */ |
| 10318 | _ACEOF |
| 10319 | cat confdefs.h >>conftest.$ac_ext |
| 10320 | cat >>conftest.$ac_ext <<_ACEOF |
| 10321 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10322 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10323 | int |
| 10324 | main () |
| 10325 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10326 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10327 | ; |
| 10328 | return 0; |
| 10329 | } |
| 10330 | _ACEOF |
| 10331 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10332 | if { (ac_try="$ac_compile" |
| 10333 | case "(($ac_try" in |
| 10334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10335 | *) ac_try_echo=$ac_try;; |
| 10336 | esac |
| 10337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10338 | $as_echo "$ac_try_echo") >&5 |
| 10339 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10340 | ac_status=$? |
| 10341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10342 | rm -f conftest.er1 |
| 10343 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10345 | (exit $ac_status); } && { |
| 10346 | test -z "$ac_c_werror_flag" || |
| 10347 | test ! -s conftest.err |
| 10348 | } && test -s conftest.$ac_objext; then |
| 10349 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10350 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10351 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10352 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10353 | |
| 10354 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10355 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10357 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10358 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10359 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10360 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10361 | |
| 10362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10363 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10364 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10365 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10366 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10367 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10368 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10369 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10370 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10371 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10372 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10373 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10374 | { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 10375 | $as_echo_n "checking elf.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10376 | cat >conftest.$ac_ext <<_ACEOF |
| 10377 | /* confdefs.h. */ |
| 10378 | _ACEOF |
| 10379 | cat confdefs.h >>conftest.$ac_ext |
| 10380 | cat >>conftest.$ac_ext <<_ACEOF |
| 10381 | /* end confdefs.h. */ |
| 10382 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10383 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10384 | _ACEOF |
| 10385 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10386 | if { (ac_try="$ac_compile" |
| 10387 | case "(($ac_try" in |
| 10388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10389 | *) ac_try_echo=$ac_try;; |
| 10390 | esac |
| 10391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10392 | $as_echo "$ac_try_echo") >&5 |
| 10393 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10394 | ac_status=$? |
| 10395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10396 | rm -f conftest.er1 |
| 10397 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10399 | (exit $ac_status); } && { |
| 10400 | test -z "$ac_c_werror_flag" || |
| 10401 | test ! -s conftest.err |
| 10402 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10403 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10404 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10405 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10407 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10408 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10409 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10410 | |
| 10411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10412 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10413 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10414 | |
| 10415 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10416 | { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 10417 | $as_echo_n "checking elf.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10418 | cat >conftest.$ac_ext <<_ACEOF |
| 10419 | /* confdefs.h. */ |
| 10420 | _ACEOF |
| 10421 | cat confdefs.h >>conftest.$ac_ext |
| 10422 | cat >>conftest.$ac_ext <<_ACEOF |
| 10423 | /* end confdefs.h. */ |
| 10424 | #include <elf.h> |
| 10425 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10426 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10427 | case "(($ac_try" in |
| 10428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10429 | *) ac_try_echo=$ac_try;; |
| 10430 | esac |
| 10431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10432 | $as_echo "$ac_try_echo") >&5 |
| 10433 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10434 | ac_status=$? |
| 10435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10436 | rm -f conftest.er1 |
| 10437 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10439 | (exit $ac_status); } >/dev/null && { |
| 10440 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10441 | test ! -s conftest.err |
| 10442 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10443 | ac_header_preproc=yes |
| 10444 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10445 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10447 | |
| 10448 | ac_header_preproc=no |
| 10449 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10450 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10451 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10452 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10453 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10454 | |
| 10455 | # So? What about this header? |
| 10456 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10457 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10458 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10459 | $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10460 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 10461 | $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] | 10462 | ac_header_preproc=yes |
| 10463 | ;; |
| 10464 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10465 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 10466 | $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 10467 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 10468 | $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 10469 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 10470 | $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 10471 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10472 | $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10473 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 10474 | $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 10475 | { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 10476 | $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 10477 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10478 | ;; |
| 10479 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10480 | { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 10481 | $as_echo_n "checking for elf.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10482 | if test "${ac_cv_header_elf_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10483 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10484 | else |
| 10485 | ac_cv_header_elf_h=$ac_header_preproc |
| 10486 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10487 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 10488 | $as_echo "$ac_cv_header_elf_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10489 | |
| 10490 | fi |
| 10491 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10492 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10493 | fi |
| 10494 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10495 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10496 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10497 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10498 | { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 10499 | $as_echo_n "checking for main in -lelf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10500 | if test "${ac_cv_lib_elf_main+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10501 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10502 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10503 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10504 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10505 | cat >conftest.$ac_ext <<_ACEOF |
| 10506 | /* confdefs.h. */ |
| 10507 | _ACEOF |
| 10508 | cat confdefs.h >>conftest.$ac_ext |
| 10509 | cat >>conftest.$ac_ext <<_ACEOF |
| 10510 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10511 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10512 | |
| 10513 | int |
| 10514 | main () |
| 10515 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10516 | return main (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10517 | ; |
| 10518 | return 0; |
| 10519 | } |
| 10520 | _ACEOF |
| 10521 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10522 | if { (ac_try="$ac_link" |
| 10523 | case "(($ac_try" in |
| 10524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10525 | *) ac_try_echo=$ac_try;; |
| 10526 | esac |
| 10527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10528 | $as_echo "$ac_try_echo") >&5 |
| 10529 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10530 | ac_status=$? |
| 10531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10532 | rm -f conftest.er1 |
| 10533 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10535 | (exit $ac_status); } && { |
| 10536 | test -z "$ac_c_werror_flag" || |
| 10537 | test ! -s conftest.err |
| 10538 | } && test -s conftest$ac_exeext && { |
| 10539 | test "$cross_compiling" = yes || |
| 10540 | $as_test_x conftest$ac_exeext |
| 10541 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10542 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10543 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10544 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10545 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10546 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10547 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10548 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10549 | |
| 10550 | rm -rf conftest.dSYM |
| 10551 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10552 | conftest$ac_exeext conftest.$ac_ext |
| 10553 | LIBS=$ac_check_lib_save_LIBS |
| 10554 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10555 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 10556 | $as_echo "$ac_cv_lib_elf_main" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10557 | if test $ac_cv_lib_elf_main = yes; then |
| 10558 | cat >>confdefs.h <<_ACEOF |
| 10559 | #define HAVE_LIBELF 1 |
| 10560 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10561 | |
| 10562 | LIBS="-lelf $LIBS" |
| 10563 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10564 | fi |
| 10565 | |
| 10566 | fi |
| 10567 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10573 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10574 | 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] | 10575 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 10576 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 10577 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 10578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10579 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10580 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10581 | cat >conftest.$ac_ext <<_ACEOF |
| 10582 | /* confdefs.h. */ |
| 10583 | _ACEOF |
| 10584 | cat confdefs.h >>conftest.$ac_ext |
| 10585 | cat >>conftest.$ac_ext <<_ACEOF |
| 10586 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10587 | #include <sys/types.h> |
| 10588 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10589 | |
| 10590 | int |
| 10591 | main () |
| 10592 | { |
| 10593 | if ((DIR *) 0) |
| 10594 | return 0; |
| 10595 | ; |
| 10596 | return 0; |
| 10597 | } |
| 10598 | _ACEOF |
| 10599 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10600 | if { (ac_try="$ac_compile" |
| 10601 | case "(($ac_try" in |
| 10602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10603 | *) ac_try_echo=$ac_try;; |
| 10604 | esac |
| 10605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10606 | $as_echo "$ac_try_echo") >&5 |
| 10607 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10608 | ac_status=$? |
| 10609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10610 | rm -f conftest.er1 |
| 10611 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10613 | (exit $ac_status); } && { |
| 10614 | test -z "$ac_c_werror_flag" || |
| 10615 | test ! -s conftest.err |
| 10616 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10617 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10618 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10619 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10621 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10622 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10623 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10624 | |
| 10625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10626 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10627 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10628 | $as_echo "$as_val"'` |
| 10629 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10630 | $as_echo "$ac_res" >&6; } |
| 10631 | if test `eval 'as_val=${'$as_ac_Header'} |
| 10632 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10633 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10634 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10635 | _ACEOF |
| 10636 | |
| 10637 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10638 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10639 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10640 | done |
| 10641 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 10642 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10643 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10644 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10645 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10646 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10647 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10648 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10649 | cat >conftest.$ac_ext <<_ACEOF |
| 10650 | /* confdefs.h. */ |
| 10651 | _ACEOF |
| 10652 | cat confdefs.h >>conftest.$ac_ext |
| 10653 | cat >>conftest.$ac_ext <<_ACEOF |
| 10654 | /* end confdefs.h. */ |
| 10655 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10656 | /* Override any GCC internal prototype to avoid an error. |
| 10657 | Use char because int might match the return type of a GCC |
| 10658 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10659 | #ifdef __cplusplus |
| 10660 | extern "C" |
| 10661 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10662 | char opendir (); |
| 10663 | int |
| 10664 | main () |
| 10665 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10666 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10667 | ; |
| 10668 | return 0; |
| 10669 | } |
| 10670 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10671 | for ac_lib in '' dir; do |
| 10672 | if test -z "$ac_lib"; then |
| 10673 | ac_res="none required" |
| 10674 | else |
| 10675 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10676 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10677 | fi |
| 10678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10679 | if { (ac_try="$ac_link" |
| 10680 | case "(($ac_try" in |
| 10681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10682 | *) ac_try_echo=$ac_try;; |
| 10683 | esac |
| 10684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10685 | $as_echo "$ac_try_echo") >&5 |
| 10686 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10687 | ac_status=$? |
| 10688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10689 | rm -f conftest.er1 |
| 10690 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10692 | (exit $ac_status); } && { |
| 10693 | test -z "$ac_c_werror_flag" || |
| 10694 | test ! -s conftest.err |
| 10695 | } && test -s conftest$ac_exeext && { |
| 10696 | test "$cross_compiling" = yes || |
| 10697 | $as_test_x conftest$ac_exeext |
| 10698 | }; then |
| 10699 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10700 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10701 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10702 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10703 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10704 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10705 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10706 | |
| 10707 | rm -rf conftest.dSYM |
| 10708 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10709 | conftest$ac_exeext |
| 10710 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10711 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10712 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10713 | done |
| 10714 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10715 | : |
| 10716 | else |
| 10717 | ac_cv_search_opendir=no |
| 10718 | fi |
| 10719 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10720 | LIBS=$ac_func_search_save_LIBS |
| 10721 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10722 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10723 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10724 | ac_res=$ac_cv_search_opendir |
| 10725 | if test "$ac_res" != no; then |
| 10726 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10727 | |
| 10728 | fi |
| 10729 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10730 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10731 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 10732 | $as_echo_n "checking for library containing opendir... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10733 | if test "${ac_cv_search_opendir+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10734 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10735 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10736 | ac_func_search_save_LIBS=$LIBS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10737 | cat >conftest.$ac_ext <<_ACEOF |
| 10738 | /* confdefs.h. */ |
| 10739 | _ACEOF |
| 10740 | cat confdefs.h >>conftest.$ac_ext |
| 10741 | cat >>conftest.$ac_ext <<_ACEOF |
| 10742 | /* end confdefs.h. */ |
| 10743 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10744 | /* Override any GCC internal prototype to avoid an error. |
| 10745 | Use char because int might match the return type of a GCC |
| 10746 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10747 | #ifdef __cplusplus |
| 10748 | extern "C" |
| 10749 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10750 | char opendir (); |
| 10751 | int |
| 10752 | main () |
| 10753 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10754 | return opendir (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10755 | ; |
| 10756 | return 0; |
| 10757 | } |
| 10758 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10759 | for ac_lib in '' x; do |
| 10760 | if test -z "$ac_lib"; then |
| 10761 | ac_res="none required" |
| 10762 | else |
| 10763 | ac_res=-l$ac_lib |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10764 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10765 | fi |
| 10766 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10767 | if { (ac_try="$ac_link" |
| 10768 | case "(($ac_try" in |
| 10769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10770 | *) ac_try_echo=$ac_try;; |
| 10771 | esac |
| 10772 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10773 | $as_echo "$ac_try_echo") >&5 |
| 10774 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10775 | ac_status=$? |
| 10776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10777 | rm -f conftest.er1 |
| 10778 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10779 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10780 | (exit $ac_status); } && { |
| 10781 | test -z "$ac_c_werror_flag" || |
| 10782 | test ! -s conftest.err |
| 10783 | } && test -s conftest$ac_exeext && { |
| 10784 | test "$cross_compiling" = yes || |
| 10785 | $as_test_x conftest$ac_exeext |
| 10786 | }; then |
| 10787 | ac_cv_search_opendir=$ac_res |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10788 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10789 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10791 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10792 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10793 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10794 | |
| 10795 | rm -rf conftest.dSYM |
| 10796 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10797 | conftest$ac_exeext |
| 10798 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10799 | break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10800 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10801 | done |
| 10802 | if test "${ac_cv_search_opendir+set}" = set; then |
| 10803 | : |
| 10804 | else |
| 10805 | ac_cv_search_opendir=no |
| 10806 | fi |
| 10807 | rm conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10808 | LIBS=$ac_func_search_save_LIBS |
| 10809 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10810 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10811 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 10812 | ac_res=$ac_cv_search_opendir |
| 10813 | if test "$ac_res" != no; then |
| 10814 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10815 | |
| 10816 | fi |
| 10817 | |
| 10818 | fi |
| 10819 | |
| 10820 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10821 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10822 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10823 | $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] | 10824 | cat >conftest.$ac_ext <<_ACEOF |
| 10825 | /* confdefs.h. */ |
| 10826 | _ACEOF |
| 10827 | cat confdefs.h >>conftest.$ac_ext |
| 10828 | cat >>conftest.$ac_ext <<_ACEOF |
| 10829 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10830 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10831 | int |
| 10832 | main () |
| 10833 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10834 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10835 | ; |
| 10836 | return 0; |
| 10837 | } |
| 10838 | _ACEOF |
| 10839 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10840 | if { (ac_try="$ac_compile" |
| 10841 | case "(($ac_try" in |
| 10842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10843 | *) ac_try_echo=$ac_try;; |
| 10844 | esac |
| 10845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10846 | $as_echo "$ac_try_echo") >&5 |
| 10847 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10848 | ac_status=$? |
| 10849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10850 | rm -f conftest.er1 |
| 10851 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10853 | (exit $ac_status); } && { |
| 10854 | test -z "$ac_c_werror_flag" || |
| 10855 | test ! -s conftest.err |
| 10856 | } && test -s conftest.$ac_objext; then |
| 10857 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 10858 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10859 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10860 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10861 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10862 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10863 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10864 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10865 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10866 | |
| 10867 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10868 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10870 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10871 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10872 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10873 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10874 | |
| 10875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10876 | fi |
| 10877 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10878 | |
| 10879 | |
| 10880 | |
| 10881 | |
| 10882 | |
| 10883 | |
| 10884 | |
| 10885 | |
| 10886 | |
| 10887 | |
| 10888 | |
| 10889 | |
| 10890 | |
| 10891 | |
| 10892 | |
| 10893 | |
| 10894 | |
| 10895 | |
| 10896 | |
| 10897 | |
| 10898 | |
| 10899 | |
| 10900 | |
| 10901 | |
| 10902 | |
| 10903 | |
| 10904 | |
| 10905 | |
| 10906 | |
| 10907 | |
| 10908 | |
| 10909 | |
| 10910 | |
| 10911 | |
| 10912 | |
| 10913 | |
| 10914 | |
| 10915 | |
| 10916 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10917 | |
Bram Moolenaar | e74455a | 2007-11-04 14:36:18 +0000 | [diff] [blame] | 10918 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10919 | 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] | 10920 | 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] | 10921 | iconv.h langinfo.h math.h unistd.h stropts.h errno.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10922 | sys/resource.h sys/systeminfo.h locale.h \ |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 10923 | sys/stream.h termios.h libc.h sys/statfs.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10924 | 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] | 10925 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10926 | 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] | 10927 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10928 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10930 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10931 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10933 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10934 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10935 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10936 | $as_echo "$as_val"'` |
| 10937 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10938 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10939 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10940 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10941 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10942 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10943 | cat >conftest.$ac_ext <<_ACEOF |
| 10944 | /* confdefs.h. */ |
| 10945 | _ACEOF |
| 10946 | cat confdefs.h >>conftest.$ac_ext |
| 10947 | cat >>conftest.$ac_ext <<_ACEOF |
| 10948 | /* end confdefs.h. */ |
| 10949 | $ac_includes_default |
| 10950 | #include <$ac_header> |
| 10951 | _ACEOF |
| 10952 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10953 | if { (ac_try="$ac_compile" |
| 10954 | case "(($ac_try" in |
| 10955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10956 | *) ac_try_echo=$ac_try;; |
| 10957 | esac |
| 10958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10959 | $as_echo "$ac_try_echo") >&5 |
| 10960 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10961 | ac_status=$? |
| 10962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10963 | rm -f conftest.er1 |
| 10964 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10966 | (exit $ac_status); } && { |
| 10967 | test -z "$ac_c_werror_flag" || |
| 10968 | test ! -s conftest.err |
| 10969 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10970 | ac_header_compiler=yes |
| 10971 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10972 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10974 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10975 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10976 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10977 | |
| 10978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10979 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10980 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10981 | |
| 10982 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10983 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10984 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10985 | cat >conftest.$ac_ext <<_ACEOF |
| 10986 | /* confdefs.h. */ |
| 10987 | _ACEOF |
| 10988 | cat confdefs.h >>conftest.$ac_ext |
| 10989 | cat >>conftest.$ac_ext <<_ACEOF |
| 10990 | /* end confdefs.h. */ |
| 10991 | #include <$ac_header> |
| 10992 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 10993 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10994 | case "(($ac_try" in |
| 10995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10996 | *) ac_try_echo=$ac_try;; |
| 10997 | esac |
| 10998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10999 | $as_echo "$ac_try_echo") >&5 |
| 11000 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11001 | ac_status=$? |
| 11002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11003 | rm -f conftest.er1 |
| 11004 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11006 | (exit $ac_status); } >/dev/null && { |
| 11007 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11008 | test ! -s conftest.err |
| 11009 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11010 | ac_header_preproc=yes |
| 11011 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11012 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11014 | |
| 11015 | ac_header_preproc=no |
| 11016 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11017 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11018 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11019 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11020 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11021 | |
| 11022 | # So? What about this header? |
| 11023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11024 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11026 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11028 | $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] | 11029 | ac_header_preproc=yes |
| 11030 | ;; |
| 11031 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11033 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11035 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11037 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11039 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11040 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11041 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11042 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11043 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11044 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11045 | ;; |
| 11046 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11047 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11048 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11049 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11050 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11051 | else |
| 11052 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11053 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11054 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11055 | $as_echo "$as_val"'` |
| 11056 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11057 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11058 | |
| 11059 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11060 | if test `eval 'as_val=${'$as_ac_Header'} |
| 11061 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11062 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11063 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11064 | _ACEOF |
| 11065 | |
| 11066 | fi |
| 11067 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11068 | done |
| 11069 | |
| 11070 | |
Bram Moolenaar | 00ca284 | 2008-06-26 20:14:00 +0000 | [diff] [blame] | 11071 | |
| 11072 | for ac_header in sys/ptem.h |
| 11073 | do |
| 11074 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11075 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11076 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11078 | $as_echo_n "(cached) " >&6 |
| 11079 | else |
| 11080 | cat >conftest.$ac_ext <<_ACEOF |
| 11081 | /* confdefs.h. */ |
| 11082 | _ACEOF |
| 11083 | cat confdefs.h >>conftest.$ac_ext |
| 11084 | cat >>conftest.$ac_ext <<_ACEOF |
| 11085 | /* end confdefs.h. */ |
| 11086 | #if defined HAVE_SYS_STREAM_H |
| 11087 | # include <sys/stream.h> |
| 11088 | #endif |
| 11089 | |
| 11090 | #include <$ac_header> |
| 11091 | _ACEOF |
| 11092 | rm -f conftest.$ac_objext |
| 11093 | if { (ac_try="$ac_compile" |
| 11094 | case "(($ac_try" in |
| 11095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11096 | *) ac_try_echo=$ac_try;; |
| 11097 | esac |
| 11098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11099 | $as_echo "$ac_try_echo") >&5 |
| 11100 | (eval "$ac_compile") 2>conftest.er1 |
| 11101 | ac_status=$? |
| 11102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11103 | rm -f conftest.er1 |
| 11104 | cat conftest.err >&5 |
| 11105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11106 | (exit $ac_status); } && { |
| 11107 | test -z "$ac_c_werror_flag" || |
| 11108 | test ! -s conftest.err |
| 11109 | } && test -s conftest.$ac_objext; then |
| 11110 | eval "$as_ac_Header=yes" |
| 11111 | else |
| 11112 | $as_echo "$as_me: failed program was:" >&5 |
| 11113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11114 | |
| 11115 | eval "$as_ac_Header=no" |
| 11116 | fi |
| 11117 | |
| 11118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11119 | fi |
| 11120 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11121 | $as_echo "$as_val"'` |
| 11122 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11123 | $as_echo "$ac_res" >&6; } |
| 11124 | if test `eval 'as_val=${'$as_ac_Header'} |
| 11125 | $as_echo "$as_val"'` = yes; then |
| 11126 | cat >>confdefs.h <<_ACEOF |
| 11127 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11128 | _ACEOF |
| 11129 | |
| 11130 | fi |
| 11131 | |
| 11132 | done |
| 11133 | |
| 11134 | |
| 11135 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11136 | { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 11137 | $as_echo_n "checking for pthread_np.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11138 | cat >conftest.$ac_ext <<_ACEOF |
| 11139 | /* confdefs.h. */ |
| 11140 | _ACEOF |
| 11141 | cat confdefs.h >>conftest.$ac_ext |
| 11142 | cat >>conftest.$ac_ext <<_ACEOF |
| 11143 | /* end confdefs.h. */ |
| 11144 | |
| 11145 | #include <pthread.h> |
| 11146 | #include <pthread_np.h> |
| 11147 | int |
| 11148 | main () |
| 11149 | { |
| 11150 | int i; i = 0; |
| 11151 | ; |
| 11152 | return 0; |
| 11153 | } |
| 11154 | _ACEOF |
| 11155 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11156 | if { (ac_try="$ac_compile" |
| 11157 | case "(($ac_try" in |
| 11158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11159 | *) ac_try_echo=$ac_try;; |
| 11160 | esac |
| 11161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11162 | $as_echo "$ac_try_echo") >&5 |
| 11163 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11164 | ac_status=$? |
| 11165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11166 | rm -f conftest.er1 |
| 11167 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11169 | (exit $ac_status); } && { |
| 11170 | test -z "$ac_c_werror_flag" || |
| 11171 | test ! -s conftest.err |
| 11172 | } && test -s conftest.$ac_objext; then |
| 11173 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11174 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11175 | cat >>confdefs.h <<\_ACEOF |
| 11176 | #define HAVE_PTHREAD_NP_H 1 |
| 11177 | _ACEOF |
| 11178 | |
| 11179 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11180 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11182 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11183 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11184 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11185 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11186 | |
| 11187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11188 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11189 | |
| 11190 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11191 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11192 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11193 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11194 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11195 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11196 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11197 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11198 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11199 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11200 | $as_echo "$as_val"'` |
| 11201 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11202 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11203 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11204 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11205 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11206 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11207 | cat >conftest.$ac_ext <<_ACEOF |
| 11208 | /* confdefs.h. */ |
| 11209 | _ACEOF |
| 11210 | cat confdefs.h >>conftest.$ac_ext |
| 11211 | cat >>conftest.$ac_ext <<_ACEOF |
| 11212 | /* end confdefs.h. */ |
| 11213 | $ac_includes_default |
| 11214 | #include <$ac_header> |
| 11215 | _ACEOF |
| 11216 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11217 | if { (ac_try="$ac_compile" |
| 11218 | case "(($ac_try" in |
| 11219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11220 | *) ac_try_echo=$ac_try;; |
| 11221 | esac |
| 11222 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11223 | $as_echo "$ac_try_echo") >&5 |
| 11224 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11225 | ac_status=$? |
| 11226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11227 | rm -f conftest.er1 |
| 11228 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11230 | (exit $ac_status); } && { |
| 11231 | test -z "$ac_c_werror_flag" || |
| 11232 | test ! -s conftest.err |
| 11233 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11234 | ac_header_compiler=yes |
| 11235 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11236 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11238 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11239 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11240 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11241 | |
| 11242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11243 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11244 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11245 | |
| 11246 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11247 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11248 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11249 | cat >conftest.$ac_ext <<_ACEOF |
| 11250 | /* confdefs.h. */ |
| 11251 | _ACEOF |
| 11252 | cat confdefs.h >>conftest.$ac_ext |
| 11253 | cat >>conftest.$ac_ext <<_ACEOF |
| 11254 | /* end confdefs.h. */ |
| 11255 | #include <$ac_header> |
| 11256 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11257 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11258 | case "(($ac_try" in |
| 11259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11260 | *) ac_try_echo=$ac_try;; |
| 11261 | esac |
| 11262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11263 | $as_echo "$ac_try_echo") >&5 |
| 11264 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11265 | ac_status=$? |
| 11266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11267 | rm -f conftest.er1 |
| 11268 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11270 | (exit $ac_status); } >/dev/null && { |
| 11271 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11272 | test ! -s conftest.err |
| 11273 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11274 | ac_header_preproc=yes |
| 11275 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11276 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11278 | |
| 11279 | ac_header_preproc=no |
| 11280 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11281 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11282 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11283 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11284 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11285 | |
| 11286 | # So? What about this header? |
| 11287 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11288 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11289 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11290 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11292 | $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] | 11293 | ac_header_preproc=yes |
| 11294 | ;; |
| 11295 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11297 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11299 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11301 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11303 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11305 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11307 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11308 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11309 | ;; |
| 11310 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11311 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11312 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11313 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11314 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11315 | else |
| 11316 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11317 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11318 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11319 | $as_echo "$as_val"'` |
| 11320 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11321 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11322 | |
| 11323 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11324 | if test `eval 'as_val=${'$as_ac_Header'} |
| 11325 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11326 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11327 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11328 | _ACEOF |
| 11329 | |
| 11330 | fi |
| 11331 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11332 | done |
| 11333 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11334 | if test "x$MACOSX" = "xyes"; then |
| 11335 | cat >>confdefs.h <<\_ACEOF |
| 11336 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11337 | _ACEOF |
| 11338 | |
| 11339 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11340 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11341 | { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 11342 | $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] | 11343 | cppflags_save=$CPPFLAGS |
| 11344 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11345 | cat >conftest.$ac_ext <<_ACEOF |
| 11346 | /* confdefs.h. */ |
| 11347 | _ACEOF |
| 11348 | cat confdefs.h >>conftest.$ac_ext |
| 11349 | cat >>conftest.$ac_ext <<_ACEOF |
| 11350 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11351 | |
| 11352 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 11353 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 11354 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 11355 | #endif |
| 11356 | #ifdef HAVE_XM_XM_H |
| 11357 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 11358 | #endif |
| 11359 | #ifdef HAVE_STRING_H |
| 11360 | # include <string.h> |
| 11361 | #endif |
| 11362 | #if defined(HAVE_STRINGS_H) |
| 11363 | # include <strings.h> |
| 11364 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11365 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11366 | int |
| 11367 | main () |
| 11368 | { |
| 11369 | int i; i = 0; |
| 11370 | ; |
| 11371 | return 0; |
| 11372 | } |
| 11373 | _ACEOF |
| 11374 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11375 | if { (ac_try="$ac_compile" |
| 11376 | case "(($ac_try" in |
| 11377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11378 | *) ac_try_echo=$ac_try;; |
| 11379 | esac |
| 11380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11381 | $as_echo "$ac_try_echo") >&5 |
| 11382 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11383 | ac_status=$? |
| 11384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11385 | rm -f conftest.er1 |
| 11386 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11388 | (exit $ac_status); } && { |
| 11389 | test -z "$ac_c_werror_flag" || |
| 11390 | test ! -s conftest.err |
| 11391 | } && test -s conftest.$ac_objext; then |
| 11392 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11393 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11394 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11395 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11397 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11398 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11399 | #define NO_STRINGS_WITH_STRING_H 1 |
| 11400 | _ACEOF |
| 11401 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11402 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11403 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11404 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11405 | |
| 11406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11407 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 11408 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11409 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11410 | if test $ac_cv_c_compiler_gnu = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11411 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 11412 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11413 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11414 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11415 | else |
| 11416 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11417 | cat >conftest.$ac_ext <<_ACEOF |
| 11418 | /* confdefs.h. */ |
| 11419 | _ACEOF |
| 11420 | cat confdefs.h >>conftest.$ac_ext |
| 11421 | cat >>conftest.$ac_ext <<_ACEOF |
| 11422 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11423 | #include <sgtty.h> |
| 11424 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11425 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11427 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11428 | ac_cv_prog_gcc_traditional=yes |
| 11429 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11430 | ac_cv_prog_gcc_traditional=no |
| 11431 | fi |
| 11432 | rm -f conftest* |
| 11433 | |
| 11434 | |
| 11435 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11436 | cat >conftest.$ac_ext <<_ACEOF |
| 11437 | /* confdefs.h. */ |
| 11438 | _ACEOF |
| 11439 | cat confdefs.h >>conftest.$ac_ext |
| 11440 | cat >>conftest.$ac_ext <<_ACEOF |
| 11441 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11442 | #include <termio.h> |
| 11443 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11444 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11446 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11447 | ac_cv_prog_gcc_traditional=yes |
| 11448 | fi |
| 11449 | rm -f conftest* |
| 11450 | |
| 11451 | fi |
| 11452 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11453 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 11454 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11455 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 11456 | CC="$CC -traditional" |
| 11457 | fi |
| 11458 | fi |
| 11459 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11460 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 11461 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11462 | if test "${ac_cv_c_const+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11463 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11464 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11465 | cat >conftest.$ac_ext <<_ACEOF |
| 11466 | /* confdefs.h. */ |
| 11467 | _ACEOF |
| 11468 | cat confdefs.h >>conftest.$ac_ext |
| 11469 | cat >>conftest.$ac_ext <<_ACEOF |
| 11470 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11471 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11472 | int |
| 11473 | main () |
| 11474 | { |
| 11475 | /* FIXME: Include the comments suggested by Paul. */ |
| 11476 | #ifndef __cplusplus |
| 11477 | /* Ultrix mips cc rejects this. */ |
| 11478 | typedef int charset[2]; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11479 | const charset cs; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11480 | /* SunOS 4.1.1 cc rejects this. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11481 | char const *const *pcpcc; |
| 11482 | char **ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11483 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11484 | struct point {int x, y;}; |
| 11485 | static struct point const zero = {0,0}; |
| 11486 | /* AIX XL C 1.02.0.0 rejects this. |
| 11487 | It does not let you subtract one const X* pointer from another in |
| 11488 | an arm of an if-expression whose if-part is not a constant |
| 11489 | expression */ |
| 11490 | const char *g = "string"; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11491 | pcpcc = &g + (g ? g-g : 0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11492 | /* HPUX 7.0 cc rejects these. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11493 | ++pcpcc; |
| 11494 | ppc = (char**) pcpcc; |
| 11495 | pcpcc = (char const *const *) ppc; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11496 | { /* SCO 3.2v4 cc rejects this. */ |
| 11497 | char *t; |
| 11498 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11499 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11500 | *t++ = 0; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11501 | if (s) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11502 | } |
| 11503 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11504 | int x[] = {25, 17}; |
| 11505 | const int *foo = &x[0]; |
| 11506 | ++foo; |
| 11507 | } |
| 11508 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11509 | typedef const int *iptr; |
| 11510 | iptr p = 0; |
| 11511 | ++p; |
| 11512 | } |
| 11513 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11514 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11515 | struct s { int j; const int *ap[3]; }; |
| 11516 | struct s *b; b->j = 5; |
| 11517 | } |
| 11518 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11519 | const int foo = 10; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11520 | if (!foo) return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11521 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11522 | return !cs[0] && !zero.x; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11523 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11524 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11525 | ; |
| 11526 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11527 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11528 | _ACEOF |
| 11529 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11530 | if { (ac_try="$ac_compile" |
| 11531 | case "(($ac_try" in |
| 11532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11533 | *) ac_try_echo=$ac_try;; |
| 11534 | esac |
| 11535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11536 | $as_echo "$ac_try_echo") >&5 |
| 11537 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11538 | ac_status=$? |
| 11539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11540 | rm -f conftest.er1 |
| 11541 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11543 | (exit $ac_status); } && { |
| 11544 | test -z "$ac_c_werror_flag" || |
| 11545 | test ! -s conftest.err |
| 11546 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11547 | ac_cv_c_const=yes |
| 11548 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11549 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11550 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11551 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11552 | ac_cv_c_const=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11553 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11554 | |
| 11555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11556 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11557 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 11558 | $as_echo "$ac_cv_c_const" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11559 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11560 | |
| 11561 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11562 | #define const /**/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11563 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11564 | |
| 11565 | fi |
| 11566 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11567 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 11568 | $as_echo_n "checking for mode_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11569 | if test "${ac_cv_type_mode_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11570 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11571 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11572 | ac_cv_type_mode_t=no |
| 11573 | cat >conftest.$ac_ext <<_ACEOF |
| 11574 | /* confdefs.h. */ |
| 11575 | _ACEOF |
| 11576 | cat confdefs.h >>conftest.$ac_ext |
| 11577 | cat >>conftest.$ac_ext <<_ACEOF |
| 11578 | /* end confdefs.h. */ |
| 11579 | $ac_includes_default |
| 11580 | int |
| 11581 | main () |
| 11582 | { |
| 11583 | if (sizeof (mode_t)) |
| 11584 | return 0; |
| 11585 | ; |
| 11586 | return 0; |
| 11587 | } |
| 11588 | _ACEOF |
| 11589 | rm -f conftest.$ac_objext |
| 11590 | if { (ac_try="$ac_compile" |
| 11591 | case "(($ac_try" in |
| 11592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11593 | *) ac_try_echo=$ac_try;; |
| 11594 | esac |
| 11595 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11596 | $as_echo "$ac_try_echo") >&5 |
| 11597 | (eval "$ac_compile") 2>conftest.er1 |
| 11598 | ac_status=$? |
| 11599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11600 | rm -f conftest.er1 |
| 11601 | cat conftest.err >&5 |
| 11602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11603 | (exit $ac_status); } && { |
| 11604 | test -z "$ac_c_werror_flag" || |
| 11605 | test ! -s conftest.err |
| 11606 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11607 | cat >conftest.$ac_ext <<_ACEOF |
| 11608 | /* confdefs.h. */ |
| 11609 | _ACEOF |
| 11610 | cat confdefs.h >>conftest.$ac_ext |
| 11611 | cat >>conftest.$ac_ext <<_ACEOF |
| 11612 | /* end confdefs.h. */ |
| 11613 | $ac_includes_default |
| 11614 | int |
| 11615 | main () |
| 11616 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11617 | if (sizeof ((mode_t))) |
| 11618 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11619 | ; |
| 11620 | return 0; |
| 11621 | } |
| 11622 | _ACEOF |
| 11623 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11624 | if { (ac_try="$ac_compile" |
| 11625 | case "(($ac_try" in |
| 11626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11627 | *) ac_try_echo=$ac_try;; |
| 11628 | esac |
| 11629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11630 | $as_echo "$ac_try_echo") >&5 |
| 11631 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11632 | ac_status=$? |
| 11633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11634 | rm -f conftest.er1 |
| 11635 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11637 | (exit $ac_status); } && { |
| 11638 | test -z "$ac_c_werror_flag" || |
| 11639 | test ! -s conftest.err |
| 11640 | } && test -s conftest.$ac_objext; then |
| 11641 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11642 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11643 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11644 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11645 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11646 | ac_cv_type_mode_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11647 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11648 | |
| 11649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11650 | else |
| 11651 | $as_echo "$as_me: failed program was:" >&5 |
| 11652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11653 | |
| 11654 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11655 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11656 | |
| 11657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11658 | fi |
| 11659 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 11660 | $as_echo "$ac_cv_type_mode_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11661 | if test $ac_cv_type_mode_t = yes; then |
| 11662 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11663 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11664 | |
| 11665 | cat >>confdefs.h <<_ACEOF |
| 11666 | #define mode_t int |
| 11667 | _ACEOF |
| 11668 | |
| 11669 | fi |
| 11670 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11671 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 11672 | $as_echo_n "checking for off_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11673 | if test "${ac_cv_type_off_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11674 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11675 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11676 | ac_cv_type_off_t=no |
| 11677 | cat >conftest.$ac_ext <<_ACEOF |
| 11678 | /* confdefs.h. */ |
| 11679 | _ACEOF |
| 11680 | cat confdefs.h >>conftest.$ac_ext |
| 11681 | cat >>conftest.$ac_ext <<_ACEOF |
| 11682 | /* end confdefs.h. */ |
| 11683 | $ac_includes_default |
| 11684 | int |
| 11685 | main () |
| 11686 | { |
| 11687 | if (sizeof (off_t)) |
| 11688 | return 0; |
| 11689 | ; |
| 11690 | return 0; |
| 11691 | } |
| 11692 | _ACEOF |
| 11693 | rm -f conftest.$ac_objext |
| 11694 | if { (ac_try="$ac_compile" |
| 11695 | case "(($ac_try" in |
| 11696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11697 | *) ac_try_echo=$ac_try;; |
| 11698 | esac |
| 11699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11700 | $as_echo "$ac_try_echo") >&5 |
| 11701 | (eval "$ac_compile") 2>conftest.er1 |
| 11702 | ac_status=$? |
| 11703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11704 | rm -f conftest.er1 |
| 11705 | cat conftest.err >&5 |
| 11706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11707 | (exit $ac_status); } && { |
| 11708 | test -z "$ac_c_werror_flag" || |
| 11709 | test ! -s conftest.err |
| 11710 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11711 | cat >conftest.$ac_ext <<_ACEOF |
| 11712 | /* confdefs.h. */ |
| 11713 | _ACEOF |
| 11714 | cat confdefs.h >>conftest.$ac_ext |
| 11715 | cat >>conftest.$ac_ext <<_ACEOF |
| 11716 | /* end confdefs.h. */ |
| 11717 | $ac_includes_default |
| 11718 | int |
| 11719 | main () |
| 11720 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11721 | if (sizeof ((off_t))) |
| 11722 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11723 | ; |
| 11724 | return 0; |
| 11725 | } |
| 11726 | _ACEOF |
| 11727 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11728 | if { (ac_try="$ac_compile" |
| 11729 | case "(($ac_try" in |
| 11730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11731 | *) ac_try_echo=$ac_try;; |
| 11732 | esac |
| 11733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11734 | $as_echo "$ac_try_echo") >&5 |
| 11735 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11736 | ac_status=$? |
| 11737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11738 | rm -f conftest.er1 |
| 11739 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11741 | (exit $ac_status); } && { |
| 11742 | test -z "$ac_c_werror_flag" || |
| 11743 | test ! -s conftest.err |
| 11744 | } && test -s conftest.$ac_objext; then |
| 11745 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11746 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11747 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11748 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11749 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11750 | ac_cv_type_off_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11751 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11752 | |
| 11753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11754 | else |
| 11755 | $as_echo "$as_me: failed program was:" >&5 |
| 11756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11757 | |
| 11758 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11759 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11760 | |
| 11761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11762 | fi |
| 11763 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 11764 | $as_echo "$ac_cv_type_off_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11765 | if test $ac_cv_type_off_t = yes; then |
| 11766 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11767 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11768 | |
| 11769 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11770 | #define off_t long int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11771 | _ACEOF |
| 11772 | |
| 11773 | fi |
| 11774 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11775 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 11776 | $as_echo_n "checking for pid_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11777 | if test "${ac_cv_type_pid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11778 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11779 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11780 | ac_cv_type_pid_t=no |
| 11781 | cat >conftest.$ac_ext <<_ACEOF |
| 11782 | /* confdefs.h. */ |
| 11783 | _ACEOF |
| 11784 | cat confdefs.h >>conftest.$ac_ext |
| 11785 | cat >>conftest.$ac_ext <<_ACEOF |
| 11786 | /* end confdefs.h. */ |
| 11787 | $ac_includes_default |
| 11788 | int |
| 11789 | main () |
| 11790 | { |
| 11791 | if (sizeof (pid_t)) |
| 11792 | return 0; |
| 11793 | ; |
| 11794 | return 0; |
| 11795 | } |
| 11796 | _ACEOF |
| 11797 | rm -f conftest.$ac_objext |
| 11798 | if { (ac_try="$ac_compile" |
| 11799 | case "(($ac_try" in |
| 11800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11801 | *) ac_try_echo=$ac_try;; |
| 11802 | esac |
| 11803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11804 | $as_echo "$ac_try_echo") >&5 |
| 11805 | (eval "$ac_compile") 2>conftest.er1 |
| 11806 | ac_status=$? |
| 11807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11808 | rm -f conftest.er1 |
| 11809 | cat conftest.err >&5 |
| 11810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11811 | (exit $ac_status); } && { |
| 11812 | test -z "$ac_c_werror_flag" || |
| 11813 | test ! -s conftest.err |
| 11814 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11815 | cat >conftest.$ac_ext <<_ACEOF |
| 11816 | /* confdefs.h. */ |
| 11817 | _ACEOF |
| 11818 | cat confdefs.h >>conftest.$ac_ext |
| 11819 | cat >>conftest.$ac_ext <<_ACEOF |
| 11820 | /* end confdefs.h. */ |
| 11821 | $ac_includes_default |
| 11822 | int |
| 11823 | main () |
| 11824 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11825 | if (sizeof ((pid_t))) |
| 11826 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11827 | ; |
| 11828 | return 0; |
| 11829 | } |
| 11830 | _ACEOF |
| 11831 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11832 | if { (ac_try="$ac_compile" |
| 11833 | case "(($ac_try" in |
| 11834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11835 | *) ac_try_echo=$ac_try;; |
| 11836 | esac |
| 11837 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11838 | $as_echo "$ac_try_echo") >&5 |
| 11839 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11840 | ac_status=$? |
| 11841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11842 | rm -f conftest.er1 |
| 11843 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11845 | (exit $ac_status); } && { |
| 11846 | test -z "$ac_c_werror_flag" || |
| 11847 | test ! -s conftest.err |
| 11848 | } && test -s conftest.$ac_objext; then |
| 11849 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11850 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11851 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11852 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11853 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11854 | ac_cv_type_pid_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11855 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11856 | |
| 11857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11858 | else |
| 11859 | $as_echo "$as_me: failed program was:" >&5 |
| 11860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11861 | |
| 11862 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11863 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11864 | |
| 11865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11866 | fi |
| 11867 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 11868 | $as_echo "$ac_cv_type_pid_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11869 | if test $ac_cv_type_pid_t = yes; then |
| 11870 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11871 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11872 | |
| 11873 | cat >>confdefs.h <<_ACEOF |
| 11874 | #define pid_t int |
| 11875 | _ACEOF |
| 11876 | |
| 11877 | fi |
| 11878 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11879 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 11880 | $as_echo_n "checking for size_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11881 | if test "${ac_cv_type_size_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11882 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11883 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11884 | ac_cv_type_size_t=no |
| 11885 | cat >conftest.$ac_ext <<_ACEOF |
| 11886 | /* confdefs.h. */ |
| 11887 | _ACEOF |
| 11888 | cat confdefs.h >>conftest.$ac_ext |
| 11889 | cat >>conftest.$ac_ext <<_ACEOF |
| 11890 | /* end confdefs.h. */ |
| 11891 | $ac_includes_default |
| 11892 | int |
| 11893 | main () |
| 11894 | { |
| 11895 | if (sizeof (size_t)) |
| 11896 | return 0; |
| 11897 | ; |
| 11898 | return 0; |
| 11899 | } |
| 11900 | _ACEOF |
| 11901 | rm -f conftest.$ac_objext |
| 11902 | if { (ac_try="$ac_compile" |
| 11903 | case "(($ac_try" in |
| 11904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11905 | *) ac_try_echo=$ac_try;; |
| 11906 | esac |
| 11907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11908 | $as_echo "$ac_try_echo") >&5 |
| 11909 | (eval "$ac_compile") 2>conftest.er1 |
| 11910 | ac_status=$? |
| 11911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11912 | rm -f conftest.er1 |
| 11913 | cat conftest.err >&5 |
| 11914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11915 | (exit $ac_status); } && { |
| 11916 | test -z "$ac_c_werror_flag" || |
| 11917 | test ! -s conftest.err |
| 11918 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11919 | cat >conftest.$ac_ext <<_ACEOF |
| 11920 | /* confdefs.h. */ |
| 11921 | _ACEOF |
| 11922 | cat confdefs.h >>conftest.$ac_ext |
| 11923 | cat >>conftest.$ac_ext <<_ACEOF |
| 11924 | /* end confdefs.h. */ |
| 11925 | $ac_includes_default |
| 11926 | int |
| 11927 | main () |
| 11928 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11929 | if (sizeof ((size_t))) |
| 11930 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11931 | ; |
| 11932 | return 0; |
| 11933 | } |
| 11934 | _ACEOF |
| 11935 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11936 | if { (ac_try="$ac_compile" |
| 11937 | case "(($ac_try" in |
| 11938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11939 | *) ac_try_echo=$ac_try;; |
| 11940 | esac |
| 11941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11942 | $as_echo "$ac_try_echo") >&5 |
| 11943 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11944 | ac_status=$? |
| 11945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11946 | rm -f conftest.er1 |
| 11947 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11949 | (exit $ac_status); } && { |
| 11950 | test -z "$ac_c_werror_flag" || |
| 11951 | test ! -s conftest.err |
| 11952 | } && test -s conftest.$ac_objext; then |
| 11953 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11954 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11955 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11956 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11957 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11958 | ac_cv_type_size_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11959 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11960 | |
| 11961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11962 | else |
| 11963 | $as_echo "$as_me: failed program was:" >&5 |
| 11964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11965 | |
| 11966 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11967 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11968 | |
| 11969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11970 | fi |
| 11971 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11972 | $as_echo "$ac_cv_type_size_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11973 | if test $ac_cv_type_size_t = yes; then |
| 11974 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11975 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11976 | |
| 11977 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11978 | #define size_t unsigned int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11979 | _ACEOF |
| 11980 | |
| 11981 | fi |
| 11982 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11983 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11984 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11985 | if test "${ac_cv_type_uid_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 11986 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11987 | else |
| 11988 | cat >conftest.$ac_ext <<_ACEOF |
| 11989 | /* confdefs.h. */ |
| 11990 | _ACEOF |
| 11991 | cat confdefs.h >>conftest.$ac_ext |
| 11992 | cat >>conftest.$ac_ext <<_ACEOF |
| 11993 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11994 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11995 | |
| 11996 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11997 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11998 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11999 | ac_cv_type_uid_t=yes |
| 12000 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12001 | ac_cv_type_uid_t=no |
| 12002 | fi |
| 12003 | rm -f conftest* |
| 12004 | |
| 12005 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12006 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 12007 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12008 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12009 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12010 | cat >>confdefs.h <<\_ACEOF |
| 12011 | #define uid_t int |
| 12012 | _ACEOF |
| 12013 | |
| 12014 | |
| 12015 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12016 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12017 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12018 | |
| 12019 | fi |
| 12020 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12021 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12022 | $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] | 12023 | if test "${ac_cv_header_time+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12024 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12025 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12026 | cat >conftest.$ac_ext <<_ACEOF |
| 12027 | /* confdefs.h. */ |
| 12028 | _ACEOF |
| 12029 | cat confdefs.h >>conftest.$ac_ext |
| 12030 | cat >>conftest.$ac_ext <<_ACEOF |
| 12031 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12032 | #include <sys/types.h> |
| 12033 | #include <sys/time.h> |
| 12034 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12035 | |
| 12036 | int |
| 12037 | main () |
| 12038 | { |
| 12039 | if ((struct tm *) 0) |
| 12040 | return 0; |
| 12041 | ; |
| 12042 | return 0; |
| 12043 | } |
| 12044 | _ACEOF |
| 12045 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12046 | if { (ac_try="$ac_compile" |
| 12047 | case "(($ac_try" in |
| 12048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12049 | *) ac_try_echo=$ac_try;; |
| 12050 | esac |
| 12051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12052 | $as_echo "$ac_try_echo") >&5 |
| 12053 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12054 | ac_status=$? |
| 12055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12056 | rm -f conftest.er1 |
| 12057 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12059 | (exit $ac_status); } && { |
| 12060 | test -z "$ac_c_werror_flag" || |
| 12061 | test ! -s conftest.err |
| 12062 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12063 | ac_cv_header_time=yes |
| 12064 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12065 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12066 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12067 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12068 | ac_cv_header_time=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12069 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12070 | |
| 12071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12072 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12073 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12074 | $as_echo "$ac_cv_header_time" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12075 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12076 | |
| 12077 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12078 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12079 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12080 | |
| 12081 | fi |
| 12082 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12083 | { $as_echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 12084 | $as_echo_n "checking for ino_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12085 | if test "${ac_cv_type_ino_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12086 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12087 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12088 | ac_cv_type_ino_t=no |
| 12089 | cat >conftest.$ac_ext <<_ACEOF |
| 12090 | /* confdefs.h. */ |
| 12091 | _ACEOF |
| 12092 | cat confdefs.h >>conftest.$ac_ext |
| 12093 | cat >>conftest.$ac_ext <<_ACEOF |
| 12094 | /* end confdefs.h. */ |
| 12095 | $ac_includes_default |
| 12096 | int |
| 12097 | main () |
| 12098 | { |
| 12099 | if (sizeof (ino_t)) |
| 12100 | return 0; |
| 12101 | ; |
| 12102 | return 0; |
| 12103 | } |
| 12104 | _ACEOF |
| 12105 | rm -f conftest.$ac_objext |
| 12106 | if { (ac_try="$ac_compile" |
| 12107 | case "(($ac_try" in |
| 12108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12109 | *) ac_try_echo=$ac_try;; |
| 12110 | esac |
| 12111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12112 | $as_echo "$ac_try_echo") >&5 |
| 12113 | (eval "$ac_compile") 2>conftest.er1 |
| 12114 | ac_status=$? |
| 12115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12116 | rm -f conftest.er1 |
| 12117 | cat conftest.err >&5 |
| 12118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12119 | (exit $ac_status); } && { |
| 12120 | test -z "$ac_c_werror_flag" || |
| 12121 | test ! -s conftest.err |
| 12122 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12123 | cat >conftest.$ac_ext <<_ACEOF |
| 12124 | /* confdefs.h. */ |
| 12125 | _ACEOF |
| 12126 | cat confdefs.h >>conftest.$ac_ext |
| 12127 | cat >>conftest.$ac_ext <<_ACEOF |
| 12128 | /* end confdefs.h. */ |
| 12129 | $ac_includes_default |
| 12130 | int |
| 12131 | main () |
| 12132 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12133 | if (sizeof ((ino_t))) |
| 12134 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12135 | ; |
| 12136 | return 0; |
| 12137 | } |
| 12138 | _ACEOF |
| 12139 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12140 | if { (ac_try="$ac_compile" |
| 12141 | case "(($ac_try" in |
| 12142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12143 | *) ac_try_echo=$ac_try;; |
| 12144 | esac |
| 12145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12146 | $as_echo "$ac_try_echo") >&5 |
| 12147 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12148 | ac_status=$? |
| 12149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12150 | rm -f conftest.er1 |
| 12151 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12152 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12153 | (exit $ac_status); } && { |
| 12154 | test -z "$ac_c_werror_flag" || |
| 12155 | test ! -s conftest.err |
| 12156 | } && test -s conftest.$ac_objext; then |
| 12157 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12158 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12159 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12160 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12161 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12162 | ac_cv_type_ino_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12163 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12164 | |
| 12165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12166 | else |
| 12167 | $as_echo "$as_me: failed program was:" >&5 |
| 12168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12169 | |
| 12170 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12171 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12172 | |
| 12173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12174 | fi |
| 12175 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 12176 | $as_echo "$ac_cv_type_ino_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12177 | if test $ac_cv_type_ino_t = yes; then |
| 12178 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12179 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12180 | |
| 12181 | cat >>confdefs.h <<_ACEOF |
| 12182 | #define ino_t long |
| 12183 | _ACEOF |
| 12184 | |
| 12185 | fi |
| 12186 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12187 | { $as_echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 12188 | $as_echo_n "checking for dev_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12189 | if test "${ac_cv_type_dev_t+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12190 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12191 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12192 | ac_cv_type_dev_t=no |
| 12193 | cat >conftest.$ac_ext <<_ACEOF |
| 12194 | /* confdefs.h. */ |
| 12195 | _ACEOF |
| 12196 | cat confdefs.h >>conftest.$ac_ext |
| 12197 | cat >>conftest.$ac_ext <<_ACEOF |
| 12198 | /* end confdefs.h. */ |
| 12199 | $ac_includes_default |
| 12200 | int |
| 12201 | main () |
| 12202 | { |
| 12203 | if (sizeof (dev_t)) |
| 12204 | return 0; |
| 12205 | ; |
| 12206 | return 0; |
| 12207 | } |
| 12208 | _ACEOF |
| 12209 | rm -f conftest.$ac_objext |
| 12210 | if { (ac_try="$ac_compile" |
| 12211 | case "(($ac_try" in |
| 12212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12213 | *) ac_try_echo=$ac_try;; |
| 12214 | esac |
| 12215 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12216 | $as_echo "$ac_try_echo") >&5 |
| 12217 | (eval "$ac_compile") 2>conftest.er1 |
| 12218 | ac_status=$? |
| 12219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12220 | rm -f conftest.er1 |
| 12221 | cat conftest.err >&5 |
| 12222 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12223 | (exit $ac_status); } && { |
| 12224 | test -z "$ac_c_werror_flag" || |
| 12225 | test ! -s conftest.err |
| 12226 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12227 | cat >conftest.$ac_ext <<_ACEOF |
| 12228 | /* confdefs.h. */ |
| 12229 | _ACEOF |
| 12230 | cat confdefs.h >>conftest.$ac_ext |
| 12231 | cat >>conftest.$ac_ext <<_ACEOF |
| 12232 | /* end confdefs.h. */ |
| 12233 | $ac_includes_default |
| 12234 | int |
| 12235 | main () |
| 12236 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12237 | if (sizeof ((dev_t))) |
| 12238 | return 0; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12239 | ; |
| 12240 | return 0; |
| 12241 | } |
| 12242 | _ACEOF |
| 12243 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12244 | if { (ac_try="$ac_compile" |
| 12245 | case "(($ac_try" in |
| 12246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12247 | *) ac_try_echo=$ac_try;; |
| 12248 | esac |
| 12249 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12250 | $as_echo "$ac_try_echo") >&5 |
| 12251 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12252 | ac_status=$? |
| 12253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12254 | rm -f conftest.er1 |
| 12255 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12257 | (exit $ac_status); } && { |
| 12258 | test -z "$ac_c_werror_flag" || |
| 12259 | test ! -s conftest.err |
| 12260 | } && test -s conftest.$ac_objext; then |
| 12261 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12262 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12263 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12265 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12266 | ac_cv_type_dev_t=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12267 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12268 | |
| 12269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12270 | else |
| 12271 | $as_echo "$as_me: failed program was:" >&5 |
| 12272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12273 | |
| 12274 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12275 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12276 | |
| 12277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12278 | fi |
| 12279 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 12280 | $as_echo "$ac_cv_type_dev_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12281 | if test $ac_cv_type_dev_t = yes; then |
| 12282 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12283 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12284 | |
| 12285 | cat >>confdefs.h <<_ACEOF |
| 12286 | #define dev_t unsigned |
| 12287 | _ACEOF |
| 12288 | |
| 12289 | fi |
| 12290 | |
| 12291 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12292 | { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 12293 | $as_echo_n "checking for rlim_t... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12294 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12295 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 12296 | $as_echo "(cached) $ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12297 | else |
| 12298 | cat >conftest.$ac_ext <<_ACEOF |
| 12299 | /* confdefs.h. */ |
| 12300 | _ACEOF |
| 12301 | cat confdefs.h >>conftest.$ac_ext |
| 12302 | cat >>conftest.$ac_ext <<_ACEOF |
| 12303 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12304 | |
| 12305 | #include <sys/types.h> |
| 12306 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12307 | # include <stdlib.h> |
| 12308 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12309 | #endif |
| 12310 | #ifdef HAVE_SYS_RESOURCE_H |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12311 | # include <sys/resource.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12312 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12313 | |
| 12314 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12316 | $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] | 12317 | ac_cv_type_rlim_t=yes |
| 12318 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12319 | ac_cv_type_rlim_t=no |
| 12320 | fi |
| 12321 | rm -f conftest* |
| 12322 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12323 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 12324 | $as_echo "$ac_cv_type_rlim_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12325 | fi |
| 12326 | if test $ac_cv_type_rlim_t = no; then |
| 12327 | cat >> confdefs.h <<\EOF |
| 12328 | #define rlim_t unsigned long |
| 12329 | EOF |
| 12330 | fi |
| 12331 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12332 | { $as_echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 12333 | $as_echo_n "checking for stack_t... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12334 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12335 | { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 12336 | $as_echo "(cached) $ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12337 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12338 | cat >conftest.$ac_ext <<_ACEOF |
| 12339 | /* confdefs.h. */ |
| 12340 | _ACEOF |
| 12341 | cat confdefs.h >>conftest.$ac_ext |
| 12342 | cat >>conftest.$ac_ext <<_ACEOF |
| 12343 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12344 | |
| 12345 | #include <sys/types.h> |
| 12346 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12347 | # include <stdlib.h> |
| 12348 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12349 | #endif |
| 12350 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12351 | |
| 12352 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12353 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12354 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12355 | ac_cv_type_stack_t=yes |
| 12356 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12357 | ac_cv_type_stack_t=no |
| 12358 | fi |
| 12359 | rm -f conftest* |
| 12360 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12361 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 12362 | $as_echo "$ac_cv_type_stack_t" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12363 | fi |
| 12364 | if test $ac_cv_type_stack_t = no; then |
| 12365 | cat >> confdefs.h <<\EOF |
| 12366 | #define stack_t struct sigaltstack |
| 12367 | EOF |
| 12368 | fi |
| 12369 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12370 | { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 12371 | $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] | 12372 | cat >conftest.$ac_ext <<_ACEOF |
| 12373 | /* confdefs.h. */ |
| 12374 | _ACEOF |
| 12375 | cat confdefs.h >>conftest.$ac_ext |
| 12376 | cat >>conftest.$ac_ext <<_ACEOF |
| 12377 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12378 | |
| 12379 | #include <sys/types.h> |
| 12380 | #if STDC_HEADERS |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12381 | # include <stdlib.h> |
| 12382 | # include <stddef.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12383 | #endif |
| 12384 | #include <signal.h> |
| 12385 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12386 | |
| 12387 | int |
| 12388 | main () |
| 12389 | { |
| 12390 | stack_t sigstk; sigstk.ss_base = 0; |
| 12391 | ; |
| 12392 | return 0; |
| 12393 | } |
| 12394 | _ACEOF |
| 12395 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12396 | if { (ac_try="$ac_compile" |
| 12397 | case "(($ac_try" in |
| 12398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12399 | *) ac_try_echo=$ac_try;; |
| 12400 | esac |
| 12401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12402 | $as_echo "$ac_try_echo") >&5 |
| 12403 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12404 | ac_status=$? |
| 12405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12406 | rm -f conftest.er1 |
| 12407 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12409 | (exit $ac_status); } && { |
| 12410 | test -z "$ac_c_werror_flag" || |
| 12411 | test ! -s conftest.err |
| 12412 | } && test -s conftest.$ac_objext; then |
| 12413 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12414 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12415 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12416 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12417 | |
| 12418 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12419 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12421 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12422 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12423 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12424 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12425 | |
| 12426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12427 | |
| 12428 | olibs="$LIBS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12429 | { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 12430 | $as_echo_n "checking --with-tlib argument... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12431 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12432 | # Check whether --with-tlib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12433 | if test "${with_tlib+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12434 | withval=$with_tlib; |
| 12435 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12436 | |
| 12437 | if test -n "$with_tlib"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12438 | { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 12439 | $as_echo "$with_tlib" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12440 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12441 | { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 12442 | $as_echo_n "checking for linking with $with_tlib library... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12443 | cat >conftest.$ac_ext <<_ACEOF |
| 12444 | /* confdefs.h. */ |
| 12445 | _ACEOF |
| 12446 | cat confdefs.h >>conftest.$ac_ext |
| 12447 | cat >>conftest.$ac_ext <<_ACEOF |
| 12448 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12449 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12450 | int |
| 12451 | main () |
| 12452 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12453 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12454 | ; |
| 12455 | return 0; |
| 12456 | } |
| 12457 | _ACEOF |
| 12458 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12459 | if { (ac_try="$ac_link" |
| 12460 | case "(($ac_try" in |
| 12461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12462 | *) ac_try_echo=$ac_try;; |
| 12463 | esac |
| 12464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12465 | $as_echo "$ac_try_echo") >&5 |
| 12466 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12467 | ac_status=$? |
| 12468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12469 | rm -f conftest.er1 |
| 12470 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12472 | (exit $ac_status); } && { |
| 12473 | test -z "$ac_c_werror_flag" || |
| 12474 | test ! -s conftest.err |
| 12475 | } && test -s conftest$ac_exeext && { |
| 12476 | test "$cross_compiling" = yes || |
| 12477 | $as_test_x conftest$ac_exeext |
| 12478 | }; then |
| 12479 | { $as_echo "$as_me:$LINENO: result: OK" >&5 |
| 12480 | $as_echo "OK" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12481 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12482 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12484 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12485 | { { $as_echo "$as_me:$LINENO: error: FAILED" >&5 |
| 12486 | $as_echo "$as_me: error: FAILED" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12487 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12488 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12489 | |
| 12490 | rm -rf conftest.dSYM |
| 12491 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12492 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12493 | olibs="$LIBS" |
| 12494 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12495 | { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 12496 | $as_echo "empty: automatic terminal library selection" >&6; } |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 12497 | case "`uname -s 2>/dev/null`" in |
| 12498 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12499 | *) tlibs="ncurses termlib termcap curses";; |
| 12500 | esac |
| 12501 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12502 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12503 | as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 12504 | { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 12505 | $as_echo_n "checking for tgetent in -l${libname}... " >&6; } |
| 12506 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12507 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12508 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12509 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12510 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12511 | cat >conftest.$ac_ext <<_ACEOF |
| 12512 | /* confdefs.h. */ |
| 12513 | _ACEOF |
| 12514 | cat confdefs.h >>conftest.$ac_ext |
| 12515 | cat >>conftest.$ac_ext <<_ACEOF |
| 12516 | /* end confdefs.h. */ |
| 12517 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12518 | /* Override any GCC internal prototype to avoid an error. |
| 12519 | Use char because int might match the return type of a GCC |
| 12520 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12521 | #ifdef __cplusplus |
| 12522 | extern "C" |
| 12523 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12524 | char tgetent (); |
| 12525 | int |
| 12526 | main () |
| 12527 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12528 | return tgetent (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12529 | ; |
| 12530 | return 0; |
| 12531 | } |
| 12532 | _ACEOF |
| 12533 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12534 | if { (ac_try="$ac_link" |
| 12535 | case "(($ac_try" in |
| 12536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12537 | *) ac_try_echo=$ac_try;; |
| 12538 | esac |
| 12539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12540 | $as_echo "$ac_try_echo") >&5 |
| 12541 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12542 | ac_status=$? |
| 12543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12544 | rm -f conftest.er1 |
| 12545 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12547 | (exit $ac_status); } && { |
| 12548 | test -z "$ac_c_werror_flag" || |
| 12549 | test ! -s conftest.err |
| 12550 | } && test -s conftest$ac_exeext && { |
| 12551 | test "$cross_compiling" = yes || |
| 12552 | $as_test_x conftest$ac_exeext |
| 12553 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12554 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12555 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12556 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12557 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12558 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12559 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12560 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12561 | |
| 12562 | rm -rf conftest.dSYM |
| 12563 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12564 | conftest$ac_exeext conftest.$ac_ext |
| 12565 | LIBS=$ac_check_lib_save_LIBS |
| 12566 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12567 | ac_res=`eval 'as_val=${'$as_ac_Lib'} |
| 12568 | $as_echo "$as_val"'` |
| 12569 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12570 | $as_echo "$ac_res" >&6; } |
| 12571 | if test `eval 'as_val=${'$as_ac_Lib'} |
| 12572 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12573 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12574 | #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12575 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12576 | |
| 12577 | LIBS="-l${libname} $LIBS" |
| 12578 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12579 | fi |
| 12580 | |
| 12581 | if test "x$olibs" != "x$LIBS"; then |
| 12582 | if test "$cross_compiling" = yes; then |
| 12583 | res="FAIL" |
| 12584 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12585 | cat >conftest.$ac_ext <<_ACEOF |
| 12586 | /* confdefs.h. */ |
| 12587 | _ACEOF |
| 12588 | cat confdefs.h >>conftest.$ac_ext |
| 12589 | cat >>conftest.$ac_ext <<_ACEOF |
| 12590 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12591 | |
| 12592 | #ifdef HAVE_TERMCAP_H |
| 12593 | # include <termcap.h> |
| 12594 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12595 | #if STDC_HEADERS |
| 12596 | # include <stdlib.h> |
| 12597 | # include <stddef.h> |
| 12598 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12599 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12600 | _ACEOF |
| 12601 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12602 | if { (ac_try="$ac_link" |
| 12603 | case "(($ac_try" in |
| 12604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12605 | *) ac_try_echo=$ac_try;; |
| 12606 | esac |
| 12607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12608 | $as_echo "$ac_try_echo") >&5 |
| 12609 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12610 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12612 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12613 | { (case "(($ac_try" in |
| 12614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12615 | *) ac_try_echo=$ac_try;; |
| 12616 | esac |
| 12617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12618 | $as_echo "$ac_try_echo") >&5 |
| 12619 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12620 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12622 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12623 | res="OK" |
| 12624 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12625 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12626 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12627 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12628 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12629 | ( exit $ac_status ) |
| 12630 | res="FAIL" |
| 12631 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12632 | rm -rf conftest.dSYM |
| 12633 | 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] | 12634 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12635 | |
| 12636 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12637 | if test "$res" = "OK"; then |
| 12638 | break |
| 12639 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12640 | { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 12641 | $as_echo "$libname library is not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12642 | LIBS="$olibs" |
| 12643 | fi |
| 12644 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12645 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12646 | { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 12647 | $as_echo "no terminal library found" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12648 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12649 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12650 | |
| 12651 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12652 | { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 12653 | $as_echo_n "checking for tgetent()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12654 | cat >conftest.$ac_ext <<_ACEOF |
| 12655 | /* confdefs.h. */ |
| 12656 | _ACEOF |
| 12657 | cat confdefs.h >>conftest.$ac_ext |
| 12658 | cat >>conftest.$ac_ext <<_ACEOF |
| 12659 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12660 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12661 | int |
| 12662 | main () |
| 12663 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12664 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12665 | ; |
| 12666 | return 0; |
| 12667 | } |
| 12668 | _ACEOF |
| 12669 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12670 | if { (ac_try="$ac_link" |
| 12671 | case "(($ac_try" in |
| 12672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12673 | *) ac_try_echo=$ac_try;; |
| 12674 | esac |
| 12675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12676 | $as_echo "$ac_try_echo") >&5 |
| 12677 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12678 | ac_status=$? |
| 12679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12680 | rm -f conftest.er1 |
| 12681 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12683 | (exit $ac_status); } && { |
| 12684 | test -z "$ac_c_werror_flag" || |
| 12685 | test ! -s conftest.err |
| 12686 | } && test -s conftest$ac_exeext && { |
| 12687 | test "$cross_compiling" = yes || |
| 12688 | $as_test_x conftest$ac_exeext |
| 12689 | }; then |
| 12690 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12691 | $as_echo "yes" >&6; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12692 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12693 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12695 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12696 | { { $as_echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12697 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12698 | Or specify the name of the library with --with-tlib." >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12699 | $as_echo "$as_me: error: NOT FOUND! |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12700 | You need to install a terminal library; for example ncurses. |
| 12701 | Or specify the name of the library with --with-tlib." >&2;} |
| 12702 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12703 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12704 | |
| 12705 | rm -rf conftest.dSYM |
| 12706 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12707 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 12708 | fi |
| 12709 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12710 | { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 12711 | $as_echo_n "checking whether we talk terminfo... " >&6; } |
| 12712 | if test "${vim_cv_terminfo+set}" = set; then |
| 12713 | $as_echo_n "(cached) " >&6 |
| 12714 | else |
| 12715 | |
| 12716 | if test "$cross_compiling" = yes; then |
| 12717 | |
| 12718 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5 |
| 12719 | $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] | 12720 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12721 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12722 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12723 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12724 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12725 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12726 | #ifdef HAVE_TERMCAP_H |
| 12727 | # include <termcap.h> |
| 12728 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12729 | #ifdef HAVE_STRING_H |
| 12730 | # include <string.h> |
| 12731 | #endif |
| 12732 | #if STDC_HEADERS |
| 12733 | # include <stdlib.h> |
| 12734 | # include <stddef.h> |
| 12735 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12736 | main() |
| 12737 | {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] | 12738 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12739 | _ACEOF |
| 12740 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12741 | if { (ac_try="$ac_link" |
| 12742 | case "(($ac_try" in |
| 12743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12744 | *) ac_try_echo=$ac_try;; |
| 12745 | esac |
| 12746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12747 | $as_echo "$ac_try_echo") >&5 |
| 12748 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12749 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12752 | { (case "(($ac_try" in |
| 12753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12754 | *) ac_try_echo=$ac_try;; |
| 12755 | esac |
| 12756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12757 | $as_echo "$ac_try_echo") >&5 |
| 12758 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12759 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12761 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12762 | |
| 12763 | vim_cv_terminfo=no |
| 12764 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12765 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12766 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12767 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12769 | |
| 12770 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12771 | |
| 12772 | vim_cv_terminfo=yes |
| 12773 | |
| 12774 | fi |
| 12775 | rm -rf conftest.dSYM |
| 12776 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12777 | fi |
| 12778 | |
| 12779 | |
| 12780 | |
| 12781 | fi |
| 12782 | { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5 |
| 12783 | $as_echo "$vim_cv_terminfo" >&6; } |
| 12784 | |
| 12785 | if test "x$vim_cv_terminfo" = "xyes" ; then |
| 12786 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12787 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12788 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12789 | |
| 12790 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12791 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12792 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12793 | { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 12794 | $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } |
| 12795 | if test "${vim_cv_tgent+set}" = set; then |
| 12796 | $as_echo_n "(cached) " >&6 |
| 12797 | else |
| 12798 | |
| 12799 | if test "$cross_compiling" = yes; then |
| 12800 | |
| 12801 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 12802 | $as_echo "$as_me: error: failed to compile test program." >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12803 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12804 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12805 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12806 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12807 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12808 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12809 | #ifdef HAVE_TERMCAP_H |
| 12810 | # include <termcap.h> |
| 12811 | #endif |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12812 | #if STDC_HEADERS |
| 12813 | # include <stdlib.h> |
| 12814 | # include <stddef.h> |
| 12815 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12816 | main() |
| 12817 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12818 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12819 | _ACEOF |
| 12820 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12821 | if { (ac_try="$ac_link" |
| 12822 | case "(($ac_try" in |
| 12823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12824 | *) ac_try_echo=$ac_try;; |
| 12825 | esac |
| 12826 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12827 | $as_echo "$ac_try_echo") >&5 |
| 12828 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12829 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12831 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12832 | { (case "(($ac_try" in |
| 12833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12834 | *) ac_try_echo=$ac_try;; |
| 12835 | esac |
| 12836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12837 | $as_echo "$ac_try_echo") >&5 |
| 12838 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12839 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12841 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12842 | |
| 12843 | vim_cv_tgent=zero |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12844 | |
| 12845 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12846 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 12847 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12849 | |
| 12850 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12851 | |
| 12852 | vim_cv_tgent=non-zero |
| 12853 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12854 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12855 | rm -rf conftest.dSYM |
| 12856 | 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] | 12857 | fi |
| 12858 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12859 | |
| 12860 | |
| 12861 | fi |
| 12862 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5 |
| 12863 | $as_echo "$vim_cv_tgent" >&6; } |
| 12864 | |
| 12865 | if test "x$vim_cv_tgent" = "xzero" ; then |
| 12866 | cat >>confdefs.h <<\_ACEOF |
| 12867 | #define TGETENT_ZERO_ERR 0 |
| 12868 | _ACEOF |
| 12869 | |
| 12870 | fi |
| 12871 | fi |
| 12872 | |
| 12873 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 12874 | $as_echo_n "checking whether termcap.h contains ospeed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12875 | cat >conftest.$ac_ext <<_ACEOF |
| 12876 | /* confdefs.h. */ |
| 12877 | _ACEOF |
| 12878 | cat confdefs.h >>conftest.$ac_ext |
| 12879 | cat >>conftest.$ac_ext <<_ACEOF |
| 12880 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12881 | |
| 12882 | #ifdef HAVE_TERMCAP_H |
| 12883 | # include <termcap.h> |
| 12884 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12885 | |
| 12886 | int |
| 12887 | main () |
| 12888 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12889 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12890 | ; |
| 12891 | return 0; |
| 12892 | } |
| 12893 | _ACEOF |
| 12894 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12895 | if { (ac_try="$ac_link" |
| 12896 | case "(($ac_try" in |
| 12897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12898 | *) ac_try_echo=$ac_try;; |
| 12899 | esac |
| 12900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12901 | $as_echo "$ac_try_echo") >&5 |
| 12902 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12903 | ac_status=$? |
| 12904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12905 | rm -f conftest.er1 |
| 12906 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12908 | (exit $ac_status); } && { |
| 12909 | test -z "$ac_c_werror_flag" || |
| 12910 | test ! -s conftest.err |
| 12911 | } && test -s conftest$ac_exeext && { |
| 12912 | test "$cross_compiling" = yes || |
| 12913 | $as_test_x conftest$ac_exeext |
| 12914 | }; then |
| 12915 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12916 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12917 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12918 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12919 | |
| 12920 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12921 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12923 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12924 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12925 | $as_echo "no" >&6; } |
| 12926 | { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 12927 | $as_echo_n "checking whether ospeed can be extern... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12928 | cat >conftest.$ac_ext <<_ACEOF |
| 12929 | /* confdefs.h. */ |
| 12930 | _ACEOF |
| 12931 | cat confdefs.h >>conftest.$ac_ext |
| 12932 | cat >>conftest.$ac_ext <<_ACEOF |
| 12933 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12934 | |
| 12935 | #ifdef HAVE_TERMCAP_H |
| 12936 | # include <termcap.h> |
| 12937 | #endif |
| 12938 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12939 | |
| 12940 | int |
| 12941 | main () |
| 12942 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12943 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12944 | ; |
| 12945 | return 0; |
| 12946 | } |
| 12947 | _ACEOF |
| 12948 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12949 | if { (ac_try="$ac_link" |
| 12950 | case "(($ac_try" in |
| 12951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12952 | *) ac_try_echo=$ac_try;; |
| 12953 | esac |
| 12954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12955 | $as_echo "$ac_try_echo") >&5 |
| 12956 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12957 | ac_status=$? |
| 12958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12959 | rm -f conftest.er1 |
| 12960 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12962 | (exit $ac_status); } && { |
| 12963 | test -z "$ac_c_werror_flag" || |
| 12964 | test ! -s conftest.err |
| 12965 | } && test -s conftest$ac_exeext && { |
| 12966 | test "$cross_compiling" = yes || |
| 12967 | $as_test_x conftest$ac_exeext |
| 12968 | }; then |
| 12969 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 12970 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12971 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12972 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12973 | |
| 12974 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12975 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12976 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12977 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12978 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12979 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12980 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12981 | |
| 12982 | rm -rf conftest.dSYM |
| 12983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12984 | conftest$ac_exeext conftest.$ac_ext |
| 12985 | |
| 12986 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12987 | |
| 12988 | rm -rf conftest.dSYM |
| 12989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12990 | conftest$ac_exeext conftest.$ac_ext |
| 12991 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 12992 | { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 12993 | $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] | 12994 | cat >conftest.$ac_ext <<_ACEOF |
| 12995 | /* confdefs.h. */ |
| 12996 | _ACEOF |
| 12997 | cat confdefs.h >>conftest.$ac_ext |
| 12998 | cat >>conftest.$ac_ext <<_ACEOF |
| 12999 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13000 | |
| 13001 | #ifdef HAVE_TERMCAP_H |
| 13002 | # include <termcap.h> |
| 13003 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13004 | |
| 13005 | int |
| 13006 | main () |
| 13007 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13008 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13009 | ; |
| 13010 | return 0; |
| 13011 | } |
| 13012 | _ACEOF |
| 13013 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13014 | if { (ac_try="$ac_link" |
| 13015 | case "(($ac_try" in |
| 13016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13017 | *) ac_try_echo=$ac_try;; |
| 13018 | esac |
| 13019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13020 | $as_echo "$ac_try_echo") >&5 |
| 13021 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13022 | ac_status=$? |
| 13023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13024 | rm -f conftest.er1 |
| 13025 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13027 | (exit $ac_status); } && { |
| 13028 | test -z "$ac_c_werror_flag" || |
| 13029 | test ! -s conftest.err |
| 13030 | } && test -s conftest$ac_exeext && { |
| 13031 | test "$cross_compiling" = yes || |
| 13032 | $as_test_x conftest$ac_exeext |
| 13033 | }; then |
| 13034 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13035 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13036 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13037 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13038 | |
| 13039 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13040 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13042 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13043 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13044 | $as_echo "no" >&6; } |
| 13045 | { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 13046 | $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] | 13047 | cat >conftest.$ac_ext <<_ACEOF |
| 13048 | /* confdefs.h. */ |
| 13049 | _ACEOF |
| 13050 | cat confdefs.h >>conftest.$ac_ext |
| 13051 | cat >>conftest.$ac_ext <<_ACEOF |
| 13052 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13053 | |
| 13054 | #ifdef HAVE_TERMCAP_H |
| 13055 | # include <termcap.h> |
| 13056 | #endif |
| 13057 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13058 | |
| 13059 | int |
| 13060 | main () |
| 13061 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13062 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13063 | ; |
| 13064 | return 0; |
| 13065 | } |
| 13066 | _ACEOF |
| 13067 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13068 | if { (ac_try="$ac_link" |
| 13069 | case "(($ac_try" in |
| 13070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13071 | *) ac_try_echo=$ac_try;; |
| 13072 | esac |
| 13073 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13074 | $as_echo "$ac_try_echo") >&5 |
| 13075 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13076 | ac_status=$? |
| 13077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13078 | rm -f conftest.er1 |
| 13079 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13081 | (exit $ac_status); } && { |
| 13082 | test -z "$ac_c_werror_flag" || |
| 13083 | test ! -s conftest.err |
| 13084 | } && test -s conftest$ac_exeext && { |
| 13085 | test "$cross_compiling" = yes || |
| 13086 | $as_test_x conftest$ac_exeext |
| 13087 | }; then |
| 13088 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13089 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13090 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13091 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13092 | |
| 13093 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13094 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13095 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13096 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13097 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13098 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13099 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13100 | |
| 13101 | rm -rf conftest.dSYM |
| 13102 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13103 | conftest$ac_exeext conftest.$ac_ext |
| 13104 | |
| 13105 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13106 | |
| 13107 | rm -rf conftest.dSYM |
| 13108 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13109 | conftest$ac_exeext conftest.$ac_ext |
| 13110 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13111 | { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 13112 | $as_echo_n "checking whether tputs() uses outfuntype... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13113 | cat >conftest.$ac_ext <<_ACEOF |
| 13114 | /* confdefs.h. */ |
| 13115 | _ACEOF |
| 13116 | cat confdefs.h >>conftest.$ac_ext |
| 13117 | cat >>conftest.$ac_ext <<_ACEOF |
| 13118 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13119 | |
| 13120 | #ifdef HAVE_TERMCAP_H |
| 13121 | # include <termcap.h> |
| 13122 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13123 | |
| 13124 | int |
| 13125 | main () |
| 13126 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13127 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13128 | ; |
| 13129 | return 0; |
| 13130 | } |
| 13131 | _ACEOF |
| 13132 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13133 | if { (ac_try="$ac_compile" |
| 13134 | case "(($ac_try" in |
| 13135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13136 | *) ac_try_echo=$ac_try;; |
| 13137 | esac |
| 13138 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13139 | $as_echo "$ac_try_echo") >&5 |
| 13140 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13141 | ac_status=$? |
| 13142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13143 | rm -f conftest.er1 |
| 13144 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); } && { |
| 13147 | test -z "$ac_c_werror_flag" || |
| 13148 | test ! -s conftest.err |
| 13149 | } && test -s conftest.$ac_objext; then |
| 13150 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13151 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13152 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13153 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13154 | |
| 13155 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13156 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13157 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13158 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13159 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13160 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13161 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13162 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13164 | |
| 13165 | { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13166 | $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] | 13167 | cat >conftest.$ac_ext <<_ACEOF |
| 13168 | /* confdefs.h. */ |
| 13169 | _ACEOF |
| 13170 | cat confdefs.h >>conftest.$ac_ext |
| 13171 | cat >>conftest.$ac_ext <<_ACEOF |
| 13172 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13173 | |
| 13174 | #include <sys/types.h> |
| 13175 | #include <sys/time.h> |
| 13176 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13177 | int |
| 13178 | main () |
| 13179 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13180 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13181 | ; |
| 13182 | return 0; |
| 13183 | } |
| 13184 | _ACEOF |
| 13185 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13186 | if { (ac_try="$ac_compile" |
| 13187 | case "(($ac_try" in |
| 13188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13189 | *) ac_try_echo=$ac_try;; |
| 13190 | esac |
| 13191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13192 | $as_echo "$ac_try_echo") >&5 |
| 13193 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13194 | ac_status=$? |
| 13195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13196 | rm -f conftest.er1 |
| 13197 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13199 | (exit $ac_status); } && { |
| 13200 | test -z "$ac_c_werror_flag" || |
| 13201 | test ! -s conftest.err |
| 13202 | } && test -s conftest.$ac_objext; then |
| 13203 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13204 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13205 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13206 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13207 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13208 | |
| 13209 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13210 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13212 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13213 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13214 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13215 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13216 | |
| 13217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13218 | |
| 13219 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13220 | { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 13221 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13222 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13223 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13224 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13225 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13226 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13227 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13228 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13229 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13230 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13231 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13232 | fi |
| 13233 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13234 | { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 13235 | $as_echo_n "checking for SVR4 ptys... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13236 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13237 | cat >conftest.$ac_ext <<_ACEOF |
| 13238 | /* confdefs.h. */ |
| 13239 | _ACEOF |
| 13240 | cat confdefs.h >>conftest.$ac_ext |
| 13241 | cat >>conftest.$ac_ext <<_ACEOF |
| 13242 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13243 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13244 | int |
| 13245 | main () |
| 13246 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13247 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13248 | ; |
| 13249 | return 0; |
| 13250 | } |
| 13251 | _ACEOF |
| 13252 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13253 | if { (ac_try="$ac_link" |
| 13254 | case "(($ac_try" in |
| 13255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13256 | *) ac_try_echo=$ac_try;; |
| 13257 | esac |
| 13258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13259 | $as_echo "$ac_try_echo") >&5 |
| 13260 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13261 | ac_status=$? |
| 13262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13263 | rm -f conftest.er1 |
| 13264 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13266 | (exit $ac_status); } && { |
| 13267 | test -z "$ac_c_werror_flag" || |
| 13268 | test ! -s conftest.err |
| 13269 | } && test -s conftest$ac_exeext && { |
| 13270 | test "$cross_compiling" = yes || |
| 13271 | $as_test_x conftest$ac_exeext |
| 13272 | }; then |
| 13273 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13274 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13275 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13276 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13277 | |
| 13278 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13279 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13281 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13282 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13283 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13284 | fi |
| 13285 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13286 | rm -rf conftest.dSYM |
| 13287 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13288 | conftest$ac_exeext conftest.$ac_ext |
| 13289 | else |
| 13290 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13291 | $as_echo "no" >&6; } |
| 13292 | fi |
| 13293 | |
| 13294 | { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 13295 | $as_echo_n "checking for ptyranges... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13296 | if test -d /dev/ptym ; then |
| 13297 | pdir='/dev/ptym' |
| 13298 | else |
| 13299 | pdir='/dev' |
| 13300 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13301 | cat >conftest.$ac_ext <<_ACEOF |
| 13302 | /* confdefs.h. */ |
| 13303 | _ACEOF |
| 13304 | cat confdefs.h >>conftest.$ac_ext |
| 13305 | cat >>conftest.$ac_ext <<_ACEOF |
| 13306 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13307 | #ifdef M_UNIX |
| 13308 | yes; |
| 13309 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13310 | |
| 13311 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13313 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13314 | ptys=`echo /dev/ptyp??` |
| 13315 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13316 | ptys=`echo $pdir/pty??` |
| 13317 | fi |
| 13318 | rm -f conftest* |
| 13319 | |
| 13320 | if test "$ptys" != "$pdir/pty??" ; then |
| 13321 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 13322 | 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] | 13323 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13324 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13325 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13326 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13327 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13328 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13329 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13330 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13331 | { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 13332 | $as_echo "$p0 / $p1" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13333 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13334 | { $as_echo "$as_me:$LINENO: result: don't know" >&5 |
| 13335 | $as_echo "don't know" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13336 | fi |
| 13337 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13338 | rm -f conftest_grp |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13339 | { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 13340 | $as_echo_n "checking default tty permissions/group... " >&6; } |
| 13341 | if test "${vim_cv_tty_group+set}" = set; then |
| 13342 | $as_echo_n "(cached) " >&6 |
| 13343 | else |
| 13344 | |
| 13345 | if test "$cross_compiling" = yes; then |
| 13346 | |
| 13347 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5 |
| 13348 | $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] | 13349 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13350 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13351 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13352 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13353 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13354 | #include "confdefs.h" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13355 | #include <sys/types.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13356 | #if STDC_HEADERS |
| 13357 | # include <stdlib.h> |
| 13358 | # include <stddef.h> |
| 13359 | #endif |
| 13360 | #ifdef HAVE_UNISTD_H |
| 13361 | #include <unistd.h> |
| 13362 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13363 | #include <sys/stat.h> |
| 13364 | #include <stdio.h> |
| 13365 | main() |
| 13366 | { |
| 13367 | struct stat sb; |
| 13368 | char *x,*ttyname(); |
| 13369 | int om, m; |
| 13370 | FILE *fp; |
| 13371 | |
| 13372 | if (!(x = ttyname(0))) exit(1); |
| 13373 | if (stat(x, &sb)) exit(1); |
| 13374 | om = sb.st_mode; |
| 13375 | if (om & 002) exit(0); |
| 13376 | m = system("mesg y"); |
| 13377 | if (m == -1 || m == 127) exit(1); |
| 13378 | if (stat(x, &sb)) exit(1); |
| 13379 | m = sb.st_mode; |
| 13380 | if (chmod(x, om)) exit(1); |
| 13381 | if (m & 002) exit(0); |
| 13382 | if (sb.st_gid == getgid()) exit(1); |
| 13383 | if (!(fp=fopen("conftest_grp", "w"))) |
| 13384 | exit(1); |
| 13385 | fprintf(fp, "%d\n", sb.st_gid); |
| 13386 | fclose(fp); |
| 13387 | exit(0); |
| 13388 | } |
| 13389 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13390 | _ACEOF |
| 13391 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13392 | if { (ac_try="$ac_link" |
| 13393 | case "(($ac_try" in |
| 13394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13395 | *) ac_try_echo=$ac_try;; |
| 13396 | esac |
| 13397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13398 | $as_echo "$ac_try_echo") >&5 |
| 13399 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13400 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13403 | { (case "(($ac_try" in |
| 13404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13405 | *) ac_try_echo=$ac_try;; |
| 13406 | esac |
| 13407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13408 | $as_echo "$ac_try_echo") >&5 |
| 13409 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13410 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13412 | (exit $ac_status); }; }; then |
| 13413 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13414 | if test -f conftest_grp; then |
| 13415 | vim_cv_tty_group=`cat conftest_grp` |
| 13416 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13417 | vim_cv_tty_mode=0620 |
| 13418 | fi |
| 13419 | { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 |
| 13420 | $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } |
| 13421 | else |
| 13422 | vim_cv_tty_group=world |
| 13423 | { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 13424 | $as_echo "ptys are world accessable" >&6; } |
| 13425 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13426 | |
| 13427 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13428 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13429 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13430 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13431 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13432 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13433 | |
| 13434 | vim_cv_tty_group=world |
| 13435 | { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 13436 | $as_echo "can't determine - assume ptys are world accessable" >&6; } |
| 13437 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13438 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13439 | rm -rf conftest.dSYM |
| 13440 | 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] | 13441 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13442 | |
| 13443 | |
| 13444 | |
| 13445 | fi |
| 13446 | { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5 |
| 13447 | $as_echo "$vim_cv_tty_group" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13448 | rm -f conftest_grp |
| 13449 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13450 | if test "x$vim_cv_tty_group" != "xworld" ; then |
| 13451 | cat >>confdefs.h <<_ACEOF |
| 13452 | #define PTYGROUP $vim_cv_tty_group |
| 13453 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13454 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13455 | if test "x$vim_cv_tty_mode" = "x" ; then |
| 13456 | { { $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 |
| 13457 | $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;} |
| 13458 | { (exit 1); exit 1; }; } |
| 13459 | else |
| 13460 | cat >>confdefs.h <<\_ACEOF |
| 13461 | #define PTYMODE 0620 |
| 13462 | _ACEOF |
| 13463 | |
| 13464 | fi |
| 13465 | fi |
| 13466 | |
| 13467 | |
| 13468 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 13469 | $as_echo_n "checking return type of signal handlers... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13470 | if test "${ac_cv_type_signal+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13471 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13472 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13473 | cat >conftest.$ac_ext <<_ACEOF |
| 13474 | /* confdefs.h. */ |
| 13475 | _ACEOF |
| 13476 | cat confdefs.h >>conftest.$ac_ext |
| 13477 | cat >>conftest.$ac_ext <<_ACEOF |
| 13478 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13479 | #include <sys/types.h> |
| 13480 | #include <signal.h> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13481 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13482 | int |
| 13483 | main () |
| 13484 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13485 | return *(signal (0, 0)) (0) == 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13486 | ; |
| 13487 | return 0; |
| 13488 | } |
| 13489 | _ACEOF |
| 13490 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13491 | if { (ac_try="$ac_compile" |
| 13492 | case "(($ac_try" in |
| 13493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13494 | *) ac_try_echo=$ac_try;; |
| 13495 | esac |
| 13496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13497 | $as_echo "$ac_try_echo") >&5 |
| 13498 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13499 | ac_status=$? |
| 13500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13501 | rm -f conftest.er1 |
| 13502 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13504 | (exit $ac_status); } && { |
| 13505 | test -z "$ac_c_werror_flag" || |
| 13506 | test ! -s conftest.err |
| 13507 | } && test -s conftest.$ac_objext; then |
| 13508 | ac_cv_type_signal=int |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13509 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13510 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13511 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13512 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13513 | ac_cv_type_signal=void |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13514 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13515 | |
| 13516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13517 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13518 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 13519 | $as_echo "$ac_cv_type_signal" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13520 | |
| 13521 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13522 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13523 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13524 | |
| 13525 | |
| 13526 | |
| 13527 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13528 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13529 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13530 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13531 | |
| 13532 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13533 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13534 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13535 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13536 | |
| 13537 | fi |
| 13538 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13539 | { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 13540 | $as_echo_n "checking for struct sigcontext... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13541 | cat >conftest.$ac_ext <<_ACEOF |
| 13542 | /* confdefs.h. */ |
| 13543 | _ACEOF |
| 13544 | cat confdefs.h >>conftest.$ac_ext |
| 13545 | cat >>conftest.$ac_ext <<_ACEOF |
| 13546 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13547 | |
| 13548 | #include <signal.h> |
| 13549 | test_sig() |
| 13550 | { |
| 13551 | struct sigcontext *scont; |
| 13552 | scont = (struct sigcontext *)0; |
| 13553 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13554 | } |
| 13555 | int |
| 13556 | main () |
| 13557 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13558 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13559 | ; |
| 13560 | return 0; |
| 13561 | } |
| 13562 | _ACEOF |
| 13563 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13564 | if { (ac_try="$ac_compile" |
| 13565 | case "(($ac_try" in |
| 13566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13567 | *) ac_try_echo=$ac_try;; |
| 13568 | esac |
| 13569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13570 | $as_echo "$ac_try_echo") >&5 |
| 13571 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13572 | ac_status=$? |
| 13573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13574 | rm -f conftest.er1 |
| 13575 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13577 | (exit $ac_status); } && { |
| 13578 | test -z "$ac_c_werror_flag" || |
| 13579 | test ! -s conftest.err |
| 13580 | } && test -s conftest.$ac_objext; then |
| 13581 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13582 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13583 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13584 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13585 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13586 | |
| 13587 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13588 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13590 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13591 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13592 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13593 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13594 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13596 | |
| 13597 | { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5 |
| 13598 | $as_echo_n "checking getcwd implementation is broken... " >&6; } |
| 13599 | if test "${vim_cv_getcwd_broken+set}" = set; then |
| 13600 | $as_echo_n "(cached) " >&6 |
| 13601 | else |
| 13602 | |
| 13603 | if test "$cross_compiling" = yes; then |
| 13604 | |
| 13605 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5 |
| 13606 | $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] | 13607 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13608 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13609 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13610 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13611 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13612 | #include "confdefs.h" |
| 13613 | #ifdef HAVE_UNISTD_H |
| 13614 | #include <unistd.h> |
| 13615 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13616 | char *dagger[] = { "IFS=pwd", 0 }; |
| 13617 | main() |
| 13618 | { |
| 13619 | char buffer[500]; |
| 13620 | extern char **environ; |
| 13621 | environ = dagger; |
| 13622 | return getcwd(buffer, 500) ? 0 : 1; |
| 13623 | } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13624 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13625 | _ACEOF |
| 13626 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13627 | if { (ac_try="$ac_link" |
| 13628 | case "(($ac_try" in |
| 13629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13630 | *) ac_try_echo=$ac_try;; |
| 13631 | esac |
| 13632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13633 | $as_echo "$ac_try_echo") >&5 |
| 13634 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13635 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13637 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13638 | { (case "(($ac_try" in |
| 13639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13640 | *) ac_try_echo=$ac_try;; |
| 13641 | esac |
| 13642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13643 | $as_echo "$ac_try_echo") >&5 |
| 13644 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13645 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13647 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13648 | |
| 13649 | vim_cv_getcwd_broken=no |
| 13650 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13651 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13652 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13653 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13655 | |
| 13656 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13657 | |
| 13658 | vim_cv_getcwd_broken=yes |
| 13659 | |
| 13660 | fi |
| 13661 | rm -rf conftest.dSYM |
| 13662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13663 | fi |
| 13664 | |
| 13665 | |
| 13666 | |
| 13667 | fi |
| 13668 | { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5 |
| 13669 | $as_echo "$vim_cv_getcwd_broken" >&6; } |
| 13670 | |
| 13671 | if test "x$vim_cv_getcwd_broken" = "xyes" ; then |
| 13672 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13673 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13674 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13675 | |
| 13676 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13677 | |
| 13678 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13679 | |
| 13680 | |
| 13681 | |
| 13682 | |
| 13683 | |
| 13684 | |
| 13685 | |
| 13686 | |
| 13687 | |
| 13688 | |
| 13689 | |
| 13690 | |
| 13691 | |
| 13692 | |
| 13693 | |
| 13694 | |
| 13695 | |
| 13696 | |
| 13697 | |
| 13698 | |
| 13699 | |
| 13700 | |
| 13701 | |
| 13702 | |
| 13703 | |
| 13704 | |
| 13705 | |
| 13706 | |
| 13707 | |
| 13708 | |
| 13709 | |
| 13710 | |
| 13711 | |
| 13712 | |
| 13713 | |
| 13714 | |
| 13715 | |
| 13716 | |
| 13717 | |
| 13718 | |
| 13719 | |
| 13720 | |
| 13721 | |
| 13722 | |
| 13723 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13724 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 13725 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 13726 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 13727 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 13728 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 13729 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 13730 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13731 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13732 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13733 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13734 | $as_echo_n "checking for $ac_func... " >&6; } |
| 13735 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13736 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13738 | cat >conftest.$ac_ext <<_ACEOF |
| 13739 | /* confdefs.h. */ |
| 13740 | _ACEOF |
| 13741 | cat confdefs.h >>conftest.$ac_ext |
| 13742 | cat >>conftest.$ac_ext <<_ACEOF |
| 13743 | /* end confdefs.h. */ |
| 13744 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13745 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13746 | #define $ac_func innocuous_$ac_func |
| 13747 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13748 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13749 | which can conflict with char $ac_func (); below. |
| 13750 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13751 | <limits.h> exists even on freestanding compilers. */ |
| 13752 | |
| 13753 | #ifdef __STDC__ |
| 13754 | # include <limits.h> |
| 13755 | #else |
| 13756 | # include <assert.h> |
| 13757 | #endif |
| 13758 | |
| 13759 | #undef $ac_func |
| 13760 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13761 | /* Override any GCC internal prototype to avoid an error. |
| 13762 | Use char because int might match the return type of a GCC |
| 13763 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13764 | #ifdef __cplusplus |
| 13765 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13766 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13767 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13768 | /* The GNU C library defines this for functions which it implements |
| 13769 | to always fail with ENOSYS. Some functions are actually named |
| 13770 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13771 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13772 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13773 | #endif |
| 13774 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13775 | int |
| 13776 | main () |
| 13777 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13778 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13779 | ; |
| 13780 | return 0; |
| 13781 | } |
| 13782 | _ACEOF |
| 13783 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13784 | if { (ac_try="$ac_link" |
| 13785 | case "(($ac_try" in |
| 13786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13787 | *) ac_try_echo=$ac_try;; |
| 13788 | esac |
| 13789 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13790 | $as_echo "$ac_try_echo") >&5 |
| 13791 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13792 | ac_status=$? |
| 13793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13794 | rm -f conftest.er1 |
| 13795 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13797 | (exit $ac_status); } && { |
| 13798 | test -z "$ac_c_werror_flag" || |
| 13799 | test ! -s conftest.err |
| 13800 | } && test -s conftest$ac_exeext && { |
| 13801 | test "$cross_compiling" = yes || |
| 13802 | $as_test_x conftest$ac_exeext |
| 13803 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13804 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13805 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13806 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13807 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13808 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13809 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13810 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13811 | |
| 13812 | rm -rf conftest.dSYM |
| 13813 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13814 | conftest$ac_exeext conftest.$ac_ext |
| 13815 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13816 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 13817 | $as_echo "$as_val"'` |
| 13818 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13819 | $as_echo "$ac_res" >&6; } |
| 13820 | if test `eval 'as_val=${'$as_ac_var'} |
| 13821 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13822 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13823 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13824 | _ACEOF |
| 13825 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13826 | fi |
| 13827 | done |
| 13828 | |
| 13829 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13830 | { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 13831 | $as_echo_n "checking for st_blksize... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13832 | cat >conftest.$ac_ext <<_ACEOF |
| 13833 | /* confdefs.h. */ |
| 13834 | _ACEOF |
| 13835 | cat confdefs.h >>conftest.$ac_ext |
| 13836 | cat >>conftest.$ac_ext <<_ACEOF |
| 13837 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13838 | #include <sys/types.h> |
| 13839 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13840 | int |
| 13841 | main () |
| 13842 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13843 | struct stat st; |
| 13844 | int n; |
| 13845 | |
| 13846 | stat("/", &st); |
| 13847 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13848 | ; |
| 13849 | return 0; |
| 13850 | } |
| 13851 | _ACEOF |
| 13852 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13853 | if { (ac_try="$ac_compile" |
| 13854 | case "(($ac_try" in |
| 13855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13856 | *) ac_try_echo=$ac_try;; |
| 13857 | esac |
| 13858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13859 | $as_echo "$ac_try_echo") >&5 |
| 13860 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13861 | ac_status=$? |
| 13862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13863 | rm -f conftest.er1 |
| 13864 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13866 | (exit $ac_status); } && { |
| 13867 | test -z "$ac_c_werror_flag" || |
| 13868 | test ! -s conftest.err |
| 13869 | } && test -s conftest.$ac_objext; then |
| 13870 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 13871 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13872 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13873 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13874 | |
| 13875 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13876 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13878 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13879 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 13880 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13881 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13882 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13884 | |
| 13885 | { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 13886 | $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } |
| 13887 | if test "${vim_cv_stat_ignores_slash+set}" = set; then |
| 13888 | $as_echo_n "(cached) " >&6 |
| 13889 | else |
| 13890 | |
| 13891 | if test "$cross_compiling" = yes; then |
| 13892 | |
| 13893 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5 |
| 13894 | $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] | 13895 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13896 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13897 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13898 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13899 | |
| 13900 | #include "confdefs.h" |
| 13901 | #if STDC_HEADERS |
| 13902 | # include <stdlib.h> |
| 13903 | # include <stddef.h> |
| 13904 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13905 | #include <sys/types.h> |
| 13906 | #include <sys/stat.h> |
| 13907 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13908 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13909 | _ACEOF |
| 13910 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13911 | if { (ac_try="$ac_link" |
| 13912 | case "(($ac_try" in |
| 13913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13914 | *) ac_try_echo=$ac_try;; |
| 13915 | esac |
| 13916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13917 | $as_echo "$ac_try_echo") >&5 |
| 13918 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13919 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13921 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13922 | { (case "(($ac_try" in |
| 13923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13924 | *) ac_try_echo=$ac_try;; |
| 13925 | esac |
| 13926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13927 | $as_echo "$ac_try_echo") >&5 |
| 13928 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13929 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13931 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13932 | |
| 13933 | vim_cv_stat_ignores_slash=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13934 | |
| 13935 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13936 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13937 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13939 | |
| 13940 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13941 | |
| 13942 | vim_cv_stat_ignores_slash=no |
| 13943 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13944 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13945 | rm -rf conftest.dSYM |
| 13946 | 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] | 13947 | fi |
| 13948 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13949 | |
| 13950 | |
| 13951 | fi |
| 13952 | { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5 |
| 13953 | $as_echo "$vim_cv_stat_ignores_slash" >&6; } |
| 13954 | |
| 13955 | if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
| 13956 | cat >>confdefs.h <<\_ACEOF |
| 13957 | #define STAT_IGNORES_SLASH 1 |
| 13958 | _ACEOF |
| 13959 | |
| 13960 | fi |
| 13961 | |
| 13962 | { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 13963 | $as_echo_n "checking for iconv_open()... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13964 | save_LIBS="$LIBS" |
| 13965 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13966 | cat >conftest.$ac_ext <<_ACEOF |
| 13967 | /* confdefs.h. */ |
| 13968 | _ACEOF |
| 13969 | cat confdefs.h >>conftest.$ac_ext |
| 13970 | cat >>conftest.$ac_ext <<_ACEOF |
| 13971 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13972 | |
| 13973 | #ifdef HAVE_ICONV_H |
| 13974 | # include <iconv.h> |
| 13975 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13976 | |
| 13977 | int |
| 13978 | main () |
| 13979 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13980 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13981 | ; |
| 13982 | return 0; |
| 13983 | } |
| 13984 | _ACEOF |
| 13985 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13986 | if { (ac_try="$ac_link" |
| 13987 | case "(($ac_try" in |
| 13988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13989 | *) ac_try_echo=$ac_try;; |
| 13990 | esac |
| 13991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13992 | $as_echo "$ac_try_echo") >&5 |
| 13993 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13994 | ac_status=$? |
| 13995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13996 | rm -f conftest.er1 |
| 13997 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 13998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13999 | (exit $ac_status); } && { |
| 14000 | test -z "$ac_c_werror_flag" || |
| 14001 | test ! -s conftest.err |
| 14002 | } && test -s conftest$ac_exeext && { |
| 14003 | test "$cross_compiling" = yes || |
| 14004 | $as_test_x conftest$ac_exeext |
| 14005 | }; then |
| 14006 | { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 14007 | $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14008 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14009 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14010 | |
| 14011 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14012 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14014 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14015 | LIBS="$save_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14016 | cat >conftest.$ac_ext <<_ACEOF |
| 14017 | /* confdefs.h. */ |
| 14018 | _ACEOF |
| 14019 | cat confdefs.h >>conftest.$ac_ext |
| 14020 | cat >>conftest.$ac_ext <<_ACEOF |
| 14021 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14022 | |
| 14023 | #ifdef HAVE_ICONV_H |
| 14024 | # include <iconv.h> |
| 14025 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14026 | |
| 14027 | int |
| 14028 | main () |
| 14029 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14030 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14031 | ; |
| 14032 | return 0; |
| 14033 | } |
| 14034 | _ACEOF |
| 14035 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14036 | if { (ac_try="$ac_link" |
| 14037 | case "(($ac_try" in |
| 14038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14039 | *) ac_try_echo=$ac_try;; |
| 14040 | esac |
| 14041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14042 | $as_echo "$ac_try_echo") >&5 |
| 14043 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14044 | ac_status=$? |
| 14045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14046 | rm -f conftest.er1 |
| 14047 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14049 | (exit $ac_status); } && { |
| 14050 | test -z "$ac_c_werror_flag" || |
| 14051 | test ! -s conftest.err |
| 14052 | } && test -s conftest$ac_exeext && { |
| 14053 | test "$cross_compiling" = yes || |
| 14054 | $as_test_x conftest$ac_exeext |
| 14055 | }; then |
| 14056 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14057 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14058 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14059 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14060 | |
| 14061 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14062 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14064 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14065 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14066 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14067 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14068 | |
| 14069 | rm -rf conftest.dSYM |
| 14070 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14071 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14072 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14073 | |
| 14074 | rm -rf conftest.dSYM |
| 14075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14076 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14077 | |
| 14078 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14079 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 14080 | $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14081 | cat >conftest.$ac_ext <<_ACEOF |
| 14082 | /* confdefs.h. */ |
| 14083 | _ACEOF |
| 14084 | cat confdefs.h >>conftest.$ac_ext |
| 14085 | cat >>conftest.$ac_ext <<_ACEOF |
| 14086 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14087 | |
| 14088 | #ifdef HAVE_LANGINFO_H |
| 14089 | # include <langinfo.h> |
| 14090 | #endif |
| 14091 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14092 | int |
| 14093 | main () |
| 14094 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14095 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14096 | ; |
| 14097 | return 0; |
| 14098 | } |
| 14099 | _ACEOF |
| 14100 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14101 | if { (ac_try="$ac_link" |
| 14102 | case "(($ac_try" in |
| 14103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14104 | *) ac_try_echo=$ac_try;; |
| 14105 | esac |
| 14106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14107 | $as_echo "$ac_try_echo") >&5 |
| 14108 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14109 | ac_status=$? |
| 14110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14111 | rm -f conftest.er1 |
| 14112 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14114 | (exit $ac_status); } && { |
| 14115 | test -z "$ac_c_werror_flag" || |
| 14116 | test ! -s conftest.err |
| 14117 | } && test -s conftest$ac_exeext && { |
| 14118 | test "$cross_compiling" = yes || |
| 14119 | $as_test_x conftest$ac_exeext |
| 14120 | }; then |
| 14121 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14122 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14123 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14124 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14125 | |
| 14126 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14127 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14128 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14129 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14130 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14131 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14132 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14133 | |
| 14134 | rm -rf conftest.dSYM |
| 14135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14136 | conftest$ac_exeext conftest.$ac_ext |
| 14137 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14138 | |
| 14139 | { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5 |
| 14140 | $as_echo_n "checking for strtod in -lm... " >&6; } |
| 14141 | if test "${ac_cv_lib_m_strtod+set}" = set; then |
| 14142 | $as_echo_n "(cached) " >&6 |
| 14143 | else |
| 14144 | ac_check_lib_save_LIBS=$LIBS |
| 14145 | LIBS="-lm $LIBS" |
| 14146 | cat >conftest.$ac_ext <<_ACEOF |
| 14147 | /* confdefs.h. */ |
| 14148 | _ACEOF |
| 14149 | cat confdefs.h >>conftest.$ac_ext |
| 14150 | cat >>conftest.$ac_ext <<_ACEOF |
| 14151 | /* end confdefs.h. */ |
| 14152 | |
| 14153 | /* Override any GCC internal prototype to avoid an error. |
| 14154 | Use char because int might match the return type of a GCC |
| 14155 | builtin and then its argument prototype would still apply. */ |
| 14156 | #ifdef __cplusplus |
| 14157 | extern "C" |
| 14158 | #endif |
| 14159 | char strtod (); |
| 14160 | int |
| 14161 | main () |
| 14162 | { |
| 14163 | return strtod (); |
| 14164 | ; |
| 14165 | return 0; |
| 14166 | } |
| 14167 | _ACEOF |
| 14168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14169 | if { (ac_try="$ac_link" |
| 14170 | case "(($ac_try" in |
| 14171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14172 | *) ac_try_echo=$ac_try;; |
| 14173 | esac |
| 14174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14175 | $as_echo "$ac_try_echo") >&5 |
| 14176 | (eval "$ac_link") 2>conftest.er1 |
| 14177 | ac_status=$? |
| 14178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14179 | rm -f conftest.er1 |
| 14180 | cat conftest.err >&5 |
| 14181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14182 | (exit $ac_status); } && { |
| 14183 | test -z "$ac_c_werror_flag" || |
| 14184 | test ! -s conftest.err |
| 14185 | } && test -s conftest$ac_exeext && { |
| 14186 | test "$cross_compiling" = yes || |
| 14187 | $as_test_x conftest$ac_exeext |
| 14188 | }; then |
| 14189 | ac_cv_lib_m_strtod=yes |
| 14190 | else |
| 14191 | $as_echo "$as_me: failed program was:" >&5 |
| 14192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14193 | |
| 14194 | ac_cv_lib_m_strtod=no |
| 14195 | fi |
| 14196 | |
| 14197 | rm -rf conftest.dSYM |
| 14198 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14199 | conftest$ac_exeext conftest.$ac_ext |
| 14200 | LIBS=$ac_check_lib_save_LIBS |
| 14201 | fi |
| 14202 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5 |
| 14203 | $as_echo "$ac_cv_lib_m_strtod" >&6; } |
| 14204 | if test $ac_cv_lib_m_strtod = yes; then |
| 14205 | cat >>confdefs.h <<_ACEOF |
| 14206 | #define HAVE_LIBM 1 |
| 14207 | _ACEOF |
| 14208 | |
| 14209 | LIBS="-lm $LIBS" |
| 14210 | |
| 14211 | fi |
| 14212 | |
| 14213 | { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5 |
| 14214 | $as_echo_n "checking for strtod() and other floating point functions... " >&6; } |
| 14215 | cat >conftest.$ac_ext <<_ACEOF |
| 14216 | /* confdefs.h. */ |
| 14217 | _ACEOF |
| 14218 | cat confdefs.h >>conftest.$ac_ext |
| 14219 | cat >>conftest.$ac_ext <<_ACEOF |
| 14220 | /* end confdefs.h. */ |
| 14221 | |
| 14222 | #ifdef HAVE_MATH_H |
| 14223 | # include <math.h> |
| 14224 | #endif |
| 14225 | #if STDC_HEADERS |
| 14226 | # include <stdlib.h> |
| 14227 | # include <stddef.h> |
| 14228 | #endif |
| 14229 | |
| 14230 | int |
| 14231 | main () |
| 14232 | { |
| 14233 | char *s; double d; |
| 14234 | d = strtod("1.1", &s); |
| 14235 | d = fabs(1.11); |
| 14236 | d = ceil(1.11); |
| 14237 | d = floor(1.11); |
| 14238 | d = log10(1.11); |
| 14239 | d = pow(1.11, 2.22); |
| 14240 | d = sqrt(1.11); |
| 14241 | d = sin(1.11); |
| 14242 | d = cos(1.11); |
| 14243 | d = atan(1.11); |
| 14244 | |
| 14245 | ; |
| 14246 | return 0; |
| 14247 | } |
| 14248 | _ACEOF |
| 14249 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14250 | if { (ac_try="$ac_link" |
| 14251 | case "(($ac_try" in |
| 14252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14253 | *) ac_try_echo=$ac_try;; |
| 14254 | esac |
| 14255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14256 | $as_echo "$ac_try_echo") >&5 |
| 14257 | (eval "$ac_link") 2>conftest.er1 |
| 14258 | ac_status=$? |
| 14259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14260 | rm -f conftest.er1 |
| 14261 | cat conftest.err >&5 |
| 14262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14263 | (exit $ac_status); } && { |
| 14264 | test -z "$ac_c_werror_flag" || |
| 14265 | test ! -s conftest.err |
| 14266 | } && test -s conftest$ac_exeext && { |
| 14267 | test "$cross_compiling" = yes || |
| 14268 | $as_test_x conftest$ac_exeext |
| 14269 | }; then |
| 14270 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14271 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
| 14272 | #define HAVE_FLOAT_FUNCS 1 |
| 14273 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14274 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14275 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14276 | $as_echo "$as_me: failed program was:" >&5 |
| 14277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14278 | |
| 14279 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14280 | $as_echo "no" >&6; } |
| 14281 | fi |
| 14282 | |
| 14283 | rm -rf conftest.dSYM |
| 14284 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14285 | conftest$ac_exeext conftest.$ac_ext |
| 14286 | |
| 14287 | { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 14288 | $as_echo_n "checking --disable-acl argument... " >&6; } |
| 14289 | # Check whether --enable-acl was given. |
| 14290 | if test "${enable_acl+set}" = set; then |
| 14291 | enableval=$enable_acl; |
| 14292 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14293 | enable_acl="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14294 | fi |
| 14295 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14296 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14297 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14298 | $as_echo "no" >&6; } |
| 14299 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 14300 | $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14301 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14302 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14303 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14304 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14305 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14306 | cat >conftest.$ac_ext <<_ACEOF |
| 14307 | /* confdefs.h. */ |
| 14308 | _ACEOF |
| 14309 | cat confdefs.h >>conftest.$ac_ext |
| 14310 | cat >>conftest.$ac_ext <<_ACEOF |
| 14311 | /* end confdefs.h. */ |
| 14312 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14313 | /* Override any GCC internal prototype to avoid an error. |
| 14314 | Use char because int might match the return type of a GCC |
| 14315 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14316 | #ifdef __cplusplus |
| 14317 | extern "C" |
| 14318 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14319 | char acl_get_file (); |
| 14320 | int |
| 14321 | main () |
| 14322 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14323 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14324 | ; |
| 14325 | return 0; |
| 14326 | } |
| 14327 | _ACEOF |
| 14328 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14329 | if { (ac_try="$ac_link" |
| 14330 | case "(($ac_try" in |
| 14331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14332 | *) ac_try_echo=$ac_try;; |
| 14333 | esac |
| 14334 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14335 | $as_echo "$ac_try_echo") >&5 |
| 14336 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14337 | ac_status=$? |
| 14338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14339 | rm -f conftest.er1 |
| 14340 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14342 | (exit $ac_status); } && { |
| 14343 | test -z "$ac_c_werror_flag" || |
| 14344 | test ! -s conftest.err |
| 14345 | } && test -s conftest$ac_exeext && { |
| 14346 | test "$cross_compiling" = yes || |
| 14347 | $as_test_x conftest$ac_exeext |
| 14348 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14349 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14350 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14351 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14352 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14353 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14354 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14355 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14356 | |
| 14357 | rm -rf conftest.dSYM |
| 14358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14359 | conftest$ac_exeext conftest.$ac_ext |
| 14360 | LIBS=$ac_check_lib_save_LIBS |
| 14361 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14362 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 14363 | $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14364 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14365 | LIBS="$LIBS -lposix1e" |
| 14366 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14367 | { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 14368 | $as_echo_n "checking for acl_get_file in -lacl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14369 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14370 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14371 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14372 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14373 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14374 | cat >conftest.$ac_ext <<_ACEOF |
| 14375 | /* confdefs.h. */ |
| 14376 | _ACEOF |
| 14377 | cat confdefs.h >>conftest.$ac_ext |
| 14378 | cat >>conftest.$ac_ext <<_ACEOF |
| 14379 | /* end confdefs.h. */ |
| 14380 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14381 | /* Override any GCC internal prototype to avoid an error. |
| 14382 | Use char because int might match the return type of a GCC |
| 14383 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14384 | #ifdef __cplusplus |
| 14385 | extern "C" |
| 14386 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14387 | char acl_get_file (); |
| 14388 | int |
| 14389 | main () |
| 14390 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14391 | return acl_get_file (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14392 | ; |
| 14393 | return 0; |
| 14394 | } |
| 14395 | _ACEOF |
| 14396 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14397 | if { (ac_try="$ac_link" |
| 14398 | case "(($ac_try" in |
| 14399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14400 | *) ac_try_echo=$ac_try;; |
| 14401 | esac |
| 14402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14403 | $as_echo "$ac_try_echo") >&5 |
| 14404 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14405 | ac_status=$? |
| 14406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14407 | rm -f conftest.er1 |
| 14408 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14410 | (exit $ac_status); } && { |
| 14411 | test -z "$ac_c_werror_flag" || |
| 14412 | test ! -s conftest.err |
| 14413 | } && test -s conftest$ac_exeext && { |
| 14414 | test "$cross_compiling" = yes || |
| 14415 | $as_test_x conftest$ac_exeext |
| 14416 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14417 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14418 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14419 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14420 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14421 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14422 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14423 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14424 | |
| 14425 | rm -rf conftest.dSYM |
| 14426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14427 | conftest$ac_exeext conftest.$ac_ext |
| 14428 | LIBS=$ac_check_lib_save_LIBS |
| 14429 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14430 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 14431 | $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14432 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14433 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14434 | { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 14435 | $as_echo_n "checking for fgetxattr in -lattr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14436 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14437 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14438 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14439 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14440 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14441 | cat >conftest.$ac_ext <<_ACEOF |
| 14442 | /* confdefs.h. */ |
| 14443 | _ACEOF |
| 14444 | cat confdefs.h >>conftest.$ac_ext |
| 14445 | cat >>conftest.$ac_ext <<_ACEOF |
| 14446 | /* end confdefs.h. */ |
| 14447 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14448 | /* Override any GCC internal prototype to avoid an error. |
| 14449 | Use char because int might match the return type of a GCC |
| 14450 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14451 | #ifdef __cplusplus |
| 14452 | extern "C" |
| 14453 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14454 | char fgetxattr (); |
| 14455 | int |
| 14456 | main () |
| 14457 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14458 | return fgetxattr (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14459 | ; |
| 14460 | return 0; |
| 14461 | } |
| 14462 | _ACEOF |
| 14463 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14464 | if { (ac_try="$ac_link" |
| 14465 | case "(($ac_try" in |
| 14466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14467 | *) ac_try_echo=$ac_try;; |
| 14468 | esac |
| 14469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14470 | $as_echo "$ac_try_echo") >&5 |
| 14471 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14472 | ac_status=$? |
| 14473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14474 | rm -f conftest.er1 |
| 14475 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14477 | (exit $ac_status); } && { |
| 14478 | test -z "$ac_c_werror_flag" || |
| 14479 | test ! -s conftest.err |
| 14480 | } && test -s conftest$ac_exeext && { |
| 14481 | test "$cross_compiling" = yes || |
| 14482 | $as_test_x conftest$ac_exeext |
| 14483 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14484 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14485 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14486 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14487 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14488 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14489 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14490 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14491 | |
| 14492 | rm -rf conftest.dSYM |
| 14493 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14494 | conftest$ac_exeext conftest.$ac_ext |
| 14495 | LIBS=$ac_check_lib_save_LIBS |
| 14496 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14497 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 14498 | $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14499 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14500 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14501 | fi |
| 14502 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14503 | fi |
| 14504 | |
| 14505 | fi |
| 14506 | |
| 14507 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14508 | { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 14509 | $as_echo_n "checking for POSIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14510 | cat >conftest.$ac_ext <<_ACEOF |
| 14511 | /* confdefs.h. */ |
| 14512 | _ACEOF |
| 14513 | cat confdefs.h >>conftest.$ac_ext |
| 14514 | cat >>conftest.$ac_ext <<_ACEOF |
| 14515 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14516 | |
| 14517 | #include <sys/types.h> |
| 14518 | #ifdef HAVE_SYS_ACL_H |
| 14519 | # include <sys/acl.h> |
| 14520 | #endif |
| 14521 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14522 | int |
| 14523 | main () |
| 14524 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14525 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 14526 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 14527 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14528 | ; |
| 14529 | return 0; |
| 14530 | } |
| 14531 | _ACEOF |
| 14532 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14533 | if { (ac_try="$ac_link" |
| 14534 | case "(($ac_try" in |
| 14535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14536 | *) ac_try_echo=$ac_try;; |
| 14537 | esac |
| 14538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14539 | $as_echo "$ac_try_echo") >&5 |
| 14540 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14541 | ac_status=$? |
| 14542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14543 | rm -f conftest.er1 |
| 14544 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14546 | (exit $ac_status); } && { |
| 14547 | test -z "$ac_c_werror_flag" || |
| 14548 | test ! -s conftest.err |
| 14549 | } && test -s conftest$ac_exeext && { |
| 14550 | test "$cross_compiling" = yes || |
| 14551 | $as_test_x conftest$ac_exeext |
| 14552 | }; then |
| 14553 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14554 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14555 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14556 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14557 | |
| 14558 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14559 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14560 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14561 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14562 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14563 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14564 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14565 | |
| 14566 | rm -rf conftest.dSYM |
| 14567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14568 | conftest$ac_exeext conftest.$ac_ext |
| 14569 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14570 | { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 14571 | $as_echo_n "checking for Solaris ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14572 | cat >conftest.$ac_ext <<_ACEOF |
| 14573 | /* confdefs.h. */ |
| 14574 | _ACEOF |
| 14575 | cat confdefs.h >>conftest.$ac_ext |
| 14576 | cat >>conftest.$ac_ext <<_ACEOF |
| 14577 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14578 | |
| 14579 | #ifdef HAVE_SYS_ACL_H |
| 14580 | # include <sys/acl.h> |
| 14581 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14582 | int |
| 14583 | main () |
| 14584 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14585 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14586 | |
| 14587 | ; |
| 14588 | return 0; |
| 14589 | } |
| 14590 | _ACEOF |
| 14591 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14592 | if { (ac_try="$ac_link" |
| 14593 | case "(($ac_try" in |
| 14594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14595 | *) ac_try_echo=$ac_try;; |
| 14596 | esac |
| 14597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14598 | $as_echo "$ac_try_echo") >&5 |
| 14599 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14600 | ac_status=$? |
| 14601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14602 | rm -f conftest.er1 |
| 14603 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14605 | (exit $ac_status); } && { |
| 14606 | test -z "$ac_c_werror_flag" || |
| 14607 | test ! -s conftest.err |
| 14608 | } && test -s conftest$ac_exeext && { |
| 14609 | test "$cross_compiling" = yes || |
| 14610 | $as_test_x conftest$ac_exeext |
| 14611 | }; then |
| 14612 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14613 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14614 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14615 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14616 | |
| 14617 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14618 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14619 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14620 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14621 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14622 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14623 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14624 | |
| 14625 | rm -rf conftest.dSYM |
| 14626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14627 | conftest$ac_exeext conftest.$ac_ext |
| 14628 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14629 | { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 14630 | $as_echo_n "checking for AIX ACL support... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14631 | cat >conftest.$ac_ext <<_ACEOF |
| 14632 | /* confdefs.h. */ |
| 14633 | _ACEOF |
| 14634 | cat confdefs.h >>conftest.$ac_ext |
| 14635 | cat >>conftest.$ac_ext <<_ACEOF |
| 14636 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14637 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14638 | #if STDC_HEADERS |
| 14639 | # include <stdlib.h> |
| 14640 | # include <stddef.h> |
| 14641 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14642 | #ifdef HAVE_SYS_ACL_H |
| 14643 | # include <sys/acl.h> |
| 14644 | #endif |
| 14645 | #ifdef HAVE_SYS_ACCESS_H |
| 14646 | # include <sys/access.h> |
| 14647 | #endif |
| 14648 | #define _ALL_SOURCE |
| 14649 | |
| 14650 | #include <sys/stat.h> |
| 14651 | |
| 14652 | int aclsize; |
| 14653 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14654 | int |
| 14655 | main () |
| 14656 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14657 | aclsize = sizeof(struct acl); |
| 14658 | aclent = (void *)malloc(aclsize); |
| 14659 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14660 | |
| 14661 | ; |
| 14662 | return 0; |
| 14663 | } |
| 14664 | _ACEOF |
| 14665 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14666 | if { (ac_try="$ac_link" |
| 14667 | case "(($ac_try" in |
| 14668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14669 | *) ac_try_echo=$ac_try;; |
| 14670 | esac |
| 14671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14672 | $as_echo "$ac_try_echo") >&5 |
| 14673 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14674 | ac_status=$? |
| 14675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14676 | rm -f conftest.er1 |
| 14677 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14679 | (exit $ac_status); } && { |
| 14680 | test -z "$ac_c_werror_flag" || |
| 14681 | test ! -s conftest.err |
| 14682 | } && test -s conftest$ac_exeext && { |
| 14683 | test "$cross_compiling" = yes || |
| 14684 | $as_test_x conftest$ac_exeext |
| 14685 | }; then |
| 14686 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14687 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14688 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14689 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14690 | |
| 14691 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14692 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14694 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14695 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14696 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14697 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14698 | |
| 14699 | rm -rf conftest.dSYM |
| 14700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14701 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14702 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14703 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14704 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14705 | fi |
| 14706 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14707 | { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 14708 | $as_echo_n "checking --disable-gpm argument... " >&6; } |
| 14709 | # Check whether --enable-gpm was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14710 | if test "${enable_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14711 | enableval=$enable_gpm; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14712 | else |
| 14713 | enable_gpm="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14714 | fi |
| 14715 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14716 | |
| 14717 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14718 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14719 | $as_echo "no" >&6; } |
| 14720 | { $as_echo "$as_me:$LINENO: checking for gpm" >&5 |
| 14721 | $as_echo_n "checking for gpm... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14722 | if test "${vi_cv_have_gpm+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14723 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14724 | else |
| 14725 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14726 | cat >conftest.$ac_ext <<_ACEOF |
| 14727 | /* confdefs.h. */ |
| 14728 | _ACEOF |
| 14729 | cat confdefs.h >>conftest.$ac_ext |
| 14730 | cat >>conftest.$ac_ext <<_ACEOF |
| 14731 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14732 | #include <gpm.h> |
| 14733 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14734 | int |
| 14735 | main () |
| 14736 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14737 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14738 | ; |
| 14739 | return 0; |
| 14740 | } |
| 14741 | _ACEOF |
| 14742 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14743 | if { (ac_try="$ac_link" |
| 14744 | case "(($ac_try" in |
| 14745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14746 | *) ac_try_echo=$ac_try;; |
| 14747 | esac |
| 14748 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14749 | $as_echo "$ac_try_echo") >&5 |
| 14750 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14751 | ac_status=$? |
| 14752 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14753 | rm -f conftest.er1 |
| 14754 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14755 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14756 | (exit $ac_status); } && { |
| 14757 | test -z "$ac_c_werror_flag" || |
| 14758 | test ! -s conftest.err |
| 14759 | } && test -s conftest$ac_exeext && { |
| 14760 | test "$cross_compiling" = yes || |
| 14761 | $as_test_x conftest$ac_exeext |
| 14762 | }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14763 | vi_cv_have_gpm=yes |
| 14764 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14765 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14766 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14767 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14768 | vi_cv_have_gpm=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14769 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14770 | |
| 14771 | rm -rf conftest.dSYM |
| 14772 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14773 | conftest$ac_exeext conftest.$ac_ext |
| 14774 | LIBS="$olibs" |
| 14775 | |
| 14776 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14777 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 14778 | $as_echo "$vi_cv_have_gpm" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14779 | if test $vi_cv_have_gpm = yes; then |
| 14780 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14781 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14782 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14783 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14784 | |
| 14785 | fi |
| 14786 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14787 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14788 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14789 | fi |
| 14790 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14791 | { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5 |
| 14792 | $as_echo_n "checking --disable-sysmouse argument... " >&6; } |
| 14793 | # Check whether --enable-sysmouse was given. |
| 14794 | if test "${enable_sysmouse+set}" = set; then |
| 14795 | enableval=$enable_sysmouse; |
| 14796 | else |
| 14797 | enable_sysmouse="yes" |
| 14798 | fi |
| 14799 | |
| 14800 | |
| 14801 | if test "$enable_sysmouse" = "yes"; then |
| 14802 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14803 | $as_echo "no" >&6; } |
| 14804 | { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5 |
| 14805 | $as_echo_n "checking for sysmouse... " >&6; } |
| 14806 | if test "${vi_cv_have_sysmouse+set}" = set; then |
| 14807 | $as_echo_n "(cached) " >&6 |
| 14808 | else |
| 14809 | cat >conftest.$ac_ext <<_ACEOF |
| 14810 | /* confdefs.h. */ |
| 14811 | _ACEOF |
| 14812 | cat confdefs.h >>conftest.$ac_ext |
| 14813 | cat >>conftest.$ac_ext <<_ACEOF |
| 14814 | /* end confdefs.h. */ |
| 14815 | #include <sys/consio.h> |
| 14816 | #include <signal.h> |
| 14817 | #include <sys/fbio.h> |
| 14818 | int |
| 14819 | main () |
| 14820 | { |
| 14821 | struct mouse_info mouse; |
| 14822 | mouse.operation = MOUSE_MODE; |
| 14823 | mouse.operation = MOUSE_SHOW; |
| 14824 | mouse.u.mode.mode = 0; |
| 14825 | mouse.u.mode.signal = SIGUSR2; |
| 14826 | ; |
| 14827 | return 0; |
| 14828 | } |
| 14829 | _ACEOF |
| 14830 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14831 | if { (ac_try="$ac_link" |
| 14832 | case "(($ac_try" in |
| 14833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14834 | *) ac_try_echo=$ac_try;; |
| 14835 | esac |
| 14836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14837 | $as_echo "$ac_try_echo") >&5 |
| 14838 | (eval "$ac_link") 2>conftest.er1 |
| 14839 | ac_status=$? |
| 14840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14841 | rm -f conftest.er1 |
| 14842 | cat conftest.err >&5 |
| 14843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | (exit $ac_status); } && { |
| 14845 | test -z "$ac_c_werror_flag" || |
| 14846 | test ! -s conftest.err |
| 14847 | } && test -s conftest$ac_exeext && { |
| 14848 | test "$cross_compiling" = yes || |
| 14849 | $as_test_x conftest$ac_exeext |
| 14850 | }; then |
| 14851 | vi_cv_have_sysmouse=yes |
| 14852 | else |
| 14853 | $as_echo "$as_me: failed program was:" >&5 |
| 14854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14855 | |
| 14856 | vi_cv_have_sysmouse=no |
| 14857 | fi |
| 14858 | |
| 14859 | rm -rf conftest.dSYM |
| 14860 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14861 | conftest$ac_exeext conftest.$ac_ext |
| 14862 | |
| 14863 | fi |
| 14864 | { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5 |
| 14865 | $as_echo "$vi_cv_have_sysmouse" >&6; } |
| 14866 | if test $vi_cv_have_sysmouse = yes; then |
| 14867 | cat >>confdefs.h <<\_ACEOF |
| 14868 | #define HAVE_SYSMOUSE 1 |
| 14869 | _ACEOF |
| 14870 | |
| 14871 | fi |
| 14872 | else |
| 14873 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14874 | $as_echo "yes" >&6; } |
| 14875 | fi |
| 14876 | |
| 14877 | { $as_echo "$as_me:$LINENO: checking for rename" >&5 |
| 14878 | $as_echo_n "checking for rename... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14879 | cat >conftest.$ac_ext <<_ACEOF |
| 14880 | /* confdefs.h. */ |
| 14881 | _ACEOF |
| 14882 | cat confdefs.h >>conftest.$ac_ext |
| 14883 | cat >>conftest.$ac_ext <<_ACEOF |
| 14884 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14885 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14886 | int |
| 14887 | main () |
| 14888 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14889 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14890 | ; |
| 14891 | return 0; |
| 14892 | } |
| 14893 | _ACEOF |
| 14894 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14895 | if { (ac_try="$ac_link" |
| 14896 | case "(($ac_try" in |
| 14897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14898 | *) ac_try_echo=$ac_try;; |
| 14899 | esac |
| 14900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14901 | $as_echo "$ac_try_echo") >&5 |
| 14902 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14903 | ac_status=$? |
| 14904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14905 | rm -f conftest.er1 |
| 14906 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14908 | (exit $ac_status); } && { |
| 14909 | test -z "$ac_c_werror_flag" || |
| 14910 | test ! -s conftest.err |
| 14911 | } && test -s conftest$ac_exeext && { |
| 14912 | test "$cross_compiling" = yes || |
| 14913 | $as_test_x conftest$ac_exeext |
| 14914 | }; then |
| 14915 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14916 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14917 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14918 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14919 | |
| 14920 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14921 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14922 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14923 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14924 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 14925 | $as_echo "no" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14926 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14927 | |
| 14928 | rm -rf conftest.dSYM |
| 14929 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14930 | conftest$ac_exeext conftest.$ac_ext |
| 14931 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14932 | { $as_echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 14933 | $as_echo_n "checking for sysctl... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14934 | cat >conftest.$ac_ext <<_ACEOF |
| 14935 | /* confdefs.h. */ |
| 14936 | _ACEOF |
| 14937 | cat confdefs.h >>conftest.$ac_ext |
| 14938 | cat >>conftest.$ac_ext <<_ACEOF |
| 14939 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14940 | #include <sys/types.h> |
| 14941 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14942 | int |
| 14943 | main () |
| 14944 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14945 | int mib[2], r; |
| 14946 | size_t len; |
| 14947 | |
| 14948 | mib[0] = CTL_HW; |
| 14949 | mib[1] = HW_USERMEM; |
| 14950 | len = sizeof(r); |
| 14951 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14952 | |
| 14953 | ; |
| 14954 | return 0; |
| 14955 | } |
| 14956 | _ACEOF |
| 14957 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14958 | if { (ac_try="$ac_compile" |
| 14959 | case "(($ac_try" in |
| 14960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14961 | *) ac_try_echo=$ac_try;; |
| 14962 | esac |
| 14963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14964 | $as_echo "$ac_try_echo") >&5 |
| 14965 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14966 | ac_status=$? |
| 14967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14968 | rm -f conftest.er1 |
| 14969 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14971 | (exit $ac_status); } && { |
| 14972 | test -z "$ac_c_werror_flag" || |
| 14973 | test ! -s conftest.err |
| 14974 | } && test -s conftest.$ac_objext; then |
| 14975 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 14976 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14977 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14978 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14979 | |
| 14980 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14981 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14982 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14983 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14984 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 14985 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14986 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14987 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 14988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14989 | |
| 14990 | { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 14991 | $as_echo_n "checking for sysinfo... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14992 | cat >conftest.$ac_ext <<_ACEOF |
| 14993 | /* confdefs.h. */ |
| 14994 | _ACEOF |
| 14995 | cat confdefs.h >>conftest.$ac_ext |
| 14996 | cat >>conftest.$ac_ext <<_ACEOF |
| 14997 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14998 | #include <sys/types.h> |
| 14999 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15000 | int |
| 15001 | main () |
| 15002 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15003 | struct sysinfo sinfo; |
| 15004 | int t; |
| 15005 | |
| 15006 | (void)sysinfo(&sinfo); |
| 15007 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15008 | |
| 15009 | ; |
| 15010 | return 0; |
| 15011 | } |
| 15012 | _ACEOF |
| 15013 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15014 | if { (ac_try="$ac_compile" |
| 15015 | case "(($ac_try" in |
| 15016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15017 | *) ac_try_echo=$ac_try;; |
| 15018 | esac |
| 15019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15020 | $as_echo "$ac_try_echo") >&5 |
| 15021 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15022 | ac_status=$? |
| 15023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15024 | rm -f conftest.er1 |
| 15025 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15027 | (exit $ac_status); } && { |
| 15028 | test -z "$ac_c_werror_flag" || |
| 15029 | test ! -s conftest.err |
| 15030 | } && test -s conftest.$ac_objext; then |
| 15031 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15032 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15033 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15034 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15035 | |
| 15036 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15037 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15038 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15039 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15040 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15041 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15042 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15043 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15045 | |
| 15046 | { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 |
| 15047 | $as_echo_n "checking for sysinfo.mem_unit... " >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15048 | cat >conftest.$ac_ext <<_ACEOF |
| 15049 | /* confdefs.h. */ |
| 15050 | _ACEOF |
| 15051 | cat confdefs.h >>conftest.$ac_ext |
| 15052 | cat >>conftest.$ac_ext <<_ACEOF |
| 15053 | /* end confdefs.h. */ |
| 15054 | #include <sys/types.h> |
| 15055 | #include <sys/sysinfo.h> |
| 15056 | int |
| 15057 | main () |
| 15058 | { |
| 15059 | struct sysinfo sinfo; |
| 15060 | sinfo.mem_unit = 1; |
| 15061 | |
| 15062 | ; |
| 15063 | return 0; |
| 15064 | } |
| 15065 | _ACEOF |
| 15066 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15067 | if { (ac_try="$ac_compile" |
| 15068 | case "(($ac_try" in |
| 15069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15070 | *) ac_try_echo=$ac_try;; |
| 15071 | esac |
| 15072 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15073 | $as_echo "$ac_try_echo") >&5 |
| 15074 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15075 | ac_status=$? |
| 15076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15077 | rm -f conftest.er1 |
| 15078 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15080 | (exit $ac_status); } && { |
| 15081 | test -z "$ac_c_werror_flag" || |
| 15082 | test ! -s conftest.err |
| 15083 | } && test -s conftest.$ac_objext; then |
| 15084 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15085 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15086 | #define HAVE_SYSINFO_MEM_UNIT 1 |
| 15087 | _ACEOF |
| 15088 | |
| 15089 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15090 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15092 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15093 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15094 | $as_echo "no" >&6; } |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15095 | fi |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 15096 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15098 | |
| 15099 | { $as_echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 15100 | $as_echo_n "checking for sysconf... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15101 | cat >conftest.$ac_ext <<_ACEOF |
| 15102 | /* confdefs.h. */ |
| 15103 | _ACEOF |
| 15104 | cat confdefs.h >>conftest.$ac_ext |
| 15105 | cat >>conftest.$ac_ext <<_ACEOF |
| 15106 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15107 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15108 | int |
| 15109 | main () |
| 15110 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15111 | (void)sysconf(_SC_PAGESIZE); |
| 15112 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15113 | |
| 15114 | ; |
| 15115 | return 0; |
| 15116 | } |
| 15117 | _ACEOF |
| 15118 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15119 | if { (ac_try="$ac_compile" |
| 15120 | case "(($ac_try" in |
| 15121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15122 | *) ac_try_echo=$ac_try;; |
| 15123 | esac |
| 15124 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15125 | $as_echo "$ac_try_echo") >&5 |
| 15126 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15127 | ac_status=$? |
| 15128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15129 | rm -f conftest.er1 |
| 15130 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15132 | (exit $ac_status); } && { |
| 15133 | test -z "$ac_c_werror_flag" || |
| 15134 | test ! -s conftest.err |
| 15135 | } && test -s conftest.$ac_objext; then |
| 15136 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15137 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15138 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15139 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15140 | |
| 15141 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15142 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15144 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15145 | { $as_echo "$as_me:$LINENO: result: not usable" >&5 |
| 15146 | $as_echo "not usable" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15147 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15148 | |
| 15149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15150 | |
| 15151 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15152 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 15153 | $as_echo_n "checking size of int... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15154 | if test "${ac_cv_sizeof_int+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15155 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15156 | else |
| 15157 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15158 | { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 15159 | $as_echo "$as_me: error: failed to compile test program" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15160 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15161 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15162 | cat >conftest.$ac_ext <<_ACEOF |
| 15163 | /* confdefs.h. */ |
| 15164 | _ACEOF |
| 15165 | cat confdefs.h >>conftest.$ac_ext |
| 15166 | cat >>conftest.$ac_ext <<_ACEOF |
| 15167 | /* end confdefs.h. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15168 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15169 | #include <stdio.h> |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15170 | #if STDC_HEADERS |
| 15171 | # include <stdlib.h> |
| 15172 | # include <stddef.h> |
| 15173 | #endif |
| 15174 | main() |
| 15175 | { |
| 15176 | FILE *f=fopen("conftestval", "w"); |
| 15177 | if (!f) exit(1); |
| 15178 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 15179 | exit(0); |
| 15180 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15181 | _ACEOF |
| 15182 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15183 | if { (ac_try="$ac_link" |
| 15184 | case "(($ac_try" in |
| 15185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15186 | *) ac_try_echo=$ac_try;; |
| 15187 | esac |
| 15188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15189 | $as_echo "$ac_try_echo") >&5 |
| 15190 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15191 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15192 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15193 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15194 | { (case "(($ac_try" in |
| 15195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15196 | *) ac_try_echo=$ac_try;; |
| 15197 | esac |
| 15198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15199 | $as_echo "$ac_try_echo") >&5 |
| 15200 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15201 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15203 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15204 | ac_cv_sizeof_int=`cat conftestval` |
| 15205 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15206 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15207 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15209 | |
| 15210 | ( exit $ac_status ) |
| 15211 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15212 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15213 | rm -rf conftest.dSYM |
| 15214 | 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] | 15215 | fi |
| 15216 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15217 | |
| 15218 | fi |
| 15219 | |
| 15220 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 15221 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15222 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15223 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15224 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15225 | |
| 15226 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15227 | |
| 15228 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15229 | bcopy_test_prog=' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15230 | #include "confdefs.h" |
| 15231 | #ifdef HAVE_STRING_H |
| 15232 | # include <string.h> |
| 15233 | #endif |
| 15234 | #if STDC_HEADERS |
| 15235 | # include <stdlib.h> |
| 15236 | # include <stddef.h> |
| 15237 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15238 | main() { |
| 15239 | char buf[10]; |
| 15240 | strcpy(buf, "abcdefghi"); |
| 15241 | mch_memmove(buf, buf + 2, 3); |
| 15242 | if (strncmp(buf, "ababcf", 6)) |
| 15243 | exit(1); |
| 15244 | strcpy(buf, "abcdefghi"); |
| 15245 | mch_memmove(buf + 2, buf, 3); |
| 15246 | if (strncmp(buf, "cdedef", 6)) |
| 15247 | exit(1); |
| 15248 | exit(0); /* libc version works properly. */ |
| 15249 | }' |
| 15250 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15251 | { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5 |
| 15252 | $as_echo_n "checking whether memmove handles overlaps... " >&6; } |
| 15253 | if test "${vim_cv_memmove_handles_overlap+set}" = set; then |
| 15254 | $as_echo_n "(cached) " >&6 |
| 15255 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15256 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15257 | if test "$cross_compiling" = yes; then |
| 15258 | |
| 15259 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5 |
| 15260 | $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] | 15261 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15262 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15263 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15264 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15265 | #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] | 15266 | _ACEOF |
| 15267 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15268 | if { (ac_try="$ac_link" |
| 15269 | case "(($ac_try" in |
| 15270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15271 | *) ac_try_echo=$ac_try;; |
| 15272 | esac |
| 15273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15274 | $as_echo "$ac_try_echo") >&5 |
| 15275 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15276 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15277 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15278 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15279 | { (case "(($ac_try" in |
| 15280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15281 | *) ac_try_echo=$ac_try;; |
| 15282 | esac |
| 15283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15284 | $as_echo "$ac_try_echo") >&5 |
| 15285 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15286 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15288 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15289 | |
| 15290 | vim_cv_memmove_handles_overlap=yes |
| 15291 | |
| 15292 | else |
| 15293 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15294 | $as_echo "$as_me: failed program was:" >&5 |
| 15295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15296 | |
| 15297 | ( exit $ac_status ) |
| 15298 | |
| 15299 | vim_cv_memmove_handles_overlap=no |
| 15300 | |
| 15301 | fi |
| 15302 | rm -rf conftest.dSYM |
| 15303 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15304 | fi |
| 15305 | |
| 15306 | |
| 15307 | |
| 15308 | fi |
| 15309 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5 |
| 15310 | $as_echo "$vim_cv_memmove_handles_overlap" >&6; } |
| 15311 | |
| 15312 | if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15313 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15314 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15315 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15317 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15318 | { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5 |
| 15319 | $as_echo_n "checking whether bcopy handles overlaps... " >&6; } |
| 15320 | if test "${vim_cv_bcopy_handles_overlap+set}" = set; then |
| 15321 | $as_echo_n "(cached) " >&6 |
| 15322 | else |
| 15323 | |
| 15324 | if test "$cross_compiling" = yes; then |
| 15325 | |
| 15326 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5 |
| 15327 | $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;} |
| 15328 | { (exit 1); exit 1; }; } |
| 15329 | |
| 15330 | else |
| 15331 | cat >conftest.$ac_ext <<_ACEOF |
| 15332 | #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 15333 | _ACEOF |
| 15334 | rm -f conftest$ac_exeext |
| 15335 | if { (ac_try="$ac_link" |
| 15336 | case "(($ac_try" in |
| 15337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15338 | *) ac_try_echo=$ac_try;; |
| 15339 | esac |
| 15340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15341 | $as_echo "$ac_try_echo") >&5 |
| 15342 | (eval "$ac_link") 2>&5 |
| 15343 | ac_status=$? |
| 15344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15345 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15346 | { (case "(($ac_try" in |
| 15347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15348 | *) ac_try_echo=$ac_try;; |
| 15349 | esac |
| 15350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15351 | $as_echo "$ac_try_echo") >&5 |
| 15352 | (eval "$ac_try") 2>&5 |
| 15353 | ac_status=$? |
| 15354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15355 | (exit $ac_status); }; }; then |
| 15356 | |
| 15357 | vim_cv_bcopy_handles_overlap=yes |
| 15358 | |
| 15359 | else |
| 15360 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15361 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15363 | |
| 15364 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15365 | |
| 15366 | vim_cv_bcopy_handles_overlap=no |
| 15367 | |
| 15368 | fi |
| 15369 | rm -rf conftest.dSYM |
| 15370 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15371 | fi |
| 15372 | |
| 15373 | |
| 15374 | |
| 15375 | fi |
| 15376 | { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5 |
| 15377 | $as_echo "$vim_cv_bcopy_handles_overlap" >&6; } |
| 15378 | |
| 15379 | if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then |
| 15380 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15381 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15382 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15383 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15384 | else |
| 15385 | { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5 |
| 15386 | $as_echo_n "checking whether memcpy handles overlaps... " >&6; } |
| 15387 | if test "${vim_cv_memcpy_handles_overlap+set}" = set; then |
| 15388 | $as_echo_n "(cached) " >&6 |
| 15389 | else |
| 15390 | |
| 15391 | if test "$cross_compiling" = yes; then |
| 15392 | |
| 15393 | { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5 |
| 15394 | $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] | 15395 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15396 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15397 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15398 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15399 | #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] | 15400 | _ACEOF |
| 15401 | rm -f conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15402 | if { (ac_try="$ac_link" |
| 15403 | case "(($ac_try" in |
| 15404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15405 | *) ac_try_echo=$ac_try;; |
| 15406 | esac |
| 15407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15408 | $as_echo "$ac_try_echo") >&5 |
| 15409 | (eval "$ac_link") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15410 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15412 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15413 | { (case "(($ac_try" in |
| 15414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15415 | *) ac_try_echo=$ac_try;; |
| 15416 | esac |
| 15417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15418 | $as_echo "$ac_try_echo") >&5 |
| 15419 | (eval "$ac_try") 2>&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15420 | ac_status=$? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15422 | (exit $ac_status); }; }; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15423 | |
| 15424 | vim_cv_memcpy_handles_overlap=yes |
| 15425 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15426 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15427 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15428 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15429 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15430 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15431 | ( exit $ac_status ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15432 | |
| 15433 | vim_cv_memcpy_handles_overlap=no |
| 15434 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15435 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15436 | rm -rf conftest.dSYM |
| 15437 | 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] | 15438 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15439 | |
| 15440 | |
| 15441 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15442 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15443 | { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5 |
| 15444 | $as_echo "$vim_cv_memcpy_handles_overlap" >&6; } |
| 15445 | |
| 15446 | if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then |
| 15447 | cat >>confdefs.h <<\_ACEOF |
| 15448 | #define USEMEMCPY 1 |
| 15449 | _ACEOF |
| 15450 | |
| 15451 | fi |
| 15452 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15453 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15454 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15455 | |
| 15456 | |
| 15457 | if test "$enable_multibyte" = "yes"; then |
| 15458 | cflags_save=$CFLAGS |
| 15459 | ldflags_save=$LDFLAGS |
| 15460 | if test -n "$x_includes" ; then |
| 15461 | CFLAGS="$CFLAGS -I$x_includes" |
| 15462 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15463 | { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 15464 | $as_echo_n "checking whether X_LOCALE needed... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15465 | cat >conftest.$ac_ext <<_ACEOF |
| 15466 | /* confdefs.h. */ |
| 15467 | _ACEOF |
| 15468 | cat confdefs.h >>conftest.$ac_ext |
| 15469 | cat >>conftest.$ac_ext <<_ACEOF |
| 15470 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15471 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15472 | int |
| 15473 | main () |
| 15474 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15475 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15476 | ; |
| 15477 | return 0; |
| 15478 | } |
| 15479 | _ACEOF |
| 15480 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15481 | if { (ac_try="$ac_compile" |
| 15482 | case "(($ac_try" in |
| 15483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15484 | *) ac_try_echo=$ac_try;; |
| 15485 | esac |
| 15486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15487 | $as_echo "$ac_try_echo") >&5 |
| 15488 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15489 | ac_status=$? |
| 15490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15491 | rm -f conftest.er1 |
| 15492 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15494 | (exit $ac_status); } && { |
| 15495 | test -z "$ac_c_werror_flag" || |
| 15496 | test ! -s conftest.err |
| 15497 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15498 | cat >conftest.$ac_ext <<_ACEOF |
| 15499 | /* confdefs.h. */ |
| 15500 | _ACEOF |
| 15501 | cat confdefs.h >>conftest.$ac_ext |
| 15502 | cat >>conftest.$ac_ext <<_ACEOF |
| 15503 | /* end confdefs.h. */ |
| 15504 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15505 | /* Override any GCC internal prototype to avoid an error. |
| 15506 | Use char because int might match the return type of a GCC |
| 15507 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15508 | #ifdef __cplusplus |
| 15509 | extern "C" |
| 15510 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15511 | char _Xsetlocale (); |
| 15512 | int |
| 15513 | main () |
| 15514 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15515 | return _Xsetlocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15516 | ; |
| 15517 | return 0; |
| 15518 | } |
| 15519 | _ACEOF |
| 15520 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15521 | if { (ac_try="$ac_link" |
| 15522 | case "(($ac_try" in |
| 15523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15524 | *) ac_try_echo=$ac_try;; |
| 15525 | esac |
| 15526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15527 | $as_echo "$ac_try_echo") >&5 |
| 15528 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15529 | ac_status=$? |
| 15530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15531 | rm -f conftest.er1 |
| 15532 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15534 | (exit $ac_status); } && { |
| 15535 | test -z "$ac_c_werror_flag" || |
| 15536 | test ! -s conftest.err |
| 15537 | } && test -s conftest$ac_exeext && { |
| 15538 | test "$cross_compiling" = yes || |
| 15539 | $as_test_x conftest$ac_exeext |
| 15540 | }; then |
| 15541 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15542 | $as_echo "yes" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15543 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15544 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15545 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15546 | |
| 15547 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15548 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15550 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15551 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15552 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15553 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15554 | |
| 15555 | rm -rf conftest.dSYM |
| 15556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15557 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15558 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15559 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15561 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15562 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15563 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15564 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15565 | |
| 15566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15567 | fi |
| 15568 | CFLAGS=$cflags_save |
| 15569 | LDFLAGS=$ldflags_save |
| 15570 | fi |
| 15571 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15572 | { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 15573 | $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15574 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15575 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15576 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15577 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15578 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15579 | cat >conftest.$ac_ext <<_ACEOF |
| 15580 | /* confdefs.h. */ |
| 15581 | _ACEOF |
| 15582 | cat confdefs.h >>conftest.$ac_ext |
| 15583 | cat >>conftest.$ac_ext <<_ACEOF |
| 15584 | /* end confdefs.h. */ |
| 15585 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15586 | /* Override any GCC internal prototype to avoid an error. |
| 15587 | Use char because int might match the return type of a GCC |
| 15588 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15589 | #ifdef __cplusplus |
| 15590 | extern "C" |
| 15591 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15592 | char _xpg4_setrunelocale (); |
| 15593 | int |
| 15594 | main () |
| 15595 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15596 | return _xpg4_setrunelocale (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15597 | ; |
| 15598 | return 0; |
| 15599 | } |
| 15600 | _ACEOF |
| 15601 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15602 | if { (ac_try="$ac_link" |
| 15603 | case "(($ac_try" in |
| 15604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15605 | *) ac_try_echo=$ac_try;; |
| 15606 | esac |
| 15607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15608 | $as_echo "$ac_try_echo") >&5 |
| 15609 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15610 | ac_status=$? |
| 15611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15612 | rm -f conftest.er1 |
| 15613 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15615 | (exit $ac_status); } && { |
| 15616 | test -z "$ac_c_werror_flag" || |
| 15617 | test ! -s conftest.err |
| 15618 | } && test -s conftest$ac_exeext && { |
| 15619 | test "$cross_compiling" = yes || |
| 15620 | $as_test_x conftest$ac_exeext |
| 15621 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15622 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15623 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15624 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15625 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15626 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15627 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15628 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15629 | |
| 15630 | rm -rf conftest.dSYM |
| 15631 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15632 | conftest$ac_exeext conftest.$ac_ext |
| 15633 | LIBS=$ac_check_lib_save_LIBS |
| 15634 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15635 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 15636 | $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15637 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15638 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15639 | fi |
| 15640 | |
| 15641 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15642 | { $as_echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 15643 | $as_echo_n "checking how to create tags... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15644 | test -f tags && mv tags tags.save |
| 15645 | 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] | 15646 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15647 | else |
| 15648 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 15649 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 15650 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 15651 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 15652 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 15653 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 15654 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 15655 | fi |
| 15656 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15657 | { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 15658 | $as_echo "$TAGPRG" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15659 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15660 | { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 15661 | $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] | 15662 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 15663 | (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] | 15664 | { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 15665 | $as_echo "$MANDEF" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15666 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15667 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15668 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15669 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15670 | |
| 15671 | fi |
| 15672 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15673 | { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 15674 | $as_echo_n "checking --disable-nls argument... " >&6; } |
| 15675 | # Check whether --enable-nls was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15676 | if test "${enable_nls+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15677 | enableval=$enable_nls; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15678 | else |
| 15679 | enable_nls="yes" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15680 | fi |
| 15681 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15682 | |
| 15683 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15684 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15685 | $as_echo "no" >&6; } |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 15686 | |
| 15687 | INSTALL_LANGS=install-languages |
| 15688 | |
| 15689 | INSTALL_TOOL_LANGS=install-tool-languages |
| 15690 | |
| 15691 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15692 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 15693 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15694 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15695 | $as_echo_n "checking for $ac_word... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15696 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15697 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15698 | else |
| 15699 | if test -n "$MSGFMT"; then |
| 15700 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 15701 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15703 | for as_dir in $PATH |
| 15704 | do |
| 15705 | IFS=$as_save_IFS |
| 15706 | test -z "$as_dir" && as_dir=. |
| 15707 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15708 | 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] | 15709 | ac_cv_prog_MSGFMT="msgfmt" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15710 | $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] | 15711 | break 2 |
| 15712 | fi |
| 15713 | done |
| 15714 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15715 | IFS=$as_save_IFS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15716 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15717 | fi |
| 15718 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15719 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15720 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15721 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 15722 | $as_echo "$MSGFMT" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15723 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15724 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15725 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15726 | fi |
| 15727 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15728 | |
| 15729 | { $as_echo "$as_me:$LINENO: checking for NLS" >&5 |
| 15730 | $as_echo_n "checking for NLS... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15731 | if test -f po/Makefile; then |
| 15732 | have_gettext="no" |
| 15733 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15734 | cat >conftest.$ac_ext <<_ACEOF |
| 15735 | /* confdefs.h. */ |
| 15736 | _ACEOF |
| 15737 | cat confdefs.h >>conftest.$ac_ext |
| 15738 | cat >>conftest.$ac_ext <<_ACEOF |
| 15739 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15740 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15741 | int |
| 15742 | main () |
| 15743 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15744 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15745 | ; |
| 15746 | return 0; |
| 15747 | } |
| 15748 | _ACEOF |
| 15749 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15750 | if { (ac_try="$ac_link" |
| 15751 | case "(($ac_try" in |
| 15752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15753 | *) ac_try_echo=$ac_try;; |
| 15754 | esac |
| 15755 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15756 | $as_echo "$ac_try_echo") >&5 |
| 15757 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15758 | ac_status=$? |
| 15759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15760 | rm -f conftest.er1 |
| 15761 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15763 | (exit $ac_status); } && { |
| 15764 | test -z "$ac_c_werror_flag" || |
| 15765 | test ! -s conftest.err |
| 15766 | } && test -s conftest$ac_exeext && { |
| 15767 | test "$cross_compiling" = yes || |
| 15768 | $as_test_x conftest$ac_exeext |
| 15769 | }; then |
| 15770 | { $as_echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 15771 | $as_echo "gettext() works" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15772 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15773 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15775 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15776 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15777 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15778 | cat >conftest.$ac_ext <<_ACEOF |
| 15779 | /* confdefs.h. */ |
| 15780 | _ACEOF |
| 15781 | cat confdefs.h >>conftest.$ac_ext |
| 15782 | cat >>conftest.$ac_ext <<_ACEOF |
| 15783 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15784 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15785 | int |
| 15786 | main () |
| 15787 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15788 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15789 | ; |
| 15790 | return 0; |
| 15791 | } |
| 15792 | _ACEOF |
| 15793 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15794 | if { (ac_try="$ac_link" |
| 15795 | case "(($ac_try" in |
| 15796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15797 | *) ac_try_echo=$ac_try;; |
| 15798 | esac |
| 15799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15800 | $as_echo "$ac_try_echo") >&5 |
| 15801 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15802 | ac_status=$? |
| 15803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15804 | rm -f conftest.er1 |
| 15805 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15807 | (exit $ac_status); } && { |
| 15808 | test -z "$ac_c_werror_flag" || |
| 15809 | test ! -s conftest.err |
| 15810 | } && test -s conftest$ac_exeext && { |
| 15811 | test "$cross_compiling" = yes || |
| 15812 | $as_test_x conftest$ac_exeext |
| 15813 | }; then |
| 15814 | { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 15815 | $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15816 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15817 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15819 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15820 | { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 15821 | $as_echo "gettext() doesn't work" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15822 | LIBS=$olibs |
| 15823 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15824 | |
| 15825 | rm -rf conftest.dSYM |
| 15826 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15827 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15828 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15829 | |
| 15830 | rm -rf conftest.dSYM |
| 15831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15832 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15833 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15834 | { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 15835 | $as_echo "msgfmt not found - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15836 | fi |
| 15837 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15838 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15839 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15840 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15841 | |
| 15842 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15843 | |
| 15844 | |
| 15845 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15846 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15847 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15848 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15849 | $as_echo_n "checking for $ac_func... " >&6; } |
| 15850 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15851 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15852 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15853 | cat >conftest.$ac_ext <<_ACEOF |
| 15854 | /* confdefs.h. */ |
| 15855 | _ACEOF |
| 15856 | cat confdefs.h >>conftest.$ac_ext |
| 15857 | cat >>conftest.$ac_ext <<_ACEOF |
| 15858 | /* end confdefs.h. */ |
| 15859 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15860 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15861 | #define $ac_func innocuous_$ac_func |
| 15862 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15863 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15864 | which can conflict with char $ac_func (); below. |
| 15865 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15866 | <limits.h> exists even on freestanding compilers. */ |
| 15867 | |
| 15868 | #ifdef __STDC__ |
| 15869 | # include <limits.h> |
| 15870 | #else |
| 15871 | # include <assert.h> |
| 15872 | #endif |
| 15873 | |
| 15874 | #undef $ac_func |
| 15875 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15876 | /* Override any GCC internal prototype to avoid an error. |
| 15877 | Use char because int might match the return type of a GCC |
| 15878 | builtin and then its argument prototype would still apply. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15879 | #ifdef __cplusplus |
| 15880 | extern "C" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15881 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15882 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15883 | /* The GNU C library defines this for functions which it implements |
| 15884 | to always fail with ENOSYS. Some functions are actually named |
| 15885 | something starting with __ and the normal name is an alias. */ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15886 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15887 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15888 | #endif |
| 15889 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15890 | int |
| 15891 | main () |
| 15892 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15893 | return $ac_func (); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15894 | ; |
| 15895 | return 0; |
| 15896 | } |
| 15897 | _ACEOF |
| 15898 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15899 | if { (ac_try="$ac_link" |
| 15900 | case "(($ac_try" in |
| 15901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15902 | *) ac_try_echo=$ac_try;; |
| 15903 | esac |
| 15904 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15905 | $as_echo "$ac_try_echo") >&5 |
| 15906 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15907 | ac_status=$? |
| 15908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15909 | rm -f conftest.er1 |
| 15910 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15912 | (exit $ac_status); } && { |
| 15913 | test -z "$ac_c_werror_flag" || |
| 15914 | test ! -s conftest.err |
| 15915 | } && test -s conftest$ac_exeext && { |
| 15916 | test "$cross_compiling" = yes || |
| 15917 | $as_test_x conftest$ac_exeext |
| 15918 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15919 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15920 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15921 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15922 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15923 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15924 | eval "$as_ac_var=no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15925 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15926 | |
| 15927 | rm -rf conftest.dSYM |
| 15928 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15929 | conftest$ac_exeext conftest.$ac_ext |
| 15930 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15931 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 15932 | $as_echo "$as_val"'` |
| 15933 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15934 | $as_echo "$ac_res" >&6; } |
| 15935 | if test `eval 'as_val=${'$as_ac_var'} |
| 15936 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15937 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15938 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15939 | _ACEOF |
| 15940 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15941 | fi |
| 15942 | done |
| 15943 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15944 | { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 15945 | $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15946 | cat >conftest.$ac_ext <<_ACEOF |
| 15947 | /* confdefs.h. */ |
| 15948 | _ACEOF |
| 15949 | cat confdefs.h >>conftest.$ac_ext |
| 15950 | cat >>conftest.$ac_ext <<_ACEOF |
| 15951 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15952 | #include <libintl.h> |
| 15953 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15954 | int |
| 15955 | main () |
| 15956 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15957 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15958 | ; |
| 15959 | return 0; |
| 15960 | } |
| 15961 | _ACEOF |
| 15962 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15963 | if { (ac_try="$ac_link" |
| 15964 | case "(($ac_try" in |
| 15965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15966 | *) ac_try_echo=$ac_try;; |
| 15967 | esac |
| 15968 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15969 | $as_echo "$ac_try_echo") >&5 |
| 15970 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15971 | ac_status=$? |
| 15972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15973 | rm -f conftest.er1 |
| 15974 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15976 | (exit $ac_status); } && { |
| 15977 | test -z "$ac_c_werror_flag" || |
| 15978 | test ! -s conftest.err |
| 15979 | } && test -s conftest$ac_exeext && { |
| 15980 | test "$cross_compiling" = yes || |
| 15981 | $as_test_x conftest$ac_exeext |
| 15982 | }; then |
| 15983 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15984 | $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15985 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15986 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15987 | |
| 15988 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15989 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15991 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15992 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15993 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15994 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 15995 | |
| 15996 | rm -rf conftest.dSYM |
| 15997 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15998 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15999 | fi |
| 16000 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16001 | { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 16002 | $as_echo "no \"po/Makefile\" - disabled" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16003 | fi |
| 16004 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16005 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16006 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16007 | fi |
| 16008 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16009 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16010 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16011 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16012 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16013 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16014 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16015 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16016 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16017 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16018 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16019 | { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 16020 | $as_echo_n "checking dlfcn.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16021 | cat >conftest.$ac_ext <<_ACEOF |
| 16022 | /* confdefs.h. */ |
| 16023 | _ACEOF |
| 16024 | cat confdefs.h >>conftest.$ac_ext |
| 16025 | cat >>conftest.$ac_ext <<_ACEOF |
| 16026 | /* end confdefs.h. */ |
| 16027 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16028 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16029 | _ACEOF |
| 16030 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16031 | if { (ac_try="$ac_compile" |
| 16032 | case "(($ac_try" in |
| 16033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16034 | *) ac_try_echo=$ac_try;; |
| 16035 | esac |
| 16036 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16037 | $as_echo "$ac_try_echo") >&5 |
| 16038 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16039 | ac_status=$? |
| 16040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16041 | rm -f conftest.er1 |
| 16042 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16043 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16044 | (exit $ac_status); } && { |
| 16045 | test -z "$ac_c_werror_flag" || |
| 16046 | test ! -s conftest.err |
| 16047 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16048 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16049 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16050 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16052 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16053 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16054 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16055 | |
| 16056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16057 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16058 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16059 | |
| 16060 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16061 | { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 16062 | $as_echo_n "checking dlfcn.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16063 | cat >conftest.$ac_ext <<_ACEOF |
| 16064 | /* confdefs.h. */ |
| 16065 | _ACEOF |
| 16066 | cat confdefs.h >>conftest.$ac_ext |
| 16067 | cat >>conftest.$ac_ext <<_ACEOF |
| 16068 | /* end confdefs.h. */ |
| 16069 | #include <dlfcn.h> |
| 16070 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16071 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16072 | case "(($ac_try" in |
| 16073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16074 | *) ac_try_echo=$ac_try;; |
| 16075 | esac |
| 16076 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16077 | $as_echo "$ac_try_echo") >&5 |
| 16078 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16079 | ac_status=$? |
| 16080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16081 | rm -f conftest.er1 |
| 16082 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16083 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16084 | (exit $ac_status); } >/dev/null && { |
| 16085 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16086 | test ! -s conftest.err |
| 16087 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16088 | ac_header_preproc=yes |
| 16089 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16090 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16092 | |
| 16093 | ac_header_preproc=no |
| 16094 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16095 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16096 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16097 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16098 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16099 | |
| 16100 | # So? What about this header? |
| 16101 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16102 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16103 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16104 | $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16105 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 16106 | $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] | 16107 | ac_header_preproc=yes |
| 16108 | ;; |
| 16109 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16110 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 16111 | $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 16112 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 16113 | $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 16114 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 16115 | $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 16116 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16117 | $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16118 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 16119 | $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 16120 | { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 16121 | $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 16122 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16123 | ;; |
| 16124 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16125 | { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 16126 | $as_echo_n "checking for dlfcn.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16127 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16128 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16129 | else |
| 16130 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 16131 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16132 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 16133 | $as_echo "$ac_cv_header_dlfcn_h" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16134 | |
| 16135 | fi |
| 16136 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16137 | DLL=dlfcn.h |
| 16138 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16139 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16140 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16141 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16142 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16143 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16144 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16145 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16146 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16147 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16148 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16149 | { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 16150 | $as_echo_n "checking dl.h usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16151 | cat >conftest.$ac_ext <<_ACEOF |
| 16152 | /* confdefs.h. */ |
| 16153 | _ACEOF |
| 16154 | cat confdefs.h >>conftest.$ac_ext |
| 16155 | cat >>conftest.$ac_ext <<_ACEOF |
| 16156 | /* end confdefs.h. */ |
| 16157 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16158 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16159 | _ACEOF |
| 16160 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16161 | if { (ac_try="$ac_compile" |
| 16162 | case "(($ac_try" in |
| 16163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16164 | *) ac_try_echo=$ac_try;; |
| 16165 | esac |
| 16166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16167 | $as_echo "$ac_try_echo") >&5 |
| 16168 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16169 | ac_status=$? |
| 16170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16171 | rm -f conftest.er1 |
| 16172 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16174 | (exit $ac_status); } && { |
| 16175 | test -z "$ac_c_werror_flag" || |
| 16176 | test ! -s conftest.err |
| 16177 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16178 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16179 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16180 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16182 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16183 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16184 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16185 | |
| 16186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16187 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16188 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16189 | |
| 16190 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16191 | { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 16192 | $as_echo_n "checking dl.h presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16193 | cat >conftest.$ac_ext <<_ACEOF |
| 16194 | /* confdefs.h. */ |
| 16195 | _ACEOF |
| 16196 | cat confdefs.h >>conftest.$ac_ext |
| 16197 | cat >>conftest.$ac_ext <<_ACEOF |
| 16198 | /* end confdefs.h. */ |
| 16199 | #include <dl.h> |
| 16200 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16201 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16202 | case "(($ac_try" in |
| 16203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16204 | *) ac_try_echo=$ac_try;; |
| 16205 | esac |
| 16206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16207 | $as_echo "$ac_try_echo") >&5 |
| 16208 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16209 | ac_status=$? |
| 16210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16211 | rm -f conftest.er1 |
| 16212 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16214 | (exit $ac_status); } >/dev/null && { |
| 16215 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16216 | test ! -s conftest.err |
| 16217 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16218 | ac_header_preproc=yes |
| 16219 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16220 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16222 | |
| 16223 | ac_header_preproc=no |
| 16224 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16225 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16226 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16227 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16228 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16229 | |
| 16230 | # So? What about this header? |
| 16231 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16232 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16233 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16234 | $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16235 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 16236 | $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] | 16237 | ac_header_preproc=yes |
| 16238 | ;; |
| 16239 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16240 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 16241 | $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 16242 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 16243 | $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 16244 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 16245 | $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 16246 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16247 | $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16248 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 16249 | $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 16250 | { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 16251 | $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 16252 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16253 | ;; |
| 16254 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16255 | { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 16256 | $as_echo_n "checking for dl.h... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16257 | if test "${ac_cv_header_dl_h+set}" = set; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16258 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16259 | else |
| 16260 | ac_cv_header_dl_h=$ac_header_preproc |
| 16261 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 16263 | $as_echo "$ac_cv_header_dl_h" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16264 | |
| 16265 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16266 | if test $ac_cv_header_dl_h = yes; then |
| 16267 | DLL=dl.h |
| 16268 | fi |
| 16269 | |
| 16270 | |
| 16271 | fi |
| 16272 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16273 | |
| 16274 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16275 | |
| 16276 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16277 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16278 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16279 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16280 | { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 16281 | $as_echo_n "checking for dlopen()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16282 | cat >conftest.$ac_ext <<_ACEOF |
| 16283 | /* confdefs.h. */ |
| 16284 | _ACEOF |
| 16285 | cat confdefs.h >>conftest.$ac_ext |
| 16286 | cat >>conftest.$ac_ext <<_ACEOF |
| 16287 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16288 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16289 | int |
| 16290 | main () |
| 16291 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16292 | |
| 16293 | extern void* dlopen(); |
| 16294 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16295 | |
| 16296 | ; |
| 16297 | return 0; |
| 16298 | } |
| 16299 | _ACEOF |
| 16300 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16301 | if { (ac_try="$ac_link" |
| 16302 | case "(($ac_try" in |
| 16303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16304 | *) ac_try_echo=$ac_try;; |
| 16305 | esac |
| 16306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16307 | $as_echo "$ac_try_echo") >&5 |
| 16308 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16309 | ac_status=$? |
| 16310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16311 | rm -f conftest.er1 |
| 16312 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16314 | (exit $ac_status); } && { |
| 16315 | test -z "$ac_c_werror_flag" || |
| 16316 | test ! -s conftest.err |
| 16317 | } && test -s conftest$ac_exeext && { |
| 16318 | test "$cross_compiling" = yes || |
| 16319 | $as_test_x conftest$ac_exeext |
| 16320 | }; then |
| 16321 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16322 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16323 | |
| 16324 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16325 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16326 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16327 | |
| 16328 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16329 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16331 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16332 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16333 | $as_echo "no" >&6; }; |
| 16334 | { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 16335 | $as_echo_n "checking for dlopen() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16336 | olibs=$LIBS |
| 16337 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16338 | cat >conftest.$ac_ext <<_ACEOF |
| 16339 | /* confdefs.h. */ |
| 16340 | _ACEOF |
| 16341 | cat confdefs.h >>conftest.$ac_ext |
| 16342 | cat >>conftest.$ac_ext <<_ACEOF |
| 16343 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16344 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16345 | int |
| 16346 | main () |
| 16347 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16348 | |
| 16349 | extern void* dlopen(); |
| 16350 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16351 | |
| 16352 | ; |
| 16353 | return 0; |
| 16354 | } |
| 16355 | _ACEOF |
| 16356 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16357 | if { (ac_try="$ac_link" |
| 16358 | case "(($ac_try" in |
| 16359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16360 | *) ac_try_echo=$ac_try;; |
| 16361 | esac |
| 16362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16363 | $as_echo "$ac_try_echo") >&5 |
| 16364 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16365 | ac_status=$? |
| 16366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16367 | rm -f conftest.er1 |
| 16368 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16370 | (exit $ac_status); } && { |
| 16371 | test -z "$ac_c_werror_flag" || |
| 16372 | test ! -s conftest.err |
| 16373 | } && test -s conftest$ac_exeext && { |
| 16374 | test "$cross_compiling" = yes || |
| 16375 | $as_test_x conftest$ac_exeext |
| 16376 | }; then |
| 16377 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16378 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16379 | |
| 16380 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16381 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16382 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16383 | |
| 16384 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16385 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16387 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16388 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16389 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16390 | LIBS=$olibs |
| 16391 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16392 | |
| 16393 | rm -rf conftest.dSYM |
| 16394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16395 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16396 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16397 | |
| 16398 | rm -rf conftest.dSYM |
| 16399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16400 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16401 | { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 16402 | $as_echo_n "checking for dlsym()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16403 | cat >conftest.$ac_ext <<_ACEOF |
| 16404 | /* confdefs.h. */ |
| 16405 | _ACEOF |
| 16406 | cat confdefs.h >>conftest.$ac_ext |
| 16407 | cat >>conftest.$ac_ext <<_ACEOF |
| 16408 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16409 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16410 | int |
| 16411 | main () |
| 16412 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16413 | |
| 16414 | extern void* dlsym(); |
| 16415 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16416 | |
| 16417 | ; |
| 16418 | return 0; |
| 16419 | } |
| 16420 | _ACEOF |
| 16421 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16422 | if { (ac_try="$ac_link" |
| 16423 | case "(($ac_try" in |
| 16424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16425 | *) ac_try_echo=$ac_try;; |
| 16426 | esac |
| 16427 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16428 | $as_echo "$ac_try_echo") >&5 |
| 16429 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16430 | ac_status=$? |
| 16431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16432 | rm -f conftest.er1 |
| 16433 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16434 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16435 | (exit $ac_status); } && { |
| 16436 | test -z "$ac_c_werror_flag" || |
| 16437 | test ! -s conftest.err |
| 16438 | } && test -s conftest$ac_exeext && { |
| 16439 | test "$cross_compiling" = yes || |
| 16440 | $as_test_x conftest$ac_exeext |
| 16441 | }; then |
| 16442 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16443 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16444 | |
| 16445 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16446 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16447 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16448 | |
| 16449 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16450 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16452 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16453 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16454 | $as_echo "no" >&6; }; |
| 16455 | { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 16456 | $as_echo_n "checking for dlsym() in -ldl... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16457 | olibs=$LIBS |
| 16458 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16459 | cat >conftest.$ac_ext <<_ACEOF |
| 16460 | /* confdefs.h. */ |
| 16461 | _ACEOF |
| 16462 | cat confdefs.h >>conftest.$ac_ext |
| 16463 | cat >>conftest.$ac_ext <<_ACEOF |
| 16464 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16465 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16466 | int |
| 16467 | main () |
| 16468 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16469 | |
| 16470 | extern void* dlsym(); |
| 16471 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16472 | |
| 16473 | ; |
| 16474 | return 0; |
| 16475 | } |
| 16476 | _ACEOF |
| 16477 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16478 | if { (ac_try="$ac_link" |
| 16479 | case "(($ac_try" in |
| 16480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16481 | *) ac_try_echo=$ac_try;; |
| 16482 | esac |
| 16483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16484 | $as_echo "$ac_try_echo") >&5 |
| 16485 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16486 | ac_status=$? |
| 16487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16488 | rm -f conftest.er1 |
| 16489 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16491 | (exit $ac_status); } && { |
| 16492 | test -z "$ac_c_werror_flag" || |
| 16493 | test ! -s conftest.err |
| 16494 | } && test -s conftest$ac_exeext && { |
| 16495 | test "$cross_compiling" = yes || |
| 16496 | $as_test_x conftest$ac_exeext |
| 16497 | }; then |
| 16498 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16499 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16500 | |
| 16501 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16502 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16503 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16504 | |
| 16505 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16506 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16508 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16509 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16510 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16511 | LIBS=$olibs |
| 16512 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16513 | |
| 16514 | rm -rf conftest.dSYM |
| 16515 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16516 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16517 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16518 | |
| 16519 | rm -rf conftest.dSYM |
| 16520 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16521 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16522 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16523 | |
| 16524 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16525 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16526 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16527 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16528 | { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 16529 | $as_echo_n "checking for shl_load()... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16530 | cat >conftest.$ac_ext <<_ACEOF |
| 16531 | /* confdefs.h. */ |
| 16532 | _ACEOF |
| 16533 | cat confdefs.h >>conftest.$ac_ext |
| 16534 | cat >>conftest.$ac_ext <<_ACEOF |
| 16535 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16536 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16537 | int |
| 16538 | main () |
| 16539 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16540 | |
| 16541 | extern void* shl_load(); |
| 16542 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16543 | |
| 16544 | ; |
| 16545 | return 0; |
| 16546 | } |
| 16547 | _ACEOF |
| 16548 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16549 | if { (ac_try="$ac_link" |
| 16550 | case "(($ac_try" in |
| 16551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16552 | *) ac_try_echo=$ac_try;; |
| 16553 | esac |
| 16554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16555 | $as_echo "$ac_try_echo") >&5 |
| 16556 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16557 | ac_status=$? |
| 16558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16559 | rm -f conftest.er1 |
| 16560 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16562 | (exit $ac_status); } && { |
| 16563 | test -z "$ac_c_werror_flag" || |
| 16564 | test ! -s conftest.err |
| 16565 | } && test -s conftest$ac_exeext && { |
| 16566 | test "$cross_compiling" = yes || |
| 16567 | $as_test_x conftest$ac_exeext |
| 16568 | }; then |
| 16569 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16570 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16571 | |
| 16572 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16573 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16574 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16575 | |
| 16576 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16577 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16579 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16580 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16581 | $as_echo "no" >&6; }; |
| 16582 | { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 16583 | $as_echo_n "checking for shl_load() in -ldld... " >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16584 | olibs=$LIBS |
| 16585 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16586 | cat >conftest.$ac_ext <<_ACEOF |
| 16587 | /* confdefs.h. */ |
| 16588 | _ACEOF |
| 16589 | cat confdefs.h >>conftest.$ac_ext |
| 16590 | cat >>conftest.$ac_ext <<_ACEOF |
| 16591 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16592 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16593 | int |
| 16594 | main () |
| 16595 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16596 | |
| 16597 | extern void* shl_load(); |
| 16598 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16599 | |
| 16600 | ; |
| 16601 | return 0; |
| 16602 | } |
| 16603 | _ACEOF |
| 16604 | rm -f conftest.$ac_objext conftest$ac_exeext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16605 | if { (ac_try="$ac_link" |
| 16606 | case "(($ac_try" in |
| 16607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16608 | *) ac_try_echo=$ac_try;; |
| 16609 | esac |
| 16610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16611 | $as_echo "$ac_try_echo") >&5 |
| 16612 | (eval "$ac_link") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16613 | ac_status=$? |
| 16614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16615 | rm -f conftest.er1 |
| 16616 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16618 | (exit $ac_status); } && { |
| 16619 | test -z "$ac_c_werror_flag" || |
| 16620 | test ! -s conftest.err |
| 16621 | } && test -s conftest$ac_exeext && { |
| 16622 | test "$cross_compiling" = yes || |
| 16623 | $as_test_x conftest$ac_exeext |
| 16624 | }; then |
| 16625 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16626 | $as_echo "yes" >&6; }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16627 | |
| 16628 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16629 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16630 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16631 | |
| 16632 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16633 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16635 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16636 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16637 | $as_echo "no" >&6; }; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16638 | LIBS=$olibs |
| 16639 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16640 | |
| 16641 | rm -rf conftest.dSYM |
| 16642 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16643 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16644 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16645 | |
| 16646 | rm -rf conftest.dSYM |
| 16647 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16648 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16649 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16650 | |
| 16651 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16652 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16653 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16654 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16655 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16656 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16657 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16658 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16659 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16660 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16661 | $as_echo "$as_val"'` |
| 16662 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16663 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16664 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16665 | # Is the header compilable? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16666 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16667 | $as_echo_n "checking $ac_header usability... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16668 | cat >conftest.$ac_ext <<_ACEOF |
| 16669 | /* confdefs.h. */ |
| 16670 | _ACEOF |
| 16671 | cat confdefs.h >>conftest.$ac_ext |
| 16672 | cat >>conftest.$ac_ext <<_ACEOF |
| 16673 | /* end confdefs.h. */ |
| 16674 | $ac_includes_default |
| 16675 | #include <$ac_header> |
| 16676 | _ACEOF |
| 16677 | rm -f conftest.$ac_objext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16678 | if { (ac_try="$ac_compile" |
| 16679 | case "(($ac_try" in |
| 16680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16681 | *) ac_try_echo=$ac_try;; |
| 16682 | esac |
| 16683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16684 | $as_echo "$ac_try_echo") >&5 |
| 16685 | (eval "$ac_compile") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16686 | ac_status=$? |
| 16687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16688 | rm -f conftest.er1 |
| 16689 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16691 | (exit $ac_status); } && { |
| 16692 | test -z "$ac_c_werror_flag" || |
| 16693 | test ! -s conftest.err |
| 16694 | } && test -s conftest.$ac_objext; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16695 | ac_header_compiler=yes |
| 16696 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16697 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16699 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16700 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16701 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16702 | |
| 16703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16704 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16705 | $as_echo "$ac_header_compiler" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16706 | |
| 16707 | # Is the header present? |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16708 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16709 | $as_echo_n "checking $ac_header presence... " >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16710 | cat >conftest.$ac_ext <<_ACEOF |
| 16711 | /* confdefs.h. */ |
| 16712 | _ACEOF |
| 16713 | cat confdefs.h >>conftest.$ac_ext |
| 16714 | cat >>conftest.$ac_ext <<_ACEOF |
| 16715 | /* end confdefs.h. */ |
| 16716 | #include <$ac_header> |
| 16717 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16718 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16719 | case "(($ac_try" in |
| 16720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16721 | *) ac_try_echo=$ac_try;; |
| 16722 | esac |
| 16723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16724 | $as_echo "$ac_try_echo") >&5 |
| 16725 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16726 | ac_status=$? |
| 16727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16728 | rm -f conftest.er1 |
| 16729 | cat conftest.err >&5 |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16731 | (exit $ac_status); } >/dev/null && { |
| 16732 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16733 | test ! -s conftest.err |
| 16734 | }; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16735 | ac_header_preproc=yes |
| 16736 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16737 | $as_echo "$as_me: failed program was:" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16739 | |
| 16740 | ac_header_preproc=no |
| 16741 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16742 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16743 | rm -f conftest.err conftest.$ac_ext |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16744 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16745 | $as_echo "$ac_header_preproc" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16746 | |
| 16747 | # So? What about this header? |
| 16748 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16749 | yes:no: ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16751 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16753 | $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] | 16754 | ac_header_preproc=yes |
| 16755 | ;; |
| 16756 | no:yes:* ) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16757 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16758 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16759 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16760 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16761 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16762 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16764 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16766 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16767 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16768 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16769 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16770 | ;; |
| 16771 | esac |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16772 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16773 | $as_echo_n "checking for $ac_header... " >&6; } |
| 16774 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16775 | $as_echo_n "(cached) " >&6 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16776 | else |
| 16777 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16778 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16779 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 16780 | $as_echo "$as_val"'` |
| 16781 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16782 | $as_echo "$ac_res" >&6; } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16783 | |
| 16784 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16785 | if test `eval 'as_val=${'$as_ac_Header'} |
| 16786 | $as_echo "$as_val"'` = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16787 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16788 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16789 | _ACEOF |
| 16790 | |
| 16791 | fi |
| 16792 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16793 | done |
| 16794 | |
| 16795 | |
| 16796 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 16797 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 16798 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 16799 | PERL_LIBS="$PERL_LIBS -ldl" |
| 16800 | fi |
| 16801 | fi |
| 16802 | |
| 16803 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 16804 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16805 | { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 16806 | $as_echo_n "checking whether we need -framework Carbon... " >&6; } |
Bram Moolenaar | b90daee | 2006-10-17 09:49:09 +0000 | [diff] [blame] | 16807 | if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16808 | || test "x$features" = "xhuge"; then |
| 16809 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16810 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16811 | $as_echo "yes" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16812 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16813 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16814 | $as_echo "no" >&6; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16815 | fi |
| 16816 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 16817 | if test "x$MACARCH" = "xboth"; then |
| 16818 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 16819 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16820 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16821 | { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 16822 | $as_echo_n "checking for GCC 3 or later... " >&6; } |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16823 | DEPEND_CFLAGS_FILTER= |
| 16824 | if test "$GCC" = yes; then |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 16825 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 16826 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16827 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 16828 | fi |
| 16829 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16830 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16831 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16832 | $as_echo "no" >&6; } |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16833 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16834 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 16835 | $as_echo "yes" >&6; } |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 16836 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16837 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16838 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16839 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 16840 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16841 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16842 | # This file is a shell script that caches the results of configure |
| 16843 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16844 | # scripts and configure runs, see configure's option --config-cache. |
| 16845 | # It is not useful on other systems. If it contains results you don't |
| 16846 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16847 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16848 | # config.status only pays attention to the cache file if you give it |
| 16849 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16850 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16851 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16852 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16853 | # following values. |
| 16854 | |
| 16855 | _ACEOF |
| 16856 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16857 | # The following way of writing the cache mishandles newlines in values, |
| 16858 | # but we know of no workaround that is simple, portable, and efficient. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16859 | # So, we kill variables containing newlines. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16860 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16861 | # 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] | 16862 | ( |
| 16863 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16864 | eval ac_val=\$$ac_var |
| 16865 | case $ac_val in #( |
| 16866 | *${as_nl}*) |
| 16867 | case $ac_var in #( |
| 16868 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 16869 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 16870 | esac |
| 16871 | case $ac_var in #( |
| 16872 | _ | IFS | as_nl) ;; #( |
| 16873 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 16874 | *) $as_unset $ac_var ;; |
| 16875 | esac ;; |
| 16876 | esac |
| 16877 | done |
| 16878 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16879 | (set) 2>&1 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16880 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16881 | *${as_nl}ac_space=\ *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16882 | # `set' does not quote correctly, so add quotes (double-quote |
| 16883 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16884 | sed -n \ |
| 16885 | "s/'/'\\\\''/g; |
| 16886 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16887 | ;; #( |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16888 | *) |
| 16889 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16890 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16891 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16892 | esac | |
| 16893 | sort |
| 16894 | ) | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16895 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16896 | /^ac_cv_env_/b end |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16897 | t clear |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16898 | :clear |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16899 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16900 | t end |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16901 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16902 | :end' >>confcache |
| 16903 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16904 | if test -w "$cache_file"; then |
| 16905 | test "x$cache_file" != "x/dev/null" && |
| 16906 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 16907 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16908 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16909 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16910 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 16911 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16912 | fi |
| 16913 | fi |
| 16914 | rm -f confcache |
| 16915 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16916 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16917 | # Let make expand exec_prefix. |
| 16918 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16919 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16920 | DEFS=-DHAVE_CONFIG_H |
| 16921 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16922 | ac_libobjs= |
| 16923 | ac_ltlibobjs= |
| 16924 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16925 | # 1. Remove the extension, and $U if already installed. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16926 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16927 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 16928 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16929 | # will be set to the directory where LIBOBJS objects are built. |
| 16930 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16931 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16932 | done |
| 16933 | LIBOBJS=$ac_libobjs |
| 16934 | |
| 16935 | LTLIBOBJS=$ac_ltlibobjs |
| 16936 | |
| 16937 | |
| 16938 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16939 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16940 | ac_write_fail=0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16941 | ac_clean_files_save=$ac_clean_files |
| 16942 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16943 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16944 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16945 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16946 | #! $SHELL |
| 16947 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16948 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16949 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16950 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16951 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16952 | debug=false |
| 16953 | ac_cs_recheck=false |
| 16954 | ac_cs_silent=false |
| 16955 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16956 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16957 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16958 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16959 | ## --------------------- ## |
| 16960 | ## M4sh Initialization. ## |
| 16961 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16962 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16963 | # Be more Bourne compatible |
| 16964 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16965 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16966 | emulate sh |
| 16967 | NULLCMD=: |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16968 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16969 | # is contrary to our usage. Disable this feature. |
| 16970 | alias -g '${1+"$@"}'='"$@"' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16971 | setopt NO_GLOB_SUBST |
| 16972 | else |
| 16973 | case `(set -o) 2>/dev/null` in |
| 16974 | *posix*) set -o posix ;; |
| 16975 | esac |
| 16976 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16977 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 16978 | |
| 16979 | |
| 16980 | |
| 16981 | |
| 16982 | # PATH needs CR |
| 16983 | # Avoid depending upon Character Ranges. |
| 16984 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16985 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16986 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16987 | as_cr_digits='0123456789' |
| 16988 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16989 | |
| 16990 | as_nl=' |
| 16991 | ' |
| 16992 | export as_nl |
| 16993 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16994 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16995 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16996 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16997 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16998 | as_echo='printf %s\n' |
| 16999 | as_echo_n='printf %s' |
| 17000 | else |
| 17001 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 17002 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 17003 | as_echo_n='/usr/ucb/echo -n' |
| 17004 | else |
| 17005 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 17006 | as_echo_n_body='eval |
| 17007 | arg=$1; |
| 17008 | case $arg in |
| 17009 | *"$as_nl"*) |
| 17010 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 17011 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 17012 | esac; |
| 17013 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 17014 | ' |
| 17015 | export as_echo_n_body |
| 17016 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 17017 | fi |
| 17018 | export as_echo_body |
| 17019 | as_echo='sh -c $as_echo_body as_echo' |
| 17020 | fi |
| 17021 | |
| 17022 | # The user is always right. |
| 17023 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17024 | PATH_SEPARATOR=: |
| 17025 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 17026 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 17027 | PATH_SEPARATOR=';' |
| 17028 | } |
| 17029 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17030 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17031 | # Support unset when possible. |
| 17032 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 17033 | as_unset=unset |
| 17034 | else |
| 17035 | as_unset=false |
| 17036 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17037 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17038 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17039 | # IFS |
| 17040 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17041 | # there to prevent editors from complaining about space-tab. |
| 17042 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17043 | # splitting by setting IFS to empty value.) |
| 17044 | IFS=" "" $as_nl" |
| 17045 | |
| 17046 | # Find who we are. Look in the path if we contain no directory separator. |
| 17047 | case $0 in |
| 17048 | *[\\/]* ) as_myself=$0 ;; |
| 17049 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17050 | for as_dir in $PATH |
| 17051 | do |
| 17052 | IFS=$as_save_IFS |
| 17053 | test -z "$as_dir" && as_dir=. |
| 17054 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17055 | done |
| 17056 | IFS=$as_save_IFS |
| 17057 | |
| 17058 | ;; |
| 17059 | esac |
| 17060 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17061 | # in which case we are not to be found in the path. |
| 17062 | if test "x$as_myself" = x; then |
| 17063 | as_myself=$0 |
| 17064 | fi |
| 17065 | if test ! -f "$as_myself"; then |
| 17066 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17067 | { (exit 1); exit 1; } |
| 17068 | fi |
| 17069 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17070 | # Work around bugs in pre-3.0 UWIN ksh. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17071 | for as_var in ENV MAIL MAILPATH |
| 17072 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 17073 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17074 | PS1='$ ' |
| 17075 | PS2='> ' |
| 17076 | PS4='+ ' |
| 17077 | |
| 17078 | # NLS nuisances. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17079 | LC_ALL=C |
| 17080 | export LC_ALL |
| 17081 | LANGUAGE=C |
| 17082 | export LANGUAGE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17083 | |
| 17084 | # Required to use basename. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17085 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17086 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17087 | as_expr=expr |
| 17088 | else |
| 17089 | as_expr=false |
| 17090 | fi |
| 17091 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17092 | 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] | 17093 | as_basename=basename |
| 17094 | else |
| 17095 | as_basename=false |
| 17096 | fi |
| 17097 | |
| 17098 | |
| 17099 | # Name of the executable. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17100 | as_me=`$as_basename -- "$0" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17101 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17102 | X"$0" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17103 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 17104 | $as_echo X/"$0" | |
| 17105 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17106 | s//\1/ |
| 17107 | q |
| 17108 | } |
| 17109 | /^X\/\(\/\/\)$/{ |
| 17110 | s//\1/ |
| 17111 | q |
| 17112 | } |
| 17113 | /^X\/\(\/\).*/{ |
| 17114 | s//\1/ |
| 17115 | q |
| 17116 | } |
| 17117 | s/.*/./; q'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17118 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17119 | # CDPATH. |
| 17120 | $as_unset CDPATH |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17121 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17122 | |
| 17123 | |
| 17124 | as_lineno_1=$LINENO |
| 17125 | as_lineno_2=$LINENO |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17126 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17127 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17128 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17129 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17130 | # uniformly replaced by the line number. The first 'sed' inserts a |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17131 | # line-number line after each line using $LINENO; the second 'sed' |
| 17132 | # does the real work. The second script uses 'N' to pair each |
| 17133 | # line-number line with the line containing $LINENO, and appends |
| 17134 | # trailing '-' during substitution so that $LINENO is not a special |
| 17135 | # case at line end. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17136 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17137 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 17138 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 17139 | sed -n ' |
| 17140 | p |
| 17141 | /[$]LINENO/= |
| 17142 | ' <$as_myself | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17143 | sed ' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17144 | s/[$]LINENO.*/&-/ |
| 17145 | t lineno |
| 17146 | b |
| 17147 | :lineno |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17148 | N |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17149 | :loop |
| 17150 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17151 | t loop |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17152 | s/-\n.*// |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17153 | ' >$as_me.lineno && |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17154 | chmod +x "$as_me.lineno" || |
| 17155 | { $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] | 17156 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17157 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17158 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17159 | # (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] | 17160 | # original and so on. Autoconf is especially sensitive to this). |
| 17161 | . "./$as_me.lineno" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17162 | # Exit status is that of the last command. |
| 17163 | exit |
| 17164 | } |
| 17165 | |
| 17166 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17167 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17168 | as_dirname=dirname |
| 17169 | else |
| 17170 | as_dirname=false |
| 17171 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17172 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17173 | ECHO_C= ECHO_N= ECHO_T= |
| 17174 | case `echo -n x` in |
| 17175 | -n*) |
| 17176 | case `echo 'x\c'` in |
| 17177 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 17178 | *) ECHO_C='\c';; |
| 17179 | esac;; |
| 17180 | *) |
| 17181 | ECHO_N='-n';; |
| 17182 | esac |
| 17183 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17184 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17185 | as_expr=expr |
| 17186 | else |
| 17187 | as_expr=false |
| 17188 | fi |
| 17189 | |
| 17190 | rm -f conf$$ conf$$.exe conf$$.file |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17191 | if test -d conf$$.dir; then |
| 17192 | rm -f conf$$.dir/conf$$.file |
| 17193 | else |
| 17194 | rm -f conf$$.dir |
| 17195 | mkdir conf$$.dir 2>/dev/null |
| 17196 | fi |
| 17197 | if (echo >conf$$.file) 2>/dev/null; then |
| 17198 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17199 | as_ln_s='ln -s' |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17200 | # ... but there are two gotchas: |
| 17201 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17202 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 17203 | # In both cases, we have to default to `cp -p'. |
| 17204 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 17205 | as_ln_s='cp -p' |
| 17206 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17207 | as_ln_s=ln |
| 17208 | else |
| 17209 | as_ln_s='cp -p' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17210 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17211 | else |
| 17212 | as_ln_s='cp -p' |
| 17213 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17214 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17215 | rmdir conf$$.dir 2>/dev/null |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17216 | |
| 17217 | if mkdir -p . 2>/dev/null; then |
| 17218 | as_mkdir_p=: |
| 17219 | else |
| 17220 | test -d ./-p && rmdir ./-p |
| 17221 | as_mkdir_p=false |
| 17222 | fi |
| 17223 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17224 | if test -x / >/dev/null 2>&1; then |
| 17225 | as_test_x='test -x' |
| 17226 | else |
| 17227 | if ls -dL / >/dev/null 2>&1; then |
| 17228 | as_ls_L_option=L |
| 17229 | else |
| 17230 | as_ls_L_option= |
| 17231 | fi |
| 17232 | as_test_x=' |
| 17233 | eval sh -c '\'' |
| 17234 | if test -d "$1"; then |
| 17235 | test -d "$1/."; |
| 17236 | else |
| 17237 | case $1 in |
| 17238 | -*)set "./$1";; |
| 17239 | esac; |
| 17240 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 17241 | ???[sx]*):;;*)false;;esac;fi |
| 17242 | '\'' sh |
| 17243 | ' |
| 17244 | fi |
| 17245 | as_executable_p=$as_test_x |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17246 | |
| 17247 | # Sed expression to map a string onto a valid CPP name. |
| 17248 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 17249 | |
| 17250 | # Sed expression to map a string onto a valid variable name. |
| 17251 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 17252 | |
| 17253 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17254 | exec 6>&1 |
| 17255 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17256 | # 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] | 17257 | # report actual input values of CONFIG_FILES etc. instead of their |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17258 | # values after options handling. |
| 17259 | ac_log=" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17260 | This file was extended by $as_me, which was |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17261 | generated by GNU Autoconf 2.62. Invocation command line was |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17262 | |
| 17263 | CONFIG_FILES = $CONFIG_FILES |
| 17264 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17265 | CONFIG_LINKS = $CONFIG_LINKS |
| 17266 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17267 | $ $0 $@ |
| 17268 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17269 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17270 | " |
| 17271 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17272 | _ACEOF |
| 17273 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17274 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17275 | # Files that config.status was made for. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17276 | config_files="$ac_config_files" |
| 17277 | config_headers="$ac_config_headers" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17278 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17279 | _ACEOF |
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 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17282 | ac_cs_usage="\ |
| 17283 | \`$as_me' instantiates files from templates according to the |
| 17284 | current configuration. |
| 17285 | |
| 17286 | Usage: $0 [OPTIONS] [FILE]... |
| 17287 | |
| 17288 | -h, --help print this help, then exit |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17289 | -V, --version print version number and configuration settings, then exit |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17290 | -q, --quiet do not print progress messages |
| 17291 | -d, --debug don't remove temporary files |
| 17292 | --recheck update $as_me by reconfiguring in the same conditions |
| 17293 | --file=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17294 | instantiate the configuration file FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17295 | --header=FILE[:TEMPLATE] |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17296 | instantiate the configuration header FILE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17297 | |
| 17298 | Configuration files: |
| 17299 | $config_files |
| 17300 | |
| 17301 | Configuration headers: |
| 17302 | $config_headers |
| 17303 | |
| 17304 | Report bugs to <bug-autoconf@gnu.org>." |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17305 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17306 | _ACEOF |
| 17307 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17308 | ac_cs_version="\\ |
| 17309 | config.status |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17310 | configured by $0, generated by GNU Autoconf 2.62, |
| 17311 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17312 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17313 | Copyright (C) 2008 Free Software Foundation, Inc. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17314 | This config.status script is free software; the Free Software Foundation |
| 17315 | gives unlimited permission to copy, distribute and modify it." |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17316 | |
| 17317 | ac_pwd='$ac_pwd' |
| 17318 | srcdir='$srcdir' |
| 17319 | AWK='$AWK' |
| 17320 | test -n "\$AWK" || AWK=awk |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17321 | _ACEOF |
| 17322 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17323 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17324 | # The default lists apply if the user does not specify any file. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17325 | ac_need_defaults=: |
| 17326 | while test $# != 0 |
| 17327 | do |
| 17328 | case $1 in |
| 17329 | --*=*) |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17330 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17331 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17332 | ac_shift=: |
| 17333 | ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17334 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17335 | ac_option=$1 |
| 17336 | ac_optarg=$2 |
| 17337 | ac_shift=shift |
| 17338 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17339 | esac |
| 17340 | |
| 17341 | case $ac_option in |
| 17342 | # Handling of the options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17343 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17344 | ac_cs_recheck=: ;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17345 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 17346 | $as_echo "$ac_cs_version"; exit ;; |
| 17347 | --debug | --debu | --deb | --de | --d | -d ) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17348 | debug=: ;; |
| 17349 | --file | --fil | --fi | --f ) |
| 17350 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17351 | case $ac_optarg in |
| 17352 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17353 | esac |
| 17354 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17355 | ac_need_defaults=false;; |
| 17356 | --header | --heade | --head | --hea ) |
| 17357 | $ac_shift |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17358 | case $ac_optarg in |
| 17359 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17360 | esac |
| 17361 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17362 | ac_need_defaults=false;; |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17363 | --he | --h) |
| 17364 | # Conflict between --help and --header |
| 17365 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 17366 | Try \`$0 --help' for more information." >&2 |
| 17367 | { (exit 1); exit 1; }; };; |
| 17368 | --help | --hel | -h ) |
| 17369 | $as_echo "$ac_cs_usage"; exit ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17370 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17371 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17372 | ac_cs_silent=: ;; |
| 17373 | |
| 17374 | # This is an error. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17375 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 17376 | Try \`$0 --help' for more information." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17377 | { (exit 1); exit 1; }; } ;; |
| 17378 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17379 | *) ac_config_targets="$ac_config_targets $1" |
| 17380 | ac_need_defaults=false ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17381 | |
| 17382 | esac |
| 17383 | shift |
| 17384 | done |
| 17385 | |
| 17386 | ac_configure_extra_args= |
| 17387 | |
| 17388 | if $ac_cs_silent; then |
| 17389 | exec 6>/dev/null |
| 17390 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17391 | fi |
| 17392 | |
| 17393 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17394 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17395 | if \$ac_cs_recheck; then |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17396 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 17397 | shift |
| 17398 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17399 | CONFIG_SHELL='$SHELL' |
| 17400 | export CONFIG_SHELL |
| 17401 | exec "\$@" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17402 | fi |
| 17403 | |
| 17404 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17405 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17406 | exec 5>>auto/config.log |
| 17407 | { |
| 17408 | echo |
| 17409 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17410 | ## Running $as_me. ## |
| 17411 | _ASBOX |
| 17412 | $as_echo "$ac_log" |
| 17413 | } >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17414 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17415 | _ACEOF |
| 17416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17417 | _ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17418 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17419 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17420 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17421 | # Handling of arguments. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17422 | for ac_config_target in $ac_config_targets |
| 17423 | do |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17424 | case $ac_config_target in |
| 17425 | "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 17426 | "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 17427 | |
| 17428 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17429 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17430 | { (exit 1); exit 1; }; };; |
| 17431 | esac |
| 17432 | done |
| 17433 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17434 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17435 | # If the user did not use the arguments to specify the items to instantiate, |
| 17436 | # then the envvar interface is used. Set only those that are not. |
| 17437 | # We use the long form for the default assignment because of an extremely |
| 17438 | # bizarre bug on SunOS 4.1.3. |
| 17439 | if $ac_need_defaults; then |
| 17440 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17441 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17442 | fi |
| 17443 | |
| 17444 | # Have a temporary directory for convenience. Make it in the build tree |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17445 | # 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] | 17446 | # creating and moving files from /tmp can sometimes cause problems. |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17447 | # Hook for its removal unless debugging. |
| 17448 | # Note that there is a small window in which the directory will not be cleaned: |
| 17449 | # after its creation but before its name has been assigned to `$tmp'. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17450 | $debug || |
| 17451 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17452 | tmp= |
| 17453 | trap 'exit_status=$? |
| 17454 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17455 | ' 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17456 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17457 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17458 | # Create a (secure) tmp directory for tmp files. |
| 17459 | |
| 17460 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17461 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17462 | test -n "$tmp" && test -d "$tmp" |
| 17463 | } || |
| 17464 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17465 | tmp=./conf$$-$RANDOM |
| 17466 | (umask 077 && mkdir "$tmp") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17467 | } || |
| 17468 | { |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17469 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17470 | { (exit 1); exit 1; } |
| 17471 | } |
| 17472 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17473 | # Set up the scripts for CONFIG_FILES section. |
| 17474 | # No need to generate them if there are no CONFIG_FILES. |
| 17475 | # This happens for instance with `./config.status config.h'. |
| 17476 | if test -n "$CONFIG_FILES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17477 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17478 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17479 | ac_cr='
' |
| 17480 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17481 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 17482 | ac_cs_awk_cr='\\r' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17483 | else |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17484 | ac_cs_awk_cr=$ac_cr |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17485 | fi |
| 17486 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17487 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17488 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17489 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17490 | |
| 17491 | { |
| 17492 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17493 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17494 | echo "_ACEOF" |
| 17495 | } >conf$$subs.sh || |
| 17496 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17497 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17498 | { (exit 1); exit 1; }; } |
| 17499 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 17500 | ac_delim='%!_!# ' |
| 17501 | for ac_last_try in false false false false false :; do |
| 17502 | . ./conf$$subs.sh || |
| 17503 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17504 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17505 | { (exit 1); exit 1; }; } |
| 17506 | |
| 17507 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then |
| 17508 | break |
| 17509 | elif $ac_last_try; then |
| 17510 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17511 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17512 | { (exit 1); exit 1; }; } |
| 17513 | else |
| 17514 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17515 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17516 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17517 | rm -f conf$$subs.sh |
| 17518 | |
| 17519 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17520 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17521 | _ACEOF |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17522 | sed -n ' |
| 17523 | h |
| 17524 | s/^/S["/; s/!.*/"]=/ |
| 17525 | p |
| 17526 | g |
| 17527 | s/^[^!]*!// |
| 17528 | :repl |
| 17529 | t repl |
| 17530 | s/'"$ac_delim"'$// |
| 17531 | t delim |
| 17532 | :nl |
| 17533 | h |
| 17534 | s/\(.\{148\}\).*/\1/ |
| 17535 | t more1 |
| 17536 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17537 | p |
| 17538 | n |
| 17539 | b repl |
| 17540 | :more1 |
| 17541 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17542 | p |
| 17543 | g |
| 17544 | s/.\{148\}// |
| 17545 | t nl |
| 17546 | :delim |
| 17547 | h |
| 17548 | s/\(.\{148\}\).*/\1/ |
| 17549 | t more2 |
| 17550 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17551 | p |
| 17552 | b |
| 17553 | :more2 |
| 17554 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17555 | p |
| 17556 | g |
| 17557 | s/.\{148\}// |
| 17558 | t delim |
| 17559 | ' <conf$$subs.awk | sed ' |
| 17560 | /^[^""]/{ |
| 17561 | N |
| 17562 | s/\n// |
| 17563 | } |
| 17564 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17565 | rm -f conf$$subs.awk |
| 17566 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17567 | _ACAWK |
| 17568 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 17569 | for (key in S) S_is_set[key] = 1 |
| 17570 | FS = "" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17571 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17572 | } |
| 17573 | { |
| 17574 | line = $ 0 |
| 17575 | nfields = split(line, field, "@") |
| 17576 | substed = 0 |
| 17577 | len = length(field[1]) |
| 17578 | for (i = 2; i < nfields; i++) { |
| 17579 | key = field[i] |
| 17580 | keylen = length(key) |
| 17581 | if (S_is_set[key]) { |
| 17582 | value = S[key] |
| 17583 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17584 | len += length(value) + length(field[++i]) |
| 17585 | substed = 1 |
| 17586 | } else |
| 17587 | len += 1 + keylen |
| 17588 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17589 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17590 | print line |
| 17591 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17592 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17593 | _ACAWK |
| 17594 | _ACEOF |
| 17595 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17596 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17597 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17598 | else |
| 17599 | cat |
| 17600 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 17601 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 17602 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 17603 | { (exit 1); exit 1; }; } |
| 17604 | _ACEOF |
| 17605 | |
| 17606 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17607 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17608 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17609 | # (actually we leave an empty line to preserve line numbers). |
| 17610 | if test "x$srcdir" = x.; then |
| 17611 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17612 | s/:*\$(srcdir):*/:/ |
| 17613 | s/:*\${srcdir}:*/:/ |
| 17614 | s/:*@srcdir@:*/:/ |
| 17615 | s/^\([^=]*=[ ]*\):*/\1/ |
| 17616 | s/:*$// |
| 17617 | s/^[^=]*=[ ]*$// |
| 17618 | }' |
| 17619 | fi |
| 17620 | |
| 17621 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17622 | fi # test -n "$CONFIG_FILES" |
| 17623 | |
| 17624 | # Set up the scripts for CONFIG_HEADERS section. |
| 17625 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17626 | # This happens for instance with `./config.status Makefile'. |
| 17627 | if test -n "$CONFIG_HEADERS"; then |
| 17628 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 17629 | BEGIN { |
| 17630 | _ACEOF |
| 17631 | |
| 17632 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17633 | # here-document in config.status, that substitutes the proper values into |
| 17634 | # config.h.in to produce config.h. |
| 17635 | |
| 17636 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17637 | # handling of long lines. |
| 17638 | ac_delim='%!_!# ' |
| 17639 | for ac_last_try in false false :; do |
| 17640 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 17641 | if test -z "$ac_t"; then |
| 17642 | break |
| 17643 | elif $ac_last_try; then |
| 17644 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 17645 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 17646 | { (exit 1); exit 1; }; } |
| 17647 | else |
| 17648 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17649 | fi |
| 17650 | done |
| 17651 | |
| 17652 | # For the awk script, D is an array of macro values keyed by name, |
| 17653 | # likewise P contains macro parameters if any. Preserve backslash |
| 17654 | # newline sequences. |
| 17655 | |
| 17656 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17657 | sed -n ' |
| 17658 | s/.\{148\}/&'"$ac_delim"'/g |
| 17659 | t rset |
| 17660 | :rset |
| 17661 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17662 | t def |
| 17663 | d |
| 17664 | :def |
| 17665 | s/\\$// |
| 17666 | t bsnl |
| 17667 | s/["\\]/\\&/g |
| 17668 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17669 | D["\1"]=" \3"/p |
| 17670 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17671 | d |
| 17672 | :bsnl |
| 17673 | s/["\\]/\\&/g |
| 17674 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17675 | D["\1"]=" \3\\\\\\n"\\/p |
| 17676 | t cont |
| 17677 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17678 | t cont |
| 17679 | d |
| 17680 | :cont |
| 17681 | n |
| 17682 | s/.\{148\}/&'"$ac_delim"'/g |
| 17683 | t clear |
| 17684 | :clear |
| 17685 | s/\\$// |
| 17686 | t bsnlc |
| 17687 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17688 | d |
| 17689 | :bsnlc |
| 17690 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17691 | b cont |
| 17692 | ' <confdefs.h | sed ' |
| 17693 | s/'"$ac_delim"'/"\\\ |
| 17694 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17695 | |
| 17696 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17697 | for (key in D) D_is_set[key] = 1 |
| 17698 | FS = "" |
| 17699 | } |
| 17700 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17701 | line = \$ 0 |
| 17702 | split(line, arg, " ") |
| 17703 | if (arg[1] == "#") { |
| 17704 | defundef = arg[2] |
| 17705 | mac1 = arg[3] |
| 17706 | } else { |
| 17707 | defundef = substr(arg[1], 2) |
| 17708 | mac1 = arg[2] |
| 17709 | } |
| 17710 | split(mac1, mac2, "(") #) |
| 17711 | macro = mac2[1] |
| 17712 | if (D_is_set[macro]) { |
| 17713 | # Preserve the white space surrounding the "#". |
| 17714 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 17715 | print prefix "define", macro P[macro] D[macro] |
| 17716 | next |
| 17717 | } else { |
| 17718 | # Replace #undef with comments. This is necessary, for example, |
| 17719 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 17720 | # on some systems where configure will not decide to define it. |
| 17721 | if (defundef == "undef") { |
| 17722 | print "/*", line, "*/" |
| 17723 | next |
| 17724 | } |
| 17725 | } |
| 17726 | } |
| 17727 | { print } |
| 17728 | _ACAWK |
| 17729 | _ACEOF |
| 17730 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17731 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 17732 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 17733 | { (exit 1); exit 1; }; } |
| 17734 | fi # test -n "$CONFIG_HEADERS" |
| 17735 | |
| 17736 | |
| 17737 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 17738 | shift |
| 17739 | for ac_tag |
| 17740 | do |
| 17741 | case $ac_tag in |
| 17742 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17743 | esac |
| 17744 | case $ac_mode$ac_tag in |
| 17745 | :[FHL]*:*);; |
| 17746 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 17747 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 17748 | { (exit 1); exit 1; }; };; |
| 17749 | :[FH]-) ac_tag=-:-;; |
| 17750 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17751 | esac |
| 17752 | ac_save_IFS=$IFS |
| 17753 | IFS=: |
| 17754 | set x $ac_tag |
| 17755 | IFS=$ac_save_IFS |
| 17756 | shift |
| 17757 | ac_file=$1 |
| 17758 | shift |
| 17759 | |
| 17760 | case $ac_mode in |
| 17761 | :L) ac_source=$1;; |
| 17762 | :[FH]) |
| 17763 | ac_file_inputs= |
| 17764 | for ac_f |
| 17765 | do |
| 17766 | case $ac_f in |
| 17767 | -) ac_f="$tmp/stdin";; |
| 17768 | *) # Look for the file first in the build tree, then in the source tree |
| 17769 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17770 | # because $ac_f cannot contain `:'. |
| 17771 | test -f "$ac_f" || |
| 17772 | case $ac_f in |
| 17773 | [\\/$]*) false;; |
| 17774 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17775 | esac || |
| 17776 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 17777 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 17778 | { (exit 1); exit 1; }; };; |
| 17779 | esac |
| 17780 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17781 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 17782 | done |
| 17783 | |
| 17784 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17785 | # use $as_me), people would be surprised to read: |
| 17786 | # /* config.h. Generated by config.status. */ |
| 17787 | configure_input='Generated from '` |
| 17788 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17789 | `' by configure.' |
| 17790 | if test x"$ac_file" != x-; then |
| 17791 | configure_input="$ac_file. $configure_input" |
| 17792 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17793 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 17794 | fi |
| 17795 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17796 | case $configure_input in #( |
| 17797 | *\&* | *\|* | *\\* ) |
| 17798 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17799 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17800 | *) ac_sed_conf_input=$configure_input;; |
| 17801 | esac |
| 17802 | |
| 17803 | case $ac_tag in |
| 17804 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 17805 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17806 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17807 | { (exit 1); exit 1; }; } ;; |
| 17808 | esac |
| 17809 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17810 | esac |
| 17811 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17812 | ac_dir=`$as_dirname -- "$ac_file" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17813 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17814 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17815 | X"$ac_file" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17816 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 17817 | $as_echo X"$ac_file" | |
| 17818 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17819 | s//\1/ |
| 17820 | q |
| 17821 | } |
| 17822 | /^X\(\/\/\)[^/].*/{ |
| 17823 | s//\1/ |
| 17824 | q |
| 17825 | } |
| 17826 | /^X\(\/\/\)$/{ |
| 17827 | s//\1/ |
| 17828 | q |
| 17829 | } |
| 17830 | /^X\(\/\).*/{ |
| 17831 | s//\1/ |
| 17832 | q |
| 17833 | } |
| 17834 | s/.*/./; q'` |
| 17835 | { as_dir="$ac_dir" |
| 17836 | case $as_dir in #( |
| 17837 | -*) as_dir=./$as_dir;; |
| 17838 | esac |
| 17839 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17840 | as_dirs= |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17841 | while :; do |
| 17842 | case $as_dir in #( |
| 17843 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 17844 | *) as_qdir=$as_dir;; |
| 17845 | esac |
| 17846 | as_dirs="'$as_qdir' $as_dirs" |
| 17847 | as_dir=`$as_dirname -- "$as_dir" || |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17848 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17849 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17850 | X"$as_dir" : 'X\(//\)$' \| \ |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17851 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 17852 | $as_echo X"$as_dir" | |
| 17853 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17854 | s//\1/ |
| 17855 | q |
| 17856 | } |
| 17857 | /^X\(\/\/\)[^/].*/{ |
| 17858 | s//\1/ |
| 17859 | q |
| 17860 | } |
| 17861 | /^X\(\/\/\)$/{ |
| 17862 | s//\1/ |
| 17863 | q |
| 17864 | } |
| 17865 | /^X\(\/\).*/{ |
| 17866 | s//\1/ |
| 17867 | q |
| 17868 | } |
| 17869 | s/.*/./; q'` |
| 17870 | test -d "$as_dir" && break |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17871 | done |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17872 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 17873 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 17874 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17875 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17876 | ac_builddir=. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17877 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17878 | case "$ac_dir" in |
| 17879 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17880 | *) |
| 17881 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 17882 | # A ".." for each directory in $ac_dir_suffix. |
| 17883 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 17884 | case $ac_top_builddir_sub in |
| 17885 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17886 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17887 | esac ;; |
| 17888 | esac |
| 17889 | ac_abs_top_builddir=$ac_pwd |
| 17890 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17891 | # for backward compatibility: |
| 17892 | ac_top_builddir=$ac_top_build_prefix |
| 17893 | |
| 17894 | case $srcdir in |
| 17895 | .) # We are building in place. |
| 17896 | ac_srcdir=. |
| 17897 | ac_top_srcdir=$ac_top_builddir_sub |
| 17898 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17899 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 17900 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17901 | ac_top_srcdir=$srcdir |
| 17902 | ac_abs_top_srcdir=$srcdir ;; |
| 17903 | *) # Relative name. |
| 17904 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17905 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17906 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 17907 | esac |
| 17908 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 17909 | |
| 17910 | |
| 17911 | case $ac_mode in |
| 17912 | :F) |
| 17913 | # |
| 17914 | # CONFIG_FILE |
| 17915 | # |
| 17916 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 17917 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17918 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 17919 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17920 | # If the template does not know about datarootdir, expand it. |
| 17921 | # FIXME: This hack should be removed a few years after 2.60. |
| 17922 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17923 | |
| 17924 | ac_sed_dataroot=' |
| 17925 | /datarootdir/ { |
| 17926 | p |
| 17927 | q |
| 17928 | } |
| 17929 | /@datadir@/p |
| 17930 | /@docdir@/p |
| 17931 | /@infodir@/p |
| 17932 | /@localedir@/p |
| 17933 | /@mandir@/p |
| 17934 | ' |
| 17935 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 17936 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17937 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 17938 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17939 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 17940 | _ACEOF |
| 17941 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17942 | ac_datarootdir_hack=' |
| 17943 | s&@datadir@&$datadir&g |
| 17944 | s&@docdir@&$docdir&g |
| 17945 | s&@infodir@&$infodir&g |
| 17946 | s&@localedir@&$localedir&g |
| 17947 | s&@mandir@&$mandir&g |
| 17948 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17949 | esac |
| 17950 | _ACEOF |
| 17951 | |
| 17952 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17953 | # Shell code in configure.ac might set extrasub. |
| 17954 | # FIXME: do we really want to maintain this feature? |
| 17955 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17956 | ac_sed_extra="$ac_vpsub |
| 17957 | $extrasub |
| 17958 | _ACEOF |
| 17959 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17960 | :t |
| 17961 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17962 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 17963 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 17964 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 17965 | s&@srcdir@&$ac_srcdir&;t t |
| 17966 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17967 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17968 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17969 | s&@builddir@&$ac_builddir&;t t |
| 17970 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17971 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17972 | $ac_datarootdir_hack |
| 17973 | " |
| 17974 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 17975 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17976 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17977 | { (exit 1); exit 1; }; } |
| 17978 | |
| 17979 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17980 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 17981 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 17982 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17983 | which seems to be undefined. Please make sure it is defined." >&5 |
| 17984 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17985 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 17986 | |
| 17987 | rm -f "$tmp/stdin" |
| 17988 | case $ac_file in |
| 17989 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 17990 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 17991 | esac \ |
| 17992 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17993 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17994 | { (exit 1); exit 1; }; } |
| 17995 | ;; |
| 17996 | :H) |
| 17997 | # |
| 17998 | # CONFIG_HEADER |
| 17999 | # |
| 18000 | if test x"$ac_file" != x-; then |
| 18001 | { |
| 18002 | $as_echo "/* $configure_input */" \ |
| 18003 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 18004 | } >"$tmp/config.h" \ |
| 18005 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18006 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18007 | { (exit 1); exit 1; }; } |
| 18008 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 18009 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 18010 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 18011 | else |
| 18012 | rm -f "$ac_file" |
| 18013 | mv "$tmp/config.h" "$ac_file" \ |
| 18014 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 18015 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 18016 | { (exit 1); exit 1; }; } |
| 18017 | fi |
| 18018 | else |
| 18019 | $as_echo "/* $configure_input */" \ |
| 18020 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 18021 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 18022 | $as_echo "$as_me: error: could not create -" >&2;} |
| 18023 | { (exit 1); exit 1; }; } |
| 18024 | fi |
| 18025 | ;; |
| 18026 | |
| 18027 | |
| 18028 | esac |
| 18029 | |
| 18030 | done # for ac_tag |
| 18031 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18032 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18033 | { (exit 0); exit 0; } |
| 18034 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18035 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18036 | ac_clean_files=$ac_clean_files_save |
| 18037 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18038 | test $ac_write_fail = 0 || |
| 18039 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 18040 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 18041 | { (exit 1); exit 1; }; } |
| 18042 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18043 | |
| 18044 | # configure is writing to config.log, and then calls config.status. |
| 18045 | # config.status does its own redirection, appending to config.log. |
| 18046 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18047 | # by configure, so config.status won't be able to write to it; its |
| 18048 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18049 | # effectively closing config.log, so it can be properly (re)opened and |
| 18050 | # appended to by config.status. When coming back to configure, we |
| 18051 | # need to make the FD available again. |
| 18052 | if test "$no_create" != yes; then |
| 18053 | ac_cs_success=: |
| 18054 | ac_config_status_args= |
| 18055 | test "$silent" = yes && |
| 18056 | ac_config_status_args="$ac_config_status_args --quiet" |
| 18057 | exec 5>/dev/null |
| 18058 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 18059 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 18060 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18061 | # would make configure fail if this is the last instruction. |
| 18062 | $ac_cs_success || { (exit 1); exit 1; } |
| 18063 | fi |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 18064 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 18065 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 |
| 18066 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} |
| 18067 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18068 | |
| 18069 | |