1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (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' 50else 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' 70fi 71 72# The user is always right. 73if 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 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="vim.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624LINK_AS_NEEDED 625DEPEND_CFLAGS_FILTER 626MSGFMT_DESKTOP 627MAKEMO 628MSGFMT 629INSTALL_TOOL_LANGS 630INSTALL_LANGS 631TAGPRG 632GUI_X_LIBS 633GUITYPE 634GUI_LIB_LOC 635GUI_INC_LOC 636NARROW_PROTO 637MOTIF_LIBNAME 638GRESOURCE_OBJ 639GRESOURCE_SRC 640UPDATE_DESKTOP_DATABASE 641GTK_UPDATE_ICON_CACHE 642GLIB_COMPILE_RESOURCES 643GNOME_INCLUDEDIR 644GNOME_LIBDIR 645GNOME_LIBS 646GTK_LIBNAME 647GTK_LIBS 648GTK_CFLAGS 649PKG_CONFIG 650X_LIB 651X_EXTRA_LIBS 652X_LIBS 653X_PRE_LIBS 654X_CFLAGS 655XMKMF 656xmkmfpath 657TERM_TEST 658TERM_OBJ 659TERM_SRC 660CHANNEL_OBJ 661CHANNEL_SRC 662NETBEANS_OBJ 663NETBEANS_SRC 664RUBY_LIBS 665RUBY_CFLAGS 666RUBY_PRO 667RUBY_OBJ 668RUBY_SRC 669vi_cv_path_ruby 670TCL_LIBS 671TCL_CFLAGS 672TCL_PRO 673TCL_OBJ 674TCL_SRC 675vi_cv_path_tcl 676PYTHON3_OBJ 677PYTHON3_SRC 678PYTHON3_CFLAGS 679PYTHON3_LIBS 680vi_cv_path_python3 681PYTHON_OBJ 682PYTHON_SRC 683PYTHON_CFLAGS 684PYTHON_LIBS 685vi_cv_path_python 686PERL_LIBS 687PERL_CFLAGS 688PERL_PRO 689PERL_OBJ 690PERL_SRC 691shrpenv 692vi_cv_perl_xsubpp 693vi_cv_perllib 694vi_cv_path_perl 695MZSCHEME_MZC 696MZSCHEME_EXTRA 697MZSCHEME_CFLAGS 698MZSCHEME_LIBS 699MZSCHEME_PRO 700MZSCHEME_OBJ 701MZSCHEME_SRC 702vi_cv_path_mzscheme 703LUA_CFLAGS 704LUA_LIBS 705LUA_PRO 706LUA_OBJ 707LUA_SRC 708vi_cv_path_plain_lua 709vi_cv_path_luajit 710vi_cv_path_lua 711compiledby 712dogvimdiff 713dovimdiff 714QUOTESED 715line_break 716VIEWNAME 717EXNAME 718VIMNAME 719OS_EXTRA_OBJ 720OS_EXTRA_SRC 721XCODE_SELECT 722CPP_MM 723CROSS_COMPILING 724STRIP 725AWK 726FGREP 727EGREP 728GREP 729CPP 730OBJEXT 731EXEEXT 732ac_ct_CC 733CPPFLAGS 734LDFLAGS 735CFLAGS 736CC 737SET_MAKE 738target_alias 739host_alias 740build_alias 741LIBS 742ECHO_T 743ECHO_N 744ECHO_C 745DEFS 746mandir 747localedir 748libdir 749psdir 750pdfdir 751dvidir 752htmldir 753infodir 754docdir 755oldincludedir 756includedir 757runstatedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_fail_if_missing 781enable_darwin 782with_mac_arch 783with_developer_dir 784with_local_dir 785with_vim_name 786with_ex_name 787with_view_name 788with_global_runtime 789with_modified_by 790enable_smack 791enable_selinux 792with_features 793with_compiledby 794enable_xsmp 795enable_xsmp_interact 796enable_luainterp 797with_lua_prefix 798with_luajit 799enable_mzschemeinterp 800with_plthome 801enable_perlinterp 802enable_pythoninterp 803with_python_command 804with_python_config_dir 805enable_python3interp 806with_python3_command 807with_python3_config_dir 808enable_tclinterp 809with_tclsh 810enable_rubyinterp 811with_ruby_command 812enable_cscope 813enable_netbeans 814enable_channel 815enable_terminal 816enable_autoservername 817enable_multibyte 818enable_rightleft 819enable_arabic 820enable_farsi 821enable_xim 822enable_fontset 823with_x 824enable_gui 825enable_gtk2_check 826enable_gnome_check 827enable_gtk3_check 828enable_motif_check 829enable_athena_check 830enable_nextaw_check 831enable_carbon_check 832enable_gtktest 833with_gnome_includes 834with_gnome_libs 835with_gnome 836enable_icon_cache_update 837enable_desktop_database_update 838with_motif_lib 839with_tlib 840enable_largefile 841enable_canberra 842enable_acl 843enable_gpm 844enable_sysmouse 845enable_nls 846' 847 ac_precious_vars='build_alias 848host_alias 849target_alias 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855CPP 856XMKMF' 857 858 859# Initialize some variables set by options. 860ac_init_help= 861ac_init_version=false 862ac_unrecognized_opts= 863ac_unrecognized_sep= 864# The variables have the same names as the options, with 865# dashes changed to underlines. 866cache_file=/dev/null 867exec_prefix=NONE 868no_create= 869no_recursion= 870prefix=NONE 871program_prefix=NONE 872program_suffix=NONE 873program_transform_name=s,x,x, 874silent= 875site= 876srcdir= 877verbose= 878x_includes=NONE 879x_libraries=NONE 880 881# Installation directory options. 882# These are left unexpanded so users can "make install exec_prefix=/foo" 883# and all the variables that are supposed to be based on exec_prefix 884# by default will actually change. 885# Use braces instead of parens because sh, perl, etc. also accept them. 886# (The list follows the same order as the GNU Coding Standards.) 887bindir='${exec_prefix}/bin' 888sbindir='${exec_prefix}/sbin' 889libexecdir='${exec_prefix}/libexec' 890datarootdir='${prefix}/share' 891datadir='${datarootdir}' 892sysconfdir='${prefix}/etc' 893sharedstatedir='${prefix}/com' 894localstatedir='${prefix}/var' 895runstatedir='${localstatedir}/run' 896includedir='${prefix}/include' 897oldincludedir='/usr/include' 898docdir='${datarootdir}/doc/${PACKAGE}' 899infodir='${datarootdir}/info' 900htmldir='${docdir}' 901dvidir='${docdir}' 902pdfdir='${docdir}' 903psdir='${docdir}' 904libdir='${exec_prefix}/lib' 905localedir='${datarootdir}/locale' 906mandir='${datarootdir}/man' 907 908ac_prev= 909ac_dashdash= 910for ac_option 911do 912 # If the previous option needs an argument, assign it. 913 if test -n "$ac_prev"; then 914 eval $ac_prev=\$ac_option 915 ac_prev= 916 continue 917 fi 918 919 case $ac_option in 920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 921 *=) ac_optarg= ;; 922 *) ac_optarg=yes ;; 923 esac 924 925 # Accept the important Cygnus configure options, so we can diagnose typos. 926 927 case $ac_dashdash$ac_option in 928 --) 929 ac_dashdash=yes ;; 930 931 -bindir | --bindir | --bindi | --bind | --bin | --bi) 932 ac_prev=bindir ;; 933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 934 bindir=$ac_optarg ;; 935 936 -build | --build | --buil | --bui | --bu) 937 ac_prev=build_alias ;; 938 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 939 build_alias=$ac_optarg ;; 940 941 -cache-file | --cache-file | --cache-fil | --cache-fi \ 942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 943 ac_prev=cache_file ;; 944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 946 cache_file=$ac_optarg ;; 947 948 --config-cache | -C) 949 cache_file=config.cache ;; 950 951 -datadir | --datadir | --datadi | --datad) 952 ac_prev=datadir ;; 953 -datadir=* | --datadir=* | --datadi=* | --datad=*) 954 datadir=$ac_optarg ;; 955 956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 957 | --dataroo | --dataro | --datar) 958 ac_prev=datarootdir ;; 959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 961 datarootdir=$ac_optarg ;; 962 963 -disable-* | --disable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=no ;; 978 979 -docdir | --docdir | --docdi | --doc | --do) 980 ac_prev=docdir ;; 981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 982 docdir=$ac_optarg ;; 983 984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 985 ac_prev=dvidir ;; 986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 987 dvidir=$ac_optarg ;; 988 989 -enable-* | --enable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=\$ac_optarg ;; 1004 1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1007 | --exec | --exe | --ex) 1008 ac_prev=exec_prefix ;; 1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1011 | --exec=* | --exe=* | --ex=*) 1012 exec_prefix=$ac_optarg ;; 1013 1014 -gas | --gas | --ga | --g) 1015 # Obsolete; use --with-gas. 1016 with_gas=yes ;; 1017 1018 -help | --help | --hel | --he | -h) 1019 ac_init_help=long ;; 1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1021 ac_init_help=recursive ;; 1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1023 ac_init_help=short ;; 1024 1025 -host | --host | --hos | --ho) 1026 ac_prev=host_alias ;; 1027 -host=* | --host=* | --hos=* | --ho=*) 1028 host_alias=$ac_optarg ;; 1029 1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1031 ac_prev=htmldir ;; 1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1033 | --ht=*) 1034 htmldir=$ac_optarg ;; 1035 1036 -includedir | --includedir | --includedi | --included | --include \ 1037 | --includ | --inclu | --incl | --inc) 1038 ac_prev=includedir ;; 1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1040 | --includ=* | --inclu=* | --incl=* | --inc=*) 1041 includedir=$ac_optarg ;; 1042 1043 -infodir | --infodir | --infodi | --infod | --info | --inf) 1044 ac_prev=infodir ;; 1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1046 infodir=$ac_optarg ;; 1047 1048 -libdir | --libdir | --libdi | --libd) 1049 ac_prev=libdir ;; 1050 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1051 libdir=$ac_optarg ;; 1052 1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1054 | --libexe | --libex | --libe) 1055 ac_prev=libexecdir ;; 1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1057 | --libexe=* | --libex=* | --libe=*) 1058 libexecdir=$ac_optarg ;; 1059 1060 -localedir | --localedir | --localedi | --localed | --locale) 1061 ac_prev=localedir ;; 1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1063 localedir=$ac_optarg ;; 1064 1065 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1066 | --localstate | --localstat | --localsta | --localst | --locals) 1067 ac_prev=localstatedir ;; 1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1070 localstatedir=$ac_optarg ;; 1071 1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1073 ac_prev=mandir ;; 1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1075 mandir=$ac_optarg ;; 1076 1077 -nfp | --nfp | --nf) 1078 # Obsolete; use --without-fp. 1079 with_fp=no ;; 1080 1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1082 | --no-cr | --no-c | -n) 1083 no_create=yes ;; 1084 1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1087 no_recursion=yes ;; 1088 1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1091 | --oldin | --oldi | --old | --ol | --o) 1092 ac_prev=oldincludedir ;; 1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1096 oldincludedir=$ac_optarg ;; 1097 1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1099 ac_prev=prefix ;; 1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1101 prefix=$ac_optarg ;; 1102 1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1104 | --program-pre | --program-pr | --program-p) 1105 ac_prev=program_prefix ;; 1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1108 program_prefix=$ac_optarg ;; 1109 1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1111 | --program-suf | --program-su | --program-s) 1112 ac_prev=program_suffix ;; 1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1115 program_suffix=$ac_optarg ;; 1116 1117 -program-transform-name | --program-transform-name \ 1118 | --program-transform-nam | --program-transform-na \ 1119 | --program-transform-n | --program-transform- \ 1120 | --program-transform | --program-transfor \ 1121 | --program-transfo | --program-transf \ 1122 | --program-trans | --program-tran \ 1123 | --progr-tra | --program-tr | --program-t) 1124 ac_prev=program_transform_name ;; 1125 -program-transform-name=* | --program-transform-name=* \ 1126 | --program-transform-nam=* | --program-transform-na=* \ 1127 | --program-transform-n=* | --program-transform-=* \ 1128 | --program-transform=* | --program-transfor=* \ 1129 | --program-transfo=* | --program-transf=* \ 1130 | --program-trans=* | --program-tran=* \ 1131 | --progr-tra=* | --program-tr=* | --program-t=*) 1132 program_transform_name=$ac_optarg ;; 1133 1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1135 ac_prev=pdfdir ;; 1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1137 pdfdir=$ac_optarg ;; 1138 1139 -psdir | --psdir | --psdi | --psd | --ps) 1140 ac_prev=psdir ;; 1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1142 psdir=$ac_optarg ;; 1143 1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1145 | -silent | --silent | --silen | --sile | --sil) 1146 silent=yes ;; 1147 1148 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1149 | --runstate | --runstat | --runsta | --runst | --runs \ 1150 | --run | --ru | --r) 1151 ac_prev=runstatedir ;; 1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1154 | --run=* | --ru=* | --r=*) 1155 runstatedir=$ac_optarg ;; 1156 1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1158 ac_prev=sbindir ;; 1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1160 | --sbi=* | --sb=*) 1161 sbindir=$ac_optarg ;; 1162 1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1165 | --sharedst | --shareds | --shared | --share | --shar \ 1166 | --sha | --sh) 1167 ac_prev=sharedstatedir ;; 1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1171 | --sha=* | --sh=*) 1172 sharedstatedir=$ac_optarg ;; 1173 1174 -site | --site | --sit) 1175 ac_prev=site ;; 1176 -site=* | --site=* | --sit=*) 1177 site=$ac_optarg ;; 1178 1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1180 ac_prev=srcdir ;; 1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1182 srcdir=$ac_optarg ;; 1183 1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1185 | --syscon | --sysco | --sysc | --sys | --sy) 1186 ac_prev=sysconfdir ;; 1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1189 sysconfdir=$ac_optarg ;; 1190 1191 -target | --target | --targe | --targ | --tar | --ta | --t) 1192 ac_prev=target_alias ;; 1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1194 target_alias=$ac_optarg ;; 1195 1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1197 verbose=yes ;; 1198 1199 -version | --version | --versio | --versi | --vers | -V) 1200 ac_init_version=: ;; 1201 1202 -with-* | --with-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=\$ac_optarg ;; 1217 1218 -without-* | --without-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: $ac_useropt" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1253Try \`$0 --help' for more information" 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 case $ac_envvar in #( 1260 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1262 esac 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 as_fn_error $? "missing argument to $ac_option" 1280fi 1281 1282if test -n "$ac_unrecognized_opts"; then 1283 case $enable_option_checking in 1284 no) ;; 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1287 esac 1288fi 1289 1290# Check all directory arguments for consistency. 1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1292 datadir sysconfdir sharedstatedir localstatedir includedir \ 1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1294 libdir localedir mandir runstatedir 1295do 1296 eval ac_val=\$$ac_var 1297 # Remove trailing slashes. 1298 case $ac_val in 1299 */ ) 1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1301 eval $ac_var=\$ac_val;; 1302 esac 1303 # Be sure to have absolute directory names. 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 as_fn_error $? "working directory cannot be determined" 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1338 as_fn_error $? "pwd does not report name of working directory" 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$as_myself" || 1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$as_myself" : 'X\(//\)[^/]' \| \ 1348 X"$as_myself" : 'X\(//\)$' \| \ 1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1350$as_echo X"$as_myself" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1378fi 1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1380ac_abs_confdir=`( 1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1382 pwd)` 1383# When building in place, set srcdir=. 1384if test "$ac_abs_confdir" = "$ac_pwd"; then 1385 srcdir=. 1386fi 1387# Remove unnecessary trailing slashes from srcdir. 1388# Double slashes in file names in object file debugging info 1389# mess up M-x gdb in Emacs. 1390case $srcdir in 1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1392esac 1393for ac_var in $ac_precious_vars; do 1394 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_env_${ac_var}_value=\$${ac_var} 1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1398done 1399 1400# 1401# Report the --help message. 1402# 1403if test "$ac_init_help" = "long"; then 1404 # Omit some internal or obsolete options to make the list less imposing. 1405 # This message is too long to be a string in the A/UX 3.1 sh. 1406 cat <<_ACEOF 1407\`configure' configures this package to adapt to many kinds of systems. 1408 1409Usage: $0 [OPTION]... [VAR=VALUE]... 1410 1411To assign environment variables (e.g., CC, CFLAGS...), specify them as 1412VAR=VALUE. See below for descriptions of some of the useful variables. 1413 1414Defaults for the options are specified in brackets. 1415 1416Configuration: 1417 -h, --help display this help and exit 1418 --help=short display options specific to this package 1419 --help=recursive display the short help of all the included packages 1420 -V, --version display version information and exit 1421 -q, --quiet, --silent do not print \`checking ...' messages 1422 --cache-file=FILE cache test results in FILE [disabled] 1423 -C, --config-cache alias for \`--cache-file=config.cache' 1424 -n, --no-create do not create output files 1425 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1426 1427Installation directories: 1428 --prefix=PREFIX install architecture-independent files in PREFIX 1429 [$ac_default_prefix] 1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1431 [PREFIX] 1432 1433By default, \`make install' will install all the files in 1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1435an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1436for instance \`--prefix=\$HOME'. 1437 1438For better control, use the options below. 1439 1440Fine tuning of the installation directories: 1441 --bindir=DIR user executables [EPREFIX/bin] 1442 --sbindir=DIR system admin executables [EPREFIX/sbin] 1443 --libexecdir=DIR program executables [EPREFIX/libexec] 1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1448 --libdir=DIR object code libraries [EPREFIX/lib] 1449 --includedir=DIR C header files [PREFIX/include] 1450 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1453 --infodir=DIR info documentation [DATAROOTDIR/info] 1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1455 --mandir=DIR man documentation [DATAROOTDIR/man] 1456 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1457 --htmldir=DIR html documentation [DOCDIR] 1458 --dvidir=DIR dvi documentation [DOCDIR] 1459 --pdfdir=DIR pdf documentation [DOCDIR] 1460 --psdir=DIR ps documentation [DOCDIR] 1461_ACEOF 1462 1463 cat <<\_ACEOF 1464 1465X features: 1466 --x-includes=DIR X include files are in DIR 1467 --x-libraries=DIR X library files are in DIR 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 1473 cat <<\_ACEOF 1474 1475Optional Features: 1476 --disable-option-checking ignore unrecognized --enable/--with options 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --enable-fail-if-missing Fail if dependencies on additional features 1480 specified on the command line are missing. 1481 --disable-darwin Disable Darwin (Mac OS X) support. 1482 --disable-smack Do not check for Smack support. 1483 --disable-selinux Do not check for SELinux support. 1484 --disable-xsmp Disable XSMP session management 1485 --disable-xsmp-interact Disable XSMP interaction 1486 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1487 --enable-mzschemeinterp Include MzScheme interpreter. 1488 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1489 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1490 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1491 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1492 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1493 --enable-cscope Include cscope interface. 1494 --disable-netbeans Disable NetBeans integration support. 1495 --disable-channel Disable process communication support. 1496 --enable-terminal Enable terminal emulation support. 1497 --enable-autoservername Automatically define servername at vim startup. 1498 --enable-multibyte Include multibyte editing support. 1499 --disable-rightleft Do not include Right-to-Left language support. 1500 --disable-arabic Do not include Arabic language support. 1501 --disable-farsi Deprecated. 1502 --enable-xim Include XIM input support. 1503 --enable-fontset Include X fontset output support. 1504 --enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/haiku/photon/carbon 1505 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1506 --enable-gnome-check If GTK GUI, check for GNOME default=no 1507 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1508 --enable-motif-check If auto-select GUI, check for Motif default=yes 1509 --enable-athena-check If auto-select GUI, check for Athena default=yes 1510 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1511 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1512 --disable-gtktest Do not try to compile and run a test GTK program 1513 --disable-icon-cache-update update disabled 1514 --disable-desktop-database-update update disabled 1515 --disable-largefile omit support for large files 1516 --disable-canberra Do not use libcanberra. 1517 --disable-acl No check for ACL support. 1518 --disable-gpm Don't use gpm (Linux mouse daemon). 1519 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1520 --disable-nls Don't support NLS (gettext()). 1521 1522Optional Packages: 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1525 --with-mac-arch=ARCH current, intel, ppc or both 1526 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1527 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1528 --without-local-dir do not search /usr/local for local libraries. 1529 --with-vim-name=NAME what to call the Vim executable 1530 --with-ex-name=NAME what to call the Ex executable 1531 --with-view-name=NAME what to call the View executable 1532 --with-global-runtime=DIR global runtime directory in 'runtimepath', comma-separated for multiple directories 1533 --with-modified-by=NAME name of who modified a release version 1534 --with-features=TYPE tiny, small, normal, big or huge (default: huge) 1535 --with-compiledby=NAME name to show in :version message 1536 --with-lua-prefix=PFX Prefix where Lua is installed. 1537 --with-luajit Link with LuaJIT instead of Lua. 1538 --with-plthome=PLTHOME Use PLTHOME. 1539 --with-python-command=NAME name of the Python 2 command (default: python2 or python) 1540 --with-python-config-dir=PATH Python's config directory (deprecated) 1541 --with-python3-command=NAME name of the Python 3 command (default: python3 or python) 1542 --with-python3-config-dir=PATH Python's config directory (deprecated) 1543 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1544 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1545 --with-x use the X Window System 1546 --with-gnome-includes=DIR Specify location of GNOME headers 1547 --with-gnome-libs=DIR Specify location of GNOME libs 1548 --with-gnome Specify prefix for GNOME files 1549 --with-motif-lib=STRING Library for Motif 1550 --with-tlib=library terminal library to be used 1551 1552Some influential environment variables: 1553 CC C compiler command 1554 CFLAGS C compiler flags 1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1556 nonstandard directory <lib dir> 1557 LIBS libraries to pass to the linker, e.g. -l<library> 1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1559 you have headers in a nonstandard directory <include dir> 1560 CPP C preprocessor 1561 XMKMF Path to xmkmf, Makefile generator for X Window System 1562 1563Use these variables to override the choices made by `configure' or to help 1564it to find libraries and programs with nonstandard names/locations. 1565 1566Report bugs to the package provider. 1567_ACEOF 1568ac_status=$? 1569fi 1570 1571if test "$ac_init_help" = "recursive"; then 1572 # If there are subdirs, report their specific --help. 1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1574 test -d "$ac_dir" || 1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1576 continue 1577 ac_builddir=. 1578 1579case "$ac_dir" in 1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581*) 1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1583 # A ".." for each directory in $ac_dir_suffix. 1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1585 case $ac_top_builddir_sub in 1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1588 esac ;; 1589esac 1590ac_abs_top_builddir=$ac_pwd 1591ac_abs_builddir=$ac_pwd$ac_dir_suffix 1592# for backward compatibility: 1593ac_top_builddir=$ac_top_build_prefix 1594 1595case $srcdir in 1596 .) # We are building in place. 1597 ac_srcdir=. 1598 ac_top_srcdir=$ac_top_builddir_sub 1599 ac_abs_top_srcdir=$ac_pwd ;; 1600 [\\/]* | ?:[\\/]* ) # Absolute name. 1601 ac_srcdir=$srcdir$ac_dir_suffix; 1602 ac_top_srcdir=$srcdir 1603 ac_abs_top_srcdir=$srcdir ;; 1604 *) # Relative name. 1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1606 ac_top_srcdir=$ac_top_build_prefix$srcdir 1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1608esac 1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1610 1611 cd "$ac_dir" || { ac_status=$?; continue; } 1612 # Check for guested configure. 1613 if test -f "$ac_srcdir/configure.gnu"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1616 elif test -f "$ac_srcdir/configure"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure" --help=recursive 1619 else 1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1621 fi || ac_status=$? 1622 cd "$ac_pwd" || { ac_status=$?; break; } 1623 done 1624fi 1625 1626test -n "$ac_init_help" && exit $ac_status 1627if $ac_init_version; then 1628 cat <<\_ACEOF 1629configure 1630generated by GNU Autoconf 2.69 1631 1632Copyright (C) 2012 Free Software Foundation, Inc. 1633This configure script is free software; the Free Software Foundation 1634gives unlimited permission to copy, distribute and modify it. 1635_ACEOF 1636 exit 1637fi 1638 1639## ------------------------ ## 1640## Autoconf initialization. ## 1641## ------------------------ ## 1642 1643# ac_fn_c_try_compile LINENO 1644# -------------------------- 1645# Try to compile conftest.$ac_ext, and return whether this succeeded. 1646ac_fn_c_try_compile () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 rm -f conftest.$ac_objext 1650 if { { ac_try="$ac_compile" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_compile") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } && { 1666 test -z "$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 } && test -s conftest.$ac_objext; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_compile 1680 1681# ac_fn_c_try_cpp LINENO 1682# ---------------------- 1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_cpp () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 if { { ac_try="$ac_cpp conftest.$ac_ext" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } > conftest.i && { 1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_cpp 1717 1718# ac_fn_c_try_link LINENO 1719# ----------------------- 1720# Try to link conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_link () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 rm -f conftest.$ac_objext conftest$ac_exeext 1725 if { { ac_try="$ac_link" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_link") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { 1741 test -z "$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 } && test -s conftest$ac_exeext && { 1744 test "$cross_compiling" = yes || 1745 test -x conftest$ac_exeext 1746 }; then : 1747 ac_retval=0 1748else 1749 $as_echo "$as_me: failed program was:" >&5 1750sed 's/^/| /' conftest.$ac_ext >&5 1751 1752 ac_retval=1 1753fi 1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1756 # interfere with the next link command; also delete a directory that is 1757 # left behind by Apple's compiler. We do this before executing the actions. 1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_link 1763 1764# ac_fn_c_try_run LINENO 1765# ---------------------- 1766# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1767# that executables *can* be run. 1768ac_fn_c_try_run () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 if { { ac_try="$ac_link" 1772case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_link") 2>&5 1779 ac_status=$? 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1782 { { case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787$as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_try") 2>&5 1789 ac_status=$? 1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1791 test $ac_status = 0; }; }; then : 1792 ac_retval=0 1793else 1794 $as_echo "$as_me: program exited with status $ac_status" >&5 1795 $as_echo "$as_me: failed program was:" >&5 1796sed 's/^/| /' conftest.$ac_ext >&5 1797 1798 ac_retval=$ac_status 1799fi 1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 as_fn_set_status $ac_retval 1803 1804} # ac_fn_c_try_run 1805 1806# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1807# ------------------------------------------------------- 1808# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1809# the include files in INCLUDES and setting the cache variable VAR 1810# accordingly. 1811ac_fn_c_check_header_mongrel () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 if eval \${$3+:} false; then : 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1816$as_echo_n "checking for $2... " >&6; } 1817if eval \${$3+:} false; then : 1818 $as_echo_n "(cached) " >&6 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823else 1824 # Is the header compilable? 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1826$as_echo_n "checking $2 usability... " >&6; } 1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829$4 1830#include <$2> 1831_ACEOF 1832if ac_fn_c_try_compile "$LINENO"; then : 1833 ac_header_compiler=yes 1834else 1835 ac_header_compiler=no 1836fi 1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1839$as_echo "$ac_header_compiler" >&6; } 1840 1841# Is the header present? 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1843$as_echo_n "checking $2 presence... " >&6; } 1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_cpp "$LINENO"; then : 1849 ac_header_preproc=yes 1850else 1851 ac_header_preproc=no 1852fi 1853rm -f conftest.err conftest.i conftest.$ac_ext 1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1855$as_echo "$ac_header_preproc" >&6; } 1856 1857# So? What about this header? 1858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1859 yes:no: ) 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1861$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1864 ;; 1865 no:yes:* ) 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1867$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1869$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1871$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1873$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1876 ;; 1877esac 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1879$as_echo_n "checking for $2... " >&6; } 1880if eval \${$3+:} false; then : 1881 $as_echo_n "(cached) " >&6 1882else 1883 eval "$3=\$ac_header_compiler" 1884fi 1885eval ac_res=\$$3 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1887$as_echo "$ac_res" >&6; } 1888fi 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890 1891} # ac_fn_c_check_header_mongrel 1892 1893# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1894# ------------------------------------------------------- 1895# Tests whether HEADER exists and can be compiled using the include files in 1896# INCLUDES, setting the cache variable VAR accordingly. 1897ac_fn_c_check_header_compile () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1901$as_echo_n "checking for $2... " >&6; } 1902if eval \${$3+:} false; then : 1903 $as_echo_n "(cached) " >&6 1904else 1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907$4 1908#include <$2> 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 eval "$3=yes" 1912else 1913 eval "$3=no" 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1921 1922} # ac_fn_c_check_header_compile 1923 1924# ac_fn_c_check_func LINENO FUNC VAR 1925# ---------------------------------- 1926# Tests whether FUNC exists, setting the cache variable VAR accordingly 1927ac_fn_c_check_func () 1928{ 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1931$as_echo_n "checking for $2... " >&6; } 1932if eval \${$3+:} false; then : 1933 $as_echo_n "(cached) " >&6 1934else 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1939#define $2 innocuous_$2 1940 1941/* System header to define __stub macros and hopefully few prototypes, 1942 which can conflict with char $2 (); below. 1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1944 <limits.h> exists even on freestanding compilers. */ 1945 1946#ifdef __STDC__ 1947# include <limits.h> 1948#else 1949# include <assert.h> 1950#endif 1951 1952#undef $2 1953 1954/* Override any GCC internal prototype to avoid an error. 1955 Use char because int might match the return type of a GCC 1956 builtin and then its argument prototype would still apply. */ 1957#ifdef __cplusplus 1958extern "C" 1959#endif 1960char $2 (); 1961/* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964#if defined __stub_$2 || defined __stub___$2 1965choke me 1966#endif 1967 1968int 1969main () 1970{ 1971return $2 (); 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_link "$LINENO"; then : 1977 eval "$3=yes" 1978else 1979 eval "$3=no" 1980fi 1981rm -f core conftest.err conftest.$ac_objext \ 1982 conftest$ac_exeext conftest.$ac_ext 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 1989} # ac_fn_c_check_func 1990 1991# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1992# ------------------------------------------- 1993# Tests whether TYPE exists after having included INCLUDES, setting cache 1994# variable VAR accordingly. 1995ac_fn_c_check_type () 1996{ 1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1999$as_echo_n "checking for $2... " >&6; } 2000if eval \${$3+:} false; then : 2001 $as_echo_n "(cached) " >&6 2002else 2003 eval "$3=no" 2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006$4 2007int 2008main () 2009{ 2010if (sizeof ($2)) 2011 return 0; 2012 ; 2013 return 0; 2014} 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO"; then : 2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018/* end confdefs.h. */ 2019$4 2020int 2021main () 2022{ 2023if (sizeof (($2))) 2024 return 0; 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_compile "$LINENO"; then : 2030 2031else 2032 eval "$3=yes" 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035fi 2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2037fi 2038eval ac_res=\$$3 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2040$as_echo "$ac_res" >&6; } 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2042 2043} # ac_fn_c_check_type 2044 2045# ac_fn_c_find_uintX_t LINENO BITS VAR 2046# ------------------------------------ 2047# Finds an unsigned integer type with width BITS, setting cache variable VAR 2048# accordingly. 2049ac_fn_c_find_uintX_t () 2050{ 2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2053$as_echo_n "checking for uint$2_t... " >&6; } 2054if eval \${$3+:} false; then : 2055 $as_echo_n "(cached) " >&6 2056else 2057 eval "$3=no" 2058 # Order is important - never check a type that is potentially smaller 2059 # than half of the expected target width. 2060 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2061 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063/* end confdefs.h. */ 2064$ac_includes_default 2065int 2066main () 2067{ 2068static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2069test_array [0] = 0; 2070return test_array [0]; 2071 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO"; then : 2077 case $ac_type in #( 2078 uint$2_t) : 2079 eval "$3=yes" ;; #( 2080 *) : 2081 eval "$3=\$ac_type" ;; 2082esac 2083fi 2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2085 if eval test \"x\$"$3"\" = x"no"; then : 2086 2087else 2088 break 2089fi 2090 done 2091fi 2092eval ac_res=\$$3 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2096 2097} # ac_fn_c_find_uintX_t 2098 2099# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2100# -------------------------------------------- 2101# Tries to find the compile-time value of EXPR in a program that includes 2102# INCLUDES, setting VAR accordingly. Returns whether the value could be 2103# computed 2104ac_fn_c_compute_int () 2105{ 2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2107 if test "$cross_compiling" = yes; then 2108 # Depending upon the size, compute the lo and hi bounds. 2109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112int 2113main () 2114{ 2115static int test_array [1 - 2 * !(($2) >= 0)]; 2116test_array [0] = 0; 2117return test_array [0]; 2118 2119 ; 2120 return 0; 2121} 2122_ACEOF 2123if ac_fn_c_try_compile "$LINENO"; then : 2124 ac_lo=0 ac_mid=0 2125 while :; do 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$4 2129int 2130main () 2131{ 2132static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2133test_array [0] = 0; 2134return test_array [0]; 2135 2136 ; 2137 return 0; 2138} 2139_ACEOF 2140if ac_fn_c_try_compile "$LINENO"; then : 2141 ac_hi=$ac_mid; break 2142else 2143 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2144 if test $ac_lo -le $ac_mid; then 2145 ac_lo= ac_hi= 2146 break 2147 fi 2148 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2149fi 2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151 done 2152else 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2154/* end confdefs.h. */ 2155$4 2156int 2157main () 2158{ 2159static int test_array [1 - 2 * !(($2) < 0)]; 2160test_array [0] = 0; 2161return test_array [0]; 2162 2163 ; 2164 return 0; 2165} 2166_ACEOF 2167if ac_fn_c_try_compile "$LINENO"; then : 2168 ac_hi=-1 ac_mid=-1 2169 while :; do 2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2171/* end confdefs.h. */ 2172$4 2173int 2174main () 2175{ 2176static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2177test_array [0] = 0; 2178return test_array [0]; 2179 2180 ; 2181 return 0; 2182} 2183_ACEOF 2184if ac_fn_c_try_compile "$LINENO"; then : 2185 ac_lo=$ac_mid; break 2186else 2187 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2188 if test $ac_mid -le $ac_hi; then 2189 ac_lo= ac_hi= 2190 break 2191 fi 2192 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2193fi 2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2195 done 2196else 2197 ac_lo= ac_hi= 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202# Binary search between lo and hi bounds. 2203while test "x$ac_lo" != "x$ac_hi"; do 2204 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206/* end confdefs.h. */ 2207$4 2208int 2209main () 2210{ 2211static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2212test_array [0] = 0; 2213return test_array [0]; 2214 2215 ; 2216 return 0; 2217} 2218_ACEOF 2219if ac_fn_c_try_compile "$LINENO"; then : 2220 ac_hi=$ac_mid 2221else 2222 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2223fi 2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2225done 2226case $ac_lo in #(( 2227?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2228'') ac_retval=1 ;; 2229esac 2230 else 2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2232/* end confdefs.h. */ 2233$4 2234static long int longval () { return $2; } 2235static unsigned long int ulongval () { return $2; } 2236#include <stdio.h> 2237#include <stdlib.h> 2238int 2239main () 2240{ 2241 2242 FILE *f = fopen ("conftest.val", "w"); 2243 if (! f) 2244 return 1; 2245 if (($2) < 0) 2246 { 2247 long int i = longval (); 2248 if (i != ($2)) 2249 return 1; 2250 fprintf (f, "%ld", i); 2251 } 2252 else 2253 { 2254 unsigned long int i = ulongval (); 2255 if (i != ($2)) 2256 return 1; 2257 fprintf (f, "%lu", i); 2258 } 2259 /* Do not output a trailing newline, as this causes \r\n confusion 2260 on some platforms. */ 2261 return ferror (f) || fclose (f) != 0; 2262 2263 ; 2264 return 0; 2265} 2266_ACEOF 2267if ac_fn_c_try_run "$LINENO"; then : 2268 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2269else 2270 ac_retval=1 2271fi 2272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2273 conftest.$ac_objext conftest.beam conftest.$ac_ext 2274rm -f conftest.val 2275 2276 fi 2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2278 as_fn_set_status $ac_retval 2279 2280} # ac_fn_c_compute_int 2281cat >auto/config.log <<_ACEOF 2282This file contains any messages produced by compilers while 2283running configure, to aid debugging if configure makes a mistake. 2284 2285It was created by $as_me, which was 2286generated by GNU Autoconf 2.69. Invocation command line was 2287 2288 $ $0 $@ 2289 2290_ACEOF 2291exec 5>>auto/config.log 2292{ 2293cat <<_ASUNAME 2294## --------- ## 2295## Platform. ## 2296## --------- ## 2297 2298hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2299uname -m = `(uname -m) 2>/dev/null || echo unknown` 2300uname -r = `(uname -r) 2>/dev/null || echo unknown` 2301uname -s = `(uname -s) 2>/dev/null || echo unknown` 2302uname -v = `(uname -v) 2>/dev/null || echo unknown` 2303 2304/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2305/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2306 2307/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2308/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2309/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2310/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2311/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2312/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2313/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2314 2315_ASUNAME 2316 2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2318for as_dir in $PATH 2319do 2320 IFS=$as_save_IFS 2321 test -z "$as_dir" && as_dir=. 2322 $as_echo "PATH: $as_dir" 2323 done 2324IFS=$as_save_IFS 2325 2326} >&5 2327 2328cat >&5 <<_ACEOF 2329 2330 2331## ----------- ## 2332## Core tests. ## 2333## ----------- ## 2334 2335_ACEOF 2336 2337 2338# Keep a trace of the command line. 2339# Strip out --no-create and --no-recursion so they do not pile up. 2340# Strip out --silent because we don't want to record it for future runs. 2341# Also quote any args containing shell meta-characters. 2342# Make two passes to allow for proper duplicate-argument suppression. 2343ac_configure_args= 2344ac_configure_args0= 2345ac_configure_args1= 2346ac_must_keep_next=false 2347for ac_pass in 1 2 2348do 2349 for ac_arg 2350 do 2351 case $ac_arg in 2352 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2354 | -silent | --silent | --silen | --sile | --sil) 2355 continue ;; 2356 *\'*) 2357 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2358 esac 2359 case $ac_pass in 2360 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2361 2) 2362 as_fn_append ac_configure_args1 " '$ac_arg'" 2363 if test $ac_must_keep_next = true; then 2364 ac_must_keep_next=false # Got value, back to normal. 2365 else 2366 case $ac_arg in 2367 *=* | --config-cache | -C | -disable-* | --disable-* \ 2368 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2369 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2370 | -with-* | --with-* | -without-* | --without-* | --x) 2371 case "$ac_configure_args0 " in 2372 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2373 esac 2374 ;; 2375 -* ) ac_must_keep_next=true ;; 2376 esac 2377 fi 2378 as_fn_append ac_configure_args " '$ac_arg'" 2379 ;; 2380 esac 2381 done 2382done 2383{ ac_configure_args0=; unset ac_configure_args0;} 2384{ ac_configure_args1=; unset ac_configure_args1;} 2385 2386# When interrupted or exit'd, cleanup temporary files, and complete 2387# config.log. We remove comments because anyway the quotes in there 2388# would cause problems or look ugly. 2389# WARNING: Use '\'' to represent an apostrophe within the trap. 2390# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2391trap 'exit_status=$? 2392 # Save into config.log some information that might help in debugging. 2393 { 2394 echo 2395 2396 $as_echo "## ---------------- ## 2397## Cache variables. ## 2398## ---------------- ##" 2399 echo 2400 # The following way of writing the cache mishandles newlines in values, 2401( 2402 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2403 eval ac_val=\$$ac_var 2404 case $ac_val in #( 2405 *${as_nl}*) 2406 case $ac_var in #( 2407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2408$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2409 esac 2410 case $ac_var in #( 2411 _ | IFS | as_nl) ;; #( 2412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2413 *) { eval $ac_var=; unset $ac_var;} ;; 2414 esac ;; 2415 esac 2416 done 2417 (set) 2>&1 | 2418 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2419 *${as_nl}ac_space=\ *) 2420 sed -n \ 2421 "s/'\''/'\''\\\\'\'''\''/g; 2422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2423 ;; #( 2424 *) 2425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2426 ;; 2427 esac | 2428 sort 2429) 2430 echo 2431 2432 $as_echo "## ----------------- ## 2433## Output variables. ## 2434## ----------------- ##" 2435 echo 2436 for ac_var in $ac_subst_vars 2437 do 2438 eval ac_val=\$$ac_var 2439 case $ac_val in 2440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2441 esac 2442 $as_echo "$ac_var='\''$ac_val'\''" 2443 done | sort 2444 echo 2445 2446 if test -n "$ac_subst_files"; then 2447 $as_echo "## ------------------- ## 2448## File substitutions. ## 2449## ------------------- ##" 2450 echo 2451 for ac_var in $ac_subst_files 2452 do 2453 eval ac_val=\$$ac_var 2454 case $ac_val in 2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2456 esac 2457 $as_echo "$ac_var='\''$ac_val'\''" 2458 done | sort 2459 echo 2460 fi 2461 2462 if test -s confdefs.h; then 2463 $as_echo "## ----------- ## 2464## confdefs.h. ## 2465## ----------- ##" 2466 echo 2467 cat confdefs.h 2468 echo 2469 fi 2470 test "$ac_signal" != 0 && 2471 $as_echo "$as_me: caught signal $ac_signal" 2472 $as_echo "$as_me: exit $exit_status" 2473 } >&5 2474 rm -f core *.core core.conftest.* && 2475 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2476 exit $exit_status 2477' 0 2478for ac_signal in 1 2 13 15; do 2479 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2480done 2481ac_signal=0 2482 2483# confdefs.h avoids OS command line length limits that DEFS can exceed. 2484rm -f -r conftest* confdefs.h 2485 2486$as_echo "/* confdefs.h */" > confdefs.h 2487 2488# Predefined preprocessor variables. 2489 2490cat >>confdefs.h <<_ACEOF 2491#define PACKAGE_NAME "$PACKAGE_NAME" 2492_ACEOF 2493 2494cat >>confdefs.h <<_ACEOF 2495#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2496_ACEOF 2497 2498cat >>confdefs.h <<_ACEOF 2499#define PACKAGE_VERSION "$PACKAGE_VERSION" 2500_ACEOF 2501 2502cat >>confdefs.h <<_ACEOF 2503#define PACKAGE_STRING "$PACKAGE_STRING" 2504_ACEOF 2505 2506cat >>confdefs.h <<_ACEOF 2507#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2508_ACEOF 2509 2510cat >>confdefs.h <<_ACEOF 2511#define PACKAGE_URL "$PACKAGE_URL" 2512_ACEOF 2513 2514 2515# Let the site file select an alternate cache file if it wants to. 2516# Prefer an explicitly selected file to automatically selected ones. 2517ac_site_file1=NONE 2518ac_site_file2=NONE 2519if test -n "$CONFIG_SITE"; then 2520 # We do not want a PATH search for config.site. 2521 case $CONFIG_SITE in #(( 2522 -*) ac_site_file1=./$CONFIG_SITE;; 2523 */*) ac_site_file1=$CONFIG_SITE;; 2524 *) ac_site_file1=./$CONFIG_SITE;; 2525 esac 2526elif test "x$prefix" != xNONE; then 2527 ac_site_file1=$prefix/share/config.site 2528 ac_site_file2=$prefix/etc/config.site 2529else 2530 ac_site_file1=$ac_default_prefix/share/config.site 2531 ac_site_file2=$ac_default_prefix/etc/config.site 2532fi 2533for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2534do 2535 test "x$ac_site_file" = xNONE && continue 2536 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2538$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2539 sed 's/^/| /' "$ac_site_file" >&5 2540 . "$ac_site_file" \ 2541 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2543as_fn_error $? "failed to load site script $ac_site_file 2544See \`config.log' for more details" "$LINENO" 5; } 2545 fi 2546done 2547 2548if test -r "$cache_file"; then 2549 # Some versions of bash will fail to source /dev/null (special files 2550 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2551 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2553$as_echo "$as_me: loading cache $cache_file" >&6;} 2554 case $cache_file in 2555 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2556 *) . "./$cache_file";; 2557 esac 2558 fi 2559else 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2561$as_echo "$as_me: creating cache $cache_file" >&6;} 2562 >$cache_file 2563fi 2564 2565# Check that the precious variables saved in the cache have kept the same 2566# value. 2567ac_cache_corrupted=false 2568for ac_var in $ac_precious_vars; do 2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2570 eval ac_new_set=\$ac_env_${ac_var}_set 2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2572 eval ac_new_val=\$ac_env_${ac_var}_value 2573 case $ac_old_set,$ac_new_set in 2574 set,) 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2576$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2577 ac_cache_corrupted=: ;; 2578 ,set) 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2580$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2581 ac_cache_corrupted=: ;; 2582 ,);; 2583 *) 2584 if test "x$ac_old_val" != "x$ac_new_val"; then 2585 # differences in whitespace do not lead to failure. 2586 ac_old_val_w=`echo x $ac_old_val` 2587 ac_new_val_w=`echo x $ac_new_val` 2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2590$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2591 ac_cache_corrupted=: 2592 else 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2594$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2595 eval $ac_var=\$ac_old_val 2596 fi 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2598$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2600$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2601 fi;; 2602 esac 2603 # Pass precious variables to config.status. 2604 if test "$ac_new_set" = set; then 2605 case $ac_new_val in 2606 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2607 *) ac_arg=$ac_var=$ac_new_val ;; 2608 esac 2609 case " $ac_configure_args " in 2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2612 esac 2613 fi 2614done 2615if $ac_cache_corrupted; then 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2619$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2620 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2621fi 2622## -------------------- ## 2623## Main body of script. ## 2624## -------------------- ## 2625 2626ac_ext=c 2627ac_cpp='$CPP $CPPFLAGS' 2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2630ac_compiler_gnu=$ac_cv_c_compiler_gnu 2631 2632 2633ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2634 2635 2636$as_echo "#define UNIX 1" >>confdefs.h 2637 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2639$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2640set x ${MAKE-make} 2641ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2642if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 cat >conftest.make <<\_ACEOF 2646SHELL = /bin/sh 2647all: 2648 @echo '@@@%%%=$(MAKE)=@@@%%%' 2649_ACEOF 2650# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2651case `${MAKE-make} -f conftest.make 2>/dev/null` in 2652 *@@@%%%=?*=@@@%%%*) 2653 eval ac_cv_prog_make_${ac_make}_set=yes;; 2654 *) 2655 eval ac_cv_prog_make_${ac_make}_set=no;; 2656esac 2657rm -f conftest.make 2658fi 2659if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2661$as_echo "yes" >&6; } 2662 SET_MAKE= 2663else 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2665$as_echo "no" >&6; } 2666 SET_MAKE="MAKE=${MAKE-make}" 2667fi 2668 2669 2670ac_ext=c 2671ac_cpp='$CPP $CPPFLAGS' 2672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2674ac_compiler_gnu=$ac_cv_c_compiler_gnu 2675if test -n "$ac_tool_prefix"; then 2676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2677set dummy ${ac_tool_prefix}gcc; ac_word=$2 2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2679$as_echo_n "checking for $ac_word... " >&6; } 2680if ${ac_cv_prog_CC+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682else 2683 if test -n "$CC"; then 2684 ac_cv_prog_CC="$CC" # Let the user override the test. 2685else 2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687for as_dir in $PATH 2688do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2693 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2695 break 2 2696 fi 2697done 2698 done 2699IFS=$as_save_IFS 2700 2701fi 2702fi 2703CC=$ac_cv_prog_CC 2704if test -n "$CC"; then 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2706$as_echo "$CC" >&6; } 2707else 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2709$as_echo "no" >&6; } 2710fi 2711 2712 2713fi 2714if test -z "$ac_cv_prog_CC"; then 2715 ac_ct_CC=$CC 2716 # Extract the first word of "gcc", so it can be a program name with args. 2717set dummy gcc; ac_word=$2 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719$as_echo_n "checking for $ac_word... " >&6; } 2720if ${ac_cv_prog_ac_ct_CC+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 if test -n "$ac_ct_CC"; then 2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2725else 2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727for as_dir in $PATH 2728do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_ac_ct_CC="gcc" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741fi 2742fi 2743ac_ct_CC=$ac_cv_prog_ac_ct_CC 2744if test -n "$ac_ct_CC"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2746$as_echo "$ac_ct_CC" >&6; } 2747else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749$as_echo "no" >&6; } 2750fi 2751 2752 if test "x$ac_ct_CC" = x; then 2753 CC="" 2754 else 2755 case $cross_compiling:$ac_tool_warned in 2756yes:) 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2759ac_tool_warned=yes ;; 2760esac 2761 CC=$ac_ct_CC 2762 fi 2763else 2764 CC="$ac_cv_prog_CC" 2765fi 2766 2767if test -z "$CC"; then 2768 if test -n "$ac_tool_prefix"; then 2769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2770set dummy ${ac_tool_prefix}cc; ac_word=$2 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2772$as_echo_n "checking for $ac_word... " >&6; } 2773if ${ac_cv_prog_CC+:} false; then : 2774 $as_echo_n "(cached) " >&6 2775else 2776 if test -n "$CC"; then 2777 ac_cv_prog_CC="$CC" # Let the user override the test. 2778else 2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2780for as_dir in $PATH 2781do 2782 IFS=$as_save_IFS 2783 test -z "$as_dir" && as_dir=. 2784 for ac_exec_ext in '' $ac_executable_extensions; do 2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2786 ac_cv_prog_CC="${ac_tool_prefix}cc" 2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2788 break 2 2789 fi 2790done 2791 done 2792IFS=$as_save_IFS 2793 2794fi 2795fi 2796CC=$ac_cv_prog_CC 2797if test -n "$CC"; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2799$as_echo "$CC" >&6; } 2800else 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2802$as_echo "no" >&6; } 2803fi 2804 2805 2806 fi 2807fi 2808if test -z "$CC"; then 2809 # Extract the first word of "cc", so it can be a program name with args. 2810set dummy cc; ac_word=$2 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2812$as_echo_n "checking for $ac_word... " >&6; } 2813if ${ac_cv_prog_CC+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 if test -n "$CC"; then 2817 ac_cv_prog_CC="$CC" # Let the user override the test. 2818else 2819 ac_prog_rejected=no 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 test -z "$as_dir" && as_dir=. 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2828 ac_prog_rejected=yes 2829 continue 2830 fi 2831 ac_cv_prog_CC="cc" 2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836 done 2837IFS=$as_save_IFS 2838 2839if test $ac_prog_rejected = yes; then 2840 # We found a bogon in the path, so make sure we never use it. 2841 set dummy $ac_cv_prog_CC 2842 shift 2843 if test $# != 0; then 2844 # We chose a different compiler from the bogus one. 2845 # However, it has the same basename, so the bogon will be chosen 2846 # first if we set CC to just the basename; use the full file name. 2847 shift 2848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2849 fi 2850fi 2851fi 2852fi 2853CC=$ac_cv_prog_CC 2854if test -n "$CC"; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2856$as_echo "$CC" >&6; } 2857else 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859$as_echo "no" >&6; } 2860fi 2861 2862 2863fi 2864if test -z "$CC"; then 2865 if test -n "$ac_tool_prefix"; then 2866 for ac_prog in cl.exe 2867 do 2868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2869set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2871$as_echo_n "checking for $ac_word... " >&6; } 2872if ${ac_cv_prog_CC+:} false; then : 2873 $as_echo_n "(cached) " >&6 2874else 2875 if test -n "$CC"; then 2876 ac_cv_prog_CC="$CC" # Let the user override the test. 2877else 2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2879for as_dir in $PATH 2880do 2881 IFS=$as_save_IFS 2882 test -z "$as_dir" && as_dir=. 2883 for ac_exec_ext in '' $ac_executable_extensions; do 2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2887 break 2 2888 fi 2889done 2890 done 2891IFS=$as_save_IFS 2892 2893fi 2894fi 2895CC=$ac_cv_prog_CC 2896if test -n "$CC"; then 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2898$as_echo "$CC" >&6; } 2899else 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2901$as_echo "no" >&6; } 2902fi 2903 2904 2905 test -n "$CC" && break 2906 done 2907fi 2908if test -z "$CC"; then 2909 ac_ct_CC=$CC 2910 for ac_prog in cl.exe 2911do 2912 # Extract the first word of "$ac_prog", so it can be a program name with args. 2913set dummy $ac_prog; ac_word=$2 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2915$as_echo_n "checking for $ac_word... " >&6; } 2916if ${ac_cv_prog_ac_ct_CC+:} false; then : 2917 $as_echo_n "(cached) " >&6 2918else 2919 if test -n "$ac_ct_CC"; then 2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2921else 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 test -z "$as_dir" && as_dir=. 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2929 ac_cv_prog_ac_ct_CC="$ac_prog" 2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2931 break 2 2932 fi 2933done 2934 done 2935IFS=$as_save_IFS 2936 2937fi 2938fi 2939ac_ct_CC=$ac_cv_prog_ac_ct_CC 2940if test -n "$ac_ct_CC"; then 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2942$as_echo "$ac_ct_CC" >&6; } 2943else 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2945$as_echo "no" >&6; } 2946fi 2947 2948 2949 test -n "$ac_ct_CC" && break 2950done 2951 2952 if test "x$ac_ct_CC" = x; then 2953 CC="" 2954 else 2955 case $cross_compiling:$ac_tool_warned in 2956yes:) 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2959ac_tool_warned=yes ;; 2960esac 2961 CC=$ac_ct_CC 2962 fi 2963fi 2964 2965fi 2966 2967 2968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2970as_fn_error $? "no acceptable C compiler found in \$PATH 2971See \`config.log' for more details" "$LINENO" 5; } 2972 2973# Provide some information about the compiler. 2974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2975set X $ac_compile 2976ac_compiler=$2 2977for ac_option in --version -v -V -qversion; do 2978 { { ac_try="$ac_compiler $ac_option >&5" 2979case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982esac 2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2984$as_echo "$ac_try_echo"; } >&5 2985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2986 ac_status=$? 2987 if test -s conftest.err; then 2988 sed '10a\ 2989... rest of stderr output deleted ... 2990 10q' conftest.err >conftest.er1 2991 cat conftest.er1 >&5 2992 fi 2993 rm -f conftest.er1 conftest.err 2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2995 test $ac_status = 0; } 2996done 2997 2998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2999/* end confdefs.h. */ 3000 3001int 3002main () 3003{ 3004 3005 ; 3006 return 0; 3007} 3008_ACEOF 3009ac_clean_files_save=$ac_clean_files 3010ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3011# Try to create an executable without -o first, disregard a.out. 3012# It will help us diagnose broken compilers, and finding out an intuition 3013# of exeext. 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3015$as_echo_n "checking whether the C compiler works... " >&6; } 3016ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3017 3018# The possible output files: 3019ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3020 3021ac_rmfiles= 3022for ac_file in $ac_files 3023do 3024 case $ac_file in 3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3026 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3027 esac 3028done 3029rm -f $ac_rmfiles 3030 3031if { { ac_try="$ac_link_default" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3037$as_echo "$ac_try_echo"; } >&5 3038 (eval "$ac_link_default") 2>&5 3039 ac_status=$? 3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3041 test $ac_status = 0; }; then : 3042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3043# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3044# in a Makefile. We should not override ac_cv_exeext if it was cached, 3045# so that the user can short-circuit this test for compilers unknown to 3046# Autoconf. 3047for ac_file in $ac_files '' 3048do 3049 test -f "$ac_file" || continue 3050 case $ac_file in 3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3052 ;; 3053 [ab].out ) 3054 # We found the default executable, but exeext='' is most 3055 # certainly right. 3056 break;; 3057 *.* ) 3058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3059 then :; else 3060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3061 fi 3062 # We set ac_cv_exeext here because the later test for it is not 3063 # safe: cross compilers may not add the suffix if given an `-o' 3064 # argument, so we may need to know it at that point already. 3065 # Even if this section looks crufty: it has the advantage of 3066 # actually working. 3067 break;; 3068 * ) 3069 break;; 3070 esac 3071done 3072test "$ac_cv_exeext" = no && ac_cv_exeext= 3073 3074else 3075 ac_file='' 3076fi 3077if test -z "$ac_file"; then : 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3079$as_echo "no" >&6; } 3080$as_echo "$as_me: failed program was:" >&5 3081sed 's/^/| /' conftest.$ac_ext >&5 3082 3083{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3085as_fn_error 77 "C compiler cannot create executables 3086See \`config.log' for more details" "$LINENO" 5; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3089$as_echo "yes" >&6; } 3090fi 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3092$as_echo_n "checking for C compiler default output file name... " >&6; } 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3094$as_echo "$ac_file" >&6; } 3095ac_exeext=$ac_cv_exeext 3096 3097rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3098ac_clean_files=$ac_clean_files_save 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3100$as_echo_n "checking for suffix of executables... " >&6; } 3101if { { ac_try="$ac_link" 3102case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3107$as_echo "$ac_try_echo"; } >&5 3108 (eval "$ac_link") 2>&5 3109 ac_status=$? 3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3111 test $ac_status = 0; }; then : 3112 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3113# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3114# work properly (i.e., refer to `conftest.exe'), while it won't with 3115# `rm'. 3116for ac_file in conftest.exe conftest conftest.*; do 3117 test -f "$ac_file" || continue 3118 case $ac_file in 3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3121 break;; 3122 * ) break;; 3123 esac 3124done 3125else 3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3128as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3129See \`config.log' for more details" "$LINENO" 5; } 3130fi 3131rm -f conftest conftest$ac_cv_exeext 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3133$as_echo "$ac_cv_exeext" >&6; } 3134 3135rm -f conftest.$ac_ext 3136EXEEXT=$ac_cv_exeext 3137ac_exeext=$EXEEXT 3138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3139/* end confdefs.h. */ 3140#include <stdio.h> 3141int 3142main () 3143{ 3144FILE *f = fopen ("conftest.out", "w"); 3145 return ferror (f) || fclose (f) != 0; 3146 3147 ; 3148 return 0; 3149} 3150_ACEOF 3151ac_clean_files="$ac_clean_files conftest.out" 3152# Check that the compiler produces executables we can run. If not, either 3153# the compiler is broken, or we cross compile. 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3155$as_echo_n "checking whether we are cross compiling... " >&6; } 3156if test "$cross_compiling" != yes; then 3157 { { ac_try="$ac_link" 3158case "(($ac_try" in 3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160 *) ac_try_echo=$ac_try;; 3161esac 3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3163$as_echo "$ac_try_echo"; } >&5 3164 (eval "$ac_link") 2>&5 3165 ac_status=$? 3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3167 test $ac_status = 0; } 3168 if { ac_try='./conftest$ac_cv_exeext' 3169 { { case "(($ac_try" in 3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3171 *) ac_try_echo=$ac_try;; 3172esac 3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3174$as_echo "$ac_try_echo"; } >&5 3175 (eval "$ac_try") 2>&5 3176 ac_status=$? 3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3178 test $ac_status = 0; }; }; then 3179 cross_compiling=no 3180 else 3181 if test "$cross_compiling" = maybe; then 3182 cross_compiling=yes 3183 else 3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3186as_fn_error $? "cannot run C compiled programs. 3187If you meant to cross compile, use \`--host'. 3188See \`config.log' for more details" "$LINENO" 5; } 3189 fi 3190 fi 3191fi 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3193$as_echo "$cross_compiling" >&6; } 3194 3195rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3196ac_clean_files=$ac_clean_files_save 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3198$as_echo_n "checking for suffix of object files... " >&6; } 3199if ${ac_cv_objext+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3203/* end confdefs.h. */ 3204 3205int 3206main () 3207{ 3208 3209 ; 3210 return 0; 3211} 3212_ACEOF 3213rm -f conftest.o conftest.obj 3214if { { ac_try="$ac_compile" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3220$as_echo "$ac_try_echo"; } >&5 3221 (eval "$ac_compile") 2>&5 3222 ac_status=$? 3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3224 test $ac_status = 0; }; then : 3225 for ac_file in conftest.o conftest.obj conftest.*; do 3226 test -f "$ac_file" || continue; 3227 case $ac_file in 3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3230 break;; 3231 esac 3232done 3233else 3234 $as_echo "$as_me: failed program was:" >&5 3235sed 's/^/| /' conftest.$ac_ext >&5 3236 3237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3239as_fn_error $? "cannot compute suffix of object files: cannot compile 3240See \`config.log' for more details" "$LINENO" 5; } 3241fi 3242rm -f conftest.$ac_cv_objext conftest.$ac_ext 3243fi 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3245$as_echo "$ac_cv_objext" >&6; } 3246OBJEXT=$ac_cv_objext 3247ac_objext=$OBJEXT 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3249$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3250if ${ac_cv_c_compiler_gnu+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3254/* end confdefs.h. */ 3255 3256int 3257main () 3258{ 3259#ifndef __GNUC__ 3260 choke me 3261#endif 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267if ac_fn_c_try_compile "$LINENO"; then : 3268 ac_compiler_gnu=yes 3269else 3270 ac_compiler_gnu=no 3271fi 3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3273ac_cv_c_compiler_gnu=$ac_compiler_gnu 3274 3275fi 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3277$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3278if test $ac_compiler_gnu = yes; then 3279 GCC=yes 3280else 3281 GCC= 3282fi 3283ac_test_CFLAGS=${CFLAGS+set} 3284ac_save_CFLAGS=$CFLAGS 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3286$as_echo_n "checking whether $CC accepts -g... " >&6; } 3287if ${ac_cv_prog_cc_g+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 ac_save_c_werror_flag=$ac_c_werror_flag 3291 ac_c_werror_flag=yes 3292 ac_cv_prog_cc_g=no 3293 CFLAGS="-g" 3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3295/* end confdefs.h. */ 3296 3297int 3298main () 3299{ 3300 3301 ; 3302 return 0; 3303} 3304_ACEOF 3305if ac_fn_c_try_compile "$LINENO"; then : 3306 ac_cv_prog_cc_g=yes 3307else 3308 CFLAGS="" 3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3310/* end confdefs.h. */ 3311 3312int 3313main () 3314{ 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320if ac_fn_c_try_compile "$LINENO"; then : 3321 3322else 3323 ac_c_werror_flag=$ac_save_c_werror_flag 3324 CFLAGS="-g" 3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3326/* end confdefs.h. */ 3327 3328int 3329main () 3330{ 3331 3332 ; 3333 return 0; 3334} 3335_ACEOF 3336if ac_fn_c_try_compile "$LINENO"; then : 3337 ac_cv_prog_cc_g=yes 3338fi 3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3340fi 3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3342fi 3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3344 ac_c_werror_flag=$ac_save_c_werror_flag 3345fi 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3347$as_echo "$ac_cv_prog_cc_g" >&6; } 3348if test "$ac_test_CFLAGS" = set; then 3349 CFLAGS=$ac_save_CFLAGS 3350elif test $ac_cv_prog_cc_g = yes; then 3351 if test "$GCC" = yes; then 3352 CFLAGS="-g -O2" 3353 else 3354 CFLAGS="-g" 3355 fi 3356else 3357 if test "$GCC" = yes; then 3358 CFLAGS="-O2" 3359 else 3360 CFLAGS= 3361 fi 3362fi 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3365if ${ac_cv_prog_cc_c89+:} false; then : 3366 $as_echo_n "(cached) " >&6 3367else 3368 ac_cv_prog_cc_c89=no 3369ac_save_CC=$CC 3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3371/* end confdefs.h. */ 3372#include <stdarg.h> 3373#include <stdio.h> 3374struct stat; 3375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3376struct buf { int x; }; 3377FILE * (*rcsopen) (struct buf *, struct stat *, int); 3378static char *e (p, i) 3379 char **p; 3380 int i; 3381{ 3382 return p[i]; 3383} 3384static char *f (char * (*g) (char **, int), char **p, ...) 3385{ 3386 char *s; 3387 va_list v; 3388 va_start (v,p); 3389 s = g (p, va_arg (v,int)); 3390 va_end (v); 3391 return s; 3392} 3393 3394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3395 function prototypes and stuff, but not '\xHH' hex character constants. 3396 These don't provoke an error unfortunately, instead are silently treated 3397 as 'x'. The following induces an error, until -std is added to get 3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3399 array size at least. It's necessary to write '\x00'==0 to get something 3400 that's true only with -std. */ 3401int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3402 3403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3404 inside strings and character constants. */ 3405#define FOO(x) 'x' 3406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3407 3408int test (int i, double x); 3409struct s1 {int (*f) (int a);}; 3410struct s2 {int (*f) (double a);}; 3411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3412int argc; 3413char **argv; 3414int 3415main () 3416{ 3417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3424do 3425 CC="$ac_save_CC $ac_arg" 3426 if ac_fn_c_try_compile "$LINENO"; then : 3427 ac_cv_prog_cc_c89=$ac_arg 3428fi 3429rm -f core conftest.err conftest.$ac_objext 3430 test "x$ac_cv_prog_cc_c89" != "xno" && break 3431done 3432rm -f conftest.$ac_ext 3433CC=$ac_save_CC 3434 3435fi 3436# AC_CACHE_VAL 3437case "x$ac_cv_prog_cc_c89" in 3438 x) 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3440$as_echo "none needed" >&6; } ;; 3441 xno) 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3443$as_echo "unsupported" >&6; } ;; 3444 *) 3445 CC="$CC $ac_cv_prog_cc_c89" 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3447$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3448esac 3449if test "x$ac_cv_prog_cc_c89" != xno; then : 3450 3451fi 3452 3453ac_ext=c 3454ac_cpp='$CPP $CPPFLAGS' 3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3457ac_compiler_gnu=$ac_cv_c_compiler_gnu 3458 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3460$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3461if ${ac_cv_prog_cc_c99+:} false; then : 3462 $as_echo_n "(cached) " >&6 3463else 3464 ac_cv_prog_cc_c99=no 3465ac_save_CC=$CC 3466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467/* end confdefs.h. */ 3468#include <stdarg.h> 3469#include <stdbool.h> 3470#include <stdlib.h> 3471#include <wchar.h> 3472#include <stdio.h> 3473 3474// Check varargs macros. These examples are taken from C99 6.10.3.5. 3475#define debug(...) fprintf (stderr, __VA_ARGS__) 3476#define showlist(...) puts (#__VA_ARGS__) 3477#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3478static void 3479test_varargs_macros (void) 3480{ 3481 int x = 1234; 3482 int y = 5678; 3483 debug ("Flag"); 3484 debug ("X = %d\n", x); 3485 showlist (The first, second, and third items.); 3486 report (x>y, "x is %d but y is %d", x, y); 3487} 3488 3489// Check long long types. 3490#define BIG64 18446744073709551615ull 3491#define BIG32 4294967295ul 3492#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3493#if !BIG_OK 3494 your preprocessor is broken; 3495#endif 3496#if BIG_OK 3497#else 3498 your preprocessor is broken; 3499#endif 3500static long long int bignum = -9223372036854775807LL; 3501static unsigned long long int ubignum = BIG64; 3502 3503struct incomplete_array 3504{ 3505 int datasize; 3506 double data[]; 3507}; 3508 3509struct named_init { 3510 int number; 3511 const wchar_t *name; 3512 double average; 3513}; 3514 3515typedef const char *ccp; 3516 3517static inline int 3518test_restrict (ccp restrict text) 3519{ 3520 // See if C++-style comments work. 3521 // Iterate through items via the restricted pointer. 3522 // Also check for declarations in for loops. 3523 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3524 continue; 3525 return 0; 3526} 3527 3528// Check varargs and va_copy. 3529static void 3530test_varargs (const char *format, ...) 3531{ 3532 va_list args; 3533 va_start (args, format); 3534 va_list args_copy; 3535 va_copy (args_copy, args); 3536 3537 const char *str; 3538 int number; 3539 float fnumber; 3540 3541 while (*format) 3542 { 3543 switch (*format++) 3544 { 3545 case 's': // string 3546 str = va_arg (args_copy, const char *); 3547 break; 3548 case 'd': // int 3549 number = va_arg (args_copy, int); 3550 break; 3551 case 'f': // float 3552 fnumber = va_arg (args_copy, double); 3553 break; 3554 default: 3555 break; 3556 } 3557 } 3558 va_end (args_copy); 3559 va_end (args); 3560} 3561 3562int 3563main () 3564{ 3565 3566 // Check bool. 3567 _Bool success = false; 3568 3569 // Check restrict. 3570 if (test_restrict ("String literal") == 0) 3571 success = true; 3572 char *restrict newvar = "Another string"; 3573 3574 // Check varargs. 3575 test_varargs ("s, d' f .", "string", 65, 34.234); 3576 test_varargs_macros (); 3577 3578 // Check flexible array members. 3579 struct incomplete_array *ia = 3580 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3581 ia->datasize = 10; 3582 for (int i = 0; i < ia->datasize; ++i) 3583 ia->data[i] = i * 1.234; 3584 3585 // Check named initializers. 3586 struct named_init ni = { 3587 .number = 34, 3588 .name = L"Test wide string", 3589 .average = 543.34343, 3590 }; 3591 3592 ni.number = 58; 3593 3594 int dynamic_array[ni.number]; 3595 dynamic_array[ni.number - 1] = 543; 3596 3597 // work around unused variable warnings 3598 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3599 || dynamic_array[ni.number - 1] != 543); 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3606do 3607 CC="$ac_save_CC $ac_arg" 3608 if ac_fn_c_try_compile "$LINENO"; then : 3609 ac_cv_prog_cc_c99=$ac_arg 3610fi 3611rm -f core conftest.err conftest.$ac_objext 3612 test "x$ac_cv_prog_cc_c99" != "xno" && break 3613done 3614rm -f conftest.$ac_ext 3615CC=$ac_save_CC 3616 3617fi 3618# AC_CACHE_VAL 3619case "x$ac_cv_prog_cc_c99" in 3620 x) 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3622$as_echo "none needed" >&6; } ;; 3623 xno) 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3625$as_echo "unsupported" >&6; } ;; 3626 *) 3627 CC="$CC $ac_cv_prog_cc_c99" 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3629$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3630esac 3631if test "x$ac_cv_prog_cc_c99" != xno; then : 3632 3633fi 3634 3635 ac_ext=c 3636ac_cpp='$CPP $CPPFLAGS' 3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3639ac_compiler_gnu=$ac_cv_c_compiler_gnu 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3641$as_echo_n "checking how to run the C preprocessor... " >&6; } 3642# On Suns, sometimes $CPP names a directory. 3643if test -n "$CPP" && test -d "$CPP"; then 3644 CPP= 3645fi 3646if test -z "$CPP"; then 3647 if ${ac_cv_prog_CPP+:} false; then : 3648 $as_echo_n "(cached) " >&6 3649else 3650 # Double quotes because CPP needs to be expanded 3651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3652 do 3653 ac_preproc_ok=false 3654for ac_c_preproc_warn_flag in '' yes 3655do 3656 # Use a header file that comes with gcc, so configuring glibc 3657 # with a fresh cross-compiler works. 3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3659 # <limits.h> exists even on freestanding compilers. 3660 # On the NeXT, cc -E runs the code through the compiler's parser, 3661 # not just through cpp. "Syntax error" is here to catch this case. 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664#ifdef __STDC__ 3665# include <limits.h> 3666#else 3667# include <assert.h> 3668#endif 3669 Syntax error 3670_ACEOF 3671if ac_fn_c_try_cpp "$LINENO"; then : 3672 3673else 3674 # Broken: fails on valid input. 3675continue 3676fi 3677rm -f conftest.err conftest.i conftest.$ac_ext 3678 3679 # OK, works on sane cases. Now check whether nonexistent headers 3680 # can be detected and how. 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683#include <ac_nonexistent.h> 3684_ACEOF 3685if ac_fn_c_try_cpp "$LINENO"; then : 3686 # Broken: success on invalid input. 3687continue 3688else 3689 # Passes both tests. 3690ac_preproc_ok=: 3691break 3692fi 3693rm -f conftest.err conftest.i conftest.$ac_ext 3694 3695done 3696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3697rm -f conftest.i conftest.err conftest.$ac_ext 3698if $ac_preproc_ok; then : 3699 break 3700fi 3701 3702 done 3703 ac_cv_prog_CPP=$CPP 3704 3705fi 3706 CPP=$ac_cv_prog_CPP 3707else 3708 ac_cv_prog_CPP=$CPP 3709fi 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3711$as_echo "$CPP" >&6; } 3712ac_preproc_ok=false 3713for ac_c_preproc_warn_flag in '' yes 3714do 3715 # Use a header file that comes with gcc, so configuring glibc 3716 # with a fresh cross-compiler works. 3717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3718 # <limits.h> exists even on freestanding compilers. 3719 # On the NeXT, cc -E runs the code through the compiler's parser, 3720 # not just through cpp. "Syntax error" is here to catch this case. 3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3722/* end confdefs.h. */ 3723#ifdef __STDC__ 3724# include <limits.h> 3725#else 3726# include <assert.h> 3727#endif 3728 Syntax error 3729_ACEOF 3730if ac_fn_c_try_cpp "$LINENO"; then : 3731 3732else 3733 # Broken: fails on valid input. 3734continue 3735fi 3736rm -f conftest.err conftest.i conftest.$ac_ext 3737 3738 # OK, works on sane cases. Now check whether nonexistent headers 3739 # can be detected and how. 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742#include <ac_nonexistent.h> 3743_ACEOF 3744if ac_fn_c_try_cpp "$LINENO"; then : 3745 # Broken: success on invalid input. 3746continue 3747else 3748 # Passes both tests. 3749ac_preproc_ok=: 3750break 3751fi 3752rm -f conftest.err conftest.i conftest.$ac_ext 3753 3754done 3755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3756rm -f conftest.i conftest.err conftest.$ac_ext 3757if $ac_preproc_ok; then : 3758 3759else 3760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3762as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3763See \`config.log' for more details" "$LINENO" 5; } 3764fi 3765 3766ac_ext=c 3767ac_cpp='$CPP $CPPFLAGS' 3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3770ac_compiler_gnu=$ac_cv_c_compiler_gnu 3771 3772 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3774$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3775if ${ac_cv_path_GREP+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 if test -z "$GREP"; then 3779 ac_path_GREP_found=false 3780 # Loop through the user's path and test for each of PROGNAME-LIST 3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3783do 3784 IFS=$as_save_IFS 3785 test -z "$as_dir" && as_dir=. 3786 for ac_prog in grep ggrep; do 3787 for ac_exec_ext in '' $ac_executable_extensions; do 3788 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3789 as_fn_executable_p "$ac_path_GREP" || continue 3790# Check for GNU ac_path_GREP and select it if it is found. 3791 # Check for GNU $ac_path_GREP 3792case `"$ac_path_GREP" --version 2>&1` in 3793*GNU*) 3794 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3795*) 3796 ac_count=0 3797 $as_echo_n 0123456789 >"conftest.in" 3798 while : 3799 do 3800 cat "conftest.in" "conftest.in" >"conftest.tmp" 3801 mv "conftest.tmp" "conftest.in" 3802 cp "conftest.in" "conftest.nl" 3803 $as_echo 'GREP' >> "conftest.nl" 3804 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3806 as_fn_arith $ac_count + 1 && ac_count=$as_val 3807 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3808 # Best one so far, save it but keep looking for a better one 3809 ac_cv_path_GREP="$ac_path_GREP" 3810 ac_path_GREP_max=$ac_count 3811 fi 3812 # 10*(2^10) chars as input seems more than enough 3813 test $ac_count -gt 10 && break 3814 done 3815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3816esac 3817 3818 $ac_path_GREP_found && break 3 3819 done 3820 done 3821 done 3822IFS=$as_save_IFS 3823 if test -z "$ac_cv_path_GREP"; then 3824 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3825 fi 3826else 3827 ac_cv_path_GREP=$GREP 3828fi 3829 3830fi 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3832$as_echo "$ac_cv_path_GREP" >&6; } 3833 GREP="$ac_cv_path_GREP" 3834 3835 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3837$as_echo_n "checking for egrep... " >&6; } 3838if ${ac_cv_path_EGREP+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3842 then ac_cv_path_EGREP="$GREP -E" 3843 else 3844 if test -z "$EGREP"; then 3845 ac_path_EGREP_found=false 3846 # Loop through the user's path and test for each of PROGNAME-LIST 3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3848for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3849do 3850 IFS=$as_save_IFS 3851 test -z "$as_dir" && as_dir=. 3852 for ac_prog in egrep; do 3853 for ac_exec_ext in '' $ac_executable_extensions; do 3854 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3855 as_fn_executable_p "$ac_path_EGREP" || continue 3856# Check for GNU ac_path_EGREP and select it if it is found. 3857 # Check for GNU $ac_path_EGREP 3858case `"$ac_path_EGREP" --version 2>&1` in 3859*GNU*) 3860 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3861*) 3862 ac_count=0 3863 $as_echo_n 0123456789 >"conftest.in" 3864 while : 3865 do 3866 cat "conftest.in" "conftest.in" >"conftest.tmp" 3867 mv "conftest.tmp" "conftest.in" 3868 cp "conftest.in" "conftest.nl" 3869 $as_echo 'EGREP' >> "conftest.nl" 3870 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3872 as_fn_arith $ac_count + 1 && ac_count=$as_val 3873 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3874 # Best one so far, save it but keep looking for a better one 3875 ac_cv_path_EGREP="$ac_path_EGREP" 3876 ac_path_EGREP_max=$ac_count 3877 fi 3878 # 10*(2^10) chars as input seems more than enough 3879 test $ac_count -gt 10 && break 3880 done 3881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3882esac 3883 3884 $ac_path_EGREP_found && break 3 3885 done 3886 done 3887 done 3888IFS=$as_save_IFS 3889 if test -z "$ac_cv_path_EGREP"; then 3890 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3891 fi 3892else 3893 ac_cv_path_EGREP=$EGREP 3894fi 3895 3896 fi 3897fi 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3899$as_echo "$ac_cv_path_EGREP" >&6; } 3900 EGREP="$ac_cv_path_EGREP" 3901 3902 3903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904/* end confdefs.h. */ 3905 3906_ACEOF 3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3908 $EGREP "" >/dev/null 2>&1; then : 3909 3910fi 3911rm -f conftest* 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3913$as_echo_n "checking for fgrep... " >&6; } 3914if ${ac_cv_path_FGREP+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3918 then ac_cv_path_FGREP="$GREP -F" 3919 else 3920 if test -z "$FGREP"; then 3921 ac_path_FGREP_found=false 3922 # Loop through the user's path and test for each of PROGNAME-LIST 3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3925do 3926 IFS=$as_save_IFS 3927 test -z "$as_dir" && as_dir=. 3928 for ac_prog in fgrep; do 3929 for ac_exec_ext in '' $ac_executable_extensions; do 3930 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3931 as_fn_executable_p "$ac_path_FGREP" || continue 3932# Check for GNU ac_path_FGREP and select it if it is found. 3933 # Check for GNU $ac_path_FGREP 3934case `"$ac_path_FGREP" --version 2>&1` in 3935*GNU*) 3936 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3937*) 3938 ac_count=0 3939 $as_echo_n 0123456789 >"conftest.in" 3940 while : 3941 do 3942 cat "conftest.in" "conftest.in" >"conftest.tmp" 3943 mv "conftest.tmp" "conftest.in" 3944 cp "conftest.in" "conftest.nl" 3945 $as_echo 'FGREP' >> "conftest.nl" 3946 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3948 as_fn_arith $ac_count + 1 && ac_count=$as_val 3949 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3950 # Best one so far, save it but keep looking for a better one 3951 ac_cv_path_FGREP="$ac_path_FGREP" 3952 ac_path_FGREP_max=$ac_count 3953 fi 3954 # 10*(2^10) chars as input seems more than enough 3955 test $ac_count -gt 10 && break 3956 done 3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3958esac 3959 3960 $ac_path_FGREP_found && break 3 3961 done 3962 done 3963 done 3964IFS=$as_save_IFS 3965 if test -z "$ac_cv_path_FGREP"; then 3966 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3967 fi 3968else 3969 ac_cv_path_FGREP=$FGREP 3970fi 3971 3972 fi 3973fi 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3975$as_echo "$ac_cv_path_FGREP" >&6; } 3976 FGREP="$ac_cv_path_FGREP" 3977 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3979$as_echo_n "checking for library containing strerror... " >&6; } 3980if ${ac_cv_search_strerror+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 ac_func_search_save_LIBS=$LIBS 3984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986 3987/* Override any GCC internal prototype to avoid an error. 3988 Use char because int might match the return type of a GCC 3989 builtin and then its argument prototype would still apply. */ 3990#ifdef __cplusplus 3991extern "C" 3992#endif 3993char strerror (); 3994int 3995main () 3996{ 3997return strerror (); 3998 ; 3999 return 0; 4000} 4001_ACEOF 4002for ac_lib in '' cposix; do 4003 if test -z "$ac_lib"; then 4004 ac_res="none required" 4005 else 4006 ac_res=-l$ac_lib 4007 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4008 fi 4009 if ac_fn_c_try_link "$LINENO"; then : 4010 ac_cv_search_strerror=$ac_res 4011fi 4012rm -f core conftest.err conftest.$ac_objext \ 4013 conftest$ac_exeext 4014 if ${ac_cv_search_strerror+:} false; then : 4015 break 4016fi 4017done 4018if ${ac_cv_search_strerror+:} false; then : 4019 4020else 4021 ac_cv_search_strerror=no 4022fi 4023rm conftest.$ac_ext 4024LIBS=$ac_func_search_save_LIBS 4025fi 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4027$as_echo "$ac_cv_search_strerror" >&6; } 4028ac_res=$ac_cv_search_strerror 4029if test "$ac_res" != no; then : 4030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4031 4032fi 4033 for ac_prog in gawk mawk nawk awk 4034do 4035 # Extract the first word of "$ac_prog", so it can be a program name with args. 4036set dummy $ac_prog; ac_word=$2 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4038$as_echo_n "checking for $ac_word... " >&6; } 4039if ${ac_cv_prog_AWK+:} false; then : 4040 $as_echo_n "(cached) " >&6 4041else 4042 if test -n "$AWK"; then 4043 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4044else 4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4046for as_dir in $PATH 4047do 4048 IFS=$as_save_IFS 4049 test -z "$as_dir" && as_dir=. 4050 for ac_exec_ext in '' $ac_executable_extensions; do 4051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4052 ac_cv_prog_AWK="$ac_prog" 4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4054 break 2 4055 fi 4056done 4057 done 4058IFS=$as_save_IFS 4059 4060fi 4061fi 4062AWK=$ac_cv_prog_AWK 4063if test -n "$AWK"; then 4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4065$as_echo "$AWK" >&6; } 4066else 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4068$as_echo "no" >&6; } 4069fi 4070 4071 4072 test -n "$AWK" && break 4073done 4074 4075# Extract the first word of "strip", so it can be a program name with args. 4076set dummy strip; ac_word=$2 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4078$as_echo_n "checking for $ac_word... " >&6; } 4079if ${ac_cv_prog_STRIP+:} false; then : 4080 $as_echo_n "(cached) " >&6 4081else 4082 if test -n "$STRIP"; then 4083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4084else 4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4086for as_dir in $PATH 4087do 4088 IFS=$as_save_IFS 4089 test -z "$as_dir" && as_dir=. 4090 for ac_exec_ext in '' $ac_executable_extensions; do 4091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4092 ac_cv_prog_STRIP="strip" 4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4094 break 2 4095 fi 4096done 4097 done 4098IFS=$as_save_IFS 4099 4100 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 4101fi 4102fi 4103STRIP=$ac_cv_prog_STRIP 4104if test -n "$STRIP"; then 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4106$as_echo "$STRIP" >&6; } 4107else 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4109$as_echo "no" >&6; } 4110fi 4111 4112 4113 4114 4115 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4117$as_echo_n "checking for ANSI C header files... " >&6; } 4118if ${ac_cv_header_stdc+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120else 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122/* end confdefs.h. */ 4123#include <stdlib.h> 4124#include <stdarg.h> 4125#include <string.h> 4126#include <float.h> 4127 4128int 4129main () 4130{ 4131 4132 ; 4133 return 0; 4134} 4135_ACEOF 4136if ac_fn_c_try_compile "$LINENO"; then : 4137 ac_cv_header_stdc=yes 4138else 4139 ac_cv_header_stdc=no 4140fi 4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4142 4143if test $ac_cv_header_stdc = yes; then 4144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147#include <string.h> 4148 4149_ACEOF 4150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4151 $EGREP "memchr" >/dev/null 2>&1; then : 4152 4153else 4154 ac_cv_header_stdc=no 4155fi 4156rm -f conftest* 4157 4158fi 4159 4160if test $ac_cv_header_stdc = yes; then 4161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164#include <stdlib.h> 4165 4166_ACEOF 4167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4168 $EGREP "free" >/dev/null 2>&1; then : 4169 4170else 4171 ac_cv_header_stdc=no 4172fi 4173rm -f conftest* 4174 4175fi 4176 4177if test $ac_cv_header_stdc = yes; then 4178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4179 if test "$cross_compiling" = yes; then : 4180 : 4181else 4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4183/* end confdefs.h. */ 4184#include <ctype.h> 4185#include <stdlib.h> 4186#if ((' ' & 0x0FF) == 0x020) 4187# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4188# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4189#else 4190# define ISLOWER(c) \ 4191 (('a' <= (c) && (c) <= 'i') \ 4192 || ('j' <= (c) && (c) <= 'r') \ 4193 || ('s' <= (c) && (c) <= 'z')) 4194# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4195#endif 4196 4197#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4198int 4199main () 4200{ 4201 int i; 4202 for (i = 0; i < 256; i++) 4203 if (XOR (islower (i), ISLOWER (i)) 4204 || toupper (i) != TOUPPER (i)) 4205 return 2; 4206 return 0; 4207} 4208_ACEOF 4209if ac_fn_c_try_run "$LINENO"; then : 4210 4211else 4212 ac_cv_header_stdc=no 4213fi 4214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4215 conftest.$ac_objext conftest.beam conftest.$ac_ext 4216fi 4217 4218fi 4219fi 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4221$as_echo "$ac_cv_header_stdc" >&6; } 4222if test $ac_cv_header_stdc = yes; then 4223 4224$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4225 4226fi 4227 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4229$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4230if ${ac_cv_header_sys_wait_h+:} false; then : 4231 $as_echo_n "(cached) " >&6 4232else 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234/* end confdefs.h. */ 4235#include <sys/types.h> 4236#include <sys/wait.h> 4237#ifndef WEXITSTATUS 4238# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4239#endif 4240#ifndef WIFEXITED 4241# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4242#endif 4243 4244int 4245main () 4246{ 4247 int s; 4248 wait (&s); 4249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254if ac_fn_c_try_compile "$LINENO"; then : 4255 ac_cv_header_sys_wait_h=yes 4256else 4257 ac_cv_header_sys_wait_h=no 4258fi 4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4260fi 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4262$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4263if test $ac_cv_header_sys_wait_h = yes; then 4264 4265$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4266 4267fi 4268 4269 4270if test x"$ac_cv_prog_cc_c99" != xno; then 4271 4272 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 4274$as_echo_n "checking for unsigned long long int... " >&6; } 4275if ${ac_cv_type_unsigned_long_long_int+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 ac_cv_type_unsigned_long_long_int=yes 4279 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281/* end confdefs.h. */ 4282 4283 /* For now, do not test the preprocessor; as of 2007 there are too many 4284 implementations with broken preprocessors. Perhaps this can 4285 be revisited in 2012. In the meantime, code should not expect 4286 #if to work with literals wider than 32 bits. */ 4287 /* Test literals. */ 4288 long long int ll = 9223372036854775807ll; 4289 long long int nll = -9223372036854775807LL; 4290 unsigned long long int ull = 18446744073709551615ULL; 4291 /* Test constant expressions. */ 4292 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 4293 ? 1 : -1)]; 4294 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 4295 ? 1 : -1)]; 4296 int i = 63; 4297int 4298main () 4299{ 4300/* Test availability of runtime routines for shift and division. */ 4301 long long int llmax = 9223372036854775807ll; 4302 unsigned long long int ullmax = 18446744073709551615ull; 4303 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 4304 | (llmax / ll) | (llmax % ll) 4305 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 4306 | (ullmax / ull) | (ullmax % ull)); 4307 ; 4308 return 0; 4309} 4310 4311_ACEOF 4312if ac_fn_c_try_link "$LINENO"; then : 4313 4314else 4315 ac_cv_type_unsigned_long_long_int=no 4316fi 4317rm -f core conftest.err conftest.$ac_objext \ 4318 conftest$ac_exeext conftest.$ac_ext 4319 fi 4320fi 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 4322$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 4323 if test $ac_cv_type_unsigned_long_long_int = yes; then 4324 4325$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 4326 4327 fi 4328 4329 4330 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 4332$as_echo_n "checking for long long int... " >&6; } 4333if ${ac_cv_type_long_long_int+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335else 4336 ac_cv_type_long_long_int=yes 4337 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4338 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 4339 if test $ac_cv_type_long_long_int = yes; then 4340 if test "$cross_compiling" = yes; then : 4341 : 4342else 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344/* end confdefs.h. */ 4345#include <limits.h> 4346 #ifndef LLONG_MAX 4347 # define HALF \ 4348 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 4349 # define LLONG_MAX (HALF - 1 + HALF) 4350 #endif 4351int 4352main () 4353{ 4354long long int n = 1; 4355 int i; 4356 for (i = 0; ; i++) 4357 { 4358 long long int m = n << i; 4359 if (m >> i != n) 4360 return 1; 4361 if (LLONG_MAX / 2 < m) 4362 break; 4363 } 4364 return 0; 4365 ; 4366 return 0; 4367} 4368_ACEOF 4369if ac_fn_c_try_run "$LINENO"; then : 4370 4371else 4372 ac_cv_type_long_long_int=no 4373fi 4374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4375 conftest.$ac_objext conftest.beam conftest.$ac_ext 4376fi 4377 4378 fi 4379 fi 4380fi 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 4382$as_echo "$ac_cv_type_long_long_int" >&6; } 4383 if test $ac_cv_type_long_long_int = yes; then 4384 4385$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 4386 4387 fi 4388 4389 if test "$ac_cv_type_long_long_int" = no; then 4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4392as_fn_error $? "Compiler does not support long long int 4393See \`config.log' for more details" "$LINENO" 5; } 4394 fi 4395 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5 4397$as_echo_n "checking if the compiler supports trailing commas... " >&6; } 4398 trailing_commas=no 4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4400/* end confdefs.h. */ 4401 4402int 4403main () 4404{ 4405 4406 enum { 4407 one, 4408 }; 4409 ; 4410 return 0; 4411} 4412_ACEOF 4413if ac_fn_c_try_compile "$LINENO"; then : 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4415$as_echo "yes" >&6; }; trailing_commas=yes 4416else 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4418$as_echo "no" >&6; } 4419fi 4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4421 if test "$trailing_commas" = no; then 4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4424as_fn_error $? "Compiler does not support trailing comma in enum 4425See \`config.log' for more details" "$LINENO" 5; } 4426 fi 4427 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5 4429$as_echo_n "checking if the compiler supports C++ comments... " >&6; } 4430 slash_comments=no 4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432/* end confdefs.h. */ 4433 4434int 4435main () 4436{ 4437// C++ comments? 4438 ; 4439 return 0; 4440} 4441_ACEOF 4442if ac_fn_c_try_compile "$LINENO"; then : 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4444$as_echo "yes" >&6; }; slash_comments=yes 4445else 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4447$as_echo "no" >&6; } 4448fi 4449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4450 if test "$slash_comments" = no; then 4451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4453as_fn_error $? "Compiler does not support C++ comments 4454See \`config.log' for more details" "$LINENO" 5; } 4455 fi 4456fi 4457 4458 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4460$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4461# Check whether --enable-fail_if_missing was given. 4462if test "${enable_fail_if_missing+set}" = set; then : 4463 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4464else 4465 fail_if_missing="no" 4466fi 4467 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4469$as_echo "$fail_if_missing" >&6; } 4470 4471with_x_arg="$with_x" 4472 4473if test -z "$CFLAGS"; then 4474 CFLAGS="-O" 4475 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4476fi 4477if test "$GCC" = yes; then 4478 gccversion=`$CC -dumpversion` 4479 if test "x$gccversion" = "x"; then 4480 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4481 fi 4482 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4483 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4484 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4485 else 4486 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4487 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4488 CFLAGS="$CFLAGS -fno-strength-reduce" 4489 fi 4490 fi 4491fi 4492 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4494$as_echo_n "checking for clang version... " >&6; } 4495CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` 4496if test x"$CLANG_VERSION_STRING" != x"" ; then 4497 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4498 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4499 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4500 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4502$as_echo "$CLANG_VERSION" >&6; } 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4504$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4505 if test "$CLANG_VERSION" -ge 500002075 ; then 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4507$as_echo "no" >&6; } 4508 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4509 else 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4511$as_echo "yes" >&6; } 4512 fi 4513else 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4515$as_echo "N/A" >&6; } 4516fi 4517 4518CROSS_COMPILING= 4519if test "$cross_compiling" = yes; then 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4521$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4522 CROSS_COMPILING=1 4523fi 4524 4525 4526test "$GCC" = yes && CPP_MM=M; 4527 4528if test -f ./toolcheck; then 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4530$as_echo "$as_me: checking for buggy tools..." >&6;} 4531 sh ./toolcheck 1>&6 4532fi 4533 4534OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4535 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Haiku" >&5 4537$as_echo_n "checking for Haiku... " >&6; } 4538case `uname` in 4539 Haiku) HAIKU=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4540$as_echo "yes" >&6; };; 4541 *) HAIKU=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4542$as_echo "no" >&6; };; 4543esac 4544 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4546$as_echo_n "checking for QNX... " >&6; } 4547case `uname` in 4548 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4549 test -z "$with_x" && with_x=no 4550 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4551$as_echo "yes" >&6; };; 4552 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4553$as_echo "no" >&6; };; 4554esac 4555 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4557$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4558if test "`(uname) 2>/dev/null`" = Darwin; then 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4560$as_echo "yes" >&6; } 4561 MACOS_X=yes 4562 CPPFLAGS="$CPPFLAGS -DMACOS_X" 4563 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4565$as_echo_n "checking --disable-darwin argument... " >&6; } 4566 # Check whether --enable-darwin was given. 4567if test "${enable_darwin+set}" = set; then : 4568 enableval=$enable_darwin; 4569else 4570 enable_darwin="yes" 4571fi 4572 4573 if test "$enable_darwin" = "yes"; then 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4575$as_echo "no" >&6; } 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4577$as_echo_n "checking if Darwin files are there... " >&6; } 4578 if test -f os_macosx.m; then 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4580$as_echo "yes" >&6; } 4581 else 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4583$as_echo "no, Darwin support disabled" >&6; } 4584 enable_darwin=no 4585 fi 4586 else 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4588$as_echo "yes, Darwin support excluded" >&6; } 4589 fi 4590 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4592$as_echo_n "checking --with-mac-arch argument... " >&6; } 4593 4594# Check whether --with-mac-arch was given. 4595if test "${with_mac_arch+set}" = set; then : 4596 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4597$as_echo "$MACARCH" >&6; } 4598else 4599 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4600$as_echo "defaulting to $MACARCH" >&6; } 4601fi 4602 4603 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4605$as_echo_n "checking --with-developer-dir argument... " >&6; } 4606 4607# Check whether --with-developer-dir was given. 4608if test "${with_developer_dir+set}" = set; then : 4609 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4610$as_echo "$DEVELOPER_DIR" >&6; } 4611else 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4613$as_echo "not present" >&6; } 4614fi 4615 4616 4617 if test "x$DEVELOPER_DIR" = "x"; then 4618 # Extract the first word of "xcode-select", so it can be a program name with args. 4619set dummy xcode-select; ac_word=$2 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4621$as_echo_n "checking for $ac_word... " >&6; } 4622if ${ac_cv_path_XCODE_SELECT+:} false; then : 4623 $as_echo_n "(cached) " >&6 4624else 4625 case $XCODE_SELECT in 4626 [\\/]* | ?:[\\/]*) 4627 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4628 ;; 4629 *) 4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4631for as_dir in $PATH 4632do 4633 IFS=$as_save_IFS 4634 test -z "$as_dir" && as_dir=. 4635 for ac_exec_ext in '' $ac_executable_extensions; do 4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4637 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4639 break 2 4640 fi 4641done 4642 done 4643IFS=$as_save_IFS 4644 4645 ;; 4646esac 4647fi 4648XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4649if test -n "$XCODE_SELECT"; then 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4651$as_echo "$XCODE_SELECT" >&6; } 4652else 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4654$as_echo "no" >&6; } 4655fi 4656 4657 4658 if test "x$XCODE_SELECT" != "x"; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4660$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4661 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4663$as_echo "$DEVELOPER_DIR" >&6; } 4664 else 4665 DEVELOPER_DIR=/Developer 4666 fi 4667 fi 4668 4669 if test "x$MACARCH" = "xboth"; then 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4671$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4672 save_cppflags="$CPPFLAGS" 4673 save_cflags="$CFLAGS" 4674 save_ldflags="$LDFLAGS" 4675 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4677/* end confdefs.h. */ 4678 4679int 4680main () 4681{ 4682 4683 ; 4684 return 0; 4685} 4686_ACEOF 4687if ac_fn_c_try_link "$LINENO"; then : 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4689$as_echo "found" >&6; } 4690else 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4692$as_echo "not found" >&6; } 4693 CFLAGS="$save_cflags" 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4695$as_echo_n "checking if Intel architecture is supported... " >&6; } 4696 CPPFLAGS="$CPPFLAGS -arch i386" 4697 LDFLAGS="$save_ldflags -arch i386" 4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4699/* end confdefs.h. */ 4700 4701int 4702main () 4703{ 4704 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709if ac_fn_c_try_link "$LINENO"; then : 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4711$as_echo "yes" >&6; }; MACARCH="intel" 4712else 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4714$as_echo "no" >&6; } 4715 MACARCH="ppc" 4716 CPPFLAGS="$save_cppflags -arch ppc" 4717 LDFLAGS="$save_ldflags -arch ppc" 4718fi 4719rm -f core conftest.err conftest.$ac_objext \ 4720 conftest$ac_exeext conftest.$ac_ext 4721fi 4722rm -f core conftest.err conftest.$ac_objext \ 4723 conftest$ac_exeext conftest.$ac_ext 4724 elif test "x$MACARCH" = "xintel"; then 4725 CPPFLAGS="$CPPFLAGS -arch intel" 4726 LDFLAGS="$LDFLAGS -arch intel" 4727 elif test "x$MACARCH" = "xppc"; then 4728 CPPFLAGS="$CPPFLAGS -arch ppc" 4729 LDFLAGS="$LDFLAGS -arch ppc" 4730 fi 4731 4732 if test "$enable_darwin" = "yes"; then 4733 MACOS_X_DARWIN=yes 4734 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4735 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4736 CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" 4737 4738 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4739for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4740 inttypes.h stdint.h unistd.h 4741do : 4742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4743ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4744" 4745if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4746 cat >>confdefs.h <<_ACEOF 4747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4748_ACEOF 4749 4750fi 4751 4752done 4753 4754 4755ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4756if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4757 CARBON=yes 4758fi 4759 4760 4761 if test "x$CARBON" = "xyes"; then 4762 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then 4763 with_x=no 4764 fi 4765 fi 4766 fi 4767 4768 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4769 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4770 fi 4771 4772else 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774$as_echo "no" >&6; } 4775fi 4776 4777for ac_header in AvailabilityMacros.h 4778do : 4779 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4780if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4781 cat >>confdefs.h <<_ACEOF 4782#define HAVE_AVAILABILITYMACROS_H 1 4783_ACEOF 4784 4785fi 4786 4787done 4788 4789 4790 4791 4792 4793if test "$cross_compiling" = no; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4795$as_echo_n "checking --with-local-dir argument... " >&6; } 4796 have_local_include='' 4797 have_local_lib='' 4798 4799# Check whether --with-local-dir was given. 4800if test "${with_local_dir+set}" = set; then : 4801 withval=$with_local_dir; 4802 local_dir="$withval" 4803 case "$withval" in 4804 */*) ;; 4805 no) 4806 # avoid adding local dir to LDFLAGS and CPPFLAGS 4807 have_local_include=yes 4808 have_local_lib=yes 4809 ;; 4810 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4811 esac 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4813$as_echo "$local_dir" >&6; } 4814 4815else 4816 4817 local_dir=/usr/local 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4819$as_echo "Defaulting to $local_dir" >&6; } 4820 4821fi 4822 4823 if test "$GCC" = yes -a "$local_dir" != no; then 4824 echo 'void f(){}' > conftest.c 4825 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4826 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4827 rm -f conftest.c conftest.o 4828 fi 4829 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4830 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4831 if test "$tt" = "$LDFLAGS"; then 4832 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4833 fi 4834 fi 4835 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4836 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4837 if test "$tt" = "$CPPFLAGS"; then 4838 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4839 fi 4840 fi 4841fi 4842 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4844$as_echo_n "checking --with-vim-name argument... " >&6; } 4845 4846# Check whether --with-vim-name was given. 4847if test "${with_vim_name+set}" = set; then : 4848 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4849$as_echo "$VIMNAME" >&6; } 4850else 4851 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4852$as_echo "Defaulting to $VIMNAME" >&6; } 4853fi 4854 4855 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4857$as_echo_n "checking --with-ex-name argument... " >&6; } 4858 4859# Check whether --with-ex-name was given. 4860if test "${with_ex_name+set}" = set; then : 4861 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4862$as_echo "$EXNAME" >&6; } 4863else 4864 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4865$as_echo "Defaulting to ex" >&6; } 4866fi 4867 4868 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4870$as_echo_n "checking --with-view-name argument... " >&6; } 4871 4872# Check whether --with-view-name was given. 4873if test "${with_view_name+set}" = set; then : 4874 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4875$as_echo "$VIEWNAME" >&6; } 4876else 4877 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4878$as_echo "Defaulting to view" >&6; } 4879fi 4880 4881 4882 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4884$as_echo_n "checking --with-global-runtime argument... " >&6; } 4885 4886# Check whether --with-global-runtime was given. 4887if test "${with_global_runtime+set}" = set; then : 4888 withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4889$as_echo "$withval" >&6; } 4890else 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4892$as_echo "no" >&6; } 4893fi 4894 4895 4896if test "X$RUNTIME_GLOBAL" != "X"; then 4897 RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }') 4898 cat >>confdefs.h <<_ACEOF 4899#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL" 4900_ACEOF 4901 4902 cat >>confdefs.h <<_ACEOF 4903#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER" 4904_ACEOF 4905 4906fi 4907 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4909$as_echo_n "checking --with-modified-by argument... " >&6; } 4910 4911# Check whether --with-modified-by was given. 4912if test "${with_modified_by+set}" = set; then : 4913 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4914$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4915#define MODIFIED_BY "$withval" 4916_ACEOF 4917 4918else 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4920$as_echo "no" >&6; } 4921fi 4922 4923 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4925$as_echo_n "checking if character set is EBCDIC... " >&6; } 4926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928 4929int 4930main () 4931{ 4932 /* TryCompile function for CharSet. 4933 Treat any failure as ASCII for compatibility with existing art. 4934 Use compile-time rather than run-time tests for cross-compiler 4935 tolerance. */ 4936#if '0'!=240 4937make an error "Character set is not EBCDIC" 4938#endif 4939 ; 4940 return 0; 4941} 4942_ACEOF 4943if ac_fn_c_try_compile "$LINENO"; then : 4944 # TryCompile action if true 4945cf_cv_ebcdic=yes 4946else 4947 # TryCompile action if false 4948cf_cv_ebcdic=no 4949fi 4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4951# end of TryCompile ]) 4952# end of CacheVal CvEbcdic 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4954$as_echo "$cf_cv_ebcdic" >&6; } 4955case "$cf_cv_ebcdic" in #(vi 4956 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4957 4958 line_break='"\\n"' 4959 ;; 4960 *) line_break='"\\012"';; 4961esac 4962 4963 4964if test "$cf_cv_ebcdic" = "yes"; then 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4966$as_echo_n "checking for z/OS Unix... " >&6; } 4967case `uname` in 4968 OS/390) zOSUnix="yes"; 4969 if test "$CC" = "cc"; then 4970 ccm="$_CC_CCMODE" 4971 ccn="CC" 4972 else 4973 if test "$CC" = "c89"; then 4974 ccm="$_CC_C89MODE" 4975 ccn="C89" 4976 else 4977 ccm=1 4978 fi 4979 fi 4980 if test "$ccm" != "1"; then 4981 echo "" 4982 echo "------------------------------------------" 4983 echo " On z/OS Unix, the environment variable" 4984 echo " _CC_${ccn}MODE must be set to \"1\"!" 4985 echo " Do:" 4986 echo " export _CC_${ccn}MODE=1" 4987 echo " and then call configure again." 4988 echo "------------------------------------------" 4989 exit 1 4990 fi 4991 # Set CFLAGS for configure process. 4992 # This will be reset later for config.mk. 4993 # Use haltonmsg to force error for missing H files. 4994 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4995 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4997$as_echo "yes" >&6; } 4998 ;; 4999 *) zOSUnix="no"; 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5001$as_echo "no" >&6; } 5002 ;; 5003esac 5004fi 5005 5006if test "$zOSUnix" = "yes"; then 5007 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 5008else 5009 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 5010fi 5011 5012 5013 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 5015$as_echo_n "checking --disable-smack argument... " >&6; } 5016# Check whether --enable-smack was given. 5017if test "${enable_smack+set}" = set; then : 5018 enableval=$enable_smack; 5019else 5020 enable_smack="yes" 5021fi 5022 5023if test "$enable_smack" = "yes"; then 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5025$as_echo "no" >&6; } 5026 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 5027if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 5028 true 5029else 5030 enable_smack="no" 5031fi 5032 5033 5034else 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5036$as_echo "yes" >&6; } 5037fi 5038if test "$enable_smack" = "yes"; then 5039 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 5040if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 5041 true 5042else 5043 enable_smack="no" 5044fi 5045 5046 5047fi 5048if test "$enable_smack" = "yes"; then 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 5050$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053#include <linux/xattr.h> 5054_ACEOF 5055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5056 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5058$as_echo "yes" >&6; } 5059else 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5061$as_echo "no" >&6; }; enable_smack="no" 5062fi 5063rm -f conftest* 5064 5065fi 5066if test "$enable_smack" = "yes"; then 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 5068$as_echo_n "checking for setxattr in -lattr... " >&6; } 5069if ${ac_cv_lib_attr_setxattr+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071else 5072 ac_check_lib_save_LIBS=$LIBS 5073LIBS="-lattr $LIBS" 5074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075/* end confdefs.h. */ 5076 5077/* Override any GCC internal prototype to avoid an error. 5078 Use char because int might match the return type of a GCC 5079 builtin and then its argument prototype would still apply. */ 5080#ifdef __cplusplus 5081extern "C" 5082#endif 5083char setxattr (); 5084int 5085main () 5086{ 5087return setxattr (); 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092if ac_fn_c_try_link "$LINENO"; then : 5093 ac_cv_lib_attr_setxattr=yes 5094else 5095 ac_cv_lib_attr_setxattr=no 5096fi 5097rm -f core conftest.err conftest.$ac_objext \ 5098 conftest$ac_exeext conftest.$ac_ext 5099LIBS=$ac_check_lib_save_LIBS 5100fi 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 5102$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 5103if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 5104 LIBS="$LIBS -lattr" 5105 found_smack="yes" 5106 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 5107 5108fi 5109 5110fi 5111 5112if test "x$found_smack" = "x"; then 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 5114$as_echo_n "checking --disable-selinux argument... " >&6; } 5115 # Check whether --enable-selinux was given. 5116if test "${enable_selinux+set}" = set; then : 5117 enableval=$enable_selinux; 5118else 5119 enable_selinux="yes" 5120fi 5121 5122 if test "$enable_selinux" = "yes"; then 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5124$as_echo "no" >&6; } 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 5126$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 5127if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 ac_check_lib_save_LIBS=$LIBS 5131LIBS="-lselinux $LIBS" 5132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5133/* end confdefs.h. */ 5134 5135/* Override any GCC internal prototype to avoid an error. 5136 Use char because int might match the return type of a GCC 5137 builtin and then its argument prototype would still apply. */ 5138#ifdef __cplusplus 5139extern "C" 5140#endif 5141char is_selinux_enabled (); 5142int 5143main () 5144{ 5145return is_selinux_enabled (); 5146 ; 5147 return 0; 5148} 5149_ACEOF 5150if ac_fn_c_try_link "$LINENO"; then : 5151 ac_cv_lib_selinux_is_selinux_enabled=yes 5152else 5153 ac_cv_lib_selinux_is_selinux_enabled=no 5154fi 5155rm -f core conftest.err conftest.$ac_objext \ 5156 conftest$ac_exeext conftest.$ac_ext 5157LIBS=$ac_check_lib_save_LIBS 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 5160$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 5161if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 5162 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 5163if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : 5164 LIBS="$LIBS -lselinux" 5165 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 5166 5167fi 5168 5169 5170fi 5171 5172 else 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5174$as_echo "yes" >&6; } 5175 fi 5176fi 5177 5178 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 5180$as_echo_n "checking --with-features argument... " >&6; } 5181 5182# Check whether --with-features was given. 5183if test "${with_features+set}" = set; then : 5184 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 5185$as_echo "$features" >&6; } 5186else 5187 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 5188$as_echo "Defaulting to huge" >&6; } 5189fi 5190 5191 5192dovimdiff="" 5193dogvimdiff="" 5194case "$features" in 5195 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 5196 ;; 5197 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 5198 ;; 5199 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 5200 dovimdiff="installvimdiff"; 5201 dogvimdiff="installgvimdiff" ;; 5202 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 5203 dovimdiff="installvimdiff"; 5204 dogvimdiff="installgvimdiff" ;; 5205 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 5206 dovimdiff="installvimdiff"; 5207 dogvimdiff="installgvimdiff" ;; 5208 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 5209$as_echo "Sorry, $features is not supported" >&6; } ;; 5210esac 5211 5212 5213 5214 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 5216$as_echo_n "checking --with-compiledby argument... " >&6; } 5217 5218# Check whether --with-compiledby was given. 5219if test "${with_compiledby+set}" = set; then : 5220 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 5221$as_echo "$withval" >&6; } 5222else 5223 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5224$as_echo "no" >&6; } 5225fi 5226 5227 5228 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 5230$as_echo_n "checking --disable-xsmp argument... " >&6; } 5231# Check whether --enable-xsmp was given. 5232if test "${enable_xsmp+set}" = set; then : 5233 enableval=$enable_xsmp; 5234else 5235 enable_xsmp="yes" 5236fi 5237 5238 5239if test "$enable_xsmp" = "yes"; then 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241$as_echo "no" >&6; } 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 5243$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 5244 # Check whether --enable-xsmp-interact was given. 5245if test "${enable_xsmp_interact+set}" = set; then : 5246 enableval=$enable_xsmp_interact; 5247else 5248 enable_xsmp_interact="yes" 5249fi 5250 5251 if test "$enable_xsmp_interact" = "yes"; then 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5253$as_echo "no" >&6; } 5254 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 5255 5256 else 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5258$as_echo "yes" >&6; } 5259 fi 5260else 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5262$as_echo "yes" >&6; } 5263fi 5264 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 5266$as_echo_n "checking --enable-luainterp argument... " >&6; } 5267# Check whether --enable-luainterp was given. 5268if test "${enable_luainterp+set}" = set; then : 5269 enableval=$enable_luainterp; 5270else 5271 enable_luainterp="no" 5272fi 5273 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 5275$as_echo "$enable_luainterp" >&6; } 5276 5277if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 5278 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5279 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 5280 fi 5281 5282 5283 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 5285$as_echo_n "checking --with-lua-prefix argument... " >&6; } 5286 5287# Check whether --with-lua_prefix was given. 5288if test "${with_lua_prefix+set}" = set; then : 5289 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 5290$as_echo "$with_lua_prefix" >&6; } 5291else 5292 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5293$as_echo "no" >&6; } 5294fi 5295 5296 5297 if test "X$with_lua_prefix" != "X"; then 5298 vi_cv_path_lua_pfx="$with_lua_prefix" 5299 else 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 5301$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 5302 if test "X$LUA_PREFIX" != "X"; then 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 5304$as_echo "\"$LUA_PREFIX\"" >&6; } 5305 vi_cv_path_lua_pfx="$LUA_PREFIX" 5306 else 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 5308$as_echo "not set, default to /usr" >&6; } 5309 vi_cv_path_lua_pfx="/usr" 5310 fi 5311 fi 5312 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 5314$as_echo_n "checking --with-luajit... " >&6; } 5315 5316# Check whether --with-luajit was given. 5317if test "${with_luajit+set}" = set; then : 5318 withval=$with_luajit; vi_cv_with_luajit="$withval" 5319else 5320 vi_cv_with_luajit="no" 5321fi 5322 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 5324$as_echo "$vi_cv_with_luajit" >&6; } 5325 5326 LUA_INC= 5327 if test "X$vi_cv_path_lua_pfx" != "X"; then 5328 if test "x$vi_cv_with_luajit" != "xno"; then 5329 # Extract the first word of "luajit", so it can be a program name with args. 5330set dummy luajit; ac_word=$2 5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5332$as_echo_n "checking for $ac_word... " >&6; } 5333if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 5334 $as_echo_n "(cached) " >&6 5335else 5336 case $vi_cv_path_luajit in 5337 [\\/]* | ?:[\\/]*) 5338 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 5339 ;; 5340 *) 5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5342for as_dir in $PATH 5343do 5344 IFS=$as_save_IFS 5345 test -z "$as_dir" && as_dir=. 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5348 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5350 break 2 5351 fi 5352done 5353 done 5354IFS=$as_save_IFS 5355 5356 ;; 5357esac 5358fi 5359vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 5360if test -n "$vi_cv_path_luajit"; then 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 5362$as_echo "$vi_cv_path_luajit" >&6; } 5363else 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5365$as_echo "no" >&6; } 5366fi 5367 5368 5369 if test "X$vi_cv_path_luajit" != "X"; then 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 5371$as_echo_n "checking LuaJIT version... " >&6; } 5372if ${vi_cv_version_luajit+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374else 5375 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 5376fi 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 5378$as_echo "$vi_cv_version_luajit" >&6; } 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 5380$as_echo_n "checking Lua version of LuaJIT... " >&6; } 5381if ${vi_cv_version_lua_luajit+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 5385fi 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 5387$as_echo "$vi_cv_version_lua_luajit" >&6; } 5388 vi_cv_path_lua="$vi_cv_path_luajit" 5389 vi_cv_version_lua="$vi_cv_version_lua_luajit" 5390 fi 5391 else 5392 # Extract the first word of "lua", so it can be a program name with args. 5393set dummy lua; ac_word=$2 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5395$as_echo_n "checking for $ac_word... " >&6; } 5396if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398else 5399 case $vi_cv_path_plain_lua in 5400 [\\/]* | ?:[\\/]*) 5401 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5402 ;; 5403 *) 5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5405for as_dir in $PATH 5406do 5407 IFS=$as_save_IFS 5408 test -z "$as_dir" && as_dir=. 5409 for ac_exec_ext in '' $ac_executable_extensions; do 5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5411 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5413 break 2 5414 fi 5415done 5416 done 5417IFS=$as_save_IFS 5418 5419 ;; 5420esac 5421fi 5422vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5423if test -n "$vi_cv_path_plain_lua"; then 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5425$as_echo "$vi_cv_path_plain_lua" >&6; } 5426else 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5428$as_echo "no" >&6; } 5429fi 5430 5431 5432 if test "X$vi_cv_path_plain_lua" != "X"; then 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5434$as_echo_n "checking Lua version... " >&6; } 5435if ${vi_cv_version_plain_lua+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5439fi 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5441$as_echo "$vi_cv_version_plain_lua" >&6; } 5442 fi 5443 vi_cv_path_lua="$vi_cv_path_plain_lua" 5444 vi_cv_version_lua="$vi_cv_version_plain_lua" 5445 fi 5446 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5 5448$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5449 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5451$as_echo "yes" >&6; } 5452 LUA_INC=/luajit-$vi_cv_version_luajit 5453 fi 5454 fi 5455 if test "X$LUA_INC" = "X"; then 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5457$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5458 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5460$as_echo "yes" >&6; } 5461 else 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5463$as_echo "no" >&6; } 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5 5465$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5466 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5468$as_echo "yes" >&6; } 5469 LUA_INC=/lua$vi_cv_version_lua 5470 else 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5472$as_echo "no" >&6; } 5473 5474 # Detect moonjit: 5475 # https://groups.google.com/forum/#!topic/vim_use/O0vek60WuTk 5476 lua_suf=/moonjit-2.3 5477 inc_path="$vi_cv_path_lua_pfx/include" 5478 for dir in "$inc_path"/moonjit-[0-9]* ; do 5479 if test -d "$dir" ; then 5480 lua_suf=`basename '$dir'` 5481 lua_suf="/$lua_suf" 5482 break 5483 fi 5484 done 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $inc_path$lua_suf" >&5 5486$as_echo_n "checking if lua.h can be found in $inc_path$lua_suf... " >&6; } 5487 if test -f "$inc_path$lua_suf/lua.h"; then 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5489$as_echo "yes" >&6; } 5490 LUA_INC=$lua_suf 5491 else 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5493$as_echo "no" >&6; } 5494 vi_cv_path_lua_pfx= 5495 fi 5496 fi 5497 fi 5498 fi 5499 fi 5500 5501 if test "X$vi_cv_path_lua_pfx" != "X"; then 5502 if test "x$vi_cv_with_luajit" != "xno"; then 5503 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5504 if test "X$multiarch" != "X"; then 5505 lib_multiarch="lib/${multiarch}" 5506 else 5507 lib_multiarch="lib" 5508 fi 5509 if test "X$vi_cv_version_lua" = "X"; then 5510 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5511 else 5512 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5513 fi 5514 else 5515 if test "X$LUA_INC" != "X"; then 5516 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5517 else 5518 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5519 fi 5520 fi 5521 if test "$enable_luainterp" = "dynamic"; then 5522 lua_ok="yes" 5523 else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5525$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5526 libs_save=$LIBS 5527 LIBS="$LIBS $LUA_LIBS" 5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529/* end confdefs.h. */ 5530 5531int 5532main () 5533{ 5534 5535 ; 5536 return 0; 5537} 5538_ACEOF 5539if ac_fn_c_try_link "$LINENO"; then : 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5541$as_echo "yes" >&6; }; lua_ok="yes" 5542else 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5544$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5545fi 5546rm -f core conftest.err conftest.$ac_objext \ 5547 conftest$ac_exeext conftest.$ac_ext 5548 LIBS=$libs_save 5549 fi 5550 if test "x$lua_ok" = "xyes"; then 5551 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5552 LUA_SRC="if_lua.c" 5553 LUA_OBJ="objects/if_lua.o" 5554 LUA_PRO="if_lua.pro" 5555 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5556 5557 fi 5558 if test "$enable_luainterp" = "dynamic"; then 5559 if test "x$vi_cv_with_luajit" != "xno"; then 5560 luajit="jit" 5561 fi 5562 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5563 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5564 else 5565 if test "x$MACOS_X" = "xyes"; then 5566 ext="dylib" 5567 indexes="" 5568 else 5569 ext="so" 5570 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5571 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5572 if test "X$multiarch" != "X"; then 5573 lib_multiarch="lib/${multiarch}" 5574 fi 5575 fi 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5577$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5578 for subdir in "${lib_multiarch}" lib64 lib; do 5579 if test -z "$subdir"; then 5580 continue 5581 fi 5582 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5583 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5584 for i in $indexes ""; do 5585 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5586 sover2="$i" 5587 break 3 5588 fi 5589 done 5590 done 5591 sover="" 5592 done 5593 if test "X$sover" = "X"; then 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5595$as_echo "no" >&6; } 5596 lua_ok="no" 5597 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5598 else 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5600$as_echo "yes" >&6; } 5601 lua_ok="yes" 5602 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5603 fi 5604 fi 5605 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5606 5607 LUA_LIBS="" 5608 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5609 fi 5610 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5611 test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5612 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5613 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5614 fi 5615 fi 5616 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5617 as_fn_error $? "could not configure lua" "$LINENO" 5 5618 fi 5619 5620 5621 5622 5623 5624fi 5625 5626 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5628$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5629# Check whether --enable-mzschemeinterp was given. 5630if test "${enable_mzschemeinterp+set}" = set; then : 5631 enableval=$enable_mzschemeinterp; 5632else 5633 enable_mzschemeinterp="no" 5634fi 5635 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5637$as_echo "$enable_mzschemeinterp" >&6; } 5638 5639if test "$enable_mzschemeinterp" = "yes"; then 5640 5641 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5643$as_echo_n "checking --with-plthome argument... " >&6; } 5644 5645# Check whether --with-plthome was given. 5646if test "${with_plthome+set}" = set; then : 5647 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5648$as_echo "$with_plthome" >&6; } 5649else 5650 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5651$as_echo "\"no\"" >&6; } 5652fi 5653 5654 5655 if test "X$with_plthome" != "X"; then 5656 vi_cv_path_mzscheme_pfx="$with_plthome" 5657 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5658 else 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5660$as_echo_n "checking PLTHOME environment var... " >&6; } 5661 if test "X$PLTHOME" != "X"; then 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5663$as_echo "\"$PLTHOME\"" >&6; } 5664 vi_cv_path_mzscheme_pfx="$PLTHOME" 5665 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5666 else 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5668$as_echo "not set" >&6; } 5669 # Extract the first word of "mzscheme", so it can be a program name with args. 5670set dummy mzscheme; ac_word=$2 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5672$as_echo_n "checking for $ac_word... " >&6; } 5673if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5674 $as_echo_n "(cached) " >&6 5675else 5676 case $vi_cv_path_mzscheme in 5677 [\\/]* | ?:[\\/]*) 5678 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5679 ;; 5680 *) 5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5682for as_dir in $PATH 5683do 5684 IFS=$as_save_IFS 5685 test -z "$as_dir" && as_dir=. 5686 for ac_exec_ext in '' $ac_executable_extensions; do 5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5688 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5690 break 2 5691 fi 5692done 5693 done 5694IFS=$as_save_IFS 5695 5696 ;; 5697esac 5698fi 5699vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5700if test -n "$vi_cv_path_mzscheme"; then 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5702$as_echo "$vi_cv_path_mzscheme" >&6; } 5703else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5705$as_echo "no" >&6; } 5706fi 5707 5708 5709 5710 if test "X$vi_cv_path_mzscheme" != "X"; then 5711 lsout=`ls -l $vi_cv_path_mzscheme` 5712 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5713 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5714 fi 5715 fi 5716 5717 if test "X$vi_cv_path_mzscheme" != "X"; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5719$as_echo_n "checking MzScheme install prefix... " >&6; } 5720if ${vi_cv_path_mzscheme_pfx+:} false; then : 5721 $as_echo_n "(cached) " >&6 5722else 5723 echo "(display (simplify-path \ 5724 (build-path (call-with-values \ 5725 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5726 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5727 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5728 sed -e 's+/$++'` 5729fi 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5731$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5732 rm -f mzdirs.scm 5733 fi 5734 fi 5735 fi 5736 5737 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5739$as_echo_n "checking for racket include directory... " >&6; } 5740 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5741 if test "X$SCHEME_INC" != "X"; then 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5743$as_echo "${SCHEME_INC}" >&6; } 5744 else 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5746$as_echo "not found" >&6; } 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5748$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5749 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5750 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5752$as_echo "yes" >&6; } 5753 else 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5755$as_echo "no" >&6; } 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5757$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5758 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5760$as_echo "yes" >&6; } 5761 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5762 else 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5764$as_echo "no" >&6; } 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5766$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5767 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5769$as_echo "yes" >&6; } 5770 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5771 else 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5773$as_echo "no" >&6; } 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5775$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5776 if test -f /usr/include/plt/scheme.h; then 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5778$as_echo "yes" >&6; } 5779 SCHEME_INC=/usr/include/plt 5780 else 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5782$as_echo "no" >&6; } 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5784$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5785 if test -f /usr/include/racket/scheme.h; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5787$as_echo "yes" >&6; } 5788 SCHEME_INC=/usr/include/racket 5789 else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791$as_echo "no" >&6; } 5792 vi_cv_path_mzscheme_pfx= 5793 fi 5794 fi 5795 fi 5796 fi 5797 fi 5798 fi 5799 fi 5800 5801 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5802 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5804$as_echo_n "checking for racket lib directory... " >&6; } 5805 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5806 if test "X$SCHEME_LIB" != "X"; then 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5808$as_echo "${SCHEME_LIB}" >&6; } 5809 else 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5811$as_echo "not found" >&6; } 5812 fi 5813 5814 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5815 if test "X$path" != "X"; then 5816 if test "x$MACOS_X" = "xyes"; then 5817 MZSCHEME_LIBS="-framework Racket" 5818 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5819 elif test -f "${path}/libmzscheme3m.a"; then 5820 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5821 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5822 elif test -f "${path}/libracket3m.a"; then 5823 MZSCHEME_LIBS="${path}/libracket3m.a" 5824 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5825 elif test -f "${path}/libracket.a"; then 5826 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5827 elif test -f "${path}/libmzscheme.a"; then 5828 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5829 else 5830 if test -f "${path}/libmzscheme3m.so"; then 5831 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5832 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5833 elif test -f "${path}/libracket3m.so"; then 5834 MZSCHEME_LIBS="-L${path} -lracket3m" 5835 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5836 elif test -f "${path}/libracket.so"; then 5837 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5838 else 5839 if test "$path" != "$SCHEME_LIB"; then 5840 continue 5841 fi 5842 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5843 fi 5844 if test "$GCC" = yes; then 5845 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5846 elif test "`(uname) 2>/dev/null`" = SunOS && 5847 uname -r | grep '^5' >/dev/null; then 5848 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5849 fi 5850 fi 5851 fi 5852 if test "X$MZSCHEME_LIBS" != "X"; then 5853 break 5854 fi 5855 done 5856 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5858$as_echo_n "checking if racket requires -pthread... " >&6; } 5859 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5861$as_echo "yes" >&6; } 5862 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5863 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5864 else 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5866$as_echo "no" >&6; } 5867 fi 5868 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5870$as_echo_n "checking for racket config directory... " >&6; } 5871 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5872 if test "X$SCHEME_CONFIGDIR" != "X"; then 5873 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5875$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5876 else 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5878$as_echo "not found" >&6; } 5879 fi 5880 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5882$as_echo_n "checking for racket collects directory... " >&6; } 5883 SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'` 5884 if test "X$SCHEME_COLLECTS" = "X"; then 5885 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5886 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5887 else 5888 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5889 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5890 else 5891 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5892 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5893 else 5894 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5895 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5896 fi 5897 fi 5898 fi 5899 fi 5900 fi 5901 if test "X$SCHEME_COLLECTS" != "X" ; then 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5903$as_echo "${SCHEME_COLLECTS}" >&6; } 5904 else 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5906$as_echo "not found" >&6; } 5907 fi 5908 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5910$as_echo_n "checking for mzscheme_base.c... " >&6; } 5911 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5912 MZSCHEME_EXTRA="mzscheme_base.c" 5913 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5914 MZSCHEME_MOD="++lib scheme/base" 5915 else 5916 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5917 MZSCHEME_EXTRA="mzscheme_base.c" 5918 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5919 MZSCHEME_MOD="++lib scheme/base" 5920 else 5921 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5922 MZSCHEME_EXTRA="mzscheme_base.c" 5923 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5924 MZSCHEME_MOD="" 5925 fi 5926 fi 5927 fi 5928 if test "X$MZSCHEME_EXTRA" != "X" ; then 5929 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5931$as_echo "needed" >&6; } 5932 else 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5934$as_echo "not needed" >&6; } 5935 fi 5936 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5938$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5939if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 ac_check_lib_save_LIBS=$LIBS 5943LIBS="-lffi $LIBS" 5944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5945/* end confdefs.h. */ 5946 5947/* Override any GCC internal prototype to avoid an error. 5948 Use char because int might match the return type of a GCC 5949 builtin and then its argument prototype would still apply. */ 5950#ifdef __cplusplus 5951extern "C" 5952#endif 5953char ffi_type_void (); 5954int 5955main () 5956{ 5957return ffi_type_void (); 5958 ; 5959 return 0; 5960} 5961_ACEOF 5962if ac_fn_c_try_link "$LINENO"; then : 5963 ac_cv_lib_ffi_ffi_type_void=yes 5964else 5965 ac_cv_lib_ffi_ffi_type_void=no 5966fi 5967rm -f core conftest.err conftest.$ac_objext \ 5968 conftest$ac_exeext conftest.$ac_ext 5969LIBS=$ac_check_lib_save_LIBS 5970fi 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5972$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5973if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5974 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5975fi 5976 5977 5978 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5979 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5980 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5982$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5983 cflags_save=$CFLAGS 5984 libs_save=$LIBS 5985 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5986 LIBS="$LIBS $MZSCHEME_LIBS" 5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5988/* end confdefs.h. */ 5989 5990int 5991main () 5992{ 5993 5994 ; 5995 return 0; 5996} 5997_ACEOF 5998if ac_fn_c_try_link "$LINENO"; then : 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6000$as_echo "yes" >&6; }; mzs_ok=yes 6001else 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 6003$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 6004fi 6005rm -f core conftest.err conftest.$ac_objext \ 6006 conftest$ac_exeext conftest.$ac_ext 6007 CFLAGS=$cflags_save 6008 LIBS=$libs_save 6009 if test $mzs_ok = yes; then 6010 MZSCHEME_SRC="if_mzsch.c" 6011 MZSCHEME_OBJ="objects/if_mzsch.o" 6012 MZSCHEME_PRO="if_mzsch.pro" 6013 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 6014 6015 else 6016 MZSCHEME_CFLAGS= 6017 MZSCHEME_LIBS= 6018 MZSCHEME_EXTRA= 6019 MZSCHEME_MZC= 6020 fi 6021 fi 6022 6023 6024 6025 6026 6027 6028 6029fi 6030 6031 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 6033$as_echo_n "checking --enable-perlinterp argument... " >&6; } 6034# Check whether --enable-perlinterp was given. 6035if test "${enable_perlinterp+set}" = set; then : 6036 enableval=$enable_perlinterp; 6037else 6038 enable_perlinterp="no" 6039fi 6040 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 6042$as_echo "$enable_perlinterp" >&6; } 6043if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 6044 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6045 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 6046 fi 6047 6048 # Extract the first word of "perl", so it can be a program name with args. 6049set dummy perl; ac_word=$2 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6051$as_echo_n "checking for $ac_word... " >&6; } 6052if ${ac_cv_path_vi_cv_path_perl+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 case $vi_cv_path_perl in 6056 [\\/]* | ?:[\\/]*) 6057 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 6058 ;; 6059 *) 6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6061for as_dir in $PATH 6062do 6063 IFS=$as_save_IFS 6064 test -z "$as_dir" && as_dir=. 6065 for ac_exec_ext in '' $ac_executable_extensions; do 6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6067 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6069 break 2 6070 fi 6071done 6072 done 6073IFS=$as_save_IFS 6074 6075 ;; 6076esac 6077fi 6078vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 6079if test -n "$vi_cv_path_perl"; then 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 6081$as_echo "$vi_cv_path_perl" >&6; } 6082else 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6084$as_echo "no" >&6; } 6085fi 6086 6087 6088 if test "X$vi_cv_path_perl" != "X"; then 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 6090$as_echo_n "checking Perl version... " >&6; } 6091 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 6092 eval `$vi_cv_path_perl -V:usethreads` 6093 eval `$vi_cv_path_perl -V:libperl` 6094 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 6095 badthreads=no 6096 else 6097 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 6098 eval `$vi_cv_path_perl -V:use5005threads` 6099 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 6100 badthreads=no 6101 else 6102 badthreads=yes 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 6104$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 6105 fi 6106 else 6107 badthreads=yes 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 6109$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 6110 fi 6111 fi 6112 if test $badthreads = no; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 6114$as_echo "OK" >&6; } 6115 eval `$vi_cv_path_perl -V:shrpenv` 6116 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 6117 shrpenv="" 6118 fi 6119 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 6120 6121 vi_cv_perl_extutils=unknown_perl_extutils_path 6122 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 6123 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 6124 if test -f "$xsubpp_path"; then 6125 vi_cv_perl_xsubpp="$xsubpp_path" 6126 fi 6127 done 6128 6129 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 6130 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 6131 -e 's/-fdebug-prefix-map[^ ]*//g' \ 6132 -e 's/-pipe //' \ 6133 -e 's/-W[^ ]*//g' \ 6134 -e 's/-D_FORTIFY_SOURCE=.//g'` 6135 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 6136 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 6137 -e 's/-bE:perl.exp//' -e 's/-lc //'` 6138 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 6139 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 6140 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 6142$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 6143 cflags_save=$CFLAGS 6144 libs_save=$LIBS 6145 ldflags_save=$LDFLAGS 6146 CFLAGS="$CFLAGS $perlcppflags" 6147 LIBS="$LIBS $perllibs" 6148 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 6149 LDFLAGS="$perlldflags $LDFLAGS" 6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6151/* end confdefs.h. */ 6152 6153int 6154main () 6155{ 6156 6157 ; 6158 return 0; 6159} 6160_ACEOF 6161if ac_fn_c_try_link "$LINENO"; then : 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6163$as_echo "yes" >&6; }; perl_ok=yes 6164else 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 6166$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 6167fi 6168rm -f core conftest.err conftest.$ac_objext \ 6169 conftest$ac_exeext conftest.$ac_ext 6170 CFLAGS=$cflags_save 6171 LIBS=$libs_save 6172 LDFLAGS=$ldflags_save 6173 if test $perl_ok = yes; then 6174 if test "X$perlcppflags" != "X"; then 6175 PERL_CFLAGS=$perlcppflags 6176 fi 6177 if test "X$perlldflags" != "X"; then 6178 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 6179 LDFLAGS="$perlldflags $LDFLAGS" 6180 fi 6181 fi 6182 PERL_LIBS=$perllibs 6183 PERL_SRC="auto/if_perl.c if_perlsfio.c" 6184 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 6185 PERL_PRO="if_perl.pro if_perlsfio.pro" 6186 $as_echo "#define FEAT_PERL 1" >>confdefs.h 6187 6188 fi 6189 fi 6190 else 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 6192$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 6193 fi 6194 fi 6195 6196 if test "x$MACOS_X" = "xyes"; then 6197 dir=/System/Library/Perl 6198 darwindir=$dir/darwin 6199 if test -d $darwindir; then 6200 PERL=/usr/bin/perl 6201 else 6202 dir=/System/Library/Perl/5.8.1 6203 darwindir=$dir/darwin-thread-multi-2level 6204 if test -d $darwindir; then 6205 PERL=/usr/bin/perl 6206 fi 6207 fi 6208 if test -n "$PERL"; then 6209 PERL_DIR="$dir" 6210 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 6211 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 6212 PERL_LIBS="-L$darwindir/CORE -lperl" 6213 fi 6214 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6215 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6216 fi 6217 if test "$enable_perlinterp" = "dynamic"; then 6218 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 6219 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 6220 6221 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 6222 fi 6223 fi 6224 6225 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 6226 as_fn_error $? "could not configure perl" "$LINENO" 5 6227 fi 6228fi 6229 6230 6231 6232 6233 6234 6235 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 6237$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 6238# Check whether --enable-pythoninterp was given. 6239if test "${enable_pythoninterp+set}" = set; then : 6240 enableval=$enable_pythoninterp; 6241else 6242 enable_pythoninterp="no" 6243fi 6244 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 6246$as_echo "$enable_pythoninterp" >&6; } 6247if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 6248 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6249 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6250 fi 6251 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5 6253$as_echo_n "checking --with-python-command argument... " >&6; } 6254 6255 6256# Check whether --with-python-command was given. 6257if test "${with_python_command+set}" = set; then : 6258 withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6259$as_echo "$vi_cv_path_python" >&6; } 6260else 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6262$as_echo "no" >&6; } 6263fi 6264 6265 6266 if test "X$vi_cv_path_python" = "X"; then 6267 for ac_prog in python2 python 6268do 6269 # Extract the first word of "$ac_prog", so it can be a program name with args. 6270set dummy $ac_prog; ac_word=$2 6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6272$as_echo_n "checking for $ac_word... " >&6; } 6273if ${ac_cv_path_vi_cv_path_python+:} false; then : 6274 $as_echo_n "(cached) " >&6 6275else 6276 case $vi_cv_path_python in 6277 [\\/]* | ?:[\\/]*) 6278 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 6279 ;; 6280 *) 6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6282for as_dir in $PATH 6283do 6284 IFS=$as_save_IFS 6285 test -z "$as_dir" && as_dir=. 6286 for ac_exec_ext in '' $ac_executable_extensions; do 6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6288 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6290 break 2 6291 fi 6292done 6293 done 6294IFS=$as_save_IFS 6295 6296 ;; 6297esac 6298fi 6299vi_cv_path_python=$ac_cv_path_vi_cv_path_python 6300if test -n "$vi_cv_path_python"; then 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6302$as_echo "$vi_cv_path_python" >&6; } 6303else 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6305$as_echo "no" >&6; } 6306fi 6307 6308 6309 test -n "$vi_cv_path_python" && break 6310done 6311 6312 fi 6313 if test "X$vi_cv_path_python" != "X"; then 6314 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6316$as_echo_n "checking Python version... " >&6; } 6317if ${vi_cv_var_python_version+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 vi_cv_var_python_version=` 6321 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 6322 6323fi 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 6325$as_echo "$vi_cv_var_python_version" >&6; } 6326 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 6328$as_echo_n "checking Python is 2.3 or better... " >&6; } 6329 if ${vi_cv_path_python} -c \ 6330 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 6331 then 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6333$as_echo "yep" >&6; } 6334 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6336$as_echo_n "checking Python's install prefix... " >&6; } 6337if ${vi_cv_path_python_pfx+:} false; then : 6338 $as_echo_n "(cached) " >&6 6339else 6340 vi_cv_path_python_pfx=` 6341 ${vi_cv_path_python} -c \ 6342 "import sys; print sys.prefix"` 6343fi 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 6345$as_echo "$vi_cv_path_python_pfx" >&6; } 6346 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6348$as_echo_n "checking Python's execution prefix... " >&6; } 6349if ${vi_cv_path_python_epfx+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351else 6352 vi_cv_path_python_epfx=` 6353 ${vi_cv_path_python} -c \ 6354 "import sys; print sys.exec_prefix"` 6355fi 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 6357$as_echo "$vi_cv_path_python_epfx" >&6; } 6358 6359 6360 if ${vi_cv_path_pythonpath+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 vi_cv_path_pythonpath=` 6364 unset PYTHONPATH; 6365 ${vi_cv_path_python} -c \ 6366 "import sys, string; print string.join(sys.path,':')"` 6367fi 6368 6369 6370 6371 6372# Check whether --with-python-config-dir was given. 6373if test "${with_python_config_dir+set}" = set; then : 6374 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"; have_python_config_dir=1 6375fi 6376 6377 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6379$as_echo_n "checking Python's configuration directory... " >&6; } 6380if ${vi_cv_path_python_conf+:} false; then : 6381 $as_echo_n "(cached) " >&6 6382else 6383 6384 vi_cv_path_python_conf= 6385 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 6386 if test -d "$d" && test -f "$d/config.c"; then 6387 vi_cv_path_python_conf="$d" 6388 else 6389 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 6390 for subdir in lib64 lib share; do 6391 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 6392 if test -d "$d" && test -f "$d/config.c"; then 6393 vi_cv_path_python_conf="$d" 6394 fi 6395 done 6396 done 6397 fi 6398 6399fi 6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 6401$as_echo "$vi_cv_path_python_conf" >&6; } 6402 6403 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 6404 6405 if test "X$PYTHON_CONFDIR" = "X"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6407$as_echo "can't find it!" >&6; } 6408 else 6409 6410 if ${vi_cv_path_python_plibs+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 6414 pwd=`pwd` 6415 tmp_mkf="$pwd/config-PyMake$$" 6416 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6417__: 6418 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 6419 @echo "python_LIBS='$(LIBS)'" 6420 @echo "python_SYSLIBS='$(SYSLIBS)'" 6421 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 6422 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 6423 @echo "python_INSTSONAME='$(INSTSONAME)'" 6424 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 6425 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 6426 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 6427eof 6428 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6429 rm -f -- "${tmp_mkf}" 6430 if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 6431 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6432 vi_cv_path_python_plibs="-framework Python" 6433 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6434 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6435 fi 6436 else 6437 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6438 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6439 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6440 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6441 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6442 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6443 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6444 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6445 fi 6446 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6447 fi 6448 fi 6449 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6450 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6451 fi 6452 6453fi 6454 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6456$as_echo_n "checking Python's dll name... " >&6; } 6457if ${vi_cv_dll_name_python+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 6461 if test "X$python_DLLLIBRARY" != "X"; then 6462 vi_cv_dll_name_python="$python_DLLLIBRARY" 6463 else 6464 vi_cv_dll_name_python="$python_INSTSONAME" 6465 fi 6466 6467fi 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6469$as_echo "$vi_cv_dll_name_python" >&6; } 6470 6471 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6472 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6473 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 6474 else 6475 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}" 6476 fi 6477 if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then 6478 PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6479 6480 fi 6481 PYTHON_SRC="if_python.c" 6482 PYTHON_OBJ="objects/if_python.o" 6483 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6485$as_echo_n "checking if -pthread should be used... " >&6; } 6486 threadsafe_flag= 6487 thread_lib= 6488 if test "`(uname) 2>/dev/null`" != Darwin; then 6489 test "$GCC" = yes && threadsafe_flag="-pthread" 6490 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6491 threadsafe_flag="-D_THREAD_SAFE" 6492 thread_lib="-pthread" 6493 fi 6494 if test "`(uname) 2>/dev/null`" = SunOS; then 6495 threadsafe_flag="-pthreads" 6496 fi 6497 fi 6498 libs_save_old=$LIBS 6499 if test -n "$threadsafe_flag"; then 6500 cflags_save=$CFLAGS 6501 CFLAGS="$CFLAGS $threadsafe_flag" 6502 LIBS="$LIBS $thread_lib" 6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505 6506int 6507main () 6508{ 6509 6510 ; 6511 return 0; 6512} 6513_ACEOF 6514if ac_fn_c_try_link "$LINENO"; then : 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6516$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6517else 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6519$as_echo "no" >&6; }; LIBS=$libs_save_old 6520 6521fi 6522rm -f core conftest.err conftest.$ac_objext \ 6523 conftest$ac_exeext conftest.$ac_ext 6524 CFLAGS=$cflags_save 6525 else 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6527$as_echo "no" >&6; } 6528 fi 6529 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6531$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6532 cflags_save=$CFLAGS 6533 libs_save=$LIBS 6534 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6535 LIBS="$LIBS $PYTHON_LIBS" 6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6537/* end confdefs.h. */ 6538 6539int 6540main () 6541{ 6542 6543 ; 6544 return 0; 6545} 6546_ACEOF 6547if ac_fn_c_try_link "$LINENO"; then : 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6549$as_echo "yes" >&6; }; python_ok=yes 6550else 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6552$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6553fi 6554rm -f core conftest.err conftest.$ac_objext \ 6555 conftest$ac_exeext conftest.$ac_ext 6556 CFLAGS=$cflags_save 6557 LIBS=$libs_save 6558 if test $python_ok = yes; then 6559 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6560 6561 else 6562 LIBS=$libs_save_old 6563 PYTHON_SRC= 6564 PYTHON_OBJ= 6565 PYTHON_LIBS= 6566 PYTHON_CFLAGS= 6567 fi 6568 fi 6569 else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6571$as_echo "too old" >&6; } 6572 fi 6573 fi 6574 6575 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6576 as_fn_error $? "could not configure python" "$LINENO" 5 6577 fi 6578fi 6579 6580 6581 6582 6583 6584 6585 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6587$as_echo_n "checking --enable-python3interp argument... " >&6; } 6588# Check whether --enable-python3interp was given. 6589if test "${enable_python3interp+set}" = set; then : 6590 enableval=$enable_python3interp; 6591else 6592 enable_python3interp="no" 6593fi 6594 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6596$as_echo "$enable_python3interp" >&6; } 6597if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6598 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6599 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6600 fi 6601 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5 6603$as_echo_n "checking --with-python3-command argument... " >&6; } 6604 6605 6606# Check whether --with-python3-command was given. 6607if test "${with_python3_command+set}" = set; then : 6608 withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6609$as_echo "$vi_cv_path_python3" >&6; } 6610else 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6612$as_echo "no" >&6; } 6613fi 6614 6615 6616 if test "X$vi_cv_path_python3" = "X"; then 6617 for ac_prog in python3 python 6618do 6619 # Extract the first word of "$ac_prog", so it can be a program name with args. 6620set dummy $ac_prog; ac_word=$2 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6622$as_echo_n "checking for $ac_word... " >&6; } 6623if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625else 6626 case $vi_cv_path_python3 in 6627 [\\/]* | ?:[\\/]*) 6628 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6629 ;; 6630 *) 6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6632for as_dir in $PATH 6633do 6634 IFS=$as_save_IFS 6635 test -z "$as_dir" && as_dir=. 6636 for ac_exec_ext in '' $ac_executable_extensions; do 6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6638 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6640 break 2 6641 fi 6642done 6643 done 6644IFS=$as_save_IFS 6645 6646 ;; 6647esac 6648fi 6649vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6650if test -n "$vi_cv_path_python3"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6652$as_echo "$vi_cv_path_python3" >&6; } 6653else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655$as_echo "no" >&6; } 6656fi 6657 6658 6659 test -n "$vi_cv_path_python3" && break 6660done 6661 6662 fi 6663 if test "X$vi_cv_path_python3" != "X"; then 6664 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6666$as_echo_n "checking Python version... " >&6; } 6667if ${vi_cv_var_python3_version+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 vi_cv_var_python3_version=` 6671 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6672 6673fi 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6675$as_echo "$vi_cv_var_python3_version" >&6; } 6676 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6678$as_echo_n "checking Python is 3.0 or better... " >&6; } 6679 if ${vi_cv_path_python3} -c \ 6680 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6681 then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6683$as_echo "yep" >&6; } 6684 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6686$as_echo_n "checking Python's abiflags... " >&6; } 6687if ${vi_cv_var_python3_abiflags+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 6691 vi_cv_var_python3_abiflags= 6692 if ${vi_cv_path_python3} -c \ 6693 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6694 then 6695 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6696 "import sys; print(sys.abiflags)"` 6697 fi 6698fi 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6700$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6701 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6703$as_echo_n "checking Python's install prefix... " >&6; } 6704if ${vi_cv_path_python3_pfx+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 vi_cv_path_python3_pfx=` 6708 ${vi_cv_path_python3} -c \ 6709 "import sys; print(sys.prefix)"` 6710fi 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6712$as_echo "$vi_cv_path_python3_pfx" >&6; } 6713 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6715$as_echo_n "checking Python's execution prefix... " >&6; } 6716if ${vi_cv_path_python3_epfx+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718else 6719 vi_cv_path_python3_epfx=` 6720 ${vi_cv_path_python3} -c \ 6721 "import sys; print(sys.exec_prefix)"` 6722fi 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6724$as_echo "$vi_cv_path_python3_epfx" >&6; } 6725 6726 6727 if ${vi_cv_path_python3path+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 vi_cv_path_python3path=` 6731 unset PYTHONPATH; 6732 ${vi_cv_path_python3} -c \ 6733 "import sys, string; print(':'.join(sys.path))"` 6734fi 6735 6736 6737 6738 6739# Check whether --with-python3-config-dir was given. 6740if test "${with_python3_config_dir+set}" = set; then : 6741 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1 6742fi 6743 6744 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6746$as_echo_n "checking Python's configuration directory... " >&6; } 6747if ${vi_cv_path_python3_conf+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 6751 vi_cv_path_python3_conf= 6752 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6753 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6754 if test -d "$d" && test -f "$d/config.c"; then 6755 vi_cv_path_python3_conf="$d" 6756 else 6757 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6758 for subdir in lib64 lib share; do 6759 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6760 if test -d "$d" && test -f "$d/config.c"; then 6761 vi_cv_path_python3_conf="$d" 6762 fi 6763 done 6764 done 6765 fi 6766 6767fi 6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6769$as_echo "$vi_cv_path_python3_conf" >&6; } 6770 6771 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6772 6773 if test "X$PYTHON3_CONFDIR" = "X"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6775$as_echo "can't find it!" >&6; } 6776 else 6777 6778 if ${vi_cv_path_python3_plibs+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 6782 pwd=`pwd` 6783 tmp_mkf="$pwd/config-PyMake$$" 6784 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6785__: 6786 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6787 @echo "python3_LIBS='$(LIBS)'" 6788 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6789 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6790 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6791eof 6792 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6793 rm -f -- "${tmp_mkf}" 6794 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6795 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6796 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6797 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6798 6799fi 6800 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6802$as_echo_n "checking Python3's dll name... " >&6; } 6803if ${vi_cv_dll_name_python3+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 6807 if test "X$python3_DLLLIBRARY" != "X"; then 6808 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6809 else 6810 vi_cv_dll_name_python3="$python3_INSTSONAME" 6811 fi 6812 6813fi 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6815$as_echo "$vi_cv_dll_name_python3" >&6; } 6816 6817 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6818 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6819 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6820 else 6821 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6822 fi 6823 if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then 6824 PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6825 fi 6826 PYTHON3_SRC="if_python3.c" 6827 PYTHON3_OBJ="objects/if_python3.o" 6828 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6830$as_echo_n "checking if -pthread should be used... " >&6; } 6831 threadsafe_flag= 6832 thread_lib= 6833 if test "`(uname) 2>/dev/null`" != Darwin; then 6834 test "$GCC" = yes && threadsafe_flag="-pthread" 6835 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6836 threadsafe_flag="-D_THREAD_SAFE" 6837 thread_lib="-pthread" 6838 fi 6839 if test "`(uname) 2>/dev/null`" = SunOS; then 6840 threadsafe_flag="-pthreads" 6841 fi 6842 fi 6843 libs_save_old=$LIBS 6844 if test -n "$threadsafe_flag"; then 6845 cflags_save=$CFLAGS 6846 CFLAGS="$CFLAGS $threadsafe_flag" 6847 LIBS="$LIBS $thread_lib" 6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849/* end confdefs.h. */ 6850 6851int 6852main () 6853{ 6854 6855 ; 6856 return 0; 6857} 6858_ACEOF 6859if ac_fn_c_try_link "$LINENO"; then : 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6861$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6862else 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6864$as_echo "no" >&6; }; LIBS=$libs_save_old 6865 6866fi 6867rm -f core conftest.err conftest.$ac_objext \ 6868 conftest$ac_exeext conftest.$ac_ext 6869 CFLAGS=$cflags_save 6870 else 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6872$as_echo "no" >&6; } 6873 fi 6874 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6876$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6877 cflags_save=$CFLAGS 6878 libs_save=$LIBS 6879 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6880 LIBS="$LIBS $PYTHON3_LIBS" 6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6882/* end confdefs.h. */ 6883 6884int 6885main () 6886{ 6887 6888 ; 6889 return 0; 6890} 6891_ACEOF 6892if ac_fn_c_try_link "$LINENO"; then : 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6894$as_echo "yes" >&6; }; python3_ok=yes 6895else 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6897$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6898fi 6899rm -f core conftest.err conftest.$ac_objext \ 6900 conftest$ac_exeext conftest.$ac_ext 6901 CFLAGS=$cflags_save 6902 LIBS=$libs_save 6903 if test "$python3_ok" = yes; then 6904 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6905 6906 else 6907 LIBS=$libs_save_old 6908 PYTHON3_SRC= 6909 PYTHON3_OBJ= 6910 PYTHON3_LIBS= 6911 PYTHON3_CFLAGS= 6912 fi 6913 fi 6914 else 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6916$as_echo "too old" >&6; } 6917 fi 6918 fi 6919 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6920 as_fn_error $? "could not configure python3" "$LINENO" 5 6921 fi 6922fi 6923 6924 6925 6926 6927 6928 6929if test "$python_ok" = yes && test "$python3_ok" = yes; then 6930 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6931 6932 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6933 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6935$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6936 cflags_save=$CFLAGS 6937 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6938 libs_save=$LIBS 6939 LIBS="-ldl $LIBS" 6940 if test "$cross_compiling" = yes; then : 6941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6943as_fn_error $? "cannot run test program while cross compiling 6944See \`config.log' for more details" "$LINENO" 5; } 6945else 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947/* end confdefs.h. */ 6948 6949 #include <dlfcn.h> 6950 /* If this program fails, then RTLD_GLOBAL is needed. 6951 * RTLD_GLOBAL will be used and then it is not possible to 6952 * have both python versions enabled in the same vim instance. 6953 * Only the first python version used will be switched on. 6954 */ 6955 6956 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6957 { 6958 int needed = 0; 6959 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6960 if (pylib != 0) 6961 { 6962 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6963 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6964 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6965 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6966 (*pfx)(prefix); 6967 (*init)(); 6968 needed = (*simple)("import termios") == -1; 6969 (*final)(); 6970 dlclose(pylib); 6971 } 6972 return !needed; 6973 } 6974 6975 int main(int argc, char** argv) 6976 { 6977 int not_needed = 0; 6978 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6979 not_needed = 1; 6980 return !not_needed; 6981 } 6982_ACEOF 6983if ac_fn_c_try_run "$LINENO"; then : 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6985$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6986 6987else 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6989$as_echo "no" >&6; } 6990fi 6991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6992 conftest.$ac_objext conftest.beam conftest.$ac_ext 6993fi 6994 6995 6996 CFLAGS=$cflags_save 6997 LIBS=$libs_save 6998 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 7000$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 7001 cflags_save=$CFLAGS 7002 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 7003 libs_save=$LIBS 7004 LIBS="-ldl $LIBS" 7005 if test "$cross_compiling" = yes; then : 7006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7008as_fn_error $? "cannot run test program while cross compiling 7009See \`config.log' for more details" "$LINENO" 5; } 7010else 7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012/* end confdefs.h. */ 7013 7014 #include <dlfcn.h> 7015 #include <wchar.h> 7016 /* If this program fails, then RTLD_GLOBAL is needed. 7017 * RTLD_GLOBAL will be used and then it is not possible to 7018 * have both python versions enabled in the same vim instance. 7019 * Only the first python version used will be switched on. 7020 */ 7021 7022 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 7023 { 7024 int needed = 0; 7025 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 7026 if (pylib != 0) 7027 { 7028 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 7029 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 7030 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 7031 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 7032 (*pfx)(prefix); 7033 (*init)(); 7034 needed = (*simple)("import termios") == -1; 7035 (*final)(); 7036 dlclose(pylib); 7037 } 7038 return !needed; 7039 } 7040 7041 int main(int argc, char** argv) 7042 { 7043 int not_needed = 0; 7044 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 7045 not_needed = 1; 7046 return !not_needed; 7047 } 7048_ACEOF 7049if ac_fn_c_try_run "$LINENO"; then : 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7051$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 7052 7053else 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7055$as_echo "no" >&6; } 7056fi 7057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7058 conftest.$ac_objext conftest.beam conftest.$ac_ext 7059fi 7060 7061 7062 CFLAGS=$cflags_save 7063 LIBS=$libs_save 7064 7065 PYTHON_SRC="if_python.c" 7066 PYTHON_OBJ="objects/if_python.o" 7067 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7068 PYTHON_LIBS= 7069 PYTHON3_SRC="if_python3.c" 7070 PYTHON3_OBJ="objects/if_python3.o" 7071 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7072 PYTHON3_LIBS= 7073elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 7074 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 7075 7076 PYTHON_SRC="if_python.c" 7077 PYTHON_OBJ="objects/if_python.o" 7078 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7079 PYTHON_LIBS= 7080elif test "$python_ok" = yes; then 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 7082$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 7083 cflags_save=$CFLAGS 7084 libs_save=$LIBS 7085 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 7086 LIBS="$LIBS $PYTHON_LIBS" 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089 7090int 7091main () 7092{ 7093 7094 ; 7095 return 0; 7096} 7097_ACEOF 7098if ac_fn_c_try_link "$LINENO"; then : 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7100$as_echo "yes" >&6; }; fpie_ok=yes 7101else 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7103$as_echo "no" >&6; }; fpie_ok=no 7104fi 7105rm -f core conftest.err conftest.$ac_objext \ 7106 conftest$ac_exeext conftest.$ac_ext 7107 CFLAGS=$cflags_save 7108 LIBS=$libs_save 7109 if test $fpie_ok = yes; then 7110 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 7111 fi 7112elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 7113 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 7114 7115 PYTHON3_SRC="if_python3.c" 7116 PYTHON3_OBJ="objects/if_python3.o" 7117 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7118 PYTHON3_LIBS= 7119elif test "$python3_ok" = yes; then 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 7121$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 7122 cflags_save=$CFLAGS 7123 libs_save=$LIBS 7124 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 7125 LIBS="$LIBS $PYTHON3_LIBS" 7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7127/* end confdefs.h. */ 7128 7129int 7130main () 7131{ 7132 7133 ; 7134 return 0; 7135} 7136_ACEOF 7137if ac_fn_c_try_link "$LINENO"; then : 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7139$as_echo "yes" >&6; }; fpie_ok=yes 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; }; fpie_ok=no 7143fi 7144rm -f core conftest.err conftest.$ac_objext \ 7145 conftest$ac_exeext conftest.$ac_ext 7146 CFLAGS=$cflags_save 7147 LIBS=$libs_save 7148 if test $fpie_ok = yes; then 7149 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 7150 fi 7151fi 7152 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 7154$as_echo_n "checking --enable-tclinterp argument... " >&6; } 7155# Check whether --enable-tclinterp was given. 7156if test "${enable_tclinterp+set}" = set; then : 7157 enableval=$enable_tclinterp; 7158else 7159 enable_tclinterp="no" 7160fi 7161 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 7163$as_echo "$enable_tclinterp" >&6; } 7164 7165if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 7166 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 7168$as_echo_n "checking --with-tclsh argument... " >&6; } 7169 7170# Check whether --with-tclsh was given. 7171if test "${with_tclsh+set}" = set; then : 7172 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 7173$as_echo "$tclsh_name" >&6; } 7174else 7175 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7176$as_echo "no" >&6; } 7177fi 7178 7179 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7180set dummy $tclsh_name; ac_word=$2 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7182$as_echo_n "checking for $ac_word... " >&6; } 7183if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 case $vi_cv_path_tcl in 7187 [\\/]* | ?:[\\/]*) 7188 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7189 ;; 7190 *) 7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7192for as_dir in $PATH 7193do 7194 IFS=$as_save_IFS 7195 test -z "$as_dir" && as_dir=. 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7198 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202done 7203 done 7204IFS=$as_save_IFS 7205 7206 ;; 7207esac 7208fi 7209vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7210if test -n "$vi_cv_path_tcl"; then 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7212$as_echo "$vi_cv_path_tcl" >&6; } 7213else 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7215$as_echo "no" >&6; } 7216fi 7217 7218 7219 7220 7221 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 7222 tclsh_name="tclsh8.4" 7223 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7224set dummy $tclsh_name; ac_word=$2 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7226$as_echo_n "checking for $ac_word... " >&6; } 7227if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7228 $as_echo_n "(cached) " >&6 7229else 7230 case $vi_cv_path_tcl in 7231 [\\/]* | ?:[\\/]*) 7232 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7233 ;; 7234 *) 7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7236for as_dir in $PATH 7237do 7238 IFS=$as_save_IFS 7239 test -z "$as_dir" && as_dir=. 7240 for ac_exec_ext in '' $ac_executable_extensions; do 7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7242 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7244 break 2 7245 fi 7246done 7247 done 7248IFS=$as_save_IFS 7249 7250 ;; 7251esac 7252fi 7253vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7254if test -n "$vi_cv_path_tcl"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7256$as_echo "$vi_cv_path_tcl" >&6; } 7257else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259$as_echo "no" >&6; } 7260fi 7261 7262 7263 fi 7264 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 7265 tclsh_name="tclsh8.2" 7266 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7267set dummy $tclsh_name; ac_word=$2 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7269$as_echo_n "checking for $ac_word... " >&6; } 7270if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 case $vi_cv_path_tcl in 7274 [\\/]* | ?:[\\/]*) 7275 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7276 ;; 7277 *) 7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7279for as_dir in $PATH 7280do 7281 IFS=$as_save_IFS 7282 test -z "$as_dir" && as_dir=. 7283 for ac_exec_ext in '' $ac_executable_extensions; do 7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7285 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7287 break 2 7288 fi 7289done 7290 done 7291IFS=$as_save_IFS 7292 7293 ;; 7294esac 7295fi 7296vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7297if test -n "$vi_cv_path_tcl"; then 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7299$as_echo "$vi_cv_path_tcl" >&6; } 7300else 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7302$as_echo "no" >&6; } 7303fi 7304 7305 7306 fi 7307 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 7308 tclsh_name="tclsh8.0" 7309 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7310set dummy $tclsh_name; ac_word=$2 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7312$as_echo_n "checking for $ac_word... " >&6; } 7313if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7314 $as_echo_n "(cached) " >&6 7315else 7316 case $vi_cv_path_tcl in 7317 [\\/]* | ?:[\\/]*) 7318 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7319 ;; 7320 *) 7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7322for as_dir in $PATH 7323do 7324 IFS=$as_save_IFS 7325 test -z "$as_dir" && as_dir=. 7326 for ac_exec_ext in '' $ac_executable_extensions; do 7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7328 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7330 break 2 7331 fi 7332done 7333 done 7334IFS=$as_save_IFS 7335 7336 ;; 7337esac 7338fi 7339vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7340if test -n "$vi_cv_path_tcl"; then 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7342$as_echo "$vi_cv_path_tcl" >&6; } 7343else 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7345$as_echo "no" >&6; } 7346fi 7347 7348 7349 fi 7350 if test "X$vi_cv_path_tcl" = "X"; then 7351 tclsh_name="tclsh" 7352 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7353set dummy $tclsh_name; ac_word=$2 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7355$as_echo_n "checking for $ac_word... " >&6; } 7356if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 case $vi_cv_path_tcl in 7360 [\\/]* | ?:[\\/]*) 7361 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7362 ;; 7363 *) 7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7365for as_dir in $PATH 7366do 7367 IFS=$as_save_IFS 7368 test -z "$as_dir" && as_dir=. 7369 for ac_exec_ext in '' $ac_executable_extensions; do 7370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7371 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7373 break 2 7374 fi 7375done 7376 done 7377IFS=$as_save_IFS 7378 7379 ;; 7380esac 7381fi 7382vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7383if test -n "$vi_cv_path_tcl"; then 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7385$as_echo "$vi_cv_path_tcl" >&6; } 7386else 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7388$as_echo "no" >&6; } 7389fi 7390 7391 7392 fi 7393 if test "X$vi_cv_path_tcl" != "X"; then 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 7395$as_echo_n "checking Tcl version... " >&6; } 7396 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 7397 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 7399$as_echo "$tclver - OK" >&6; }; 7400 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 -` 7401 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 7402 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 7404$as_echo_n "checking for location of Tcl include... " >&6; } 7405 if test "x$MACOS_X" != "xyes"; then 7406 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 7407 else 7408 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 7409 fi 7410 TCL_INC= 7411 for try in $tclinc; do 7412 if test -f "$try/tcl.h"; then 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 7414$as_echo "$try/tcl.h" >&6; } 7415 TCL_INC=$try 7416 break 7417 fi 7418 done 7419 if test -z "$TCL_INC"; then 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7421$as_echo "<not found>" >&6; } 7422 SKIP_TCL=YES 7423 fi 7424 if test -z "$SKIP_TCL"; then 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 7426$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 7427 if test "x$MACOS_X" != "xyes"; then 7428 tclcnf=`echo $tclinc | sed s/include/lib/g` 7429 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 7430 else 7431 tclcnf="/System/Library/Frameworks/Tcl.framework" 7432 fi 7433 for try in $tclcnf; do 7434 if test -f "$try/tclConfig.sh"; then 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 7436$as_echo "$try/tclConfig.sh" >&6; } 7437 . "$try/tclConfig.sh" 7438 if test "$enable_tclinterp" = "dynamic"; then 7439 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 7440 else 7441 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 7442 fi 7443 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'` 7444 break 7445 fi 7446 done 7447 if test -z "$TCL_LIBS"; then 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7449$as_echo "<not found>" >&6; } 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7451$as_echo_n "checking for Tcl library by myself... " >&6; } 7452 tcllib=`echo $tclinc | sed s/include/lib/g` 7453 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7454 for ext in .so .a ; do 7455 for ver in "" $tclver ; do 7456 for try in $tcllib ; do 7457 trylib=tcl$ver$ext 7458 if test -f "$try/lib$trylib" ; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7460$as_echo "$try/lib$trylib" >&6; } 7461 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7462 if test "`(uname) 2>/dev/null`" = SunOS && 7463 uname -r | grep '^5' >/dev/null; then 7464 TCL_LIBS="$TCL_LIBS -R $try" 7465 fi 7466 break 3 7467 fi 7468 done 7469 done 7470 done 7471 if test -z "$TCL_LIBS"; then 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7473$as_echo "<not found>" >&6; } 7474 SKIP_TCL=YES 7475 fi 7476 fi 7477 if test -z "$SKIP_TCL"; then 7478 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7479 7480 TCL_SRC=if_tcl.c 7481 TCL_OBJ=objects/if_tcl.o 7482 TCL_PRO=if_tcl.pro 7483 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7484 fi 7485 fi 7486 else 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7488$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7489 fi 7490 fi 7491 if test "$enable_tclinterp" = "dynamic"; then 7492 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7493 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7494 7495 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7496 fi 7497 fi 7498 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7499 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7500 fi 7501fi 7502 7503 7504 7505 7506 7507 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7509$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7510# Check whether --enable-rubyinterp was given. 7511if test "${enable_rubyinterp+set}" = set; then : 7512 enableval=$enable_rubyinterp; 7513else 7514 enable_rubyinterp="no" 7515fi 7516 7517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7518$as_echo "$enable_rubyinterp" >&6; } 7519if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7520 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7521 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7522 fi 7523 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7525$as_echo_n "checking --with-ruby-command argument... " >&6; } 7526 7527 7528# Check whether --with-ruby-command was given. 7529if test "${with_ruby_command+set}" = set; then : 7530 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7531$as_echo "$RUBY_CMD" >&6; } 7532else 7533 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7534$as_echo "defaulting to $RUBY_CMD" >&6; } 7535fi 7536 7537 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7538set dummy $RUBY_CMD; ac_word=$2 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7540$as_echo_n "checking for $ac_word... " >&6; } 7541if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 case $vi_cv_path_ruby in 7545 [\\/]* | ?:[\\/]*) 7546 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7547 ;; 7548 *) 7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7550for as_dir in $PATH 7551do 7552 IFS=$as_save_IFS 7553 test -z "$as_dir" && as_dir=. 7554 for ac_exec_ext in '' $ac_executable_extensions; do 7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7556 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7558 break 2 7559 fi 7560done 7561 done 7562IFS=$as_save_IFS 7563 7564 ;; 7565esac 7566fi 7567vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7568if test -n "$vi_cv_path_ruby"; then 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7570$as_echo "$vi_cv_path_ruby" >&6; } 7571else 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7573$as_echo "no" >&6; } 7574fi 7575 7576 7577 if test "X$vi_cv_path_ruby" != "X"; then 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7579$as_echo_n "checking Ruby version... " >&6; } 7580 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7582$as_echo "OK" >&6; } 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7584$as_echo_n "checking Ruby rbconfig... " >&6; } 7585 ruby_rbconfig="RbConfig" 7586 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7587 ruby_rbconfig="Config" 7588 fi 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7590$as_echo "$ruby_rbconfig" >&6; } 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7592$as_echo_n "checking Ruby header files... " >&6; } 7593 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7594 if test "X$rubyhdrdir" != "X"; then 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7596$as_echo "$rubyhdrdir" >&6; } 7597 RUBY_CFLAGS="-I$rubyhdrdir" 7598 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7599 if test -d "$rubyarchdir"; then 7600 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7601 fi 7602 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7603 if test "X$rubyversion" = "X"; then 7604 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7605 fi 7606 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7607 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7608 if test "X$rubylibs" != "X"; then 7609 RUBY_LIBS="$rubylibs" 7610 fi 7611 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7612 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7613 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7614 if test -f "$rubylibdir/$librubya"; then 7615 librubyarg="$librubyarg" 7616 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7617 elif test "$librubyarg" = "libruby.a"; then 7618 librubyarg="-lruby" 7619 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7620 fi 7621 7622 if test "X$librubyarg" != "X"; then 7623 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7624 fi 7625 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7626 if test "X$rubyldflags" != "X"; then 7627 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7628 if test "X$rubyldflags" != "X"; then 7629 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7630 LDFLAGS="$rubyldflags $LDFLAGS" 7631 fi 7632 fi 7633 fi 7634 RUBY_SRC="if_ruby.c" 7635 RUBY_OBJ="objects/if_ruby.o" 7636 RUBY_PRO="if_ruby.pro" 7637 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7638 7639 if test "$enable_rubyinterp" = "dynamic"; then 7640 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` 7641 if test -z "$libruby_soname"; then 7642 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7643 fi 7644 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7645 7646 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS" 7647 RUBY_LIBS= 7648 fi 7649 else 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7651$as_echo "not found; disabling Ruby" >&6; } 7652 fi 7653 else 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7655$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7656 fi 7657 fi 7658 7659 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7660 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7661 fi 7662fi 7663 7664 7665 7666 7667 7668 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7670$as_echo_n "checking --enable-cscope argument... " >&6; } 7671# Check whether --enable-cscope was given. 7672if test "${enable_cscope+set}" = set; then : 7673 enableval=$enable_cscope; 7674else 7675 enable_cscope="no" 7676fi 7677 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7679$as_echo "$enable_cscope" >&6; } 7680if test "$enable_cscope" = "yes"; then 7681 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7682 7683fi 7684 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7686$as_echo_n "checking --disable-netbeans argument... " >&6; } 7687# Check whether --enable-netbeans was given. 7688if test "${enable_netbeans+set}" = set; then : 7689 enableval=$enable_netbeans; 7690else 7691 enable_netbeans="yes" 7692fi 7693 7694if test "$enable_netbeans" = "yes"; then 7695 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7697$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7698 enable_netbeans="no" 7699 else 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7701$as_echo "no" >&6; } 7702 fi 7703else 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7705$as_echo "yes" >&6; } 7706fi 7707 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7709$as_echo_n "checking --disable-channel argument... " >&6; } 7710# Check whether --enable-channel was given. 7711if test "${enable_channel+set}" = set; then : 7712 enableval=$enable_channel; 7713else 7714 enable_channel="yes" 7715fi 7716 7717if test "$enable_channel" = "yes"; then 7718 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7720$as_echo "cannot use channels with tiny or small features" >&6; } 7721 enable_channel="no" 7722 else 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7724$as_echo "no" >&6; } 7725 fi 7726else 7727 if test "$enable_netbeans" = "yes"; then 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7729$as_echo "yes, netbeans also disabled" >&6; } 7730 enable_netbeans="no" 7731 else 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7733$as_echo "yes" >&6; } 7734 fi 7735fi 7736 7737if test "$enable_channel" = "yes"; then 7738 if test "x$HAIKU" = "xyes"; then 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 7740$as_echo_n "checking for socket in -lnetwork... " >&6; } 7741if ${ac_cv_lib_network_socket+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 ac_check_lib_save_LIBS=$LIBS 7745LIBS="-lnetwork $LIBS" 7746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7747/* end confdefs.h. */ 7748 7749/* Override any GCC internal prototype to avoid an error. 7750 Use char because int might match the return type of a GCC 7751 builtin and then its argument prototype would still apply. */ 7752#ifdef __cplusplus 7753extern "C" 7754#endif 7755char socket (); 7756int 7757main () 7758{ 7759return socket (); 7760 ; 7761 return 0; 7762} 7763_ACEOF 7764if ac_fn_c_try_link "$LINENO"; then : 7765 ac_cv_lib_network_socket=yes 7766else 7767 ac_cv_lib_network_socket=no 7768fi 7769rm -f core conftest.err conftest.$ac_objext \ 7770 conftest$ac_exeext conftest.$ac_ext 7771LIBS=$ac_check_lib_save_LIBS 7772fi 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 7774$as_echo "$ac_cv_lib_network_socket" >&6; } 7775if test "x$ac_cv_lib_network_socket" = xyes; then : 7776 cat >>confdefs.h <<_ACEOF 7777#define HAVE_LIBNETWORK 1 7778_ACEOF 7779 7780 LIBS="-lnetwork $LIBS" 7781 7782fi 7783 7784 else 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7786$as_echo_n "checking for socket in -lsocket... " >&6; } 7787if ${ac_cv_lib_socket_socket+:} false; then : 7788 $as_echo_n "(cached) " >&6 7789else 7790 ac_check_lib_save_LIBS=$LIBS 7791LIBS="-lsocket $LIBS" 7792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794 7795/* Override any GCC internal prototype to avoid an error. 7796 Use char because int might match the return type of a GCC 7797 builtin and then its argument prototype would still apply. */ 7798#ifdef __cplusplus 7799extern "C" 7800#endif 7801char socket (); 7802int 7803main () 7804{ 7805return socket (); 7806 ; 7807 return 0; 7808} 7809_ACEOF 7810if ac_fn_c_try_link "$LINENO"; then : 7811 ac_cv_lib_socket_socket=yes 7812else 7813 ac_cv_lib_socket_socket=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext \ 7816 conftest$ac_exeext conftest.$ac_ext 7817LIBS=$ac_check_lib_save_LIBS 7818fi 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7820$as_echo "$ac_cv_lib_socket_socket" >&6; } 7821if test "x$ac_cv_lib_socket_socket" = xyes; then : 7822 cat >>confdefs.h <<_ACEOF 7823#define HAVE_LIBSOCKET 1 7824_ACEOF 7825 7826 LIBS="-lsocket $LIBS" 7827 7828fi 7829 7830 fi 7831 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv6 networking is possible" >&5 7833$as_echo_n "checking whether compiling with IPv6 networking is possible... " >&6; } 7834if ${vim_cv_ipv6_networking+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7838/* end confdefs.h. */ 7839 7840#include <stdio.h> 7841#include <stdlib.h> 7842#include <stdarg.h> 7843#include <fcntl.h> 7844#include <netdb.h> 7845#include <netinet/in.h> 7846#include <errno.h> 7847#include <sys/types.h> 7848#include <sys/socket.h> 7849 /* Check bitfields */ 7850 struct nbbuf { 7851 unsigned int initDone:1; 7852 unsigned short signmaplen; 7853 }; 7854 7855int 7856main () 7857{ 7858 7859 /* Check creating a socket. */ 7860 struct sockaddr_in server; 7861 struct addrinfo *res; 7862 (void)socket(AF_INET, SOCK_STREAM, 0); 7863 (void)htons(100); 7864 (void)getaddrinfo("microsoft.com", NULL, NULL, &res); 7865 if (errno == ECONNREFUSED) 7866 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7867 (void)freeaddrinfo(res); 7868 7869 ; 7870 return 0; 7871} 7872_ACEOF 7873if ac_fn_c_try_link "$LINENO"; then : 7874 vim_cv_ipv6_networking="yes" 7875else 7876 vim_cv_ipv6_networking="no" 7877fi 7878rm -f core conftest.err conftest.$ac_objext \ 7879 conftest$ac_exeext conftest.$ac_ext 7880fi 7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv6_networking" >&5 7882$as_echo "$vim_cv_ipv6_networking" >&6; } 7883 7884 if test "x$vim_cv_ipv6_networking" = "xyes"; then 7885 $as_echo "#define FEAT_IPV6 1" >>confdefs.h 7886 7887 for ac_func in inet_ntop 7888do : 7889 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 7890if test "x$ac_cv_func_inet_ntop" = xyes; then : 7891 cat >>confdefs.h <<_ACEOF 7892#define HAVE_INET_NTOP 1 7893_ACEOF 7894 7895fi 7896done 7897 7898 else 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7900$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7901if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 ac_check_lib_save_LIBS=$LIBS 7905LIBS="-lnsl $LIBS" 7906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7907/* end confdefs.h. */ 7908 7909/* Override any GCC internal prototype to avoid an error. 7910 Use char because int might match the return type of a GCC 7911 builtin and then its argument prototype would still apply. */ 7912#ifdef __cplusplus 7913extern "C" 7914#endif 7915char gethostbyname (); 7916int 7917main () 7918{ 7919return gethostbyname (); 7920 ; 7921 return 0; 7922} 7923_ACEOF 7924if ac_fn_c_try_link "$LINENO"; then : 7925 ac_cv_lib_nsl_gethostbyname=yes 7926else 7927 ac_cv_lib_nsl_gethostbyname=no 7928fi 7929rm -f core conftest.err conftest.$ac_objext \ 7930 conftest$ac_exeext conftest.$ac_ext 7931LIBS=$ac_check_lib_save_LIBS 7932fi 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7934$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7935if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7936 cat >>confdefs.h <<_ACEOF 7937#define HAVE_LIBNSL 1 7938_ACEOF 7939 7940 LIBS="-lnsl $LIBS" 7941 7942fi 7943 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv4 networking is possible" >&5 7945$as_echo_n "checking whether compiling with IPv4 networking is possible... " >&6; } 7946if ${vim_cv_ipv4_networking+:} false; then : 7947 $as_echo_n "(cached) " >&6 7948else 7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7950/* end confdefs.h. */ 7951 7952#include <stdio.h> 7953#include <stdlib.h> 7954#include <stdarg.h> 7955#include <fcntl.h> 7956#include <netdb.h> 7957#include <netinet/in.h> 7958#include <errno.h> 7959#include <sys/types.h> 7960#include <sys/socket.h> 7961 /* Check bitfields */ 7962 struct nbbuf { 7963 unsigned int initDone:1; 7964 unsigned short signmaplen; 7965 }; 7966 7967int 7968main () 7969{ 7970 7971 /* Check creating a socket. */ 7972 struct sockaddr_in server; 7973 (void)socket(AF_INET, SOCK_STREAM, 0); 7974 (void)htons(100); 7975 (void)gethostbyname("microsoft.com"); 7976 if (errno == ECONNREFUSED) 7977 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7978 7979 ; 7980 return 0; 7981} 7982_ACEOF 7983if ac_fn_c_try_link "$LINENO"; then : 7984 vim_cv_ipv4_networking="yes" 7985else 7986 vim_cv_ipv4_networking="no"; enable_netbeans="no"; enable_channel="no" 7987fi 7988rm -f core conftest.err conftest.$ac_objext \ 7989 conftest$ac_exeext conftest.$ac_ext 7990fi 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv4_networking" >&5 7992$as_echo "$vim_cv_ipv4_networking" >&6; } 7993 fi 7994fi 7995if test "$enable_netbeans" = "yes"; then 7996 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7997 7998 NETBEANS_SRC="netbeans.c" 7999 8000 NETBEANS_OBJ="objects/netbeans.o" 8001 8002fi 8003if test "$enable_channel" = "yes"; then 8004 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 8005 8006 CHANNEL_SRC="channel.c" 8007 8008 CHANNEL_OBJ="objects/channel.o" 8009 8010fi 8011 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 8013$as_echo_n "checking --enable-terminal argument... " >&6; } 8014# Check whether --enable-terminal was given. 8015if test "${enable_terminal+set}" = set; then : 8016 enableval=$enable_terminal; 8017else 8018 enable_terminal="auto" 8019fi 8020 8021if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then 8022 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 8024$as_echo "cannot use terminal emulator with tiny or small features" >&6; } 8025 enable_terminal="no" 8026 else 8027 if test "$enable_terminal" = "auto"; then 8028 enable_terminal="yes" 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 8030$as_echo "defaulting to yes" >&6; } 8031 else 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8033$as_echo "yes" >&6; } 8034 fi 8035 fi 8036else 8037 if test "$enable_terminal" = "auto"; then 8038 enable_terminal="no" 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 8040$as_echo "defaulting to no" >&6; } 8041 else 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8043$as_echo "no" >&6; } 8044 fi 8045fi 8046if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then 8047 $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h 8048 8049 TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/creen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" 8050 8051 TERM_OBJ="objects/vterm_encoding.o objects/vterm_keyboard.o objects/vterm_mouse.o objects/vterm_parser.o objects/vterm_pen.o objects/vterm_screen.o objects/vterm_state.o objects/vterm_unicode.o objects/vterm_vterm.o" 8052 8053 TERM_TEST="test_libvterm" 8054 8055fi 8056 8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 8058$as_echo_n "checking --enable-autoservername argument... " >&6; } 8059# Check whether --enable-autoservername was given. 8060if test "${enable_autoservername+set}" = set; then : 8061 enableval=$enable_autoservername; 8062else 8063 enable_autoservername="no" 8064fi 8065 8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 8067$as_echo "$enable_autoservername" >&6; } 8068if test "$enable_autoservername" = "yes"; then 8069 $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h 8070 8071fi 8072 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 8074$as_echo_n "checking --enable-multibyte argument... " >&6; } 8075# Check whether --enable-multibyte was given. 8076if test "${enable_multibyte+set}" = set; then : 8077 enableval=$enable_multibyte; 8078else 8079 enable_multibyte="yes" 8080fi 8081 8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 8083$as_echo "$enable_multibyte" >&6; } 8084if test "$enable_multibyte" != "yes"; then 8085 as_fn_error $? "The multi-byte feature can no longer be disabled. If you have 8086 a problem with this, discuss on the Vim mailing list." "$LINENO" 5 8087fi 8088 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5 8090$as_echo_n "checking --disable-rightleft argument... " >&6; } 8091# Check whether --enable-rightleft was given. 8092if test "${enable_rightleft+set}" = set; then : 8093 enableval=$enable_rightleft; 8094else 8095 enable_rightleft="yes" 8096fi 8097 8098if test "$enable_rightleft" = "yes"; then 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8100$as_echo "no" >&6; } 8101else 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8103$as_echo "yes" >&6; } 8104 $as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h 8105 8106fi 8107 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5 8109$as_echo_n "checking --disable-arabic argument... " >&6; } 8110# Check whether --enable-arabic was given. 8111if test "${enable_arabic+set}" = set; then : 8112 enableval=$enable_arabic; 8113else 8114 enable_arabic="yes" 8115fi 8116 8117if test "$enable_arabic" = "yes"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8119$as_echo "no" >&6; } 8120else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8122$as_echo "yes" >&6; } 8123 $as_echo "#define DISABLE_ARABIC 1" >>confdefs.h 8124 8125fi 8126 8127# Check whether --enable-farsi was given. 8128if test "${enable_farsi+set}" = set; then : 8129 enableval=$enable_farsi; 8130fi 8131 8132 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 8134$as_echo_n "checking --enable-xim argument... " >&6; } 8135# Check whether --enable-xim was given. 8136if test "${enable_xim+set}" = set; then : 8137 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 8138$as_echo "$enable_xim" >&6; } 8139else 8140 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 8141$as_echo "defaulting to auto" >&6; } 8142fi 8143 8144 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 8146$as_echo_n "checking --enable-fontset argument... " >&6; } 8147# Check whether --enable-fontset was given. 8148if test "${enable_fontset+set}" = set; then : 8149 enableval=$enable_fontset; 8150else 8151 enable_fontset="no" 8152fi 8153 8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 8155$as_echo "$enable_fontset" >&6; } 8156 8157test -z "$with_x" && with_x=yes 8158test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 8159if test "$with_x" = no; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 8161$as_echo "defaulting to: don't HAVE_X11" >&6; } 8162else 8163 8164 # Extract the first word of "xmkmf", so it can be a program name with args. 8165set dummy xmkmf; ac_word=$2 8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8167$as_echo_n "checking for $ac_word... " >&6; } 8168if ${ac_cv_path_xmkmfpath+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 case $xmkmfpath in 8172 [\\/]* | ?:[\\/]*) 8173 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 8174 ;; 8175 *) 8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8177for as_dir in $PATH 8178do 8179 IFS=$as_save_IFS 8180 test -z "$as_dir" && as_dir=. 8181 for ac_exec_ext in '' $ac_executable_extensions; do 8182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8183 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8185 break 2 8186 fi 8187done 8188 done 8189IFS=$as_save_IFS 8190 8191 ;; 8192esac 8193fi 8194xmkmfpath=$ac_cv_path_xmkmfpath 8195if test -n "$xmkmfpath"; then 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 8197$as_echo "$xmkmfpath" >&6; } 8198else 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8200$as_echo "no" >&6; } 8201fi 8202 8203 8204 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 8206$as_echo_n "checking for X... " >&6; } 8207 8208 8209# Check whether --with-x was given. 8210if test "${with_x+set}" = set; then : 8211 withval=$with_x; 8212fi 8213 8214# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8215if test "x$with_x" = xno; then 8216 # The user explicitly disabled X. 8217 have_x=disabled 8218else 8219 case $x_includes,$x_libraries in #( 8220 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 8221 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 8222 $as_echo_n "(cached) " >&6 8223else 8224 # One or both of the vars are not set, and there is no cached value. 8225ac_x_includes=no ac_x_libraries=no 8226rm -f -r conftest.dir 8227if mkdir conftest.dir; then 8228 cd conftest.dir 8229 cat >Imakefile <<'_ACEOF' 8230incroot: 8231 @echo incroot='${INCROOT}' 8232usrlibdir: 8233 @echo usrlibdir='${USRLIBDIR}' 8234libdir: 8235 @echo libdir='${LIBDIR}' 8236_ACEOF 8237 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 8238 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8239 for ac_var in incroot usrlibdir libdir; do 8240 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 8241 done 8242 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8243 for ac_extension in a so sl dylib la dll; do 8244 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8245 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8246 ac_im_usrlibdir=$ac_im_libdir; break 8247 fi 8248 done 8249 # Screen out bogus values from the imake configuration. They are 8250 # bogus both because they are the default anyway, and because 8251 # using them would break gcc on systems where it needs fixed includes. 8252 case $ac_im_incroot in 8253 /usr/include) ac_x_includes= ;; 8254 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8255 esac 8256 case $ac_im_usrlibdir in 8257 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 8258 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8259 esac 8260 fi 8261 cd .. 8262 rm -f -r conftest.dir 8263fi 8264 8265# Standard set of common directories for X headers. 8266# Check X11 before X11Rn because it is often a symlink to the current release. 8267ac_x_header_dirs=' 8268/usr/X11/include 8269/usr/X11R7/include 8270/usr/X11R6/include 8271/usr/X11R5/include 8272/usr/X11R4/include 8273 8274/usr/include/X11 8275/usr/include/X11R7 8276/usr/include/X11R6 8277/usr/include/X11R5 8278/usr/include/X11R4 8279 8280/usr/local/X11/include 8281/usr/local/X11R7/include 8282/usr/local/X11R6/include 8283/usr/local/X11R5/include 8284/usr/local/X11R4/include 8285 8286/usr/local/include/X11 8287/usr/local/include/X11R7 8288/usr/local/include/X11R6 8289/usr/local/include/X11R5 8290/usr/local/include/X11R4 8291 8292/usr/X386/include 8293/usr/x386/include 8294/usr/XFree86/include/X11 8295 8296/usr/include 8297/usr/local/include 8298/usr/unsupported/include 8299/usr/athena/include 8300/usr/local/x11r5/include 8301/usr/lpp/Xamples/include 8302 8303/usr/openwin/include 8304/usr/openwin/share/include' 8305 8306if test "$ac_x_includes" = no; then 8307 # Guess where to find include files, by looking for Xlib.h. 8308 # First, try using that file with no special directory specified. 8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8310/* end confdefs.h. */ 8311#include <X11/Xlib.h> 8312_ACEOF 8313if ac_fn_c_try_cpp "$LINENO"; then : 8314 # We can compile using X headers with no special include directory. 8315ac_x_includes= 8316else 8317 for ac_dir in $ac_x_header_dirs; do 8318 if test -r "$ac_dir/X11/Xlib.h"; then 8319 ac_x_includes=$ac_dir 8320 break 8321 fi 8322done 8323fi 8324rm -f conftest.err conftest.i conftest.$ac_ext 8325fi # $ac_x_includes = no 8326 8327if test "$ac_x_libraries" = no; then 8328 # Check for the libraries. 8329 # See if we find them without any special options. 8330 # Don't add to $LIBS permanently. 8331 ac_save_LIBS=$LIBS 8332 LIBS="-lX11 $LIBS" 8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8334/* end confdefs.h. */ 8335#include <X11/Xlib.h> 8336int 8337main () 8338{ 8339XrmInitialize () 8340 ; 8341 return 0; 8342} 8343_ACEOF 8344if ac_fn_c_try_link "$LINENO"; then : 8345 LIBS=$ac_save_LIBS 8346# We can link X programs with no special library path. 8347ac_x_libraries= 8348else 8349 LIBS=$ac_save_LIBS 8350for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8351do 8352 # Don't even attempt the hair of trying to link an X program! 8353 for ac_extension in a so sl dylib la dll; do 8354 if test -r "$ac_dir/libX11.$ac_extension"; then 8355 ac_x_libraries=$ac_dir 8356 break 2 8357 fi 8358 done 8359done 8360fi 8361rm -f core conftest.err conftest.$ac_objext \ 8362 conftest$ac_exeext conftest.$ac_ext 8363fi # $ac_x_libraries = no 8364 8365case $ac_x_includes,$ac_x_libraries in #( 8366 no,* | *,no | *\'*) 8367 # Didn't find X, or a directory has "'" in its name. 8368 ac_cv_have_x="have_x=no";; #( 8369 *) 8370 # Record where we found X for the cache. 8371 ac_cv_have_x="have_x=yes\ 8372 ac_x_includes='$ac_x_includes'\ 8373 ac_x_libraries='$ac_x_libraries'" 8374esac 8375fi 8376;; #( 8377 *) have_x=yes;; 8378 esac 8379 eval "$ac_cv_have_x" 8380fi # $with_x != no 8381 8382if test "$have_x" != yes; then 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 8384$as_echo "$have_x" >&6; } 8385 no_x=yes 8386else 8387 # If each of the values was on the command line, it overrides each guess. 8388 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 8389 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8390 # Update the cache value to reflect the command line values. 8391 ac_cv_have_x="have_x=yes\ 8392 ac_x_includes='$x_includes'\ 8393 ac_x_libraries='$x_libraries'" 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 8395$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 8396fi 8397 8398if test "$no_x" = yes; then 8399 # Not all programs may use this symbol, but it does not hurt to define it. 8400 8401$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 8402 8403 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8404else 8405 if test -n "$x_includes"; then 8406 X_CFLAGS="$X_CFLAGS -I$x_includes" 8407 fi 8408 8409 # It would also be nice to do this for all -L options, not just this one. 8410 if test -n "$x_libraries"; then 8411 X_LIBS="$X_LIBS -L$x_libraries" 8412 # For Solaris; some versions of Sun CC require a space after -R and 8413 # others require no space. Words are not sufficient . . . . 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 8415$as_echo_n "checking whether -R must be followed by a space... " >&6; } 8416 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 8417 ac_xsave_c_werror_flag=$ac_c_werror_flag 8418 ac_c_werror_flag=yes 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421 8422int 8423main () 8424{ 8425 8426 ; 8427 return 0; 8428} 8429_ACEOF 8430if ac_fn_c_try_link "$LINENO"; then : 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8432$as_echo "no" >&6; } 8433 X_LIBS="$X_LIBS -R$x_libraries" 8434else 8435 LIBS="$ac_xsave_LIBS -R $x_libraries" 8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8437/* end confdefs.h. */ 8438 8439int 8440main () 8441{ 8442 8443 ; 8444 return 0; 8445} 8446_ACEOF 8447if ac_fn_c_try_link "$LINENO"; then : 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8449$as_echo "yes" >&6; } 8450 X_LIBS="$X_LIBS -R $x_libraries" 8451else 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 8453$as_echo "neither works" >&6; } 8454fi 8455rm -f core conftest.err conftest.$ac_objext \ 8456 conftest$ac_exeext conftest.$ac_ext 8457fi 8458rm -f core conftest.err conftest.$ac_objext \ 8459 conftest$ac_exeext conftest.$ac_ext 8460 ac_c_werror_flag=$ac_xsave_c_werror_flag 8461 LIBS=$ac_xsave_LIBS 8462 fi 8463 8464 # Check for system-dependent libraries X programs must link with. 8465 # Do this before checking for the system-independent R6 libraries 8466 # (-lICE), since we may need -lsocket or whatever for X linking. 8467 8468 if test "$ISC" = yes; then 8469 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8470 else 8471 # Martyn Johnson says this is needed for Ultrix, if the X 8472 # libraries were built with DECnet support. And Karl Berry says 8473 # the Alpha needs dnet_stub (dnet does not exist). 8474 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476/* end confdefs.h. */ 8477 8478/* Override any GCC internal prototype to avoid an error. 8479 Use char because int might match the return type of a GCC 8480 builtin and then its argument prototype would still apply. */ 8481#ifdef __cplusplus 8482extern "C" 8483#endif 8484char XOpenDisplay (); 8485int 8486main () 8487{ 8488return XOpenDisplay (); 8489 ; 8490 return 0; 8491} 8492_ACEOF 8493if ac_fn_c_try_link "$LINENO"; then : 8494 8495else 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 8497$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 8498if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 8499 $as_echo_n "(cached) " >&6 8500else 8501 ac_check_lib_save_LIBS=$LIBS 8502LIBS="-ldnet $LIBS" 8503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8504/* end confdefs.h. */ 8505 8506/* Override any GCC internal prototype to avoid an error. 8507 Use char because int might match the return type of a GCC 8508 builtin and then its argument prototype would still apply. */ 8509#ifdef __cplusplus 8510extern "C" 8511#endif 8512char dnet_ntoa (); 8513int 8514main () 8515{ 8516return dnet_ntoa (); 8517 ; 8518 return 0; 8519} 8520_ACEOF 8521if ac_fn_c_try_link "$LINENO"; then : 8522 ac_cv_lib_dnet_dnet_ntoa=yes 8523else 8524 ac_cv_lib_dnet_dnet_ntoa=no 8525fi 8526rm -f core conftest.err conftest.$ac_objext \ 8527 conftest$ac_exeext conftest.$ac_ext 8528LIBS=$ac_check_lib_save_LIBS 8529fi 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8531$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 8532if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 8533 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8534fi 8535 8536 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 8538$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 8539if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 8540 $as_echo_n "(cached) " >&6 8541else 8542 ac_check_lib_save_LIBS=$LIBS 8543LIBS="-ldnet_stub $LIBS" 8544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8545/* end confdefs.h. */ 8546 8547/* Override any GCC internal prototype to avoid an error. 8548 Use char because int might match the return type of a GCC 8549 builtin and then its argument prototype would still apply. */ 8550#ifdef __cplusplus 8551extern "C" 8552#endif 8553char dnet_ntoa (); 8554int 8555main () 8556{ 8557return dnet_ntoa (); 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562if ac_fn_c_try_link "$LINENO"; then : 8563 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8564else 8565 ac_cv_lib_dnet_stub_dnet_ntoa=no 8566fi 8567rm -f core conftest.err conftest.$ac_objext \ 8568 conftest$ac_exeext conftest.$ac_ext 8569LIBS=$ac_check_lib_save_LIBS 8570fi 8571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8572$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 8573if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 8574 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8575fi 8576 8577 fi 8578fi 8579rm -f core conftest.err conftest.$ac_objext \ 8580 conftest$ac_exeext conftest.$ac_ext 8581 LIBS="$ac_xsave_LIBS" 8582 8583 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 8584 # to get the SysV transport functions. 8585 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8586 # needs -lnsl. 8587 # The nsl library prevents programs from opening the X display 8588 # on Irix 5.2, according to T.E. Dickey. 8589 # The functions gethostbyname, getservbyname, and inet_addr are 8590 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8591 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8592if test "x$ac_cv_func_gethostbyname" = xyes; then : 8593 8594fi 8595 8596 if test $ac_cv_func_gethostbyname = no; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8598$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8599if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 ac_check_lib_save_LIBS=$LIBS 8603LIBS="-lnsl $LIBS" 8604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8605/* end confdefs.h. */ 8606 8607/* Override any GCC internal prototype to avoid an error. 8608 Use char because int might match the return type of a GCC 8609 builtin and then its argument prototype would still apply. */ 8610#ifdef __cplusplus 8611extern "C" 8612#endif 8613char gethostbyname (); 8614int 8615main () 8616{ 8617return gethostbyname (); 8618 ; 8619 return 0; 8620} 8621_ACEOF 8622if ac_fn_c_try_link "$LINENO"; then : 8623 ac_cv_lib_nsl_gethostbyname=yes 8624else 8625 ac_cv_lib_nsl_gethostbyname=no 8626fi 8627rm -f core conftest.err conftest.$ac_objext \ 8628 conftest$ac_exeext conftest.$ac_ext 8629LIBS=$ac_check_lib_save_LIBS 8630fi 8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8632$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8633if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8635fi 8636 8637 if test $ac_cv_lib_nsl_gethostbyname = no; then 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8639$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8640if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8641 $as_echo_n "(cached) " >&6 8642else 8643 ac_check_lib_save_LIBS=$LIBS 8644LIBS="-lbsd $LIBS" 8645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647 8648/* Override any GCC internal prototype to avoid an error. 8649 Use char because int might match the return type of a GCC 8650 builtin and then its argument prototype would still apply. */ 8651#ifdef __cplusplus 8652extern "C" 8653#endif 8654char gethostbyname (); 8655int 8656main () 8657{ 8658return gethostbyname (); 8659 ; 8660 return 0; 8661} 8662_ACEOF 8663if ac_fn_c_try_link "$LINENO"; then : 8664 ac_cv_lib_bsd_gethostbyname=yes 8665else 8666 ac_cv_lib_bsd_gethostbyname=no 8667fi 8668rm -f core conftest.err conftest.$ac_objext \ 8669 conftest$ac_exeext conftest.$ac_ext 8670LIBS=$ac_check_lib_save_LIBS 8671fi 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8673$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8674if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8675 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8676fi 8677 8678 fi 8679 fi 8680 8681 # [email protected] says without -lsocket, 8682 # socket/setsockopt and other routines are undefined under SCO ODT 8683 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8684 # on later versions), says Simon Leinen: it contains gethostby* 8685 # variants that don't use the name server (or something). -lsocket 8686 # must be given before -lnsl if both are needed. We assume that 8687 # if connect needs -lnsl, so does gethostbyname. 8688 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8689if test "x$ac_cv_func_connect" = xyes; then : 8690 8691fi 8692 8693 if test $ac_cv_func_connect = no; then 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8695$as_echo_n "checking for connect in -lsocket... " >&6; } 8696if ${ac_cv_lib_socket_connect+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698else 8699 ac_check_lib_save_LIBS=$LIBS 8700LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8702/* end confdefs.h. */ 8703 8704/* Override any GCC internal prototype to avoid an error. 8705 Use char because int might match the return type of a GCC 8706 builtin and then its argument prototype would still apply. */ 8707#ifdef __cplusplus 8708extern "C" 8709#endif 8710char connect (); 8711int 8712main () 8713{ 8714return connect (); 8715 ; 8716 return 0; 8717} 8718_ACEOF 8719if ac_fn_c_try_link "$LINENO"; then : 8720 ac_cv_lib_socket_connect=yes 8721else 8722 ac_cv_lib_socket_connect=no 8723fi 8724rm -f core conftest.err conftest.$ac_objext \ 8725 conftest$ac_exeext conftest.$ac_ext 8726LIBS=$ac_check_lib_save_LIBS 8727fi 8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8729$as_echo "$ac_cv_lib_socket_connect" >&6; } 8730if test "x$ac_cv_lib_socket_connect" = xyes; then : 8731 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8732fi 8733 8734 fi 8735 8736 # Guillermo Gomez says -lposix is necessary on A/UX. 8737 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8738if test "x$ac_cv_func_remove" = xyes; then : 8739 8740fi 8741 8742 if test $ac_cv_func_remove = no; then 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8744$as_echo_n "checking for remove in -lposix... " >&6; } 8745if ${ac_cv_lib_posix_remove+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 ac_check_lib_save_LIBS=$LIBS 8749LIBS="-lposix $LIBS" 8750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751/* end confdefs.h. */ 8752 8753/* Override any GCC internal prototype to avoid an error. 8754 Use char because int might match the return type of a GCC 8755 builtin and then its argument prototype would still apply. */ 8756#ifdef __cplusplus 8757extern "C" 8758#endif 8759char remove (); 8760int 8761main () 8762{ 8763return remove (); 8764 ; 8765 return 0; 8766} 8767_ACEOF 8768if ac_fn_c_try_link "$LINENO"; then : 8769 ac_cv_lib_posix_remove=yes 8770else 8771 ac_cv_lib_posix_remove=no 8772fi 8773rm -f core conftest.err conftest.$ac_objext \ 8774 conftest$ac_exeext conftest.$ac_ext 8775LIBS=$ac_check_lib_save_LIBS 8776fi 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8778$as_echo "$ac_cv_lib_posix_remove" >&6; } 8779if test "x$ac_cv_lib_posix_remove" = xyes; then : 8780 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8781fi 8782 8783 fi 8784 8785 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8786 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8787if test "x$ac_cv_func_shmat" = xyes; then : 8788 8789fi 8790 8791 if test $ac_cv_func_shmat = no; then 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8793$as_echo_n "checking for shmat in -lipc... " >&6; } 8794if ${ac_cv_lib_ipc_shmat+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796else 8797 ac_check_lib_save_LIBS=$LIBS 8798LIBS="-lipc $LIBS" 8799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8800/* end confdefs.h. */ 8801 8802/* Override any GCC internal prototype to avoid an error. 8803 Use char because int might match the return type of a GCC 8804 builtin and then its argument prototype would still apply. */ 8805#ifdef __cplusplus 8806extern "C" 8807#endif 8808char shmat (); 8809int 8810main () 8811{ 8812return shmat (); 8813 ; 8814 return 0; 8815} 8816_ACEOF 8817if ac_fn_c_try_link "$LINENO"; then : 8818 ac_cv_lib_ipc_shmat=yes 8819else 8820 ac_cv_lib_ipc_shmat=no 8821fi 8822rm -f core conftest.err conftest.$ac_objext \ 8823 conftest$ac_exeext conftest.$ac_ext 8824LIBS=$ac_check_lib_save_LIBS 8825fi 8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8827$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8828if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8830fi 8831 8832 fi 8833 fi 8834 8835 # Check for libraries that X11R6 Xt/Xaw programs need. 8836 ac_save_LDFLAGS=$LDFLAGS 8837 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8838 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8839 # check for ICE first), but we must link in the order -lSM -lICE or 8840 # we get undefined symbols. So assume we have SM if we have ICE. 8841 # These have to be linked with before -lX11, unlike the other 8842 # libraries we check for below, so use a different variable. 8843 # John Interrante, Karl Berry 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8845$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8846if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8847 $as_echo_n "(cached) " >&6 8848else 8849 ac_check_lib_save_LIBS=$LIBS 8850LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853 8854/* Override any GCC internal prototype to avoid an error. 8855 Use char because int might match the return type of a GCC 8856 builtin and then its argument prototype would still apply. */ 8857#ifdef __cplusplus 8858extern "C" 8859#endif 8860char IceConnectionNumber (); 8861int 8862main () 8863{ 8864return IceConnectionNumber (); 8865 ; 8866 return 0; 8867} 8868_ACEOF 8869if ac_fn_c_try_link "$LINENO"; then : 8870 ac_cv_lib_ICE_IceConnectionNumber=yes 8871else 8872 ac_cv_lib_ICE_IceConnectionNumber=no 8873fi 8874rm -f core conftest.err conftest.$ac_objext \ 8875 conftest$ac_exeext conftest.$ac_ext 8876LIBS=$ac_check_lib_save_LIBS 8877fi 8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8879$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8880if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8881 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8882fi 8883 8884 LDFLAGS=$ac_save_LDFLAGS 8885 8886fi 8887 8888 8889 if test "$zOSUnix" = "yes"; then 8890 CFLAGS="$CFLAGS -W c,dll" 8891 LDFLAGS="$LDFLAGS -W l,dll" 8892 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8893 fi 8894 8895 8896 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8897 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8899$as_echo "Corrected X libraries to $x_libraries" >&6; } 8900 X_LIBS="$X_LIBS -L$x_libraries" 8901 if test "`(uname) 2>/dev/null`" = SunOS && 8902 uname -r | grep '^5' >/dev/null; then 8903 X_LIBS="$X_LIBS -R $x_libraries" 8904 fi 8905 fi 8906 8907 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8908 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8910$as_echo "Corrected X includes to $x_includes" >&6; } 8911 X_CFLAGS="$X_CFLAGS -I$x_includes" 8912 fi 8913 8914 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8915 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8916 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8917 8918 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8920$as_echo_n "checking if X11 header files can be found... " >&6; } 8921 cflags_save=$CFLAGS 8922 CFLAGS="$CFLAGS $X_CFLAGS" 8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8924/* end confdefs.h. */ 8925#include <X11/Xlib.h> 8926#include <X11/Intrinsic.h> 8927int 8928main () 8929{ 8930 8931 ; 8932 return 0; 8933} 8934_ACEOF 8935if ac_fn_c_try_compile "$LINENO"; then : 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8937$as_echo "yes" >&6; } 8938else 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8940$as_echo "no" >&6; }; no_x=yes 8941fi 8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8943 CFLAGS=$cflags_save 8944 8945 if test "${no_x-no}" = yes; then 8946 with_x=no 8947 else 8948 $as_echo "#define HAVE_X11 1" >>confdefs.h 8949 8950 X_LIB="-lXt -lX11"; 8951 8952 8953 ac_save_LDFLAGS="$LDFLAGS" 8954 LDFLAGS="-L$x_libraries $LDFLAGS" 8955 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8957$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8958if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8959 $as_echo_n "(cached) " >&6 8960else 8961 ac_check_lib_save_LIBS=$LIBS 8962LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8964/* end confdefs.h. */ 8965 8966/* Override any GCC internal prototype to avoid an error. 8967 Use char because int might match the return type of a GCC 8968 builtin and then its argument prototype would still apply. */ 8969#ifdef __cplusplus 8970extern "C" 8971#endif 8972char _XdmcpAuthDoIt (); 8973int 8974main () 8975{ 8976return _XdmcpAuthDoIt (); 8977 ; 8978 return 0; 8979} 8980_ACEOF 8981if ac_fn_c_try_link "$LINENO"; then : 8982 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8983else 8984 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8985fi 8986rm -f core conftest.err conftest.$ac_objext \ 8987 conftest$ac_exeext conftest.$ac_ext 8988LIBS=$ac_check_lib_save_LIBS 8989fi 8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8991$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8992if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8993 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8994fi 8995 8996 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8998$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8999if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 ac_check_lib_save_LIBS=$LIBS 9003LIBS="-lICE $X_EXTRA_LIBS $LIBS" 9004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9005/* end confdefs.h. */ 9006 9007/* Override any GCC internal prototype to avoid an error. 9008 Use char because int might match the return type of a GCC 9009 builtin and then its argument prototype would still apply. */ 9010#ifdef __cplusplus 9011extern "C" 9012#endif 9013char IceOpenConnection (); 9014int 9015main () 9016{ 9017return IceOpenConnection (); 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022if ac_fn_c_try_link "$LINENO"; then : 9023 ac_cv_lib_ICE_IceOpenConnection=yes 9024else 9025 ac_cv_lib_ICE_IceOpenConnection=no 9026fi 9027rm -f core conftest.err conftest.$ac_objext \ 9028 conftest$ac_exeext conftest.$ac_ext 9029LIBS=$ac_check_lib_save_LIBS 9030fi 9031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 9032$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 9033if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 9034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 9035fi 9036 9037 9038 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 9040$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 9041if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 9042 $as_echo_n "(cached) " >&6 9043else 9044 ac_check_lib_save_LIBS=$LIBS 9045LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 9046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047/* end confdefs.h. */ 9048 9049/* Override any GCC internal prototype to avoid an error. 9050 Use char because int might match the return type of a GCC 9051 builtin and then its argument prototype would still apply. */ 9052#ifdef __cplusplus 9053extern "C" 9054#endif 9055char XpmCreatePixmapFromData (); 9056int 9057main () 9058{ 9059return XpmCreatePixmapFromData (); 9060 ; 9061 return 0; 9062} 9063_ACEOF 9064if ac_fn_c_try_link "$LINENO"; then : 9065 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 9066else 9067 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 9068fi 9069rm -f core conftest.err conftest.$ac_objext \ 9070 conftest$ac_exeext conftest.$ac_ext 9071LIBS=$ac_check_lib_save_LIBS 9072fi 9073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 9074$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 9075if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 9076 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 9077fi 9078 9079 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 9081$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 9082 cflags_save=$CFLAGS 9083 if test "$GCC" = yes; then 9084 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 9085 else 9086 CFLAGS="$CFLAGS $X_CFLAGS" 9087 fi 9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089/* end confdefs.h. */ 9090#include <X11/Xlib.h> 9091int 9092main () 9093{ 9094 9095 ; 9096 return 0; 9097} 9098_ACEOF 9099if ac_fn_c_try_compile "$LINENO"; then : 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9101$as_echo "no" >&6; } 9102else 9103 CFLAGS="$CFLAGS -Wno-implicit-int" 9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9105/* end confdefs.h. */ 9106#include <X11/Xlib.h> 9107int 9108main () 9109{ 9110 9111 ; 9112 return 0; 9113} 9114_ACEOF 9115if ac_fn_c_try_compile "$LINENO"; then : 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9117$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 9118else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 9120$as_echo "test failed" >&6; } 9121 9122fi 9123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9124 9125fi 9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9127 CFLAGS=$cflags_save 9128 9129 LDFLAGS="$ac_save_LDFLAGS" 9130 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 9132$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 9133 if ${ac_cv_small_wchar_t+:} false; then : 9134 $as_echo_n "(cached) " >&6 9135else 9136 if test "$cross_compiling" = yes; then : 9137 as_fn_error $? "failed to compile test program" "$LINENO" 5 9138else 9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140/* end confdefs.h. */ 9141 9142#include <X11/Xlib.h> 9143#if STDC_HEADERS 9144# include <stdlib.h> 9145# include <stddef.h> 9146#endif 9147 main() 9148 { 9149 if (sizeof(wchar_t) <= 2) 9150 exit(1); 9151 exit(0); 9152 } 9153_ACEOF 9154if ac_fn_c_try_run "$LINENO"; then : 9155 ac_cv_small_wchar_t="no" 9156else 9157 ac_cv_small_wchar_t="yes" 9158fi 9159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9160 conftest.$ac_objext conftest.beam conftest.$ac_ext 9161fi 9162 9163fi 9164 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 9166$as_echo "$ac_cv_small_wchar_t" >&6; } 9167 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 9168 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 9169 9170 fi 9171 9172 fi 9173fi 9174 9175if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then 9176 as_fn_error $? "could not configure X" "$LINENO" 5 9177fi 9178 9179test "x$with_x" = xno -a "x$HAIKU" != "xyes" -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 9180 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 9182$as_echo_n "checking --enable-gui argument... " >&6; } 9183# Check whether --enable-gui was given. 9184if test "${enable_gui+set}" = set; then : 9185 enableval=$enable_gui; 9186else 9187 enable_gui="auto" 9188fi 9189 9190 9191enable_gui_canon=`echo "_$enable_gui" | \ 9192 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 9193 9194SKIP_GTK2=YES 9195SKIP_GTK3=YES 9196SKIP_GNOME=YES 9197SKIP_MOTIF=YES 9198SKIP_ATHENA=YES 9199SKIP_NEXTAW=YES 9200SKIP_PHOTON=YES 9201SKIP_HAIKU=YES 9202SKIP_CARBON=YES 9203GUITYPE=NONE 9204 9205if test "x$HAIKU" = "xyes"; then 9206 SKIP_HAIKU= 9207 case "$enable_gui_canon" in 9208 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9209$as_echo "no GUI support" >&6; } 9210 SKIP_HAIKU=YES ;; 9211 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9212$as_echo "yes - automatic GUI support" >&6; } ;; 9213 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 9214$as_echo "auto - automatic GUI support" >&6; } ;; 9215 haiku) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Haiku GUI support" >&5 9216$as_echo "Haiku GUI support" >&6; } ;; 9217 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9218$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9219 SKIP_HAIKU=YES ;; 9220 esac 9221elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 9222 SKIP_PHOTON= 9223 case "$enable_gui_canon" in 9224 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9225$as_echo "no GUI support" >&6; } 9226 SKIP_PHOTON=YES ;; 9227 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5 9228$as_echo "automatic GUI support" >&6; } 9229 gui_auto=yes ;; 9230 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 9231$as_echo "Photon GUI support" >&6; } ;; 9232 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9233$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9234 SKIP_PHOTON=YES ;; 9235 esac 9236 9237elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then 9238 SKIP_CARBON= 9239 case "$enable_gui_canon" in 9240 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9241$as_echo "no GUI support" >&6; } 9242 SKIP_CARBON=YES ;; 9243 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9244$as_echo "yes - automatic GUI support" >&6; } 9245 gui_auto=yes ;; 9246 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 9247$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 9248 SKIP_CARBON=YES ;; 9249 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 9250$as_echo "Carbon GUI support" >&6; } ;; 9251 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9252$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9253 SKIP_CARBON=YES ;; 9254 esac 9255 9256else 9257 9258 case "$enable_gui_canon" in 9259 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9260$as_echo "no GUI support" >&6; } ;; 9261 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 9262$as_echo "yes/auto - automatic GUI support" >&6; } 9263 gui_auto=yes 9264 SKIP_GTK2= 9265 SKIP_GNOME= 9266 SKIP_MOTIF= 9267 SKIP_ATHENA= 9268 SKIP_NEXTAW= 9269 SKIP_CARBON=;; 9270 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 9271$as_echo "GTK+ 2.x GUI support" >&6; } 9272 SKIP_GTK2=;; 9273 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 9274$as_echo "GNOME 2.x GUI support" >&6; } 9275 SKIP_GNOME= 9276 SKIP_GTK2=;; 9277 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 9278$as_echo "GTK+ 3.x GUI support" >&6; } 9279 SKIP_GTK3=;; 9280 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 9281$as_echo "Motif GUI support" >&6; } 9282 SKIP_MOTIF=;; 9283 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 9284$as_echo "Athena GUI support" >&6; } 9285 SKIP_ATHENA=;; 9286 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 9287$as_echo "neXtaw GUI support" >&6; } 9288 SKIP_NEXTAW=;; 9289 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9290$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 9291 esac 9292 9293fi 9294 9295if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 9296 -a "$enable_gui_canon" != "gnome2"; then 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 9298$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 9299 # Check whether --enable-gtk2-check was given. 9300if test "${enable_gtk2_check+set}" = set; then : 9301 enableval=$enable_gtk2_check; 9302else 9303 enable_gtk2_check="yes" 9304fi 9305 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 9307$as_echo "$enable_gtk2_check" >&6; } 9308 if test "x$enable_gtk2_check" = "xno"; then 9309 SKIP_GTK2=YES 9310 SKIP_GNOME=YES 9311 fi 9312fi 9313 9314if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 9316$as_echo_n "checking whether or not to look for GNOME... " >&6; } 9317 # Check whether --enable-gnome-check was given. 9318if test "${enable_gnome_check+set}" = set; then : 9319 enableval=$enable_gnome_check; 9320else 9321 enable_gnome_check="no" 9322fi 9323 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 9325$as_echo "$enable_gnome_check" >&6; } 9326 if test "x$enable_gnome_check" = "xno"; then 9327 SKIP_GNOME=YES 9328 fi 9329fi 9330 9331if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 9333$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 9334 # Check whether --enable-gtk3-check was given. 9335if test "${enable_gtk3_check+set}" = set; then : 9336 enableval=$enable_gtk3_check; 9337else 9338 enable_gtk3_check="yes" 9339fi 9340 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 9342$as_echo "$enable_gtk3_check" >&6; } 9343 if test "x$enable_gtk3_check" = "xno"; then 9344 SKIP_GTK3=YES 9345 fi 9346fi 9347 9348if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 9350$as_echo_n "checking whether or not to look for Motif... " >&6; } 9351 # Check whether --enable-motif-check was given. 9352if test "${enable_motif_check+set}" = set; then : 9353 enableval=$enable_motif_check; 9354else 9355 enable_motif_check="yes" 9356fi 9357 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 9359$as_echo "$enable_motif_check" >&6; } 9360 if test "x$enable_motif_check" = "xno"; then 9361 SKIP_MOTIF=YES 9362 fi 9363fi 9364 9365if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 9367$as_echo_n "checking whether or not to look for Athena... " >&6; } 9368 # Check whether --enable-athena-check was given. 9369if test "${enable_athena_check+set}" = set; then : 9370 enableval=$enable_athena_check; 9371else 9372 enable_athena_check="yes" 9373fi 9374 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 9376$as_echo "$enable_athena_check" >&6; } 9377 if test "x$enable_athena_check" = "xno"; then 9378 SKIP_ATHENA=YES 9379 fi 9380fi 9381 9382if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 9384$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 9385 # Check whether --enable-nextaw-check was given. 9386if test "${enable_nextaw_check+set}" = set; then : 9387 enableval=$enable_nextaw_check; 9388else 9389 enable_nextaw_check="yes" 9390fi 9391 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 9393$as_echo "$enable_nextaw_check" >&6; }; 9394 if test "x$enable_nextaw_check" = "xno"; then 9395 SKIP_NEXTAW=YES 9396 fi 9397fi 9398 9399if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 9401$as_echo_n "checking whether or not to look for Carbon... " >&6; } 9402 # Check whether --enable-carbon-check was given. 9403if test "${enable_carbon_check+set}" = set; then : 9404 enableval=$enable_carbon_check; 9405else 9406 enable_carbon_check="yes" 9407fi 9408 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 9410$as_echo "$enable_carbon_check" >&6; }; 9411 if test "x$enable_carbon_check" = "xno"; then 9412 SKIP_CARBON=YES 9413 fi 9414fi 9415 9416 9417if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 9419$as_echo_n "checking for Carbon GUI... " >&6; } 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9421$as_echo "yes" >&6; }; 9422 GUITYPE=CARBONGUI 9423 if test "$VIMNAME" = "vim"; then 9424 VIMNAME=Vim 9425 fi 9426 9427 if test "x$MACARCH" = "xboth"; then 9428 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 9429 else 9430 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 9431 fi 9432 9433 if test x$prefix = xNONE; then 9434 prefix=/Applications 9435 fi 9436 9437 datadir='${prefix}/Vim.app/Contents/Resources' 9438 9439 SKIP_GTK2=YES; 9440 SKIP_GNOME=YES; 9441 SKIP_MOTIF=YES; 9442 SKIP_ATHENA=YES; 9443 SKIP_NEXTAW=YES; 9444 SKIP_PHOTON=YES; 9445 SKIP_HAIKU=YES; 9446 SKIP_CARBON=YES 9447fi 9448 9449 9450 9451 9452 9453 9454 9455if test "X$PKG_CONFIG" = "X"; then 9456 if test -n "$ac_tool_prefix"; then 9457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9458set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9460$as_echo_n "checking for $ac_word... " >&6; } 9461if ${ac_cv_path_PKG_CONFIG+:} false; then : 9462 $as_echo_n "(cached) " >&6 9463else 9464 case $PKG_CONFIG in 9465 [\\/]* | ?:[\\/]*) 9466 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9467 ;; 9468 *) 9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9470for as_dir in $PATH 9471do 9472 IFS=$as_save_IFS 9473 test -z "$as_dir" && as_dir=. 9474 for ac_exec_ext in '' $ac_executable_extensions; do 9475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9476 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9478 break 2 9479 fi 9480done 9481 done 9482IFS=$as_save_IFS 9483 9484 ;; 9485esac 9486fi 9487PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9488if test -n "$PKG_CONFIG"; then 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9490$as_echo "$PKG_CONFIG" >&6; } 9491else 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9493$as_echo "no" >&6; } 9494fi 9495 9496 9497fi 9498if test -z "$ac_cv_path_PKG_CONFIG"; then 9499 ac_pt_PKG_CONFIG=$PKG_CONFIG 9500 # Extract the first word of "pkg-config", so it can be a program name with args. 9501set dummy pkg-config; ac_word=$2 9502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9503$as_echo_n "checking for $ac_word... " >&6; } 9504if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9505 $as_echo_n "(cached) " >&6 9506else 9507 case $ac_pt_PKG_CONFIG in 9508 [\\/]* | ?:[\\/]*) 9509 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9510 ;; 9511 *) 9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9513for as_dir in $PATH 9514do 9515 IFS=$as_save_IFS 9516 test -z "$as_dir" && as_dir=. 9517 for ac_exec_ext in '' $ac_executable_extensions; do 9518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9519 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9521 break 2 9522 fi 9523done 9524 done 9525IFS=$as_save_IFS 9526 9527 ;; 9528esac 9529fi 9530ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9531if test -n "$ac_pt_PKG_CONFIG"; then 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9533$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9534else 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9536$as_echo "no" >&6; } 9537fi 9538 9539 if test "x$ac_pt_PKG_CONFIG" = x; then 9540 PKG_CONFIG="no" 9541 else 9542 case $cross_compiling:$ac_tool_warned in 9543yes:) 9544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9546ac_tool_warned=yes ;; 9547esac 9548 PKG_CONFIG=$ac_pt_PKG_CONFIG 9549 fi 9550else 9551 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9552fi 9553 9554fi 9555 9556 9557if test -z "$SKIP_GTK2"; then 9558 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9560$as_echo_n "checking --disable-gtktest argument... " >&6; } 9561 # Check whether --enable-gtktest was given. 9562if test "${enable_gtktest+set}" = set; then : 9563 enableval=$enable_gtktest; 9564else 9565 enable_gtktest=yes 9566fi 9567 9568 if test "x$enable_gtktest" = "xyes" ; then 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9570$as_echo "gtk test enabled" >&6; } 9571 else 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9573$as_echo "gtk test disabled" >&6; } 9574 fi 9575 9576 if test "x$PKG_CONFIG" != "xno"; then 9577 9578 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9579 { 9580 no_gtk="" 9581 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9582 && $PKG_CONFIG --exists gtk+-2.0; then 9583 { 9584 min_gtk_version=2.2.0 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9586$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9587 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9588 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9589 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9590 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9591 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9592 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9593 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9594 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9595 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9596 } 9597 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9598 && $PKG_CONFIG --exists gtk+-3.0; then 9599 { 9600 min_gtk_version=2.2.0 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9602$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9603 9604 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9605 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9606 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9607 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9608 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9609 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9610 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9611 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9612 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9613 } 9614 else 9615 no_gtk=yes 9616 fi 9617 9618 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9619 { 9620 ac_save_CFLAGS="$CFLAGS" 9621 ac_save_LIBS="$LIBS" 9622 CFLAGS="$CFLAGS $GTK_CFLAGS" 9623 LIBS="$LIBS $GTK_LIBS" 9624 9625 rm -f conf.gtktest 9626 if test "$cross_compiling" = yes; then : 9627 echo $ac_n "cross compiling; assumed OK... $ac_c" 9628else 9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630/* end confdefs.h. */ 9631 9632#include <gtk/gtk.h> 9633#include <stdio.h> 9634#if STDC_HEADERS 9635# include <stdlib.h> 9636# include <stddef.h> 9637#endif 9638 9639int 9640main () 9641{ 9642int major, minor, micro; 9643char *tmp_version; 9644 9645system ("touch conf.gtktest"); 9646 9647/* HP/UX 9 (%@#!) writes to sscanf strings */ 9648tmp_version = g_strdup("$min_gtk_version"); 9649if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9650 printf("%s, bad version string\n", "$min_gtk_version"); 9651 exit(1); 9652 } 9653 9654if ((gtk_major_version > major) || 9655 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9656 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9657 (gtk_micro_version >= micro))) 9658{ 9659 return 0; 9660} 9661return 1; 9662} 9663 9664_ACEOF 9665if ac_fn_c_try_run "$LINENO"; then : 9666 9667else 9668 no_gtk=yes 9669fi 9670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9671 conftest.$ac_objext conftest.beam conftest.$ac_ext 9672fi 9673 9674 CFLAGS="$ac_save_CFLAGS" 9675 LIBS="$ac_save_LIBS" 9676 } 9677 fi 9678 if test "x$no_gtk" = x ; then 9679 if test "x$enable_gtktest" = "xyes"; then 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9681$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9682 else 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9684$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9685 fi 9686 GUI_LIB_LOC="$GTK_LIBDIR" 9687 GTK_LIBNAME="$GTK_LIBS" 9688 GUI_INC_LOC="$GTK_CFLAGS" 9689 else 9690 { 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9692$as_echo "no" >&6; } 9693 GTK_CFLAGS="" 9694 GTK_LIBS="" 9695 : 9696 if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then 9697 as_fn_error $? "could not configure GTK" "$LINENO" 5 9698 fi 9699 } 9700 fi 9701 } 9702 else 9703 GTK_CFLAGS="" 9704 GTK_LIBS="" 9705 : 9706 fi 9707 9708 9709 rm -f conf.gtktest 9710 9711 if test "x$GTK_CFLAGS" != "x"; then 9712 SKIP_GTK3=YES 9713 SKIP_ATHENA=YES 9714 SKIP_NEXTAW=YES 9715 SKIP_MOTIF=YES 9716 GUITYPE=GTK 9717 9718 fi 9719 fi 9720 if test "x$GUITYPE" = "xGTK"; then 9721 if test -z "$SKIP_GNOME"; then 9722 { 9723 9724 9725 9726 9727 9728 9729# Check whether --with-gnome-includes was given. 9730if test "${with_gnome_includes+set}" = set; then : 9731 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9732 9733fi 9734 9735 9736 9737# Check whether --with-gnome-libs was given. 9738if test "${with_gnome_libs+set}" = set; then : 9739 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9740 9741fi 9742 9743 9744 9745# Check whether --with-gnome was given. 9746if test "${with_gnome+set}" = set; then : 9747 withval=$with_gnome; if test x$withval = xyes; then 9748 want_gnome=yes 9749 have_gnome=yes 9750 else 9751 if test "x$withval" = xno; then 9752 want_gnome=no 9753 else 9754 want_gnome=yes 9755 LDFLAGS="$LDFLAGS -L$withval/lib" 9756 CFLAGS="$CFLAGS -I$withval/include" 9757 gnome_prefix=$withval/lib 9758 fi 9759 fi 9760else 9761 want_gnome=yes 9762fi 9763 9764 9765 if test "x$want_gnome" = xyes; then 9766 { 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9768$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9769 if $PKG_CONFIG --exists libgnomeui-2.0; then 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9771$as_echo "yes" >&6; } 9772 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9773 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9774 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9775 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9777$as_echo_n "checking for FreeBSD... " >&6; } 9778 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9780$as_echo "yes" >&6; } 9781 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9782 GNOME_LIBS="$GNOME_LIBS -pthread" 9783 else 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9785$as_echo "no" >&6; } 9786 fi 9787 have_gnome=yes 9788 else 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9790$as_echo "not found" >&6; } 9791 if test "x" = xfail; then 9792 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9793 fi 9794 fi 9795 } 9796 fi 9797 9798 if test "x$have_gnome" = xyes ; then 9799 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9800 9801 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9802 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9803 fi 9804 } 9805 fi 9806 fi 9807fi 9808 9809 9810if test -z "$SKIP_GTK3"; then 9811 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9813$as_echo_n "checking --disable-gtktest argument... " >&6; } 9814 # Check whether --enable-gtktest was given. 9815if test "${enable_gtktest+set}" = set; then : 9816 enableval=$enable_gtktest; 9817else 9818 enable_gtktest=yes 9819fi 9820 9821 if test "x$enable_gtktest" = "xyes" ; then 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9823$as_echo "gtk test enabled" >&6; } 9824 else 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9826$as_echo "gtk test disabled" >&6; } 9827 fi 9828 9829 if test "x$PKG_CONFIG" != "xno"; then 9830 9831 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9832 { 9833 no_gtk="" 9834 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9835 && $PKG_CONFIG --exists gtk+-2.0; then 9836 { 9837 min_gtk_version=3.0.0 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9839$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9840 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9841 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9842 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9843 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9844 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9845 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9846 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9847 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9848 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9849 } 9850 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9851 && $PKG_CONFIG --exists gtk+-3.0; then 9852 { 9853 min_gtk_version=3.0.0 9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9855$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9856 9857 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9858 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9859 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9860 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9861 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9862 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9863 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9864 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9865 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9866 } 9867 else 9868 no_gtk=yes 9869 fi 9870 9871 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9872 { 9873 ac_save_CFLAGS="$CFLAGS" 9874 ac_save_LIBS="$LIBS" 9875 CFLAGS="$CFLAGS $GTK_CFLAGS" 9876 LIBS="$LIBS $GTK_LIBS" 9877 9878 rm -f conf.gtktest 9879 if test "$cross_compiling" = yes; then : 9880 echo $ac_n "cross compiling; assumed OK... $ac_c" 9881else 9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9883/* end confdefs.h. */ 9884 9885#include <gtk/gtk.h> 9886#include <stdio.h> 9887#if STDC_HEADERS 9888# include <stdlib.h> 9889# include <stddef.h> 9890#endif 9891 9892int 9893main () 9894{ 9895int major, minor, micro; 9896char *tmp_version; 9897 9898system ("touch conf.gtktest"); 9899 9900/* HP/UX 9 (%@#!) writes to sscanf strings */ 9901tmp_version = g_strdup("$min_gtk_version"); 9902if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9903 printf("%s, bad version string\n", "$min_gtk_version"); 9904 exit(1); 9905 } 9906 9907if ((gtk_major_version > major) || 9908 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9909 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9910 (gtk_micro_version >= micro))) 9911{ 9912 return 0; 9913} 9914return 1; 9915} 9916 9917_ACEOF 9918if ac_fn_c_try_run "$LINENO"; then : 9919 9920else 9921 no_gtk=yes 9922fi 9923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9924 conftest.$ac_objext conftest.beam conftest.$ac_ext 9925fi 9926 9927 CFLAGS="$ac_save_CFLAGS" 9928 LIBS="$ac_save_LIBS" 9929 } 9930 fi 9931 if test "x$no_gtk" = x ; then 9932 if test "x$enable_gtktest" = "xyes"; then 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9934$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9935 else 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9937$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9938 fi 9939 GUI_LIB_LOC="$GTK_LIBDIR" 9940 GTK_LIBNAME="$GTK_LIBS" 9941 GUI_INC_LOC="$GTK_CFLAGS" 9942 else 9943 { 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9945$as_echo "no" >&6; } 9946 GTK_CFLAGS="" 9947 GTK_LIBS="" 9948 : 9949 if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then 9950 as_fn_error $? "could not configure GTK" "$LINENO" 5 9951 fi 9952 } 9953 fi 9954 } 9955 else 9956 GTK_CFLAGS="" 9957 GTK_LIBS="" 9958 : 9959 fi 9960 9961 9962 rm -f conf.gtktest 9963 9964 if test "x$GTK_CFLAGS" != "x"; then 9965 SKIP_GTK2=YES 9966 SKIP_GNOME=YES 9967 SKIP_ATHENA=YES 9968 SKIP_NEXTAW=YES 9969 SKIP_MOTIF=YES 9970 GUITYPE=GTK 9971 9972 $as_echo "#define USE_GTK3 1" >>confdefs.h 9973 9974 fi 9975 fi 9976fi 9977 9978if test "x$GUITYPE" = "xGTK"; then 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9980$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9981 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9982 if test "x$gdk_pixbuf_version" != x ; then 9983 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9984 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9985 if test "x$gdk_pixbuf_version_minor" != x -a \ 9986 $gdk_pixbuf_version_minor -ge 31 ; then 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9988$as_echo "OK." >&6; } 9989 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9990set dummy glib-compile-resources; ac_word=$2 9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9992$as_echo_n "checking for $ac_word... " >&6; } 9993if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9994 $as_echo_n "(cached) " >&6 9995else 9996 case $GLIB_COMPILE_RESOURCES in 9997 [\\/]* | ?:[\\/]*) 9998 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9999 ;; 10000 *) 10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10002for as_dir in $PATH 10003do 10004 IFS=$as_save_IFS 10005 test -z "$as_dir" && as_dir=. 10006 for ac_exec_ext in '' $ac_executable_extensions; do 10007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10008 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10010 break 2 10011 fi 10012done 10013 done 10014IFS=$as_save_IFS 10015 10016 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 10017 ;; 10018esac 10019fi 10020GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 10021if test -n "$GLIB_COMPILE_RESOURCES"; then 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 10023$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 10024else 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10026$as_echo "no" >&6; } 10027fi 10028 10029 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 10031$as_echo_n "checking glib-compile-resources... " >&6; } 10032 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 10033 GLIB_COMPILE_RESOURCES="" 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 10035$as_echo "cannot be found in PATH." >&6; } 10036 else 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 10038$as_echo "usable." >&6; } 10039 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 10040 10041 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 10042 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 10043 fi 10044 else 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 10046$as_echo "not usable." >&6; } 10047 fi 10048 else 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 10050$as_echo "cannot obtain from pkg_config." >&6; } 10051 fi 10052 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 10054$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 10055 # Check whether --enable-icon_cache_update was given. 10056if test "${enable_icon_cache_update+set}" = set; then : 10057 enableval=$enable_icon_cache_update; 10058else 10059 enable_icon_cache_update="yes" 10060fi 10061 10062 if test "$enable_icon_cache_update" = "yes"; then 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 10064$as_echo "not set" >&6; } 10065 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 10066set dummy gtk-update-icon-cache; ac_word=$2 10067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10068$as_echo_n "checking for $ac_word... " >&6; } 10069if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 10070 $as_echo_n "(cached) " >&6 10071else 10072 case $GTK_UPDATE_ICON_CACHE in 10073 [\\/]* | ?:[\\/]*) 10074 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 10075 ;; 10076 *) 10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10078for as_dir in $PATH 10079do 10080 IFS=$as_save_IFS 10081 test -z "$as_dir" && as_dir=. 10082 for ac_exec_ext in '' $ac_executable_extensions; do 10083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10084 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10086 break 2 10087 fi 10088done 10089 done 10090IFS=$as_save_IFS 10091 10092 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 10093 ;; 10094esac 10095fi 10096GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 10097if test -n "$GTK_UPDATE_ICON_CACHE"; then 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 10099$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 10100else 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10102$as_echo "no" >&6; } 10103fi 10104 10105 10106 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10108$as_echo "not found in PATH." >&6; } 10109 fi 10110 else 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10112$as_echo "update disabled" >&6; } 10113 fi 10114 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 10116$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 10117 # Check whether --enable-desktop_database_update was given. 10118if test "${enable_desktop_database_update+set}" = set; then : 10119 enableval=$enable_desktop_database_update; 10120else 10121 enable_desktop_database_update="yes" 10122fi 10123 10124 if test "$enable_desktop_database_update" = "yes"; then 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 10126$as_echo "not set" >&6; } 10127 # Extract the first word of "update-desktop-database", so it can be a program name with args. 10128set dummy update-desktop-database; ac_word=$2 10129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10130$as_echo_n "checking for $ac_word... " >&6; } 10131if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 case $UPDATE_DESKTOP_DATABASE in 10135 [\\/]* | ?:[\\/]*) 10136 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 10137 ;; 10138 *) 10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10140for as_dir in $PATH 10141do 10142 IFS=$as_save_IFS 10143 test -z "$as_dir" && as_dir=. 10144 for ac_exec_ext in '' $ac_executable_extensions; do 10145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10146 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 10147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10148 break 2 10149 fi 10150done 10151 done 10152IFS=$as_save_IFS 10153 10154 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 10155 ;; 10156esac 10157fi 10158UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 10159if test -n "$UPDATE_DESKTOP_DATABASE"; then 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 10161$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 10162else 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10164$as_echo "no" >&6; } 10165fi 10166 10167 10168 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10170$as_echo "not found in PATH." >&6; } 10171 fi 10172 else 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10174$as_echo "update disabled" >&6; } 10175 fi 10176fi 10177 10178 10179 10180 10181 10182 10183 10184if test -z "$SKIP_MOTIF"; then 10185 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" 10186 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 10187 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 10189$as_echo_n "checking for location of Motif GUI includes... " >&6; } 10190 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 10191 GUI_INC_LOC= 10192 for try in $gui_includes; do 10193 if test -f "$try/Xm/Xm.h"; then 10194 GUI_INC_LOC=$try 10195 fi 10196 done 10197 if test -n "$GUI_INC_LOC"; then 10198 if test "$GUI_INC_LOC" = /usr/include; then 10199 GUI_INC_LOC= 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10201$as_echo "in default path" >&6; } 10202 else 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 10204$as_echo "$GUI_INC_LOC" >&6; } 10205 fi 10206 else 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10208$as_echo "<not found>" >&6; } 10209 SKIP_MOTIF=YES 10210 fi 10211fi 10212 10213 10214if test -z "$SKIP_MOTIF"; then 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 10216$as_echo_n "checking --with-motif-lib argument... " >&6; } 10217 10218# Check whether --with-motif-lib was given. 10219if test "${with_motif_lib+set}" = set; then : 10220 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 10221fi 10222 10223 10224 if test -n "$MOTIF_LIBNAME"; then 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 10226$as_echo "$MOTIF_LIBNAME" >&6; } 10227 GUI_LIB_LOC= 10228 else 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10230$as_echo "no" >&6; } 10231 10232 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 10233 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 10235$as_echo_n "checking for location of Motif GUI libs... " >&6; } 10236 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" 10237 GUI_LIB_LOC= 10238 for try in $gui_libs; do 10239 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 10240 if test -f "$libtry"; then 10241 GUI_LIB_LOC=$try 10242 fi 10243 done 10244 done 10245 if test -n "$GUI_LIB_LOC"; then 10246 if test "$GUI_LIB_LOC" = /usr/lib \ 10247 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 10248 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 10249 GUI_LIB_LOC= 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10251$as_echo "in default path" >&6; } 10252 else 10253 if test -n "$GUI_LIB_LOC"; then 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 10255$as_echo "$GUI_LIB_LOC" >&6; } 10256 if test "`(uname) 2>/dev/null`" = SunOS && 10257 uname -r | grep '^5' >/dev/null; then 10258 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 10259 fi 10260 fi 10261 fi 10262 MOTIF_LIBNAME=-lXm 10263 else 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10265$as_echo "<not found>" >&6; } 10266 SKIP_MOTIF=YES 10267 fi 10268 fi 10269fi 10270 10271if test -z "$SKIP_MOTIF"; then 10272 SKIP_ATHENA=YES 10273 SKIP_NEXTAW=YES 10274 GUITYPE=MOTIF 10275 10276fi 10277 10278 10279GUI_X_LIBS= 10280 10281if test -z "$SKIP_ATHENA"; then 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 10283$as_echo_n "checking if Athena header files can be found... " >&6; } 10284 cflags_save=$CFLAGS 10285 CFLAGS="$CFLAGS $X_CFLAGS" 10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288 10289#include <X11/Intrinsic.h> 10290#include <X11/Xaw/Paned.h> 10291int 10292main () 10293{ 10294 10295 ; 10296 return 0; 10297} 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO"; then : 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10301$as_echo "yes" >&6; } 10302else 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10304$as_echo "no" >&6; }; SKIP_ATHENA=YES 10305fi 10306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10307 CFLAGS=$cflags_save 10308fi 10309 10310if test -z "$SKIP_ATHENA"; then 10311 GUITYPE=ATHENA 10312fi 10313 10314if test -z "$SKIP_NEXTAW"; then 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 10316$as_echo_n "checking if neXtaw header files can be found... " >&6; } 10317 cflags_save=$CFLAGS 10318 CFLAGS="$CFLAGS $X_CFLAGS" 10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10320/* end confdefs.h. */ 10321 10322#include <X11/Intrinsic.h> 10323#include <X11/neXtaw/Paned.h> 10324int 10325main () 10326{ 10327 10328 ; 10329 return 0; 10330} 10331_ACEOF 10332if ac_fn_c_try_compile "$LINENO"; then : 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10334$as_echo "yes" >&6; } 10335else 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10337$as_echo "no" >&6; }; SKIP_NEXTAW=YES 10338fi 10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10340 CFLAGS=$cflags_save 10341fi 10342 10343if test -z "$SKIP_NEXTAW"; then 10344 GUITYPE=NEXTAW 10345fi 10346 10347if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10348 if test -n "$GUI_INC_LOC"; then 10349 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 10350 fi 10351 if test -n "$GUI_LIB_LOC"; then 10352 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 10353 fi 10354 10355 ldflags_save=$LDFLAGS 10356 LDFLAGS="$X_LIBS $LDFLAGS" 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 10358$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 10359if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 10360 $as_echo_n "(cached) " >&6 10361else 10362 ac_check_lib_save_LIBS=$LIBS 10363LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10365/* end confdefs.h. */ 10366 10367/* Override any GCC internal prototype to avoid an error. 10368 Use char because int might match the return type of a GCC 10369 builtin and then its argument prototype would still apply. */ 10370#ifdef __cplusplus 10371extern "C" 10372#endif 10373char XShapeQueryExtension (); 10374int 10375main () 10376{ 10377return XShapeQueryExtension (); 10378 ; 10379 return 0; 10380} 10381_ACEOF 10382if ac_fn_c_try_link "$LINENO"; then : 10383 ac_cv_lib_Xext_XShapeQueryExtension=yes 10384else 10385 ac_cv_lib_Xext_XShapeQueryExtension=no 10386fi 10387rm -f core conftest.err conftest.$ac_objext \ 10388 conftest$ac_exeext conftest.$ac_ext 10389LIBS=$ac_check_lib_save_LIBS 10390fi 10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 10392$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 10393if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 10394 GUI_X_LIBS="-lXext" 10395fi 10396 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 10398$as_echo_n "checking for wslen in -lw... " >&6; } 10399if ${ac_cv_lib_w_wslen+:} false; then : 10400 $as_echo_n "(cached) " >&6 10401else 10402 ac_check_lib_save_LIBS=$LIBS 10403LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10404cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405/* end confdefs.h. */ 10406 10407/* Override any GCC internal prototype to avoid an error. 10408 Use char because int might match the return type of a GCC 10409 builtin and then its argument prototype would still apply. */ 10410#ifdef __cplusplus 10411extern "C" 10412#endif 10413char wslen (); 10414int 10415main () 10416{ 10417return wslen (); 10418 ; 10419 return 0; 10420} 10421_ACEOF 10422if ac_fn_c_try_link "$LINENO"; then : 10423 ac_cv_lib_w_wslen=yes 10424else 10425 ac_cv_lib_w_wslen=no 10426fi 10427rm -f core conftest.err conftest.$ac_objext \ 10428 conftest$ac_exeext conftest.$ac_ext 10429LIBS=$ac_check_lib_save_LIBS 10430fi 10431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 10432$as_echo "$ac_cv_lib_w_wslen" >&6; } 10433if test "x$ac_cv_lib_w_wslen" = xyes; then : 10434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 10435fi 10436 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 10438$as_echo_n "checking for dlsym in -ldl... " >&6; } 10439if ${ac_cv_lib_dl_dlsym+:} false; then : 10440 $as_echo_n "(cached) " >&6 10441else 10442 ac_check_lib_save_LIBS=$LIBS 10443LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445/* end confdefs.h. */ 10446 10447/* Override any GCC internal prototype to avoid an error. 10448 Use char because int might match the return type of a GCC 10449 builtin and then its argument prototype would still apply. */ 10450#ifdef __cplusplus 10451extern "C" 10452#endif 10453char dlsym (); 10454int 10455main () 10456{ 10457return dlsym (); 10458 ; 10459 return 0; 10460} 10461_ACEOF 10462if ac_fn_c_try_link "$LINENO"; then : 10463 ac_cv_lib_dl_dlsym=yes 10464else 10465 ac_cv_lib_dl_dlsym=no 10466fi 10467rm -f core conftest.err conftest.$ac_objext \ 10468 conftest$ac_exeext conftest.$ac_ext 10469LIBS=$ac_check_lib_save_LIBS 10470fi 10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 10472$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 10473if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 10474 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 10475fi 10476 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 10478$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 10479if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 10480 $as_echo_n "(cached) " >&6 10481else 10482 ac_check_lib_save_LIBS=$LIBS 10483LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10485/* end confdefs.h. */ 10486 10487/* Override any GCC internal prototype to avoid an error. 10488 Use char because int might match the return type of a GCC 10489 builtin and then its argument prototype would still apply. */ 10490#ifdef __cplusplus 10491extern "C" 10492#endif 10493char XmuCreateStippledPixmap (); 10494int 10495main () 10496{ 10497return XmuCreateStippledPixmap (); 10498 ; 10499 return 0; 10500} 10501_ACEOF 10502if ac_fn_c_try_link "$LINENO"; then : 10503 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 10504else 10505 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 10506fi 10507rm -f core conftest.err conftest.$ac_objext \ 10508 conftest$ac_exeext conftest.$ac_ext 10509LIBS=$ac_check_lib_save_LIBS 10510fi 10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 10512$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 10513if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 10514 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 10515fi 10516 10517 if test -z "$SKIP_MOTIF"; then 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 10519$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 10520if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 10521 $as_echo_n "(cached) " >&6 10522else 10523 ac_check_lib_save_LIBS=$LIBS 10524LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10526/* end confdefs.h. */ 10527 10528/* Override any GCC internal prototype to avoid an error. 10529 Use char because int might match the return type of a GCC 10530 builtin and then its argument prototype would still apply. */ 10531#ifdef __cplusplus 10532extern "C" 10533#endif 10534char XpEndJob (); 10535int 10536main () 10537{ 10538return XpEndJob (); 10539 ; 10540 return 0; 10541} 10542_ACEOF 10543if ac_fn_c_try_link "$LINENO"; then : 10544 ac_cv_lib_Xp_XpEndJob=yes 10545else 10546 ac_cv_lib_Xp_XpEndJob=no 10547fi 10548rm -f core conftest.err conftest.$ac_objext \ 10549 conftest$ac_exeext conftest.$ac_ext 10550LIBS=$ac_check_lib_save_LIBS 10551fi 10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 10553$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 10554if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 10555 GUI_X_LIBS="-lXp $GUI_X_LIBS" 10556fi 10557 10558 fi 10559 LDFLAGS=$ldflags_save 10560 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 10562$as_echo_n "checking for extra X11 defines... " >&6; } 10563 NARROW_PROTO= 10564 rm -fr conftestdir 10565 if mkdir conftestdir; then 10566 cd conftestdir 10567 cat > Imakefile <<'EOF' 10568acfindx: 10569 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 10570EOF 10571 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 10572 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 10573 fi 10574 cd .. 10575 rm -fr conftestdir 10576 fi 10577 if test -z "$NARROW_PROTO"; then 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10579$as_echo "no" >&6; } 10580 else 10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 10582$as_echo "$NARROW_PROTO" >&6; } 10583 fi 10584 10585fi 10586 10587if test "$enable_xsmp" = "yes"; then 10588 cppflags_save=$CPPFLAGS 10589 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10590 for ac_header in X11/SM/SMlib.h 10591do : 10592 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 10593if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 10594 cat >>confdefs.h <<_ACEOF 10595#define HAVE_X11_SM_SMLIB_H 1 10596_ACEOF 10597 10598fi 10599 10600done 10601 10602 CPPFLAGS=$cppflags_save 10603fi 10604 10605 10606if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 10607 cppflags_save=$CPPFLAGS 10608 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10609 for ac_header in X11/xpm.h X11/Sunkeysym.h 10610do : 10611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10612ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10613if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10614 cat >>confdefs.h <<_ACEOF 10615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10616_ACEOF 10617 10618fi 10619 10620done 10621 10622 10623 if test ! "$enable_xim" = "no"; then 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 10625$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10627/* end confdefs.h. */ 10628#include <X11/Xlib.h> 10629_ACEOF 10630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10631 $EGREP "XIMText" >/dev/null 2>&1; then : 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10633$as_echo "yes" >&6; } 10634else 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 10636$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 10637fi 10638rm -f conftest* 10639 10640 fi 10641 CPPFLAGS=$cppflags_save 10642 10643 if test "$enable_xim" = "auto" -a "x$GUITYPE" != "xNONE" ; then 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 10645$as_echo "X GUI selected; xim has been enabled" >&6; } 10646 enable_xim="yes" 10647 fi 10648fi 10649 10650if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10651 cppflags_save=$CPPFLAGS 10652 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 10654$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10656/* end confdefs.h. */ 10657 10658#include <X11/Intrinsic.h> 10659#include <X11/Xmu/Editres.h> 10660int 10661main () 10662{ 10663int i; i = 0; 10664 ; 10665 return 0; 10666} 10667_ACEOF 10668if ac_fn_c_try_compile "$LINENO"; then : 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10670$as_echo "yes" >&6; } 10671 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10672 10673else 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10675$as_echo "no" >&6; } 10676fi 10677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10678 CPPFLAGS=$cppflags_save 10679fi 10680 10681if test -z "$SKIP_MOTIF"; then 10682 cppflags_save=$CPPFLAGS 10683 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10684 if test "$zOSUnix" = "yes"; then 10685 xmheader="Xm/Xm.h" 10686 else 10687 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10688 Xm/UnhighlightT.h Xm/Notebook.h" 10689 fi 10690 for ac_header in $xmheader 10691do : 10692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10693ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10695 cat >>confdefs.h <<_ACEOF 10696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10697_ACEOF 10698 10699fi 10700 10701done 10702 10703 10704 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10706$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10708/* end confdefs.h. */ 10709#include <Xm/XpmP.h> 10710int 10711main () 10712{ 10713XpmAttributes_21 attr; 10714 ; 10715 return 0; 10716} 10717_ACEOF 10718if ac_fn_c_try_compile "$LINENO"; then : 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10720$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10721 10722else 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10724$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10725 10726 10727fi 10728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10729 else 10730 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10731 10732 fi 10733 CPPFLAGS=$cppflags_save 10734fi 10735 10736if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10738$as_echo "no GUI selected; xim has been disabled" >&6; } 10739 enable_xim="no" 10740fi 10741if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10743$as_echo "no GUI selected; fontset has been disabled" >&6; } 10744 enable_fontset="no" 10745fi 10746if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10748$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10749 enable_fontset="no" 10750fi 10751 10752if test -z "$SKIP_HAIKU"; then 10753 GUITYPE=HAIKUGUI 10754fi 10755 10756if test -z "$SKIP_PHOTON"; then 10757 GUITYPE=PHOTONGUI 10758fi 10759 10760 10761 10762 10763 10764 10765if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10766 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10767fi 10768 10769if test "$enable_xim" = "yes"; then 10770 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10771 10772fi 10773if test "$enable_fontset" = "yes"; then 10774 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10775 10776fi 10777 10778 10779 10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10781$as_echo_n "checking for /proc link to executable... " >&6; } 10782if test -L "/proc/self/exe"; then 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10784$as_echo "/proc/self/exe" >&6; } 10785 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10786 10787elif test -L "/proc/self/path/a.out"; then 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10789$as_echo "/proc/self/path/a.out" >&6; } 10790 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10791 10792elif test -L "/proc/curproc/file"; then 10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10794$as_echo "/proc/curproc/file" >&6; } 10795 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10796 10797else 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10799$as_echo "no" >&6; } 10800fi 10801 10802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10803$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10804case `uname` in 10805 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10806$as_echo "yes" >&6; } 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10808$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10809 if test "x$with_x" = "xno" ; then 10810 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10812$as_echo "yes" >&6; } 10813 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10814 10815 else 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10817$as_echo "no - using X11" >&6; } 10818 fi ;; 10819 10820 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10821$as_echo "no" >&6; };; 10822esac 10823 10824 10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10826$as_echo_n "checking whether toupper is broken... " >&6; } 10827if ${vim_cv_toupper_broken+:} false; then : 10828 $as_echo_n "(cached) " >&6 10829else 10830 10831 if test "$cross_compiling" = yes; then : 10832 10833 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10834 10835else 10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10837/* end confdefs.h. */ 10838 10839#include "confdefs.h" 10840#include <ctype.h> 10841#if STDC_HEADERS 10842# include <stdlib.h> 10843# include <stddef.h> 10844#endif 10845main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10846 10847_ACEOF 10848if ac_fn_c_try_run "$LINENO"; then : 10849 10850 vim_cv_toupper_broken=yes 10851 10852else 10853 10854 vim_cv_toupper_broken=no 10855 10856fi 10857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10858 conftest.$ac_objext conftest.beam conftest.$ac_ext 10859fi 10860 10861fi 10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10863$as_echo "$vim_cv_toupper_broken" >&6; } 10864 10865if test "x$vim_cv_toupper_broken" = "xyes" ; then 10866 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10867 10868fi 10869 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10871$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10873/* end confdefs.h. */ 10874#include <stdio.h> 10875int 10876main () 10877{ 10878printf("(" __DATE__ " " __TIME__ ")"); 10879 ; 10880 return 0; 10881} 10882_ACEOF 10883if ac_fn_c_try_compile "$LINENO"; then : 10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10885$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10886 10887else 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10889$as_echo "no" >&6; } 10890fi 10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10892 10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10894$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10896/* end confdefs.h. */ 10897#include <stdio.h> 10898int 10899main () 10900{ 10901int x __attribute__((unused)); 10902 ; 10903 return 0; 10904} 10905_ACEOF 10906if ac_fn_c_try_compile "$LINENO"; then : 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10908$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10909 10910else 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10912$as_echo "no" >&6; } 10913fi 10914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10915 10916ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10917if test "x$ac_cv_header_elf_h" = xyes; then : 10918 HAS_ELF=1 10919fi 10920 10921 10922if test "$HAS_ELF" = 1; then 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10924$as_echo_n "checking for main in -lelf... " >&6; } 10925if ${ac_cv_lib_elf_main+:} false; then : 10926 $as_echo_n "(cached) " >&6 10927else 10928 ac_check_lib_save_LIBS=$LIBS 10929LIBS="-lelf $LIBS" 10930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10931/* end confdefs.h. */ 10932 10933 10934int 10935main () 10936{ 10937return main (); 10938 ; 10939 return 0; 10940} 10941_ACEOF 10942if ac_fn_c_try_link "$LINENO"; then : 10943 ac_cv_lib_elf_main=yes 10944else 10945 ac_cv_lib_elf_main=no 10946fi 10947rm -f core conftest.err conftest.$ac_objext \ 10948 conftest$ac_exeext conftest.$ac_ext 10949LIBS=$ac_check_lib_save_LIBS 10950fi 10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10952$as_echo "$ac_cv_lib_elf_main" >&6; } 10953if test "x$ac_cv_lib_elf_main" = xyes; then : 10954 cat >>confdefs.h <<_ACEOF 10955#define HAVE_LIBELF 1 10956_ACEOF 10957 10958 LIBS="-lelf $LIBS" 10959 10960fi 10961 10962fi 10963 10964ac_header_dirent=no 10965for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10966 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10968$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10969if eval \${$as_ac_Header+:} false; then : 10970 $as_echo_n "(cached) " >&6 10971else 10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10973/* end confdefs.h. */ 10974#include <sys/types.h> 10975#include <$ac_hdr> 10976 10977int 10978main () 10979{ 10980if ((DIR *) 0) 10981return 0; 10982 ; 10983 return 0; 10984} 10985_ACEOF 10986if ac_fn_c_try_compile "$LINENO"; then : 10987 eval "$as_ac_Header=yes" 10988else 10989 eval "$as_ac_Header=no" 10990fi 10991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10992fi 10993eval ac_res=\$$as_ac_Header 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10995$as_echo "$ac_res" >&6; } 10996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10997 cat >>confdefs.h <<_ACEOF 10998#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10999_ACEOF 11000 11001ac_header_dirent=$ac_hdr; break 11002fi 11003 11004done 11005# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 11006if test $ac_header_dirent = dirent.h; then 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 11008$as_echo_n "checking for library containing opendir... " >&6; } 11009if ${ac_cv_search_opendir+:} false; then : 11010 $as_echo_n "(cached) " >&6 11011else 11012 ac_func_search_save_LIBS=$LIBS 11013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11014/* end confdefs.h. */ 11015 11016/* Override any GCC internal prototype to avoid an error. 11017 Use char because int might match the return type of a GCC 11018 builtin and then its argument prototype would still apply. */ 11019#ifdef __cplusplus 11020extern "C" 11021#endif 11022char opendir (); 11023int 11024main () 11025{ 11026return opendir (); 11027 ; 11028 return 0; 11029} 11030_ACEOF 11031for ac_lib in '' dir; do 11032 if test -z "$ac_lib"; then 11033 ac_res="none required" 11034 else 11035 ac_res=-l$ac_lib 11036 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11037 fi 11038 if ac_fn_c_try_link "$LINENO"; then : 11039 ac_cv_search_opendir=$ac_res 11040fi 11041rm -f core conftest.err conftest.$ac_objext \ 11042 conftest$ac_exeext 11043 if ${ac_cv_search_opendir+:} false; then : 11044 break 11045fi 11046done 11047if ${ac_cv_search_opendir+:} false; then : 11048 11049else 11050 ac_cv_search_opendir=no 11051fi 11052rm conftest.$ac_ext 11053LIBS=$ac_func_search_save_LIBS 11054fi 11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11056$as_echo "$ac_cv_search_opendir" >&6; } 11057ac_res=$ac_cv_search_opendir 11058if test "$ac_res" != no; then : 11059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11060 11061fi 11062 11063else 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 11065$as_echo_n "checking for library containing opendir... " >&6; } 11066if ${ac_cv_search_opendir+:} false; then : 11067 $as_echo_n "(cached) " >&6 11068else 11069 ac_func_search_save_LIBS=$LIBS 11070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11071/* end confdefs.h. */ 11072 11073/* Override any GCC internal prototype to avoid an error. 11074 Use char because int might match the return type of a GCC 11075 builtin and then its argument prototype would still apply. */ 11076#ifdef __cplusplus 11077extern "C" 11078#endif 11079char opendir (); 11080int 11081main () 11082{ 11083return opendir (); 11084 ; 11085 return 0; 11086} 11087_ACEOF 11088for ac_lib in '' x; do 11089 if test -z "$ac_lib"; then 11090 ac_res="none required" 11091 else 11092 ac_res=-l$ac_lib 11093 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11094 fi 11095 if ac_fn_c_try_link "$LINENO"; then : 11096 ac_cv_search_opendir=$ac_res 11097fi 11098rm -f core conftest.err conftest.$ac_objext \ 11099 conftest$ac_exeext 11100 if ${ac_cv_search_opendir+:} false; then : 11101 break 11102fi 11103done 11104if ${ac_cv_search_opendir+:} false; then : 11105 11106else 11107 ac_cv_search_opendir=no 11108fi 11109rm conftest.$ac_ext 11110LIBS=$ac_func_search_save_LIBS 11111fi 11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11113$as_echo "$ac_cv_search_opendir" >&6; } 11114ac_res=$ac_cv_search_opendir 11115if test "$ac_res" != no; then : 11116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11117 11118fi 11119 11120fi 11121 11122 11123if test $ac_cv_header_sys_wait_h = no; then 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 11125$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11127/* end confdefs.h. */ 11128#include <sys/wait.h> 11129int 11130main () 11131{ 11132union wait xx, yy; xx = yy 11133 ; 11134 return 0; 11135} 11136_ACEOF 11137if ac_fn_c_try_compile "$LINENO"; then : 11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11139$as_echo "yes" >&6; } 11140 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11141 11142 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 11143 11144else 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11146$as_echo "no" >&6; } 11147fi 11148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11149fi 11150 11151for ac_header in stdint.h stdlib.h string.h \ 11152 sys/select.h sys/utsname.h termcap.h fcntl.h \ 11153 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 11154 termio.h iconv.h inttypes.h langinfo.h math.h \ 11155 unistd.h stropts.h errno.h sys/resource.h \ 11156 sys/systeminfo.h locale.h sys/stream.h termios.h \ 11157 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 11158 utime.h sys/param.h sys/ptms.h libintl.h libgen.h \ 11159 util/debug.h util/msg18n.h frame.h sys/acl.h \ 11160 sys/access.h sys/sysinfo.h wchar.h wctype.h 11161do : 11162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11163ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11165 cat >>confdefs.h <<_ACEOF 11166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11167_ACEOF 11168 11169fi 11170 11171done 11172 11173 11174for ac_header in sys/ptem.h 11175do : 11176 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 11177# include <sys/stream.h> 11178#endif 11179" 11180if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 11181 cat >>confdefs.h <<_ACEOF 11182#define HAVE_SYS_PTEM_H 1 11183_ACEOF 11184 11185fi 11186 11187done 11188 11189 11190for ac_header in sys/sysctl.h 11191do : 11192 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 11193# include <sys/param.h> 11194#endif 11195" 11196if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 11197 cat >>confdefs.h <<_ACEOF 11198#define HAVE_SYS_SYSCTL_H 1 11199_ACEOF 11200 11201fi 11202 11203done 11204 11205 11206 11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 11208$as_echo_n "checking for pthread_np.h... " >&6; } 11209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11210/* end confdefs.h. */ 11211 11212#include <pthread.h> 11213#include <pthread_np.h> 11214int 11215main () 11216{ 11217int i; i = 0; 11218 ; 11219 return 0; 11220} 11221_ACEOF 11222if ac_fn_c_try_compile "$LINENO"; then : 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11224$as_echo "yes" >&6; } 11225 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 11226 11227else 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11229$as_echo "no" >&6; } 11230fi 11231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11232 11233for ac_header in strings.h 11234do : 11235 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 11236if test "x$ac_cv_header_strings_h" = xyes; then : 11237 cat >>confdefs.h <<_ACEOF 11238#define HAVE_STRINGS_H 1 11239_ACEOF 11240 11241fi 11242 11243done 11244 11245if test "x$MACOS_X" = "xyes"; then 11246 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11247 11248else 11249 11250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 11251$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 11252cppflags_save=$CPPFLAGS 11253CPPFLAGS="$CPPFLAGS $X_CFLAGS" 11254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255/* end confdefs.h. */ 11256 11257#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 11258# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 11259 /* but don't do it on AIX 5.1 (Uribarri) */ 11260#endif 11261#ifdef HAVE_XM_XM_H 11262# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 11263#endif 11264#ifdef HAVE_STRING_H 11265# include <string.h> 11266#endif 11267#if defined(HAVE_STRINGS_H) 11268# include <strings.h> 11269#endif 11270 11271int 11272main () 11273{ 11274int i; i = 0; 11275 ; 11276 return 0; 11277} 11278_ACEOF 11279if ac_fn_c_try_compile "$LINENO"; then : 11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11281$as_echo "yes" >&6; } 11282else 11283 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11284 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11286$as_echo "no" >&6; } 11287fi 11288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11289CPPFLAGS=$cppflags_save 11290fi 11291 11292if test $ac_cv_c_compiler_gnu = yes; then 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 11294$as_echo_n "checking whether $CC needs -traditional... " >&6; } 11295if ${ac_cv_prog_gcc_traditional+:} false; then : 11296 $as_echo_n "(cached) " >&6 11297else 11298 ac_pattern="Autoconf.*'x'" 11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11300/* end confdefs.h. */ 11301#include <sgtty.h> 11302Autoconf TIOCGETP 11303_ACEOF 11304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11305 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11306 ac_cv_prog_gcc_traditional=yes 11307else 11308 ac_cv_prog_gcc_traditional=no 11309fi 11310rm -f conftest* 11311 11312 11313 if test $ac_cv_prog_gcc_traditional = no; then 11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11315/* end confdefs.h. */ 11316#include <termio.h> 11317Autoconf TCGETA 11318_ACEOF 11319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11320 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11321 ac_cv_prog_gcc_traditional=yes 11322fi 11323rm -f conftest* 11324 11325 fi 11326fi 11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 11328$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 11329 if test $ac_cv_prog_gcc_traditional = yes; then 11330 CC="$CC -traditional" 11331 fi 11332fi 11333 11334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11335$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11336if ${ac_cv_c_const+:} false; then : 11337 $as_echo_n "(cached) " >&6 11338else 11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11340/* end confdefs.h. */ 11341 11342int 11343main () 11344{ 11345 11346#ifndef __cplusplus 11347 /* Ultrix mips cc rejects this sort of thing. */ 11348 typedef int charset[2]; 11349 const charset cs = { 0, 0 }; 11350 /* SunOS 4.1.1 cc rejects this. */ 11351 char const *const *pcpcc; 11352 char **ppc; 11353 /* NEC SVR4.0.2 mips cc rejects this. */ 11354 struct point {int x, y;}; 11355 static struct point const zero = {0,0}; 11356 /* AIX XL C 1.02.0.0 rejects this. 11357 It does not let you subtract one const X* pointer from another in 11358 an arm of an if-expression whose if-part is not a constant 11359 expression */ 11360 const char *g = "string"; 11361 pcpcc = &g + (g ? g-g : 0); 11362 /* HPUX 7.0 cc rejects these. */ 11363 ++pcpcc; 11364 ppc = (char**) pcpcc; 11365 pcpcc = (char const *const *) ppc; 11366 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11367 char tx; 11368 char *t = &tx; 11369 char const *s = 0 ? (char *) 0 : (char const *) 0; 11370 11371 *t++ = 0; 11372 if (s) return 0; 11373 } 11374 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11375 int x[] = {25, 17}; 11376 const int *foo = &x[0]; 11377 ++foo; 11378 } 11379 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11380 typedef const int *iptr; 11381 iptr p = 0; 11382 ++p; 11383 } 11384 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11385 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11386 struct s { int j; const int *ap[3]; } bx; 11387 struct s *b = &bx; b->j = 5; 11388 } 11389 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11390 const int foo = 10; 11391 if (!foo) return 0; 11392 } 11393 return !cs[0] && !zero.x; 11394#endif 11395 11396 ; 11397 return 0; 11398} 11399_ACEOF 11400if ac_fn_c_try_compile "$LINENO"; then : 11401 ac_cv_c_const=yes 11402else 11403 ac_cv_c_const=no 11404fi 11405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11406fi 11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11408$as_echo "$ac_cv_c_const" >&6; } 11409if test $ac_cv_c_const = no; then 11410 11411$as_echo "#define const /**/" >>confdefs.h 11412 11413fi 11414 11415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 11416$as_echo_n "checking for working volatile... " >&6; } 11417if ${ac_cv_c_volatile+:} false; then : 11418 $as_echo_n "(cached) " >&6 11419else 11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11421/* end confdefs.h. */ 11422 11423int 11424main () 11425{ 11426 11427volatile int x; 11428int * volatile y = (int *) 0; 11429return !x && !y; 11430 ; 11431 return 0; 11432} 11433_ACEOF 11434if ac_fn_c_try_compile "$LINENO"; then : 11435 ac_cv_c_volatile=yes 11436else 11437 ac_cv_c_volatile=no 11438fi 11439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11440fi 11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 11442$as_echo "$ac_cv_c_volatile" >&6; } 11443if test $ac_cv_c_volatile = no; then 11444 11445$as_echo "#define volatile /**/" >>confdefs.h 11446 11447fi 11448 11449ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11450if test "x$ac_cv_type_mode_t" = xyes; then : 11451 11452else 11453 11454cat >>confdefs.h <<_ACEOF 11455#define mode_t int 11456_ACEOF 11457 11458fi 11459 11460ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 11461if test "x$ac_cv_type_off_t" = xyes; then : 11462 11463else 11464 11465cat >>confdefs.h <<_ACEOF 11466#define off_t long int 11467_ACEOF 11468 11469fi 11470 11471ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11472if test "x$ac_cv_type_pid_t" = xyes; then : 11473 11474else 11475 11476cat >>confdefs.h <<_ACEOF 11477#define pid_t int 11478_ACEOF 11479 11480fi 11481 11482ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11483if test "x$ac_cv_type_size_t" = xyes; then : 11484 11485else 11486 11487cat >>confdefs.h <<_ACEOF 11488#define size_t unsigned int 11489_ACEOF 11490 11491fi 11492 11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11494$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11495if ${ac_cv_type_uid_t+:} false; then : 11496 $as_echo_n "(cached) " >&6 11497else 11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11499/* end confdefs.h. */ 11500#include <sys/types.h> 11501 11502_ACEOF 11503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11504 $EGREP "uid_t" >/dev/null 2>&1; then : 11505 ac_cv_type_uid_t=yes 11506else 11507 ac_cv_type_uid_t=no 11508fi 11509rm -f conftest* 11510 11511fi 11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11513$as_echo "$ac_cv_type_uid_t" >&6; } 11514if test $ac_cv_type_uid_t = no; then 11515 11516$as_echo "#define uid_t int" >>confdefs.h 11517 11518 11519$as_echo "#define gid_t int" >>confdefs.h 11520 11521fi 11522 11523ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 11524case $ac_cv_c_uint32_t in #( 11525 no|yes) ;; #( 11526 *) 11527 11528$as_echo "#define _UINT32_T 1" >>confdefs.h 11529 11530 11531cat >>confdefs.h <<_ACEOF 11532#define uint32_t $ac_cv_c_uint32_t 11533_ACEOF 11534;; 11535 esac 11536 11537 11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11539$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11540if ${ac_cv_header_time+:} false; then : 11541 $as_echo_n "(cached) " >&6 11542else 11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11544/* end confdefs.h. */ 11545#include <sys/types.h> 11546#include <sys/time.h> 11547#include <time.h> 11548 11549int 11550main () 11551{ 11552if ((struct tm *) 0) 11553return 0; 11554 ; 11555 return 0; 11556} 11557_ACEOF 11558if ac_fn_c_try_compile "$LINENO"; then : 11559 ac_cv_header_time=yes 11560else 11561 ac_cv_header_time=no 11562fi 11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11564fi 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11566$as_echo "$ac_cv_header_time" >&6; } 11567if test $ac_cv_header_time = yes; then 11568 11569$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11570 11571fi 11572 11573ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 11574if test "x$ac_cv_type_ino_t" = xyes; then : 11575 11576else 11577 11578cat >>confdefs.h <<_ACEOF 11579#define ino_t long 11580_ACEOF 11581 11582fi 11583 11584ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 11585if test "x$ac_cv_type_dev_t" = xyes; then : 11586 11587else 11588 11589cat >>confdefs.h <<_ACEOF 11590#define dev_t unsigned 11591_ACEOF 11592 11593fi 11594 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11596$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11597if ${ac_cv_c_bigendian+:} false; then : 11598 $as_echo_n "(cached) " >&6 11599else 11600 ac_cv_c_bigendian=unknown 11601 # See if we're dealing with a universal compiler. 11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11603/* end confdefs.h. */ 11604#ifndef __APPLE_CC__ 11605 not a universal capable compiler 11606 #endif 11607 typedef int dummy; 11608 11609_ACEOF 11610if ac_fn_c_try_compile "$LINENO"; then : 11611 11612 # Check for potential -arch flags. It is not universal unless 11613 # there are at least two -arch flags with different values. 11614 ac_arch= 11615 ac_prev= 11616 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11617 if test -n "$ac_prev"; then 11618 case $ac_word in 11619 i?86 | x86_64 | ppc | ppc64) 11620 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11621 ac_arch=$ac_word 11622 else 11623 ac_cv_c_bigendian=universal 11624 break 11625 fi 11626 ;; 11627 esac 11628 ac_prev= 11629 elif test "x$ac_word" = "x-arch"; then 11630 ac_prev=arch 11631 fi 11632 done 11633fi 11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11635 if test $ac_cv_c_bigendian = unknown; then 11636 # See if sys/param.h defines the BYTE_ORDER macro. 11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11638/* end confdefs.h. */ 11639#include <sys/types.h> 11640 #include <sys/param.h> 11641 11642int 11643main () 11644{ 11645#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11646 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11647 && LITTLE_ENDIAN) 11648 bogus endian macros 11649 #endif 11650 11651 ; 11652 return 0; 11653} 11654_ACEOF 11655if ac_fn_c_try_compile "$LINENO"; then : 11656 # It does; now see whether it defined to BIG_ENDIAN or not. 11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11658/* end confdefs.h. */ 11659#include <sys/types.h> 11660 #include <sys/param.h> 11661 11662int 11663main () 11664{ 11665#if BYTE_ORDER != BIG_ENDIAN 11666 not big endian 11667 #endif 11668 11669 ; 11670 return 0; 11671} 11672_ACEOF 11673if ac_fn_c_try_compile "$LINENO"; then : 11674 ac_cv_c_bigendian=yes 11675else 11676 ac_cv_c_bigendian=no 11677fi 11678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11679fi 11680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11681 fi 11682 if test $ac_cv_c_bigendian = unknown; then 11683 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11685/* end confdefs.h. */ 11686#include <limits.h> 11687 11688int 11689main () 11690{ 11691#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11692 bogus endian macros 11693 #endif 11694 11695 ; 11696 return 0; 11697} 11698_ACEOF 11699if ac_fn_c_try_compile "$LINENO"; then : 11700 # It does; now see whether it defined to _BIG_ENDIAN or not. 11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703#include <limits.h> 11704 11705int 11706main () 11707{ 11708#ifndef _BIG_ENDIAN 11709 not big endian 11710 #endif 11711 11712 ; 11713 return 0; 11714} 11715_ACEOF 11716if ac_fn_c_try_compile "$LINENO"; then : 11717 ac_cv_c_bigendian=yes 11718else 11719 ac_cv_c_bigendian=no 11720fi 11721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11722fi 11723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11724 fi 11725 if test $ac_cv_c_bigendian = unknown; then 11726 # Compile a test program. 11727 if test "$cross_compiling" = yes; then : 11728 # Try to guess by grepping values from an object file. 11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11730/* end confdefs.h. */ 11731short int ascii_mm[] = 11732 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11733 short int ascii_ii[] = 11734 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11735 int use_ascii (int i) { 11736 return ascii_mm[i] + ascii_ii[i]; 11737 } 11738 short int ebcdic_ii[] = 11739 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11740 short int ebcdic_mm[] = 11741 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11742 int use_ebcdic (int i) { 11743 return ebcdic_mm[i] + ebcdic_ii[i]; 11744 } 11745 extern int foo; 11746 11747int 11748main () 11749{ 11750return use_ascii (foo) == use_ebcdic (foo); 11751 ; 11752 return 0; 11753} 11754_ACEOF 11755if ac_fn_c_try_compile "$LINENO"; then : 11756 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11757 ac_cv_c_bigendian=yes 11758 fi 11759 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11760 if test "$ac_cv_c_bigendian" = unknown; then 11761 ac_cv_c_bigendian=no 11762 else 11763 # finding both strings is unlikely to happen, but who knows? 11764 ac_cv_c_bigendian=unknown 11765 fi 11766 fi 11767fi 11768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11769else 11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11771/* end confdefs.h. */ 11772$ac_includes_default 11773int 11774main () 11775{ 11776 11777 /* Are we little or big endian? From Harbison&Steele. */ 11778 union 11779 { 11780 long int l; 11781 char c[sizeof (long int)]; 11782 } u; 11783 u.l = 1; 11784 return u.c[sizeof (long int) - 1] == 1; 11785 11786 ; 11787 return 0; 11788} 11789_ACEOF 11790if ac_fn_c_try_run "$LINENO"; then : 11791 ac_cv_c_bigendian=no 11792else 11793 ac_cv_c_bigendian=yes 11794fi 11795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11796 conftest.$ac_objext conftest.beam conftest.$ac_ext 11797fi 11798 11799 fi 11800fi 11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11802$as_echo "$ac_cv_c_bigendian" >&6; } 11803 case $ac_cv_c_bigendian in #( 11804 yes) 11805 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11806;; #( 11807 no) 11808 ;; #( 11809 universal) 11810 11811$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11812 11813 ;; #( 11814 *) 11815 as_fn_error $? "unknown endianness 11816 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11817 esac 11818 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11820$as_echo_n "checking for inline... " >&6; } 11821if ${ac_cv_c_inline+:} false; then : 11822 $as_echo_n "(cached) " >&6 11823else 11824 ac_cv_c_inline=no 11825for ac_kw in inline __inline__ __inline; do 11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11827/* end confdefs.h. */ 11828#ifndef __cplusplus 11829typedef int foo_t; 11830static $ac_kw foo_t static_foo () {return 0; } 11831$ac_kw foo_t foo () {return 0; } 11832#endif 11833 11834_ACEOF 11835if ac_fn_c_try_compile "$LINENO"; then : 11836 ac_cv_c_inline=$ac_kw 11837fi 11838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11839 test "$ac_cv_c_inline" != no && break 11840done 11841 11842fi 11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11844$as_echo "$ac_cv_c_inline" >&6; } 11845 11846case $ac_cv_c_inline in 11847 inline | yes) ;; 11848 *) 11849 case $ac_cv_c_inline in 11850 no) ac_val=;; 11851 *) ac_val=$ac_cv_c_inline;; 11852 esac 11853 cat >>confdefs.h <<_ACEOF 11854#ifndef __cplusplus 11855#define inline $ac_val 11856#endif 11857_ACEOF 11858 ;; 11859esac 11860 11861 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11863$as_echo_n "checking for rlim_t... " >&6; } 11864if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11866$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11867else 11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11869/* end confdefs.h. */ 11870 11871#include <sys/types.h> 11872#if STDC_HEADERS 11873# include <stdlib.h> 11874# include <stddef.h> 11875#endif 11876#ifdef HAVE_SYS_RESOURCE_H 11877# include <sys/resource.h> 11878#endif 11879 11880_ACEOF 11881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11882 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11883 ac_cv_type_rlim_t=yes 11884else 11885 ac_cv_type_rlim_t=no 11886fi 11887rm -f conftest* 11888 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11890$as_echo "$ac_cv_type_rlim_t" >&6; } 11891fi 11892if test $ac_cv_type_rlim_t = no; then 11893 cat >> confdefs.h <<\EOF 11894#define rlim_t unsigned long 11895EOF 11896fi 11897 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11899$as_echo_n "checking for stack_t... " >&6; } 11900if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11902$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11903else 11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11905/* end confdefs.h. */ 11906 11907#include <sys/types.h> 11908#if STDC_HEADERS 11909# include <stdlib.h> 11910# include <stddef.h> 11911#endif 11912#include <signal.h> 11913 11914_ACEOF 11915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11916 $EGREP "stack_t" >/dev/null 2>&1; then : 11917 ac_cv_type_stack_t=yes 11918else 11919 ac_cv_type_stack_t=no 11920fi 11921rm -f conftest* 11922 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11924$as_echo "$ac_cv_type_stack_t" >&6; } 11925fi 11926if test $ac_cv_type_stack_t = no; then 11927 cat >> confdefs.h <<\EOF 11928#define stack_t struct sigaltstack 11929EOF 11930fi 11931 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11933$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11935/* end confdefs.h. */ 11936 11937#include <sys/types.h> 11938#if STDC_HEADERS 11939# include <stdlib.h> 11940# include <stddef.h> 11941#endif 11942#include <signal.h> 11943#include "confdefs.h" 11944 11945int 11946main () 11947{ 11948stack_t sigstk; sigstk.ss_base = 0; 11949 ; 11950 return 0; 11951} 11952_ACEOF 11953if ac_fn_c_try_compile "$LINENO"; then : 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11955$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11956 11957else 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11959$as_echo "no" >&6; } 11960fi 11961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11962 11963olibs="$LIBS" 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11965$as_echo_n "checking --with-tlib argument... " >&6; } 11966 11967# Check whether --with-tlib was given. 11968if test "${with_tlib+set}" = set; then : 11969 withval=$with_tlib; 11970fi 11971 11972if test -n "$with_tlib"; then 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11974$as_echo "$with_tlib" >&6; } 11975 LIBS="$LIBS -l$with_tlib" 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11977$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11979/* end confdefs.h. */ 11980 11981int 11982main () 11983{ 11984 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989if ac_fn_c_try_link "$LINENO"; then : 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11991$as_echo "OK" >&6; } 11992else 11993 as_fn_error $? "FAILED" "$LINENO" 5 11994fi 11995rm -f core conftest.err conftest.$ac_objext \ 11996 conftest$ac_exeext conftest.$ac_ext 11997 olibs="$LIBS" 11998else 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 12000$as_echo "empty: automatic terminal library selection" >&6; } 12001 case "`uname -s 2>/dev/null`" in 12002 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 12003 *) tlibs="tinfo ncurses termlib termcap curses";; 12004 esac 12005 for libname in $tlibs; do 12006 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 12008$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 12009if eval \${$as_ac_Lib+:} false; then : 12010 $as_echo_n "(cached) " >&6 12011else 12012 ac_check_lib_save_LIBS=$LIBS 12013LIBS="-l${libname} $LIBS" 12014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12015/* end confdefs.h. */ 12016 12017/* Override any GCC internal prototype to avoid an error. 12018 Use char because int might match the return type of a GCC 12019 builtin and then its argument prototype would still apply. */ 12020#ifdef __cplusplus 12021extern "C" 12022#endif 12023char tgetent (); 12024int 12025main () 12026{ 12027return tgetent (); 12028 ; 12029 return 0; 12030} 12031_ACEOF 12032if ac_fn_c_try_link "$LINENO"; then : 12033 eval "$as_ac_Lib=yes" 12034else 12035 eval "$as_ac_Lib=no" 12036fi 12037rm -f core conftest.err conftest.$ac_objext \ 12038 conftest$ac_exeext conftest.$ac_ext 12039LIBS=$ac_check_lib_save_LIBS 12040fi 12041eval ac_res=\$$as_ac_Lib 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12043$as_echo "$ac_res" >&6; } 12044if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12045 cat >>confdefs.h <<_ACEOF 12046#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 12047_ACEOF 12048 12049 LIBS="-l${libname} $LIBS" 12050 12051fi 12052 12053 if test "x$olibs" != "x$LIBS"; then 12054 if test "$cross_compiling" = yes; then : 12055 res="FAIL" 12056else 12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12058/* end confdefs.h. */ 12059 12060#ifdef HAVE_TERMCAP_H 12061# include <termcap.h> 12062#endif 12063#if STDC_HEADERS 12064# include <stdlib.h> 12065# include <stddef.h> 12066#endif 12067main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 12068_ACEOF 12069if ac_fn_c_try_run "$LINENO"; then : 12070 res="OK" 12071else 12072 res="FAIL" 12073fi 12074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12075 conftest.$ac_objext conftest.beam conftest.$ac_ext 12076fi 12077 12078 if test "$res" = "OK"; then 12079 break 12080 fi 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 12082$as_echo "$libname library is not usable" >&6; } 12083 LIBS="$olibs" 12084 fi 12085 done 12086 if test "x$olibs" = "x$LIBS"; then 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 12088$as_echo "no terminal library found" >&6; } 12089 fi 12090fi 12091 12092if test "x$olibs" = "x$LIBS"; then 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 12094$as_echo_n "checking for tgetent()... " >&6; } 12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12096/* end confdefs.h. */ 12097 12098int 12099main () 12100{ 12101char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 12102 ; 12103 return 0; 12104} 12105_ACEOF 12106if ac_fn_c_try_link "$LINENO"; then : 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12108$as_echo "yes" >&6; } 12109else 12110 as_fn_error $? "NOT FOUND! 12111 You need to install a terminal library; for example ncurses. 12112 Or specify the name of the library with --with-tlib." "$LINENO" 5 12113fi 12114rm -f core conftest.err conftest.$ac_objext \ 12115 conftest$ac_exeext conftest.$ac_ext 12116fi 12117 12118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 12119$as_echo_n "checking whether we talk terminfo... " >&6; } 12120if ${vim_cv_terminfo+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122else 12123 12124 if test "$cross_compiling" = yes; then : 12125 12126 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 12127 12128else 12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12130/* end confdefs.h. */ 12131 12132#include "confdefs.h" 12133#ifdef HAVE_TERMCAP_H 12134# include <termcap.h> 12135#endif 12136#ifdef HAVE_STRING_H 12137# include <string.h> 12138#endif 12139#if STDC_HEADERS 12140# include <stdlib.h> 12141# include <stddef.h> 12142#endif 12143main() 12144{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 12145 12146_ACEOF 12147if ac_fn_c_try_run "$LINENO"; then : 12148 12149 vim_cv_terminfo=no 12150 12151else 12152 12153 vim_cv_terminfo=yes 12154 12155fi 12156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12157 conftest.$ac_objext conftest.beam conftest.$ac_ext 12158fi 12159 12160 12161fi 12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 12163$as_echo "$vim_cv_terminfo" >&6; } 12164 12165if test "x$vim_cv_terminfo" = "xyes" ; then 12166 $as_echo "#define TERMINFO 1" >>confdefs.h 12167 12168fi 12169 12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 12171$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 12172if ${vim_cv_tgetent+:} false; then : 12173 $as_echo_n "(cached) " >&6 12174else 12175 12176 if test "$cross_compiling" = yes; then : 12177 12178 as_fn_error $? "failed to compile test program." "$LINENO" 5 12179 12180else 12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12182/* end confdefs.h. */ 12183 12184#include "confdefs.h" 12185#ifdef HAVE_TERMCAP_H 12186# include <termcap.h> 12187#endif 12188#if STDC_HEADERS 12189# include <stdlib.h> 12190# include <stddef.h> 12191#endif 12192main() 12193{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 12194 12195_ACEOF 12196if ac_fn_c_try_run "$LINENO"; then : 12197 12198 vim_cv_tgetent=zero 12199 12200else 12201 12202 vim_cv_tgetent=non-zero 12203 12204fi 12205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12206 conftest.$ac_objext conftest.beam conftest.$ac_ext 12207fi 12208 12209 12210fi 12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 12212$as_echo "$vim_cv_tgetent" >&6; } 12213 12214if test "x$vim_cv_tgetent" = "xzero" ; then 12215 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 12216 12217fi 12218 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 12220$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 12221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12222/* end confdefs.h. */ 12223 12224#ifdef HAVE_TERMCAP_H 12225# include <termcap.h> 12226#endif 12227 12228int 12229main () 12230{ 12231ospeed = 20000 12232 ; 12233 return 0; 12234} 12235_ACEOF 12236if ac_fn_c_try_link "$LINENO"; then : 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12238$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 12239 12240else 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12242$as_echo "no" >&6; } 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 12244$as_echo_n "checking whether ospeed can be extern... " >&6; } 12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12246/* end confdefs.h. */ 12247 12248#ifdef HAVE_TERMCAP_H 12249# include <termcap.h> 12250#endif 12251extern short ospeed; 12252 12253int 12254main () 12255{ 12256ospeed = 20000 12257 ; 12258 return 0; 12259} 12260_ACEOF 12261if ac_fn_c_try_link "$LINENO"; then : 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12263$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 12264 12265else 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12267$as_echo "no" >&6; } 12268fi 12269rm -f core conftest.err conftest.$ac_objext \ 12270 conftest$ac_exeext conftest.$ac_ext 12271 12272fi 12273rm -f core conftest.err conftest.$ac_objext \ 12274 conftest$ac_exeext conftest.$ac_ext 12275 12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 12277$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 12278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12279/* end confdefs.h. */ 12280 12281#ifdef HAVE_TERMCAP_H 12282# include <termcap.h> 12283#endif 12284 12285int 12286main () 12287{ 12288if (UP == 0 && BC == 0) PC = 1 12289 ; 12290 return 0; 12291} 12292_ACEOF 12293if ac_fn_c_try_link "$LINENO"; then : 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12295$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 12296 12297else 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12299$as_echo "no" >&6; } 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 12301$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12303/* end confdefs.h. */ 12304 12305#ifdef HAVE_TERMCAP_H 12306# include <termcap.h> 12307#endif 12308extern char *UP, *BC, PC; 12309 12310int 12311main () 12312{ 12313if (UP == 0 && BC == 0) PC = 1 12314 ; 12315 return 0; 12316} 12317_ACEOF 12318if ac_fn_c_try_link "$LINENO"; then : 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12320$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 12321 12322else 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12324$as_echo "no" >&6; } 12325fi 12326rm -f core conftest.err conftest.$ac_objext \ 12327 conftest$ac_exeext conftest.$ac_ext 12328 12329fi 12330rm -f core conftest.err conftest.$ac_objext \ 12331 conftest$ac_exeext conftest.$ac_ext 12332 12333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 12334$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 12335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12336/* end confdefs.h. */ 12337 12338#ifdef HAVE_TERMCAP_H 12339# include <termcap.h> 12340#endif 12341 12342int 12343main () 12344{ 12345extern int xx(); tputs("test", 1, (outfuntype)xx) 12346 ; 12347 return 0; 12348} 12349_ACEOF 12350if ac_fn_c_try_compile "$LINENO"; then : 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12352$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 12353 12354else 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12356$as_echo "no" >&6; } 12357fi 12358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12359 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 12361$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 12362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12363/* end confdefs.h. */ 12364 12365#include <sys/types.h> 12366#include <sys/time.h> 12367#include <sys/select.h> 12368int 12369main () 12370{ 12371 12372 ; 12373 return 0; 12374} 12375_ACEOF 12376if ac_fn_c_try_compile "$LINENO"; then : 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12378$as_echo "yes" >&6; } 12379 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 12380 12381else 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12383$as_echo "no" >&6; } 12384fi 12385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12386 12387 12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 12389$as_echo_n "checking for /dev/ptc... " >&6; } 12390if test -r /dev/ptc; then 12391 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 12392 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12394$as_echo "yes" >&6; } 12395else 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12397$as_echo "no" >&6; } 12398fi 12399 12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 12401$as_echo_n "checking for SVR4 ptys... " >&6; } 12402if test -c /dev/ptmx ; then 12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12404/* end confdefs.h. */ 12405 12406int 12407main () 12408{ 12409ptsname(0);grantpt(0);unlockpt(0); 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414if ac_fn_c_try_link "$LINENO"; then : 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12416$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 12417 12418else 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12420$as_echo "no" >&6; } 12421fi 12422rm -f core conftest.err conftest.$ac_objext \ 12423 conftest$ac_exeext conftest.$ac_ext 12424else 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12426$as_echo "no" >&6; } 12427fi 12428 12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 12430$as_echo_n "checking for ptyranges... " >&6; } 12431if test -d /dev/ptym ; then 12432 pdir='/dev/ptym' 12433else 12434 pdir='/dev' 12435fi 12436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12437/* end confdefs.h. */ 12438#ifdef M_UNIX 12439 yes; 12440#endif 12441 12442_ACEOF 12443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12444 $EGREP "yes" >/dev/null 2>&1; then : 12445 ptys=`echo /dev/ptyp??` 12446else 12447 ptys=`echo $pdir/pty??` 12448fi 12449rm -f conftest* 12450 12451if test "$ptys" != "$pdir/pty??" ; then 12452 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 12453 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 12454 cat >>confdefs.h <<_ACEOF 12455#define PTYRANGE0 "$p0" 12456_ACEOF 12457 12458 cat >>confdefs.h <<_ACEOF 12459#define PTYRANGE1 "$p1" 12460_ACEOF 12461 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 12463$as_echo "$p0 / $p1" >&6; } 12464else 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 12466$as_echo "don't know" >&6; } 12467fi 12468 12469 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12471$as_echo_n "checking return type of signal handlers... " >&6; } 12472if ${ac_cv_type_signal+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474else 12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12476/* end confdefs.h. */ 12477#include <sys/types.h> 12478#include <signal.h> 12479 12480int 12481main () 12482{ 12483return *(signal (0, 0)) (0) == 1; 12484 ; 12485 return 0; 12486} 12487_ACEOF 12488if ac_fn_c_try_compile "$LINENO"; then : 12489 ac_cv_type_signal=int 12490else 12491 ac_cv_type_signal=void 12492fi 12493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12494fi 12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12496$as_echo "$ac_cv_type_signal" >&6; } 12497 12498cat >>confdefs.h <<_ACEOF 12499#define RETSIGTYPE $ac_cv_type_signal 12500_ACEOF 12501 12502 12503 12504if test $ac_cv_type_signal = void; then 12505 $as_echo "#define SIGRETURN return" >>confdefs.h 12506 12507else 12508 $as_echo "#define SIGRETURN return 0" >>confdefs.h 12509 12510fi 12511 12512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 12513$as_echo_n "checking for struct sigcontext... " >&6; } 12514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515/* end confdefs.h. */ 12516 12517#include <signal.h> 12518test_sig() 12519{ 12520 struct sigcontext *scont; 12521 scont = (struct sigcontext *)0; 12522 return 1; 12523} 12524int 12525main () 12526{ 12527 12528 ; 12529 return 0; 12530} 12531_ACEOF 12532if ac_fn_c_try_compile "$LINENO"; then : 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12534$as_echo "yes" >&6; } 12535 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 12536 12537else 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12539$as_echo "no" >&6; } 12540fi 12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12542 12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 12544$as_echo_n "checking getcwd implementation is broken... " >&6; } 12545if ${vim_cv_getcwd_broken+:} false; then : 12546 $as_echo_n "(cached) " >&6 12547else 12548 12549 if test "$cross_compiling" = yes; then : 12550 12551 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 12552 12553else 12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12555/* end confdefs.h. */ 12556 12557#include "confdefs.h" 12558#ifdef HAVE_UNISTD_H 12559#include <unistd.h> 12560#endif 12561char *dagger[] = { "IFS=pwd", 0 }; 12562main() 12563{ 12564 char buffer[500]; 12565 extern char **environ; 12566 environ = dagger; 12567 return getcwd(buffer, 500) ? 0 : 1; 12568} 12569 12570_ACEOF 12571if ac_fn_c_try_run "$LINENO"; then : 12572 12573 vim_cv_getcwd_broken=no 12574 12575else 12576 12577 vim_cv_getcwd_broken=yes 12578 12579fi 12580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12581 conftest.$ac_objext conftest.beam conftest.$ac_ext 12582fi 12583 12584 12585fi 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12587$as_echo "$vim_cv_getcwd_broken" >&6; } 12588 12589if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12590 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12591 12592 for ac_func in getwd 12593do : 12594 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" 12595if test "x$ac_cv_func_getwd" = xyes; then : 12596 cat >>confdefs.h <<_ACEOF 12597#define HAVE_GETWD 1 12598_ACEOF 12599 12600fi 12601done 12602 12603fi 12604 12605for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \ 12606 getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \ 12607 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12608 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12609 sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \ 12610 strnicmp strpbrk strptime strtol tgetent towlower towupper iswupper \ 12611 tzset usleep utime utimes mblen ftruncate unsetenv posix_openpt 12612do : 12613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12614ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12615if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12616 cat >>confdefs.h <<_ACEOF 12617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12618_ACEOF 12619 12620fi 12621done 12622 12623for ac_header in sys/select.h sys/socket.h 12624do : 12625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12626ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12627if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12628 cat >>confdefs.h <<_ACEOF 12629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12630_ACEOF 12631 12632fi 12633 12634done 12635 12636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 12637$as_echo_n "checking types of arguments for select... " >&6; } 12638if ${ac_cv_func_select_args+:} false; then : 12639 $as_echo_n "(cached) " >&6 12640else 12641 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 12642 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 12643 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12645/* end confdefs.h. */ 12646$ac_includes_default 12647#ifdef HAVE_SYS_SELECT_H 12648# include <sys/select.h> 12649#endif 12650#ifdef HAVE_SYS_SOCKET_H 12651# include <sys/socket.h> 12652#endif 12653 12654int 12655main () 12656{ 12657extern int select ($ac_arg1, 12658 $ac_arg234, $ac_arg234, $ac_arg234, 12659 $ac_arg5); 12660 ; 12661 return 0; 12662} 12663_ACEOF 12664if ac_fn_c_try_compile "$LINENO"; then : 12665 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 12666fi 12667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12668 done 12669 done 12670done 12671# Provide a safe default value. 12672: "${ac_cv_func_select_args=int,int *,struct timeval *}" 12673 12674fi 12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 12676$as_echo "$ac_cv_func_select_args" >&6; } 12677ac_save_IFS=$IFS; IFS=',' 12678set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 12679IFS=$ac_save_IFS 12680shift 12681 12682cat >>confdefs.h <<_ACEOF 12683#define SELECT_TYPE_ARG1 $1 12684_ACEOF 12685 12686 12687cat >>confdefs.h <<_ACEOF 12688#define SELECT_TYPE_ARG234 ($2) 12689_ACEOF 12690 12691 12692cat >>confdefs.h <<_ACEOF 12693#define SELECT_TYPE_ARG5 ($3) 12694_ACEOF 12695 12696rm -f conftest* 12697 12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12699$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12700if ${ac_cv_sys_largefile_source+:} false; then : 12701 $as_echo_n "(cached) " >&6 12702else 12703 while :; do 12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12705/* end confdefs.h. */ 12706#include <sys/types.h> /* for off_t */ 12707 #include <stdio.h> 12708int 12709main () 12710{ 12711int (*fp) (FILE *, off_t, int) = fseeko; 12712 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12713 ; 12714 return 0; 12715} 12716_ACEOF 12717if ac_fn_c_try_link "$LINENO"; then : 12718 ac_cv_sys_largefile_source=no; break 12719fi 12720rm -f core conftest.err conftest.$ac_objext \ 12721 conftest$ac_exeext conftest.$ac_ext 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724#define _LARGEFILE_SOURCE 1 12725#include <sys/types.h> /* for off_t */ 12726 #include <stdio.h> 12727int 12728main () 12729{ 12730int (*fp) (FILE *, off_t, int) = fseeko; 12731 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12732 ; 12733 return 0; 12734} 12735_ACEOF 12736if ac_fn_c_try_link "$LINENO"; then : 12737 ac_cv_sys_largefile_source=1; break 12738fi 12739rm -f core conftest.err conftest.$ac_objext \ 12740 conftest$ac_exeext conftest.$ac_ext 12741 ac_cv_sys_largefile_source=unknown 12742 break 12743done 12744fi 12745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12746$as_echo "$ac_cv_sys_largefile_source" >&6; } 12747case $ac_cv_sys_largefile_source in #( 12748 no | unknown) ;; 12749 *) 12750cat >>confdefs.h <<_ACEOF 12751#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12752_ACEOF 12753;; 12754esac 12755rm -rf conftest* 12756 12757# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12758# in glibc 2.1.3, but that breaks too many other things. 12759# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12760if test $ac_cv_sys_largefile_source != unknown; then 12761 12762$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12763 12764fi 12765 12766 12767# Check whether --enable-largefile was given. 12768if test "${enable_largefile+set}" = set; then : 12769 enableval=$enable_largefile; 12770fi 12771 12772if test "$enable_largefile" != no; then 12773 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12775$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12776if ${ac_cv_sys_largefile_CC+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778else 12779 ac_cv_sys_largefile_CC=no 12780 if test "$GCC" != yes; then 12781 ac_save_CC=$CC 12782 while :; do 12783 # IRIX 6.2 and later do not support large files by default, 12784 # so use the C compiler's -n32 option if that helps. 12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12786/* end confdefs.h. */ 12787#include <sys/types.h> 12788 /* Check that off_t can represent 2**63 - 1 correctly. 12789 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12790 since some C++ compilers masquerading as C compilers 12791 incorrectly reject 9223372036854775807. */ 12792#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12794 && LARGE_OFF_T % 2147483647 == 1) 12795 ? 1 : -1]; 12796int 12797main () 12798{ 12799 12800 ; 12801 return 0; 12802} 12803_ACEOF 12804 if ac_fn_c_try_compile "$LINENO"; then : 12805 break 12806fi 12807rm -f core conftest.err conftest.$ac_objext 12808 CC="$CC -n32" 12809 if ac_fn_c_try_compile "$LINENO"; then : 12810 ac_cv_sys_largefile_CC=' -n32'; break 12811fi 12812rm -f core conftest.err conftest.$ac_objext 12813 break 12814 done 12815 CC=$ac_save_CC 12816 rm -f conftest.$ac_ext 12817 fi 12818fi 12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12820$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12821 if test "$ac_cv_sys_largefile_CC" != no; then 12822 CC=$CC$ac_cv_sys_largefile_CC 12823 fi 12824 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12826$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12827if ${ac_cv_sys_file_offset_bits+:} false; then : 12828 $as_echo_n "(cached) " >&6 12829else 12830 while :; do 12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12832/* end confdefs.h. */ 12833#include <sys/types.h> 12834 /* Check that off_t can represent 2**63 - 1 correctly. 12835 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12836 since some C++ compilers masquerading as C compilers 12837 incorrectly reject 9223372036854775807. */ 12838#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12840 && LARGE_OFF_T % 2147483647 == 1) 12841 ? 1 : -1]; 12842int 12843main () 12844{ 12845 12846 ; 12847 return 0; 12848} 12849_ACEOF 12850if ac_fn_c_try_compile "$LINENO"; then : 12851 ac_cv_sys_file_offset_bits=no; break 12852fi 12853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856#define _FILE_OFFSET_BITS 64 12857#include <sys/types.h> 12858 /* Check that off_t can represent 2**63 - 1 correctly. 12859 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12860 since some C++ compilers masquerading as C compilers 12861 incorrectly reject 9223372036854775807. */ 12862#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12864 && LARGE_OFF_T % 2147483647 == 1) 12865 ? 1 : -1]; 12866int 12867main () 12868{ 12869 12870 ; 12871 return 0; 12872} 12873_ACEOF 12874if ac_fn_c_try_compile "$LINENO"; then : 12875 ac_cv_sys_file_offset_bits=64; break 12876fi 12877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12878 ac_cv_sys_file_offset_bits=unknown 12879 break 12880done 12881fi 12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12883$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12884case $ac_cv_sys_file_offset_bits in #( 12885 no | unknown) ;; 12886 *) 12887cat >>confdefs.h <<_ACEOF 12888#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12889_ACEOF 12890;; 12891esac 12892rm -rf conftest* 12893 if test $ac_cv_sys_file_offset_bits = unknown; then 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12895$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12896if ${ac_cv_sys_large_files+:} false; then : 12897 $as_echo_n "(cached) " >&6 12898else 12899 while :; do 12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12901/* end confdefs.h. */ 12902#include <sys/types.h> 12903 /* Check that off_t can represent 2**63 - 1 correctly. 12904 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12905 since some C++ compilers masquerading as C compilers 12906 incorrectly reject 9223372036854775807. */ 12907#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12909 && LARGE_OFF_T % 2147483647 == 1) 12910 ? 1 : -1]; 12911int 12912main () 12913{ 12914 12915 ; 12916 return 0; 12917} 12918_ACEOF 12919if ac_fn_c_try_compile "$LINENO"; then : 12920 ac_cv_sys_large_files=no; break 12921fi 12922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12924/* end confdefs.h. */ 12925#define _LARGE_FILES 1 12926#include <sys/types.h> 12927 /* Check that off_t can represent 2**63 - 1 correctly. 12928 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12929 since some C++ compilers masquerading as C compilers 12930 incorrectly reject 9223372036854775807. */ 12931#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12933 && LARGE_OFF_T % 2147483647 == 1) 12934 ? 1 : -1]; 12935int 12936main () 12937{ 12938 12939 ; 12940 return 0; 12941} 12942_ACEOF 12943if ac_fn_c_try_compile "$LINENO"; then : 12944 ac_cv_sys_large_files=1; break 12945fi 12946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12947 ac_cv_sys_large_files=unknown 12948 break 12949done 12950fi 12951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12952$as_echo "$ac_cv_sys_large_files" >&6; } 12953case $ac_cv_sys_large_files in #( 12954 no | unknown) ;; 12955 *) 12956cat >>confdefs.h <<_ACEOF 12957#define _LARGE_FILES $ac_cv_sys_large_files 12958_ACEOF 12959;; 12960esac 12961rm -rf conftest* 12962 fi 12963 12964 12965fi 12966 12967 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5 12969$as_echo_n "checking --enable-canberra argument... " >&6; } 12970# Check whether --enable-canberra was given. 12971if test "${enable_canberra+set}" = set; then : 12972 enableval=$enable_canberra; 12973else 12974 enable_canberra="maybe" 12975fi 12976 12977 12978if test "$enable_canberra" = "maybe"; then 12979 if test "$features" = "big" -o "$features" = "huge"; then 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5 12981$as_echo "Defaulting to yes" >&6; } 12982 enable_canberra="yes" 12983 else 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5 12985$as_echo "Defaulting to no" >&6; } 12986 enable_canberra="no" 12987 fi 12988else 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5 12990$as_echo "$enable_canberra" >&6; } 12991fi 12992if test "$enable_canberra" = "yes"; then 12993 if test "x$PKG_CONFIG" != "xno"; then 12994 canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null` 12995 canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null` 12996 fi 12997 if test "x$canberra_lib" = "x"; then 12998 canberra_lib=-lcanberra 12999 canberra_cflags=-D_REENTRANT 13000 fi 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5 13002$as_echo_n "checking for libcanberra... " >&6; } 13003 ac_save_CFLAGS="$CFLAGS" 13004 ac_save_LIBS="$LIBS" 13005 CFLAGS="$CFLAGS $canberra_cflags" 13006 LIBS="$LIBS $canberra_lib" 13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13008/* end confdefs.h. */ 13009 13010 # include <canberra.h> 13011 13012int 13013main () 13014{ 13015 13016 ca_context *hello; 13017 ca_context_create(&hello); 13018 ; 13019 return 0; 13020} 13021_ACEOF 13022if ac_fn_c_try_link "$LINENO"; then : 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13024$as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h 13025 13026else 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5 13028$as_echo "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS" 13029fi 13030rm -f core conftest.err conftest.$ac_objext \ 13031 conftest$ac_exeext conftest.$ac_ext 13032fi 13033 13034 13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 13036$as_echo_n "checking for st_blksize... " >&6; } 13037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13038/* end confdefs.h. */ 13039#include <sys/types.h> 13040#include <sys/stat.h> 13041int 13042main () 13043{ 13044 struct stat st; 13045 int n; 13046 13047 stat("/", &st); 13048 n = (int)st.st_blksize; 13049 ; 13050 return 0; 13051} 13052_ACEOF 13053if ac_fn_c_try_compile "$LINENO"; then : 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13055$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 13056 13057else 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13059$as_echo "no" >&6; } 13060fi 13061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13062 13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 13064$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 13065if ${vim_cv_stat_ignores_slash+:} false; then : 13066 $as_echo_n "(cached) " >&6 13067else 13068 13069 if test "$cross_compiling" = yes; then : 13070 13071 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 13072 13073else 13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13075/* end confdefs.h. */ 13076 13077#include "confdefs.h" 13078#if STDC_HEADERS 13079# include <stdlib.h> 13080# include <stddef.h> 13081#endif 13082#include <sys/types.h> 13083#include <sys/stat.h> 13084main() {struct stat st; exit(stat("configure/", &st) != 0); } 13085 13086_ACEOF 13087if ac_fn_c_try_run "$LINENO"; then : 13088 13089 vim_cv_stat_ignores_slash=yes 13090 13091else 13092 13093 vim_cv_stat_ignores_slash=no 13094 13095fi 13096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13097 conftest.$ac_objext conftest.beam conftest.$ac_ext 13098fi 13099 13100 13101fi 13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 13103$as_echo "$vim_cv_stat_ignores_slash" >&6; } 13104 13105if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 13106 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 13107 13108fi 13109 13110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 13111$as_echo_n "checking for iconv_open()... " >&6; } 13112save_LIBS="$LIBS" 13113LIBS="$LIBS -liconv" 13114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13115/* end confdefs.h. */ 13116 13117#ifdef HAVE_ICONV_H 13118# include <iconv.h> 13119#endif 13120 13121int 13122main () 13123{ 13124iconv_open("fr", "to"); 13125 ; 13126 return 0; 13127} 13128_ACEOF 13129if ac_fn_c_try_link "$LINENO"; then : 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 13131$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13132 13133else 13134 LIBS="$save_LIBS" 13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13136/* end confdefs.h. */ 13137 13138#ifdef HAVE_ICONV_H 13139# include <iconv.h> 13140#endif 13141 13142int 13143main () 13144{ 13145iconv_open("fr", "to"); 13146 ; 13147 return 0; 13148} 13149_ACEOF 13150if ac_fn_c_try_link "$LINENO"; then : 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13152$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13153 13154else 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13156$as_echo "no" >&6; } 13157fi 13158rm -f core conftest.err conftest.$ac_objext \ 13159 conftest$ac_exeext conftest.$ac_ext 13160fi 13161rm -f core conftest.err conftest.$ac_objext \ 13162 conftest$ac_exeext conftest.$ac_ext 13163 13164 13165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 13166$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 13167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13168/* end confdefs.h. */ 13169 13170#ifdef HAVE_LANGINFO_H 13171# include <langinfo.h> 13172#endif 13173 13174int 13175main () 13176{ 13177char *cs = nl_langinfo(CODESET); 13178 ; 13179 return 0; 13180} 13181_ACEOF 13182if ac_fn_c_try_link "$LINENO"; then : 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13184$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 13185 13186else 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13188$as_echo "no" >&6; } 13189fi 13190rm -f core conftest.err conftest.$ac_objext \ 13191 conftest$ac_exeext conftest.$ac_ext 13192 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 13194$as_echo_n "checking for strtod in -lm... " >&6; } 13195if ${ac_cv_lib_m_strtod+:} false; then : 13196 $as_echo_n "(cached) " >&6 13197else 13198 ac_check_lib_save_LIBS=$LIBS 13199LIBS="-lm $LIBS" 13200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13201/* end confdefs.h. */ 13202 13203/* Override any GCC internal prototype to avoid an error. 13204 Use char because int might match the return type of a GCC 13205 builtin and then its argument prototype would still apply. */ 13206#ifdef __cplusplus 13207extern "C" 13208#endif 13209char strtod (); 13210int 13211main () 13212{ 13213return strtod (); 13214 ; 13215 return 0; 13216} 13217_ACEOF 13218if ac_fn_c_try_link "$LINENO"; then : 13219 ac_cv_lib_m_strtod=yes 13220else 13221 ac_cv_lib_m_strtod=no 13222fi 13223rm -f core conftest.err conftest.$ac_objext \ 13224 conftest$ac_exeext conftest.$ac_ext 13225LIBS=$ac_check_lib_save_LIBS 13226fi 13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 13228$as_echo "$ac_cv_lib_m_strtod" >&6; } 13229if test "x$ac_cv_lib_m_strtod" = xyes; then : 13230 cat >>confdefs.h <<_ACEOF 13231#define HAVE_LIBM 1 13232_ACEOF 13233 13234 LIBS="-lm $LIBS" 13235 13236fi 13237 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 13239$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 13240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242 13243#ifdef HAVE_MATH_H 13244# include <math.h> 13245#endif 13246#if STDC_HEADERS 13247# include <stdlib.h> 13248# include <stddef.h> 13249#endif 13250 13251int 13252main () 13253{ 13254char *s; double d; 13255 d = strtod("1.1", &s); 13256 d = fabs(1.11); 13257 d = ceil(1.11); 13258 d = floor(1.11); 13259 d = log10(1.11); 13260 d = pow(1.11, 2.22); 13261 d = sqrt(1.11); 13262 d = sin(1.11); 13263 d = cos(1.11); 13264 d = atan(1.11); 13265 13266 ; 13267 return 0; 13268} 13269_ACEOF 13270if ac_fn_c_try_link "$LINENO"; then : 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13272$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 13273 13274else 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13276$as_echo "no" >&6; } 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext conftest.$ac_ext 13280 13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 13282$as_echo_n "checking for isinf()... " >&6; } 13283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13284/* end confdefs.h. */ 13285 13286#ifdef HAVE_MATH_H 13287# include <math.h> 13288#endif 13289#if STDC_HEADERS 13290# include <stdlib.h> 13291# include <stddef.h> 13292#endif 13293 13294int 13295main () 13296{ 13297int r = isinf(1.11); 13298 ; 13299 return 0; 13300} 13301_ACEOF 13302if ac_fn_c_try_link "$LINENO"; then : 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13304$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 13305 13306else 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13308$as_echo "no" >&6; } 13309fi 13310rm -f core conftest.err conftest.$ac_objext \ 13311 conftest$ac_exeext conftest.$ac_ext 13312 13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 13314$as_echo_n "checking for isnan()... " >&6; } 13315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13316/* end confdefs.h. */ 13317 13318#ifdef HAVE_MATH_H 13319# include <math.h> 13320#endif 13321#if STDC_HEADERS 13322# include <stdlib.h> 13323# include <stddef.h> 13324#endif 13325 13326int 13327main () 13328{ 13329int r = isnan(1.11); 13330 ; 13331 return 0; 13332} 13333_ACEOF 13334if ac_fn_c_try_link "$LINENO"; then : 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13336$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 13337 13338else 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13340$as_echo "no" >&6; } 13341fi 13342rm -f core conftest.err conftest.$ac_objext \ 13343 conftest$ac_exeext conftest.$ac_ext 13344 13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 13346$as_echo_n "checking --disable-acl argument... " >&6; } 13347# Check whether --enable-acl was given. 13348if test "${enable_acl+set}" = set; then : 13349 enableval=$enable_acl; 13350else 13351 enable_acl="yes" 13352fi 13353 13354if test "$enable_acl" = "yes"; then 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13356$as_echo "no" >&6; } 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 13358$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 13359if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 13360 $as_echo_n "(cached) " >&6 13361else 13362 ac_check_lib_save_LIBS=$LIBS 13363LIBS="-lposix1e $LIBS" 13364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13365/* end confdefs.h. */ 13366 13367/* Override any GCC internal prototype to avoid an error. 13368 Use char because int might match the return type of a GCC 13369 builtin and then its argument prototype would still apply. */ 13370#ifdef __cplusplus 13371extern "C" 13372#endif 13373char acl_get_file (); 13374int 13375main () 13376{ 13377return acl_get_file (); 13378 ; 13379 return 0; 13380} 13381_ACEOF 13382if ac_fn_c_try_link "$LINENO"; then : 13383 ac_cv_lib_posix1e_acl_get_file=yes 13384else 13385 ac_cv_lib_posix1e_acl_get_file=no 13386fi 13387rm -f core conftest.err conftest.$ac_objext \ 13388 conftest$ac_exeext conftest.$ac_ext 13389LIBS=$ac_check_lib_save_LIBS 13390fi 13391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 13392$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 13393if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 13394 LIBS="$LIBS -lposix1e" 13395else 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 13397$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 13398if ${ac_cv_lib_acl_acl_get_file+:} false; then : 13399 $as_echo_n "(cached) " >&6 13400else 13401 ac_check_lib_save_LIBS=$LIBS 13402LIBS="-lacl $LIBS" 13403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13404/* end confdefs.h. */ 13405 13406/* Override any GCC internal prototype to avoid an error. 13407 Use char because int might match the return type of a GCC 13408 builtin and then its argument prototype would still apply. */ 13409#ifdef __cplusplus 13410extern "C" 13411#endif 13412char acl_get_file (); 13413int 13414main () 13415{ 13416return acl_get_file (); 13417 ; 13418 return 0; 13419} 13420_ACEOF 13421if ac_fn_c_try_link "$LINENO"; then : 13422 ac_cv_lib_acl_acl_get_file=yes 13423else 13424 ac_cv_lib_acl_acl_get_file=no 13425fi 13426rm -f core conftest.err conftest.$ac_objext \ 13427 conftest$ac_exeext conftest.$ac_ext 13428LIBS=$ac_check_lib_save_LIBS 13429fi 13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 13431$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 13432if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 13433 LIBS="$LIBS -lacl" 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 13435$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 13436if ${ac_cv_lib_attr_fgetxattr+:} false; then : 13437 $as_echo_n "(cached) " >&6 13438else 13439 ac_check_lib_save_LIBS=$LIBS 13440LIBS="-lattr $LIBS" 13441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13442/* end confdefs.h. */ 13443 13444/* Override any GCC internal prototype to avoid an error. 13445 Use char because int might match the return type of a GCC 13446 builtin and then its argument prototype would still apply. */ 13447#ifdef __cplusplus 13448extern "C" 13449#endif 13450char fgetxattr (); 13451int 13452main () 13453{ 13454return fgetxattr (); 13455 ; 13456 return 0; 13457} 13458_ACEOF 13459if ac_fn_c_try_link "$LINENO"; then : 13460 ac_cv_lib_attr_fgetxattr=yes 13461else 13462 ac_cv_lib_attr_fgetxattr=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext \ 13465 conftest$ac_exeext conftest.$ac_ext 13466LIBS=$ac_check_lib_save_LIBS 13467fi 13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 13469$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 13470if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 13471 LIBS="$LIBS -lattr" 13472fi 13473 13474fi 13475 13476fi 13477 13478 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 13480$as_echo_n "checking for POSIX ACL support... " >&6; } 13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13482/* end confdefs.h. */ 13483 13484#include <sys/types.h> 13485#ifdef HAVE_SYS_ACL_H 13486# include <sys/acl.h> 13487#endif 13488acl_t acl; 13489int 13490main () 13491{ 13492acl = acl_get_file("foo", ACL_TYPE_ACCESS); 13493 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 13494 acl_free(acl); 13495 ; 13496 return 0; 13497} 13498_ACEOF 13499if ac_fn_c_try_link "$LINENO"; then : 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13501$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 13502 13503else 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13505$as_echo "no" >&6; } 13506fi 13507rm -f core conftest.err conftest.$ac_objext \ 13508 conftest$ac_exeext conftest.$ac_ext 13509 13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 13511$as_echo_n "checking for acl_get in -lsec... " >&6; } 13512if ${ac_cv_lib_sec_acl_get+:} false; then : 13513 $as_echo_n "(cached) " >&6 13514else 13515 ac_check_lib_save_LIBS=$LIBS 13516LIBS="-lsec $LIBS" 13517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13518/* end confdefs.h. */ 13519 13520/* Override any GCC internal prototype to avoid an error. 13521 Use char because int might match the return type of a GCC 13522 builtin and then its argument prototype would still apply. */ 13523#ifdef __cplusplus 13524extern "C" 13525#endif 13526char acl_get (); 13527int 13528main () 13529{ 13530return acl_get (); 13531 ; 13532 return 0; 13533} 13534_ACEOF 13535if ac_fn_c_try_link "$LINENO"; then : 13536 ac_cv_lib_sec_acl_get=yes 13537else 13538 ac_cv_lib_sec_acl_get=no 13539fi 13540rm -f core conftest.err conftest.$ac_objext \ 13541 conftest$ac_exeext conftest.$ac_ext 13542LIBS=$ac_check_lib_save_LIBS 13543fi 13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 13545$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 13546if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 13547 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 13548 13549else 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 13551$as_echo_n "checking for Solaris ACL support... " >&6; } 13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13553/* end confdefs.h. */ 13554 13555#ifdef HAVE_SYS_ACL_H 13556# include <sys/acl.h> 13557#endif 13558int 13559main () 13560{ 13561acl("foo", GETACLCNT, 0, NULL); 13562 13563 ; 13564 return 0; 13565} 13566_ACEOF 13567if ac_fn_c_try_link "$LINENO"; then : 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13569$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 13570 13571else 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13573$as_echo "no" >&6; } 13574fi 13575rm -f core conftest.err conftest.$ac_objext \ 13576 conftest$ac_exeext conftest.$ac_ext 13577fi 13578 13579 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 13581$as_echo_n "checking for AIX ACL support... " >&6; } 13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583/* end confdefs.h. */ 13584 13585#if STDC_HEADERS 13586# include <stdlib.h> 13587# include <stddef.h> 13588#endif 13589#ifdef HAVE_SYS_ACL_H 13590# include <sys/acl.h> 13591#endif 13592#ifdef HAVE_SYS_ACCESS_H 13593# include <sys/access.h> 13594#endif 13595#define _ALL_SOURCE 13596 13597#include <sys/stat.h> 13598 13599int aclsize; 13600struct acl *aclent; 13601int 13602main () 13603{ 13604aclsize = sizeof(struct acl); 13605 aclent = (void *)malloc(aclsize); 13606 statacl("foo", STX_NORMAL, aclent, aclsize); 13607 13608 ; 13609 return 0; 13610} 13611_ACEOF 13612if ac_fn_c_try_link "$LINENO"; then : 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13614$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 13615 13616else 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13618$as_echo "no" >&6; } 13619fi 13620rm -f core conftest.err conftest.$ac_objext \ 13621 conftest$ac_exeext conftest.$ac_ext 13622else 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13624$as_echo "yes" >&6; } 13625fi 13626 13627if test "x$GTK_CFLAGS" != "x"; then 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 13629$as_echo_n "checking for pango_shape_full... " >&6; } 13630 ac_save_CFLAGS="$CFLAGS" 13631 ac_save_LIBS="$LIBS" 13632 CFLAGS="$CFLAGS $GTK_CFLAGS" 13633 LIBS="$LIBS $GTK_LIBS" 13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13635/* end confdefs.h. */ 13636#include <gtk/gtk.h> 13637int 13638main () 13639{ 13640 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 13641 ; 13642 return 0; 13643} 13644_ACEOF 13645if ac_fn_c_try_link "$LINENO"; then : 13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13647$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 13648 13649else 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13651$as_echo "no" >&6; } 13652fi 13653rm -f core conftest.err conftest.$ac_objext \ 13654 conftest$ac_exeext conftest.$ac_ext 13655 CFLAGS="$ac_save_CFLAGS" 13656 LIBS="$ac_save_LIBS" 13657fi 13658 13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 13660$as_echo_n "checking --disable-gpm argument... " >&6; } 13661# Check whether --enable-gpm was given. 13662if test "${enable_gpm+set}" = set; then : 13663 enableval=$enable_gpm; 13664else 13665 enable_gpm="yes" 13666fi 13667 13668 13669if test "$enable_gpm" = "yes"; then 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13671$as_echo "no" >&6; } 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 13673$as_echo_n "checking for gpm... " >&6; } 13674if ${vi_cv_have_gpm+:} false; then : 13675 $as_echo_n "(cached) " >&6 13676else 13677 olibs="$LIBS" ; LIBS="-lgpm" 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679/* end confdefs.h. */ 13680#include <gpm.h> 13681 #include <linux/keyboard.h> 13682int 13683main () 13684{ 13685Gpm_GetLibVersion(NULL); 13686 ; 13687 return 0; 13688} 13689_ACEOF 13690if ac_fn_c_try_link "$LINENO"; then : 13691 vi_cv_have_gpm=yes 13692else 13693 vi_cv_have_gpm=no 13694fi 13695rm -f core conftest.err conftest.$ac_objext \ 13696 conftest$ac_exeext conftest.$ac_ext 13697 LIBS="$olibs" 13698 13699fi 13700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 13701$as_echo "$vi_cv_have_gpm" >&6; } 13702 if test $vi_cv_have_gpm = yes; then 13703 LIBS="$LIBS -lgpm" 13704 $as_echo "#define HAVE_GPM 1" >>confdefs.h 13705 13706 fi 13707else 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13709$as_echo "yes" >&6; } 13710fi 13711 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 13713$as_echo_n "checking --disable-sysmouse argument... " >&6; } 13714# Check whether --enable-sysmouse was given. 13715if test "${enable_sysmouse+set}" = set; then : 13716 enableval=$enable_sysmouse; 13717else 13718 enable_sysmouse="yes" 13719fi 13720 13721 13722if test "$enable_sysmouse" = "yes"; then 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13724$as_echo "no" >&6; } 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13726$as_echo_n "checking for sysmouse... " >&6; } 13727if ${vi_cv_have_sysmouse+:} false; then : 13728 $as_echo_n "(cached) " >&6 13729else 13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13731/* end confdefs.h. */ 13732#include <sys/consio.h> 13733 #include <signal.h> 13734 #include <sys/fbio.h> 13735int 13736main () 13737{ 13738struct mouse_info mouse; 13739 mouse.operation = MOUSE_MODE; 13740 mouse.operation = MOUSE_SHOW; 13741 mouse.u.mode.mode = 0; 13742 mouse.u.mode.signal = SIGUSR2; 13743 ; 13744 return 0; 13745} 13746_ACEOF 13747if ac_fn_c_try_link "$LINENO"; then : 13748 vi_cv_have_sysmouse=yes 13749else 13750 vi_cv_have_sysmouse=no 13751fi 13752rm -f core conftest.err conftest.$ac_objext \ 13753 conftest$ac_exeext conftest.$ac_ext 13754 13755fi 13756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13757$as_echo "$vi_cv_have_sysmouse" >&6; } 13758 if test $vi_cv_have_sysmouse = yes; then 13759 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13760 13761 fi 13762else 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13764$as_echo "yes" >&6; } 13765fi 13766 13767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13768$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13770/* end confdefs.h. */ 13771#if HAVE_FCNTL_H 13772# include <fcntl.h> 13773#endif 13774int 13775main () 13776{ 13777 int flag = FD_CLOEXEC; 13778 ; 13779 return 0; 13780} 13781_ACEOF 13782if ac_fn_c_try_compile "$LINENO"; then : 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13784$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13785 13786else 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13788$as_echo "not usable" >&6; } 13789fi 13790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13791 13792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13793$as_echo_n "checking for rename... " >&6; } 13794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13795/* end confdefs.h. */ 13796#include <stdio.h> 13797int 13798main () 13799{ 13800rename("this", "that") 13801 ; 13802 return 0; 13803} 13804_ACEOF 13805if ac_fn_c_try_link "$LINENO"; then : 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13807$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13808 13809else 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13811$as_echo "no" >&6; } 13812fi 13813rm -f core conftest.err conftest.$ac_objext \ 13814 conftest$ac_exeext conftest.$ac_ext 13815 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5 13817$as_echo_n "checking for dirfd... " >&6; } 13818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13819/* end confdefs.h. */ 13820#include <sys/types.h> 13821#include <dirent.h> 13822int 13823main () 13824{ 13825DIR * dir=opendir("dirname"); dirfd(dir); 13826 ; 13827 return 0; 13828} 13829_ACEOF 13830if ac_fn_c_try_compile "$LINENO"; then : 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13832$as_echo "yes" >&6; }; $as_echo "#define HAVE_DIRFD 1" >>confdefs.h 13833 13834else 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13836$as_echo "not usable" >&6; } 13837fi 13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13839 13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 13841$as_echo_n "checking for flock... " >&6; } 13842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13843/* end confdefs.h. */ 13844#include <sys/file.h> 13845int 13846main () 13847{ 13848flock(10, LOCK_SH); 13849 ; 13850 return 0; 13851} 13852_ACEOF 13853if ac_fn_c_try_compile "$LINENO"; then : 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13855$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 13856 13857else 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13859$as_echo "not usable" >&6; } 13860fi 13861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13862 13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13864$as_echo_n "checking for sysctl... " >&6; } 13865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13866/* end confdefs.h. */ 13867#include <sys/types.h> 13868#include <sys/sysctl.h> 13869int 13870main () 13871{ 13872 int mib[2], r; 13873 size_t len; 13874 13875 mib[0] = CTL_HW; 13876 mib[1] = HW_USERMEM; 13877 len = sizeof(r); 13878 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13879 13880 ; 13881 return 0; 13882} 13883_ACEOF 13884if ac_fn_c_try_compile "$LINENO"; then : 13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13886$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13887 13888else 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13890$as_echo "not usable" >&6; } 13891fi 13892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13893 13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13895$as_echo_n "checking for sysinfo... " >&6; } 13896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13897/* end confdefs.h. */ 13898#include <sys/types.h> 13899#include <sys/sysinfo.h> 13900int 13901main () 13902{ 13903 struct sysinfo sinfo; 13904 int t; 13905 13906 (void)sysinfo(&sinfo); 13907 t = sinfo.totalram; 13908 13909 ; 13910 return 0; 13911} 13912_ACEOF 13913if ac_fn_c_try_compile "$LINENO"; then : 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13915$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13916 13917else 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13919$as_echo "not usable" >&6; } 13920fi 13921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13922 13923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13924$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13926/* end confdefs.h. */ 13927#include <sys/types.h> 13928#include <sys/sysinfo.h> 13929int 13930main () 13931{ 13932 struct sysinfo sinfo; 13933 sinfo.mem_unit = 1; 13934 13935 ; 13936 return 0; 13937} 13938_ACEOF 13939if ac_fn_c_try_compile "$LINENO"; then : 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13941$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13942 13943else 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13945$as_echo "no" >&6; } 13946fi 13947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13948 13949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13950$as_echo_n "checking for sysconf... " >&6; } 13951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13952/* end confdefs.h. */ 13953#include <unistd.h> 13954int 13955main () 13956{ 13957 (void)sysconf(_SC_PAGESIZE); 13958 (void)sysconf(_SC_PHYS_PAGES); 13959 13960 ; 13961 return 0; 13962} 13963_ACEOF 13964if ac_fn_c_try_compile "$LINENO"; then : 13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13966$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13967 13968else 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13970$as_echo "not usable" >&6; } 13971fi 13972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13973 13974# The cast to long int works around a bug in the HP C Compiler 13975# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13976# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13977# This bug is HP SR number 8606223364. 13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13979$as_echo_n "checking size of int... " >&6; } 13980if ${ac_cv_sizeof_int+:} false; then : 13981 $as_echo_n "(cached) " >&6 13982else 13983 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13984 13985else 13986 if test "$ac_cv_type_int" = yes; then 13987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13989as_fn_error 77 "cannot compute sizeof (int) 13990See \`config.log' for more details" "$LINENO" 5; } 13991 else 13992 ac_cv_sizeof_int=0 13993 fi 13994fi 13995 13996fi 13997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13998$as_echo "$ac_cv_sizeof_int" >&6; } 13999 14000 14001 14002cat >>confdefs.h <<_ACEOF 14003#define SIZEOF_INT $ac_cv_sizeof_int 14004_ACEOF 14005 14006 14007# The cast to long int works around a bug in the HP C Compiler 14008# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14009# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14010# This bug is HP SR number 8606223364. 14011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14012$as_echo_n "checking size of long... " >&6; } 14013if ${ac_cv_sizeof_long+:} false; then : 14014 $as_echo_n "(cached) " >&6 14015else 14016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14017 14018else 14019 if test "$ac_cv_type_long" = yes; then 14020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14022as_fn_error 77 "cannot compute sizeof (long) 14023See \`config.log' for more details" "$LINENO" 5; } 14024 else 14025 ac_cv_sizeof_long=0 14026 fi 14027fi 14028 14029fi 14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14031$as_echo "$ac_cv_sizeof_long" >&6; } 14032 14033 14034 14035cat >>confdefs.h <<_ACEOF 14036#define SIZEOF_LONG $ac_cv_sizeof_long 14037_ACEOF 14038 14039 14040# The cast to long int works around a bug in the HP C Compiler 14041# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14042# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14043# This bug is HP SR number 8606223364. 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14045$as_echo_n "checking size of time_t... " >&6; } 14046if ${ac_cv_sizeof_time_t+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 14050 14051else 14052 if test "$ac_cv_type_time_t" = yes; then 14053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14055as_fn_error 77 "cannot compute sizeof (time_t) 14056See \`config.log' for more details" "$LINENO" 5; } 14057 else 14058 ac_cv_sizeof_time_t=0 14059 fi 14060fi 14061 14062fi 14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14064$as_echo "$ac_cv_sizeof_time_t" >&6; } 14065 14066 14067 14068cat >>confdefs.h <<_ACEOF 14069#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14070_ACEOF 14071 14072 14073# The cast to long int works around a bug in the HP C Compiler 14074# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14075# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14076# This bug is HP SR number 8606223364. 14077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 14078$as_echo_n "checking size of off_t... " >&6; } 14079if ${ac_cv_sizeof_off_t+:} false; then : 14080 $as_echo_n "(cached) " >&6 14081else 14082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 14083 14084else 14085 if test "$ac_cv_type_off_t" = yes; then 14086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14088as_fn_error 77 "cannot compute sizeof (off_t) 14089See \`config.log' for more details" "$LINENO" 5; } 14090 else 14091 ac_cv_sizeof_off_t=0 14092 fi 14093fi 14094 14095fi 14096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 14097$as_echo "$ac_cv_sizeof_off_t" >&6; } 14098 14099 14100 14101cat >>confdefs.h <<_ACEOF 14102#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 14103_ACEOF 14104 14105 14106 14107cat >>confdefs.h <<_ACEOF 14108#define VIM_SIZEOF_INT $ac_cv_sizeof_int 14109_ACEOF 14110 14111cat >>confdefs.h <<_ACEOF 14112#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 14113_ACEOF 14114 14115 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 14117$as_echo_n "checking uint32_t is 32 bits... " >&6; } 14118if test "$cross_compiling" = yes; then : 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 14120$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 14121else 14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14123/* end confdefs.h. */ 14124 14125#ifdef HAVE_STDINT_H 14126# include <stdint.h> 14127#endif 14128#ifdef HAVE_INTTYPES_H 14129# include <inttypes.h> 14130#endif 14131main() { 14132 uint32_t nr1 = (uint32_t)-1; 14133 uint32_t nr2 = (uint32_t)0xffffffffUL; 14134 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 14135 exit(0); 14136} 14137_ACEOF 14138if ac_fn_c_try_run "$LINENO"; then : 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14140$as_echo "ok" >&6; } 14141else 14142 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 14143fi 14144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14145 conftest.$ac_objext conftest.beam conftest.$ac_ext 14146fi 14147 14148 14149 14150bcopy_test_prog=' 14151#include "confdefs.h" 14152#ifdef HAVE_STRING_H 14153# include <string.h> 14154#endif 14155#if STDC_HEADERS 14156# include <stdlib.h> 14157# include <stddef.h> 14158#endif 14159main() { 14160 char buf[10]; 14161 strcpy(buf, "abcdefghi"); 14162 mch_memmove(buf, buf + 2, 3); 14163 if (strncmp(buf, "ababcf", 6)) 14164 exit(1); 14165 strcpy(buf, "abcdefghi"); 14166 mch_memmove(buf + 2, buf, 3); 14167 if (strncmp(buf, "cdedef", 6)) 14168 exit(1); 14169 exit(0); /* libc version works properly. */ 14170}' 14171 14172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 14173$as_echo_n "checking whether memmove handles overlaps... " >&6; } 14174if ${vim_cv_memmove_handles_overlap+:} false; then : 14175 $as_echo_n "(cached) " >&6 14176else 14177 14178 if test "$cross_compiling" = yes; then : 14179 14180 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 14181 14182else 14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14184/* end confdefs.h. */ 14185#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 14186_ACEOF 14187if ac_fn_c_try_run "$LINENO"; then : 14188 14189 vim_cv_memmove_handles_overlap=yes 14190 14191else 14192 14193 vim_cv_memmove_handles_overlap=no 14194 14195fi 14196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14197 conftest.$ac_objext conftest.beam conftest.$ac_ext 14198fi 14199 14200 14201fi 14202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 14203$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 14204 14205if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 14206 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 14207 14208else 14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 14210$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 14211if ${vim_cv_bcopy_handles_overlap+:} false; then : 14212 $as_echo_n "(cached) " >&6 14213else 14214 14215 if test "$cross_compiling" = yes; then : 14216 14217 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 14218 14219else 14220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14221/* end confdefs.h. */ 14222#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 14223_ACEOF 14224if ac_fn_c_try_run "$LINENO"; then : 14225 14226 vim_cv_bcopy_handles_overlap=yes 14227 14228else 14229 14230 vim_cv_bcopy_handles_overlap=no 14231 14232fi 14233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14234 conftest.$ac_objext conftest.beam conftest.$ac_ext 14235fi 14236 14237 14238fi 14239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 14240$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 14241 14242 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 14243 $as_echo "#define USEBCOPY 1" >>confdefs.h 14244 14245 else 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 14247$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 14248if ${vim_cv_memcpy_handles_overlap+:} false; then : 14249 $as_echo_n "(cached) " >&6 14250else 14251 14252 if test "$cross_compiling" = yes; then : 14253 14254 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 14255 14256else 14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14258/* end confdefs.h. */ 14259#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 14260_ACEOF 14261if ac_fn_c_try_run "$LINENO"; then : 14262 14263 vim_cv_memcpy_handles_overlap=yes 14264 14265else 14266 14267 vim_cv_memcpy_handles_overlap=no 14268 14269fi 14270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14271 conftest.$ac_objext conftest.beam conftest.$ac_ext 14272fi 14273 14274 14275fi 14276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 14277$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 14278 14279 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 14280 $as_echo "#define USEMEMCPY 1" >>confdefs.h 14281 14282 fi 14283 fi 14284fi 14285 14286 14287if test "x$with_x" = "xyes"; then 14288 cflags_save=$CFLAGS 14289 libs_save=$LIBS 14290 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 14291 CFLAGS="$CFLAGS $X_CFLAGS" 14292 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 14294$as_echo_n "checking whether X_LOCALE needed... " >&6; } 14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14296/* end confdefs.h. */ 14297#include <X11/Xlocale.h> 14298int 14299main () 14300{ 14301 14302 ; 14303 return 0; 14304} 14305_ACEOF 14306if ac_fn_c_try_compile "$LINENO"; then : 14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14308/* end confdefs.h. */ 14309 14310/* Override any GCC internal prototype to avoid an error. 14311 Use char because int might match the return type of a GCC 14312 builtin and then its argument prototype would still apply. */ 14313#ifdef __cplusplus 14314extern "C" 14315#endif 14316char _Xsetlocale (); 14317int 14318main () 14319{ 14320return _Xsetlocale (); 14321 ; 14322 return 0; 14323} 14324_ACEOF 14325if ac_fn_c_try_link "$LINENO"; then : 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14327$as_echo "yes" >&6; } 14328 $as_echo "#define X_LOCALE 1" >>confdefs.h 14329 14330else 14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14332$as_echo "no" >&6; } 14333fi 14334rm -f core conftest.err conftest.$ac_objext \ 14335 conftest$ac_exeext conftest.$ac_ext 14336else 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14338$as_echo "no" >&6; } 14339fi 14340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14341 14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 14343$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14345/* end confdefs.h. */ 14346 14347/* Override any GCC internal prototype to avoid an error. 14348 Use char because int might match the return type of a GCC 14349 builtin and then its argument prototype would still apply. */ 14350#ifdef __cplusplus 14351extern "C" 14352#endif 14353char Xutf8SetWMProperties (); 14354int 14355main () 14356{ 14357return Xutf8SetWMProperties (); 14358 ; 14359 return 0; 14360} 14361_ACEOF 14362if ac_fn_c_try_link "$LINENO"; then : 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14364$as_echo "yes" >&6; } 14365 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 14366 14367else 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14369$as_echo "no" >&6; } 14370fi 14371rm -f core conftest.err conftest.$ac_objext \ 14372 conftest$ac_exeext conftest.$ac_ext 14373 14374 CFLAGS=$cflags_save 14375 LIBS=$libs_save 14376fi 14377 14378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 14379$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 14380if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 14381 $as_echo_n "(cached) " >&6 14382else 14383 ac_check_lib_save_LIBS=$LIBS 14384LIBS="-lxpg4 $LIBS" 14385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14386/* end confdefs.h. */ 14387 14388/* Override any GCC internal prototype to avoid an error. 14389 Use char because int might match the return type of a GCC 14390 builtin and then its argument prototype would still apply. */ 14391#ifdef __cplusplus 14392extern "C" 14393#endif 14394char _xpg4_setrunelocale (); 14395int 14396main () 14397{ 14398return _xpg4_setrunelocale (); 14399 ; 14400 return 0; 14401} 14402_ACEOF 14403if ac_fn_c_try_link "$LINENO"; then : 14404 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 14405else 14406 ac_cv_lib_xpg4__xpg4_setrunelocale=no 14407fi 14408rm -f core conftest.err conftest.$ac_objext \ 14409 conftest$ac_exeext conftest.$ac_ext 14410LIBS=$ac_check_lib_save_LIBS 14411fi 14412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 14413$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 14414if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 14415 LIBS="$LIBS -lxpg4" 14416fi 14417 14418 14419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 14420$as_echo_n "checking how to create tags... " >&6; } 14421test -f tags && mv tags tags.save 14422if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14423 TAGPRG="ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" 14424elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14425 TAGPRG="exctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" 14426elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14427 TAGPRG="exuberant-ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S" 14428else 14429 TAGPRG="ctags" 14430 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 14431 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 14432 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 14433 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 14434 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 14435 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 14436 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 14437fi 14438test -f tags.save && mv tags.save tags 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 14440$as_echo "$TAGPRG" >&6; } 14441 14442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 14443$as_echo_n "checking how to run man with a section nr... " >&6; } 14444MANDEF="man" 14445(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 14447$as_echo "$MANDEF" >&6; } 14448if test "$MANDEF" = "man -s"; then 14449 $as_echo "#define USEMAN_S 1" >>confdefs.h 14450 14451fi 14452 14453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 14454$as_echo_n "checking --disable-nls argument... " >&6; } 14455# Check whether --enable-nls was given. 14456if test "${enable_nls+set}" = set; then : 14457 enableval=$enable_nls; 14458else 14459 enable_nls="yes" 14460fi 14461 14462 14463if test "$enable_nls" = "yes"; then 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14465$as_echo "no" >&6; } 14466 14467 INSTALL_LANGS=install-languages 14468 14469 INSTALL_TOOL_LANGS=install-tool-languages 14470 14471 14472 # Extract the first word of "msgfmt", so it can be a program name with args. 14473set dummy msgfmt; ac_word=$2 14474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14475$as_echo_n "checking for $ac_word... " >&6; } 14476if ${ac_cv_prog_MSGFMT+:} false; then : 14477 $as_echo_n "(cached) " >&6 14478else 14479 if test -n "$MSGFMT"; then 14480 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 14481else 14482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14483for as_dir in $PATH 14484do 14485 IFS=$as_save_IFS 14486 test -z "$as_dir" && as_dir=. 14487 for ac_exec_ext in '' $ac_executable_extensions; do 14488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14489 ac_cv_prog_MSGFMT="msgfmt" 14490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14491 break 2 14492 fi 14493done 14494 done 14495IFS=$as_save_IFS 14496 14497fi 14498fi 14499MSGFMT=$ac_cv_prog_MSGFMT 14500if test -n "$MSGFMT"; then 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 14502$as_echo "$MSGFMT" >&6; } 14503else 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14505$as_echo "no" >&6; } 14506fi 14507 14508 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 14510$as_echo_n "checking for NLS... " >&6; } 14511 if test -f po/Makefile; then 14512 have_gettext="no" 14513 if test -n "$MSGFMT"; then 14514 olibs=$LIBS 14515 LIBS="" 14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14517/* end confdefs.h. */ 14518#include <libintl.h> 14519int 14520main () 14521{ 14522gettext("Test"); 14523 ; 14524 return 0; 14525} 14526_ACEOF 14527if ac_fn_c_try_link "$LINENO"; then : 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 14529$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 14530else 14531 LIBS="-lintl" 14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14533/* end confdefs.h. */ 14534#include <libintl.h> 14535int 14536main () 14537{ 14538gettext("Test"); 14539 ; 14540 return 0; 14541} 14542_ACEOF 14543if ac_fn_c_try_link "$LINENO"; then : 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 14545$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 14546 LIBS="$olibs -lintl" 14547else 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 14549$as_echo "gettext() doesn't work" >&6; }; 14550 LIBS=$olibs 14551fi 14552rm -f core conftest.err conftest.$ac_objext \ 14553 conftest$ac_exeext conftest.$ac_ext 14554fi 14555rm -f core conftest.err conftest.$ac_objext \ 14556 conftest$ac_exeext conftest.$ac_ext 14557 else 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 14559$as_echo "msgfmt not found - disabled" >&6; }; 14560 fi 14561 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 14562 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14563 14564 MAKEMO=yes 14565 14566 for ac_func in bind_textdomain_codeset 14567do : 14568 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 14569if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 14570 cat >>confdefs.h <<_ACEOF 14571#define HAVE_BIND_TEXTDOMAIN_CODESET 1 14572_ACEOF 14573 14574fi 14575done 14576 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 14578$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14580/* end confdefs.h. */ 14581#include <libintl.h> 14582 extern int _nl_msg_cat_cntr; 14583int 14584main () 14585{ 14586++_nl_msg_cat_cntr; 14587 ; 14588 return 0; 14589} 14590_ACEOF 14591if ac_fn_c_try_link "$LINENO"; then : 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14593$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 14594 14595else 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14597$as_echo "no" >&6; } 14598fi 14599rm -f core conftest.err conftest.$ac_objext \ 14600 conftest$ac_exeext conftest.$ac_ext 14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5 14602$as_echo_n "checking if msgfmt supports --desktop... " >&6; } 14603 MSGFMT_DESKTOP= 14604 if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then 14605 if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5 14607$as_echo "broken" >&6; } 14608 else 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14610$as_echo "yes" >&6; } 14611 MSGFMT_DESKTOP="gvim.desktop vim.desktop" 14612 fi 14613 else 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14615$as_echo "no" >&6; } 14616 fi 14617 14618 fi 14619 else 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 14621$as_echo "no \"po/Makefile\" - disabled" >&6; }; 14622 fi 14623else 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14625$as_echo "yes" >&6; } 14626fi 14627 14628ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14629if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14630 DLL=dlfcn.h 14631else 14632 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14633if test "x$ac_cv_header_dl_h" = xyes; then : 14634 DLL=dl.h 14635fi 14636 14637 14638fi 14639 14640 14641if test x${DLL} = xdlfcn.h; then 14642 14643$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 14644 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 14646$as_echo_n "checking for dlopen()... " >&6; } 14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14648/* end confdefs.h. */ 14649 14650int 14651main () 14652{ 14653 14654 extern void* dlopen(); 14655 dlopen(); 14656 14657 ; 14658 return 0; 14659} 14660_ACEOF 14661if ac_fn_c_try_link "$LINENO"; then : 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14663$as_echo "yes" >&6; }; 14664 14665$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14666 14667else 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14669$as_echo "no" >&6; }; 14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 14671$as_echo_n "checking for dlopen() in -ldl... " >&6; } 14672 olibs=$LIBS 14673 LIBS="$LIBS -ldl" 14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14675/* end confdefs.h. */ 14676 14677int 14678main () 14679{ 14680 14681 extern void* dlopen(); 14682 dlopen(); 14683 14684 ; 14685 return 0; 14686} 14687_ACEOF 14688if ac_fn_c_try_link "$LINENO"; then : 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14690$as_echo "yes" >&6; }; 14691 14692$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14693 14694else 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14696$as_echo "no" >&6; }; 14697 LIBS=$olibs 14698fi 14699rm -f core conftest.err conftest.$ac_objext \ 14700 conftest$ac_exeext conftest.$ac_ext 14701fi 14702rm -f core conftest.err conftest.$ac_objext \ 14703 conftest$ac_exeext conftest.$ac_ext 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 14705$as_echo_n "checking for dlsym()... " >&6; } 14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14707/* end confdefs.h. */ 14708 14709int 14710main () 14711{ 14712 14713 extern void* dlsym(); 14714 dlsym(); 14715 14716 ; 14717 return 0; 14718} 14719_ACEOF 14720if ac_fn_c_try_link "$LINENO"; then : 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14722$as_echo "yes" >&6; }; 14723 14724$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14725 14726else 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14728$as_echo "no" >&6; }; 14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 14730$as_echo_n "checking for dlsym() in -ldl... " >&6; } 14731 olibs=$LIBS 14732 LIBS="$LIBS -ldl" 14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14734/* end confdefs.h. */ 14735 14736int 14737main () 14738{ 14739 14740 extern void* dlsym(); 14741 dlsym(); 14742 14743 ; 14744 return 0; 14745} 14746_ACEOF 14747if ac_fn_c_try_link "$LINENO"; then : 14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14749$as_echo "yes" >&6; }; 14750 14751$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14752 14753else 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14755$as_echo "no" >&6; }; 14756 LIBS=$olibs 14757fi 14758rm -f core conftest.err conftest.$ac_objext \ 14759 conftest$ac_exeext conftest.$ac_ext 14760fi 14761rm -f core conftest.err conftest.$ac_objext \ 14762 conftest$ac_exeext conftest.$ac_ext 14763elif test x${DLL} = xdl.h; then 14764 14765$as_echo "#define HAVE_DL_H 1" >>confdefs.h 14766 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 14768$as_echo_n "checking for shl_load()... " >&6; } 14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14770/* end confdefs.h. */ 14771 14772int 14773main () 14774{ 14775 14776 extern void* shl_load(); 14777 shl_load(); 14778 14779 ; 14780 return 0; 14781} 14782_ACEOF 14783if ac_fn_c_try_link "$LINENO"; then : 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14785$as_echo "yes" >&6; }; 14786 14787$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14788 14789else 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14791$as_echo "no" >&6; }; 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14793$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14794 olibs=$LIBS 14795 LIBS="$LIBS -ldld" 14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14797/* end confdefs.h. */ 14798 14799int 14800main () 14801{ 14802 14803 extern void* shl_load(); 14804 shl_load(); 14805 14806 ; 14807 return 0; 14808} 14809_ACEOF 14810if ac_fn_c_try_link "$LINENO"; then : 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14812$as_echo "yes" >&6; }; 14813 14814$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14815 14816else 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14818$as_echo "no" >&6; }; 14819 LIBS=$olibs 14820fi 14821rm -f core conftest.err conftest.$ac_objext \ 14822 conftest$ac_exeext conftest.$ac_ext 14823fi 14824rm -f core conftest.err conftest.$ac_objext \ 14825 conftest$ac_exeext conftest.$ac_ext 14826fi 14827for ac_header in setjmp.h 14828do : 14829 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14830if test "x$ac_cv_header_setjmp_h" = xyes; then : 14831 cat >>confdefs.h <<_ACEOF 14832#define HAVE_SETJMP_H 1 14833_ACEOF 14834 14835fi 14836 14837done 14838 14839 14840if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then 14841 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14842 LIBS=`echo $LIBS | sed s/-ldl//` 14843 PERL_LIBS="$PERL_LIBS -ldl" 14844 fi 14845fi 14846 14847if test "$MACOS_X" = "yes"; then 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 14849$as_echo_n "checking whether we need macOS frameworks... " >&6; } 14850 if test "$GUITYPE" = "CARBONGUI"; then 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5 14852$as_echo "yes, we need Carbon" >&6; } 14853 LIBS="$LIBS -framework Carbon" 14854 elif test "$MACOS_X_DARWIN" = "yes"; then 14855 if test "$features" = "tiny"; then 14856 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14857 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 14859$as_echo "yes, we need CoreServices" >&6; } 14860 LIBS="$LIBS -framework CoreServices" 14861 else 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 14863$as_echo "yes, we need AppKit" >&6; } 14864 LIBS="$LIBS -framework AppKit" 14865 fi 14866 else 14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14868$as_echo "no" >&6; } 14869 fi 14870fi 14871if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14872 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14873fi 14874 14875DEPEND_CFLAGS_FILTER= 14876if test "$GCC" = yes; then 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14878$as_echo_n "checking for GCC 3 or later... " >&6; } 14879 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'` 14880 if test "$gccmajor" -gt "2"; then 14881 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14883$as_echo "yes" >&6; } 14884 else 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14886$as_echo "no" >&6; } 14887 fi 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14889$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14890 if test "$gccmajor" -gt "3"; then 14891 CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'` 14892 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'` 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14894$as_echo "yes" >&6; } 14895 else 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14897$as_echo "no" >&6; } 14898 fi 14899fi 14900 14901 14902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 14903$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } 14904if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then 14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14906$as_echo "yes" >&6; } 14907 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14908 14909else 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14911$as_echo "no" >&6; } 14912fi 14913 14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14915$as_echo_n "checking linker --as-needed support... " >&6; } 14916LINK_AS_NEEDED= 14917# Check if linker supports --as-needed and --no-as-needed options 14918if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14919 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14920 LINK_AS_NEEDED=yes 14921fi 14922if test "$LINK_AS_NEEDED" = yes; then 14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14924$as_echo "yes" >&6; } 14925else 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14927$as_echo "no" >&6; } 14928fi 14929 14930 14931# IBM z/OS reset CFLAGS for config.mk 14932if test "$zOSUnix" = "yes"; then 14933 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14934fi 14935 14936ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14937 14938cat >confcache <<\_ACEOF 14939# This file is a shell script that caches the results of configure 14940# tests run on this system so they can be shared between configure 14941# scripts and configure runs, see configure's option --config-cache. 14942# It is not useful on other systems. If it contains results you don't 14943# want to keep, you may remove or edit it. 14944# 14945# config.status only pays attention to the cache file if you give it 14946# the --recheck option to rerun configure. 14947# 14948# `ac_cv_env_foo' variables (set or unset) will be overridden when 14949# loading this file, other *unset* `ac_cv_foo' will be assigned the 14950# following values. 14951 14952_ACEOF 14953 14954# The following way of writing the cache mishandles newlines in values, 14955# but we know of no workaround that is simple, portable, and efficient. 14956# So, we kill variables containing newlines. 14957# Ultrix sh set writes to stderr and can't be redirected directly, 14958# and sets the high bit in the cache file unless we assign to the vars. 14959( 14960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14961 eval ac_val=\$$ac_var 14962 case $ac_val in #( 14963 *${as_nl}*) 14964 case $ac_var in #( 14965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14966$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14967 esac 14968 case $ac_var in #( 14969 _ | IFS | as_nl) ;; #( 14970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14971 *) { eval $ac_var=; unset $ac_var;} ;; 14972 esac ;; 14973 esac 14974 done 14975 14976 (set) 2>&1 | 14977 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14978 *${as_nl}ac_space=\ *) 14979 # `set' does not quote correctly, so add quotes: double-quote 14980 # substitution turns \\\\ into \\, and sed turns \\ into \. 14981 sed -n \ 14982 "s/'/'\\\\''/g; 14983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14984 ;; #( 14985 *) 14986 # `set' quotes correctly as required by POSIX, so do not add quotes. 14987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14988 ;; 14989 esac | 14990 sort 14991) | 14992 sed ' 14993 /^ac_cv_env_/b end 14994 t clear 14995 :clear 14996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14997 t end 14998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14999 :end' >>confcache 15000if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15001 if test -w "$cache_file"; then 15002 if test "x$cache_file" != "x/dev/null"; then 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15004$as_echo "$as_me: updating cache $cache_file" >&6;} 15005 if test ! -f "$cache_file" || test -h "$cache_file"; then 15006 cat confcache >"$cache_file" 15007 else 15008 case $cache_file in #( 15009 */* | ?:*) 15010 mv -f confcache "$cache_file"$$ && 15011 mv -f "$cache_file"$$ "$cache_file" ;; #( 15012 *) 15013 mv -f confcache "$cache_file" ;; 15014 esac 15015 fi 15016 fi 15017 else 15018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15019$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15020 fi 15021fi 15022rm -f confcache 15023 15024test "x$prefix" = xNONE && prefix=$ac_default_prefix 15025# Let make expand exec_prefix. 15026test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15027 15028DEFS=-DHAVE_CONFIG_H 15029 15030ac_libobjs= 15031ac_ltlibobjs= 15032U= 15033for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15034 # 1. Remove the extension, and $U if already installed. 15035 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15036 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15037 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15038 # will be set to the directory where LIBOBJS objects are built. 15039 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15040 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15041done 15042LIBOBJS=$ac_libobjs 15043 15044LTLIBOBJS=$ac_ltlibobjs 15045 15046 15047 15048 15049: "${CONFIG_STATUS=./config.status}" 15050ac_write_fail=0 15051ac_clean_files_save=$ac_clean_files 15052ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15053{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15054$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15055as_write_fail=0 15056cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15057#! $SHELL 15058# Generated by $as_me. 15059# Run this file to recreate the current configuration. 15060# Compiler output produced by configure, useful for debugging 15061# configure, is in config.log if it exists. 15062 15063debug=false 15064ac_cs_recheck=false 15065ac_cs_silent=false 15066 15067SHELL=\${CONFIG_SHELL-$SHELL} 15068export SHELL 15069_ASEOF 15070cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15071## -------------------- ## 15072## M4sh Initialization. ## 15073## -------------------- ## 15074 15075# Be more Bourne compatible 15076DUALCASE=1; export DUALCASE # for MKS sh 15077if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15078 emulate sh 15079 NULLCMD=: 15080 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15081 # is contrary to our usage. Disable this feature. 15082 alias -g '${1+"$@"}'='"$@"' 15083 setopt NO_GLOB_SUBST 15084else 15085 case `(set -o) 2>/dev/null` in #( 15086 *posix*) : 15087 set -o posix ;; #( 15088 *) : 15089 ;; 15090esac 15091fi 15092 15093 15094as_nl=' 15095' 15096export as_nl 15097# Printing a long string crashes Solaris 7 /usr/bin/printf. 15098as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15099as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15100as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15101# Prefer a ksh shell builtin over an external printf program on Solaris, 15102# but without wasting forks for bash or zsh. 15103if test -z "$BASH_VERSION$ZSH_VERSION" \ 15104 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15105 as_echo='print -r --' 15106 as_echo_n='print -rn --' 15107elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15108 as_echo='printf %s\n' 15109 as_echo_n='printf %s' 15110else 15111 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15112 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15113 as_echo_n='/usr/ucb/echo -n' 15114 else 15115 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15116 as_echo_n_body='eval 15117 arg=$1; 15118 case $arg in #( 15119 *"$as_nl"*) 15120 expr "X$arg" : "X\\(.*\\)$as_nl"; 15121 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15122 esac; 15123 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15124 ' 15125 export as_echo_n_body 15126 as_echo_n='sh -c $as_echo_n_body as_echo' 15127 fi 15128 export as_echo_body 15129 as_echo='sh -c $as_echo_body as_echo' 15130fi 15131 15132# The user is always right. 15133if test "${PATH_SEPARATOR+set}" != set; then 15134 PATH_SEPARATOR=: 15135 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15136 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15137 PATH_SEPARATOR=';' 15138 } 15139fi 15140 15141 15142# IFS 15143# We need space, tab and new line, in precisely that order. Quoting is 15144# there to prevent editors from complaining about space-tab. 15145# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15146# splitting by setting IFS to empty value.) 15147IFS=" "" $as_nl" 15148 15149# Find who we are. Look in the path if we contain no directory separator. 15150as_myself= 15151case $0 in #(( 15152 *[\\/]* ) as_myself=$0 ;; 15153 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15154for as_dir in $PATH 15155do 15156 IFS=$as_save_IFS 15157 test -z "$as_dir" && as_dir=. 15158 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15159 done 15160IFS=$as_save_IFS 15161 15162 ;; 15163esac 15164# We did not find ourselves, most probably we were run as `sh COMMAND' 15165# in which case we are not to be found in the path. 15166if test "x$as_myself" = x; then 15167 as_myself=$0 15168fi 15169if test ! -f "$as_myself"; then 15170 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15171 exit 1 15172fi 15173 15174# Unset variables that we do not need and which cause bugs (e.g. in 15175# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15176# suppresses any "Segmentation fault" message there. '((' could 15177# trigger a bug in pdksh 5.2.14. 15178for as_var in BASH_ENV ENV MAIL MAILPATH 15179do eval test x\${$as_var+set} = xset \ 15180 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15181done 15182PS1='$ ' 15183PS2='> ' 15184PS4='+ ' 15185 15186# NLS nuisances. 15187LC_ALL=C 15188export LC_ALL 15189LANGUAGE=C 15190export LANGUAGE 15191 15192# CDPATH. 15193(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15194 15195 15196# as_fn_error STATUS ERROR [LINENO LOG_FD] 15197# ---------------------------------------- 15198# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15199# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15200# script with STATUS, using 1 if that was 0. 15201as_fn_error () 15202{ 15203 as_status=$1; test $as_status -eq 0 && as_status=1 15204 if test "$4"; then 15205 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15206 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15207 fi 15208 $as_echo "$as_me: error: $2" >&2 15209 as_fn_exit $as_status 15210} # as_fn_error 15211 15212 15213# as_fn_set_status STATUS 15214# ----------------------- 15215# Set $? to STATUS, without forking. 15216as_fn_set_status () 15217{ 15218 return $1 15219} # as_fn_set_status 15220 15221# as_fn_exit STATUS 15222# ----------------- 15223# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15224as_fn_exit () 15225{ 15226 set +e 15227 as_fn_set_status $1 15228 exit $1 15229} # as_fn_exit 15230 15231# as_fn_unset VAR 15232# --------------- 15233# Portably unset VAR. 15234as_fn_unset () 15235{ 15236 { eval $1=; unset $1;} 15237} 15238as_unset=as_fn_unset 15239# as_fn_append VAR VALUE 15240# ---------------------- 15241# Append the text in VALUE to the end of the definition contained in VAR. Take 15242# advantage of any shell optimizations that allow amortized linear growth over 15243# repeated appends, instead of the typical quadratic growth present in naive 15244# implementations. 15245if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15246 eval 'as_fn_append () 15247 { 15248 eval $1+=\$2 15249 }' 15250else 15251 as_fn_append () 15252 { 15253 eval $1=\$$1\$2 15254 } 15255fi # as_fn_append 15256 15257# as_fn_arith ARG... 15258# ------------------ 15259# Perform arithmetic evaluation on the ARGs, and store the result in the 15260# global $as_val. Take advantage of shells that can avoid forks. The arguments 15261# must be portable across $(()) and expr. 15262if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15263 eval 'as_fn_arith () 15264 { 15265 as_val=$(( $* )) 15266 }' 15267else 15268 as_fn_arith () 15269 { 15270 as_val=`expr "$@" || test $? -eq 1` 15271 } 15272fi # as_fn_arith 15273 15274 15275if expr a : '\(a\)' >/dev/null 2>&1 && 15276 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15277 as_expr=expr 15278else 15279 as_expr=false 15280fi 15281 15282if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15283 as_basename=basename 15284else 15285 as_basename=false 15286fi 15287 15288if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15289 as_dirname=dirname 15290else 15291 as_dirname=false 15292fi 15293 15294as_me=`$as_basename -- "$0" || 15295$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15296 X"$0" : 'X\(//\)$' \| \ 15297 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15298$as_echo X/"$0" | 15299 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15300 s//\1/ 15301 q 15302 } 15303 /^X\/\(\/\/\)$/{ 15304 s//\1/ 15305 q 15306 } 15307 /^X\/\(\/\).*/{ 15308 s//\1/ 15309 q 15310 } 15311 s/.*/./; q'` 15312 15313# Avoid depending upon Character Ranges. 15314as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15315as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15316as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15317as_cr_digits='0123456789' 15318as_cr_alnum=$as_cr_Letters$as_cr_digits 15319 15320ECHO_C= ECHO_N= ECHO_T= 15321case `echo -n x` in #((((( 15322-n*) 15323 case `echo 'xy\c'` in 15324 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15325 xy) ECHO_C='\c';; 15326 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15327 ECHO_T=' ';; 15328 esac;; 15329*) 15330 ECHO_N='-n';; 15331esac 15332 15333rm -f conf$$ conf$$.exe conf$$.file 15334if test -d conf$$.dir; then 15335 rm -f conf$$.dir/conf$$.file 15336else 15337 rm -f conf$$.dir 15338 mkdir conf$$.dir 2>/dev/null 15339fi 15340if (echo >conf$$.file) 2>/dev/null; then 15341 if ln -s conf$$.file conf$$ 2>/dev/null; then 15342 as_ln_s='ln -s' 15343 # ... but there are two gotchas: 15344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15346 # In both cases, we have to default to `cp -pR'. 15347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15348 as_ln_s='cp -pR' 15349 elif ln conf$$.file conf$$ 2>/dev/null; then 15350 as_ln_s=ln 15351 else 15352 as_ln_s='cp -pR' 15353 fi 15354else 15355 as_ln_s='cp -pR' 15356fi 15357rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15358rmdir conf$$.dir 2>/dev/null 15359 15360 15361# as_fn_mkdir_p 15362# ------------- 15363# Create "$as_dir" as a directory, including parents if necessary. 15364as_fn_mkdir_p () 15365{ 15366 15367 case $as_dir in #( 15368 -*) as_dir=./$as_dir;; 15369 esac 15370 test -d "$as_dir" || eval $as_mkdir_p || { 15371 as_dirs= 15372 while :; do 15373 case $as_dir in #( 15374 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15375 *) as_qdir=$as_dir;; 15376 esac 15377 as_dirs="'$as_qdir' $as_dirs" 15378 as_dir=`$as_dirname -- "$as_dir" || 15379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15380 X"$as_dir" : 'X\(//\)[^/]' \| \ 15381 X"$as_dir" : 'X\(//\)$' \| \ 15382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15383$as_echo X"$as_dir" | 15384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15385 s//\1/ 15386 q 15387 } 15388 /^X\(\/\/\)[^/].*/{ 15389 s//\1/ 15390 q 15391 } 15392 /^X\(\/\/\)$/{ 15393 s//\1/ 15394 q 15395 } 15396 /^X\(\/\).*/{ 15397 s//\1/ 15398 q 15399 } 15400 s/.*/./; q'` 15401 test -d "$as_dir" && break 15402 done 15403 test -z "$as_dirs" || eval "mkdir $as_dirs" 15404 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15405 15406 15407} # as_fn_mkdir_p 15408if mkdir -p . 2>/dev/null; then 15409 as_mkdir_p='mkdir -p "$as_dir"' 15410else 15411 test -d ./-p && rmdir ./-p 15412 as_mkdir_p=false 15413fi 15414 15415 15416# as_fn_executable_p FILE 15417# ----------------------- 15418# Test if FILE is an executable regular file. 15419as_fn_executable_p () 15420{ 15421 test -f "$1" && test -x "$1" 15422} # as_fn_executable_p 15423as_test_x='test -x' 15424as_executable_p=as_fn_executable_p 15425 15426# Sed expression to map a string onto a valid CPP name. 15427as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15428 15429# Sed expression to map a string onto a valid variable name. 15430as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15431 15432 15433exec 6>&1 15434## ----------------------------------- ## 15435## Main body of $CONFIG_STATUS script. ## 15436## ----------------------------------- ## 15437_ASEOF 15438test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15439 15440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15441# Save the log message, to keep $0 and so on meaningful, and to 15442# report actual input values of CONFIG_FILES etc. instead of their 15443# values after options handling. 15444ac_log=" 15445This file was extended by $as_me, which was 15446generated by GNU Autoconf 2.69. Invocation command line was 15447 15448 CONFIG_FILES = $CONFIG_FILES 15449 CONFIG_HEADERS = $CONFIG_HEADERS 15450 CONFIG_LINKS = $CONFIG_LINKS 15451 CONFIG_COMMANDS = $CONFIG_COMMANDS 15452 $ $0 $@ 15453 15454on `(hostname || uname -n) 2>/dev/null | sed 1q` 15455" 15456 15457_ACEOF 15458 15459case $ac_config_files in *" 15460"*) set x $ac_config_files; shift; ac_config_files=$*;; 15461esac 15462 15463case $ac_config_headers in *" 15464"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15465esac 15466 15467 15468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15469# Files that config.status was made for. 15470config_files="$ac_config_files" 15471config_headers="$ac_config_headers" 15472 15473_ACEOF 15474 15475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15476ac_cs_usage="\ 15477\`$as_me' instantiates files and other configuration actions 15478from templates according to the current configuration. Unless the files 15479and actions are specified as TAGs, all are instantiated by default. 15480 15481Usage: $0 [OPTION]... [TAG]... 15482 15483 -h, --help print this help, then exit 15484 -V, --version print version number and configuration settings, then exit 15485 --config print configuration, then exit 15486 -q, --quiet, --silent 15487 do not print progress messages 15488 -d, --debug don't remove temporary files 15489 --recheck update $as_me by reconfiguring in the same conditions 15490 --file=FILE[:TEMPLATE] 15491 instantiate the configuration file FILE 15492 --header=FILE[:TEMPLATE] 15493 instantiate the configuration header FILE 15494 15495Configuration files: 15496$config_files 15497 15498Configuration headers: 15499$config_headers 15500 15501Report bugs to the package provider." 15502 15503_ACEOF 15504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15505ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15506ac_cs_version="\\ 15507config.status 15508configured by $0, generated by GNU Autoconf 2.69, 15509 with options \\"\$ac_cs_config\\" 15510 15511Copyright (C) 2012 Free Software Foundation, Inc. 15512This config.status script is free software; the Free Software Foundation 15513gives unlimited permission to copy, distribute and modify it." 15514 15515ac_pwd='$ac_pwd' 15516srcdir='$srcdir' 15517AWK='$AWK' 15518test -n "\$AWK" || AWK=awk 15519_ACEOF 15520 15521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15522# The default lists apply if the user does not specify any file. 15523ac_need_defaults=: 15524while test $# != 0 15525do 15526 case $1 in 15527 --*=?*) 15528 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15529 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15530 ac_shift=: 15531 ;; 15532 --*=) 15533 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15534 ac_optarg= 15535 ac_shift=: 15536 ;; 15537 *) 15538 ac_option=$1 15539 ac_optarg=$2 15540 ac_shift=shift 15541 ;; 15542 esac 15543 15544 case $ac_option in 15545 # Handling of the options. 15546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15547 ac_cs_recheck=: ;; 15548 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15549 $as_echo "$ac_cs_version"; exit ;; 15550 --config | --confi | --conf | --con | --co | --c ) 15551 $as_echo "$ac_cs_config"; exit ;; 15552 --debug | --debu | --deb | --de | --d | -d ) 15553 debug=: ;; 15554 --file | --fil | --fi | --f ) 15555 $ac_shift 15556 case $ac_optarg in 15557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15558 '') as_fn_error $? "missing file argument" ;; 15559 esac 15560 as_fn_append CONFIG_FILES " '$ac_optarg'" 15561 ac_need_defaults=false;; 15562 --header | --heade | --head | --hea ) 15563 $ac_shift 15564 case $ac_optarg in 15565 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15566 esac 15567 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15568 ac_need_defaults=false;; 15569 --he | --h) 15570 # Conflict between --help and --header 15571 as_fn_error $? "ambiguous option: \`$1' 15572Try \`$0 --help' for more information.";; 15573 --help | --hel | -h ) 15574 $as_echo "$ac_cs_usage"; exit ;; 15575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15576 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15577 ac_cs_silent=: ;; 15578 15579 # This is an error. 15580 -*) as_fn_error $? "unrecognized option: \`$1' 15581Try \`$0 --help' for more information." ;; 15582 15583 *) as_fn_append ac_config_targets " $1" 15584 ac_need_defaults=false ;; 15585 15586 esac 15587 shift 15588done 15589 15590ac_configure_extra_args= 15591 15592if $ac_cs_silent; then 15593 exec 6>/dev/null 15594 ac_configure_extra_args="$ac_configure_extra_args --silent" 15595fi 15596 15597_ACEOF 15598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15599if \$ac_cs_recheck; then 15600 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15601 shift 15602 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15603 CONFIG_SHELL='$SHELL' 15604 export CONFIG_SHELL 15605 exec "\$@" 15606fi 15607 15608_ACEOF 15609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15610exec 5>>auto/config.log 15611{ 15612 echo 15613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15614## Running $as_me. ## 15615_ASBOX 15616 $as_echo "$ac_log" 15617} >&5 15618 15619_ACEOF 15620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15621_ACEOF 15622 15623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15624 15625# Handling of arguments. 15626for ac_config_target in $ac_config_targets 15627do 15628 case $ac_config_target in 15629 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 15630 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 15631 15632 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15633 esac 15634done 15635 15636 15637# If the user did not use the arguments to specify the items to instantiate, 15638# then the envvar interface is used. Set only those that are not. 15639# We use the long form for the default assignment because of an extremely 15640# bizarre bug on SunOS 4.1.3. 15641if $ac_need_defaults; then 15642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15644fi 15645 15646# Have a temporary directory for convenience. Make it in the build tree 15647# simply because there is no reason against having it here, and in addition, 15648# creating and moving files from /tmp can sometimes cause problems. 15649# Hook for its removal unless debugging. 15650# Note that there is a small window in which the directory will not be cleaned: 15651# after its creation but before its name has been assigned to `$tmp'. 15652$debug || 15653{ 15654 tmp= ac_tmp= 15655 trap 'exit_status=$? 15656 : "${ac_tmp:=$tmp}" 15657 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15658' 0 15659 trap 'as_fn_exit 1' 1 2 13 15 15660} 15661# Create a (secure) tmp directory for tmp files. 15662 15663{ 15664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15665 test -d "$tmp" 15666} || 15667{ 15668 tmp=./conf$$-$RANDOM 15669 (umask 077 && mkdir "$tmp") 15670} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15671ac_tmp=$tmp 15672 15673# Set up the scripts for CONFIG_FILES section. 15674# No need to generate them if there are no CONFIG_FILES. 15675# This happens for instance with `./config.status config.h'. 15676if test -n "$CONFIG_FILES"; then 15677 15678 15679ac_cr=`echo X | tr X '\015'` 15680# On cygwin, bash can eat \r inside `` if the user requested igncr. 15681# But we know of no other shell where ac_cr would be empty at this 15682# point, so we can use a bashism as a fallback. 15683if test "x$ac_cr" = x; then 15684 eval ac_cr=\$\'\\r\' 15685fi 15686ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15687if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15688 ac_cs_awk_cr='\\r' 15689else 15690 ac_cs_awk_cr=$ac_cr 15691fi 15692 15693echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15694_ACEOF 15695 15696 15697{ 15698 echo "cat >conf$$subs.awk <<_ACEOF" && 15699 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15700 echo "_ACEOF" 15701} >conf$$subs.sh || 15702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15703ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15704ac_delim='%!_!# ' 15705for ac_last_try in false false false false false :; do 15706 . ./conf$$subs.sh || 15707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15708 15709 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15710 if test $ac_delim_n = $ac_delim_num; then 15711 break 15712 elif $ac_last_try; then 15713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15714 else 15715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15716 fi 15717done 15718rm -f conf$$subs.sh 15719 15720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15721cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15722_ACEOF 15723sed -n ' 15724h 15725s/^/S["/; s/!.*/"]=/ 15726p 15727g 15728s/^[^!]*!// 15729:repl 15730t repl 15731s/'"$ac_delim"'$// 15732t delim 15733:nl 15734h 15735s/\(.\{148\}\)..*/\1/ 15736t more1 15737s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15738p 15739n 15740b repl 15741:more1 15742s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15743p 15744g 15745s/.\{148\}// 15746t nl 15747:delim 15748h 15749s/\(.\{148\}\)..*/\1/ 15750t more2 15751s/["\\]/\\&/g; s/^/"/; s/$/"/ 15752p 15753b 15754:more2 15755s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15756p 15757g 15758s/.\{148\}// 15759t delim 15760' <conf$$subs.awk | sed ' 15761/^[^""]/{ 15762 N 15763 s/\n// 15764} 15765' >>$CONFIG_STATUS || ac_write_fail=1 15766rm -f conf$$subs.awk 15767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15768_ACAWK 15769cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15770 for (key in S) S_is_set[key] = 1 15771 FS = "" 15772 15773} 15774{ 15775 line = $ 0 15776 nfields = split(line, field, "@") 15777 substed = 0 15778 len = length(field[1]) 15779 for (i = 2; i < nfields; i++) { 15780 key = field[i] 15781 keylen = length(key) 15782 if (S_is_set[key]) { 15783 value = S[key] 15784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15785 len += length(value) + length(field[++i]) 15786 substed = 1 15787 } else 15788 len += 1 + keylen 15789 } 15790 15791 print line 15792} 15793 15794_ACAWK 15795_ACEOF 15796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15797if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15798 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15799else 15800 cat 15801fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15802 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15803_ACEOF 15804 15805# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15806# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15807# trailing colons and then remove the whole line if VPATH becomes empty 15808# (actually we leave an empty line to preserve line numbers). 15809if test "x$srcdir" = x.; then 15810 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15811h 15812s/// 15813s/^/:/ 15814s/[ ]*$/:/ 15815s/:\$(srcdir):/:/g 15816s/:\${srcdir}:/:/g 15817s/:@srcdir@:/:/g 15818s/^:*// 15819s/:*$// 15820x 15821s/\(=[ ]*\).*/\1/ 15822G 15823s/\n// 15824s/^[^=]*=[ ]*$// 15825}' 15826fi 15827 15828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15829fi # test -n "$CONFIG_FILES" 15830 15831# Set up the scripts for CONFIG_HEADERS section. 15832# No need to generate them if there are no CONFIG_HEADERS. 15833# This happens for instance with `./config.status Makefile'. 15834if test -n "$CONFIG_HEADERS"; then 15835cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15836BEGIN { 15837_ACEOF 15838 15839# Transform confdefs.h into an awk script `defines.awk', embedded as 15840# here-document in config.status, that substitutes the proper values into 15841# config.h.in to produce config.h. 15842 15843# Create a delimiter string that does not exist in confdefs.h, to ease 15844# handling of long lines. 15845ac_delim='%!_!# ' 15846for ac_last_try in false false :; do 15847 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15848 if test -z "$ac_tt"; then 15849 break 15850 elif $ac_last_try; then 15851 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15852 else 15853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15854 fi 15855done 15856 15857# For the awk script, D is an array of macro values keyed by name, 15858# likewise P contains macro parameters if any. Preserve backslash 15859# newline sequences. 15860 15861ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15862sed -n ' 15863s/.\{148\}/&'"$ac_delim"'/g 15864t rset 15865:rset 15866s/^[ ]*#[ ]*define[ ][ ]*/ / 15867t def 15868d 15869:def 15870s/\\$// 15871t bsnl 15872s/["\\]/\\&/g 15873s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15874D["\1"]=" \3"/p 15875s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15876d 15877:bsnl 15878s/["\\]/\\&/g 15879s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15880D["\1"]=" \3\\\\\\n"\\/p 15881t cont 15882s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15883t cont 15884d 15885:cont 15886n 15887s/.\{148\}/&'"$ac_delim"'/g 15888t clear 15889:clear 15890s/\\$// 15891t bsnlc 15892s/["\\]/\\&/g; s/^/"/; s/$/"/p 15893d 15894:bsnlc 15895s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15896b cont 15897' <confdefs.h | sed ' 15898s/'"$ac_delim"'/"\\\ 15899"/g' >>$CONFIG_STATUS || ac_write_fail=1 15900 15901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15902 for (key in D) D_is_set[key] = 1 15903 FS = "" 15904} 15905/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15906 line = \$ 0 15907 split(line, arg, " ") 15908 if (arg[1] == "#") { 15909 defundef = arg[2] 15910 mac1 = arg[3] 15911 } else { 15912 defundef = substr(arg[1], 2) 15913 mac1 = arg[2] 15914 } 15915 split(mac1, mac2, "(") #) 15916 macro = mac2[1] 15917 prefix = substr(line, 1, index(line, defundef) - 1) 15918 if (D_is_set[macro]) { 15919 # Preserve the white space surrounding the "#". 15920 print prefix "define", macro P[macro] D[macro] 15921 next 15922 } else { 15923 # Replace #undef with comments. This is necessary, for example, 15924 # in the case of _POSIX_SOURCE, which is predefined and required 15925 # on some systems where configure will not decide to define it. 15926 if (defundef == "undef") { 15927 print "/*", prefix defundef, macro, "*/" 15928 next 15929 } 15930 } 15931} 15932{ print } 15933_ACAWK 15934_ACEOF 15935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15936 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15937fi # test -n "$CONFIG_HEADERS" 15938 15939 15940eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15941shift 15942for ac_tag 15943do 15944 case $ac_tag in 15945 :[FHLC]) ac_mode=$ac_tag; continue;; 15946 esac 15947 case $ac_mode$ac_tag in 15948 :[FHL]*:*);; 15949 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15950 :[FH]-) ac_tag=-:-;; 15951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15952 esac 15953 ac_save_IFS=$IFS 15954 IFS=: 15955 set x $ac_tag 15956 IFS=$ac_save_IFS 15957 shift 15958 ac_file=$1 15959 shift 15960 15961 case $ac_mode in 15962 :L) ac_source=$1;; 15963 :[FH]) 15964 ac_file_inputs= 15965 for ac_f 15966 do 15967 case $ac_f in 15968 -) ac_f="$ac_tmp/stdin";; 15969 *) # Look for the file first in the build tree, then in the source tree 15970 # (if the path is not absolute). The absolute path cannot be DOS-style, 15971 # because $ac_f cannot contain `:'. 15972 test -f "$ac_f" || 15973 case $ac_f in 15974 [\\/$]*) false;; 15975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15976 esac || 15977 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15978 esac 15979 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15980 as_fn_append ac_file_inputs " '$ac_f'" 15981 done 15982 15983 # Let's still pretend it is `configure' which instantiates (i.e., don't 15984 # use $as_me), people would be surprised to read: 15985 # /* config.h. Generated by config.status. */ 15986 configure_input='Generated from '` 15987 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15988 `' by configure.' 15989 if test x"$ac_file" != x-; then 15990 configure_input="$ac_file. $configure_input" 15991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15992$as_echo "$as_me: creating $ac_file" >&6;} 15993 fi 15994 # Neutralize special characters interpreted by sed in replacement strings. 15995 case $configure_input in #( 15996 *\&* | *\|* | *\\* ) 15997 ac_sed_conf_input=`$as_echo "$configure_input" | 15998 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15999 *) ac_sed_conf_input=$configure_input;; 16000 esac 16001 16002 case $ac_tag in 16003 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16005 esac 16006 ;; 16007 esac 16008 16009 ac_dir=`$as_dirname -- "$ac_file" || 16010$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16011 X"$ac_file" : 'X\(//\)[^/]' \| \ 16012 X"$ac_file" : 'X\(//\)$' \| \ 16013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16014$as_echo X"$ac_file" | 16015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16016 s//\1/ 16017 q 16018 } 16019 /^X\(\/\/\)[^/].*/{ 16020 s//\1/ 16021 q 16022 } 16023 /^X\(\/\/\)$/{ 16024 s//\1/ 16025 q 16026 } 16027 /^X\(\/\).*/{ 16028 s//\1/ 16029 q 16030 } 16031 s/.*/./; q'` 16032 as_dir="$ac_dir"; as_fn_mkdir_p 16033 ac_builddir=. 16034 16035case "$ac_dir" in 16036.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16037*) 16038 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16039 # A ".." for each directory in $ac_dir_suffix. 16040 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16041 case $ac_top_builddir_sub in 16042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16044 esac ;; 16045esac 16046ac_abs_top_builddir=$ac_pwd 16047ac_abs_builddir=$ac_pwd$ac_dir_suffix 16048# for backward compatibility: 16049ac_top_builddir=$ac_top_build_prefix 16050 16051case $srcdir in 16052 .) # We are building in place. 16053 ac_srcdir=. 16054 ac_top_srcdir=$ac_top_builddir_sub 16055 ac_abs_top_srcdir=$ac_pwd ;; 16056 [\\/]* | ?:[\\/]* ) # Absolute name. 16057 ac_srcdir=$srcdir$ac_dir_suffix; 16058 ac_top_srcdir=$srcdir 16059 ac_abs_top_srcdir=$srcdir ;; 16060 *) # Relative name. 16061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16062 ac_top_srcdir=$ac_top_build_prefix$srcdir 16063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16064esac 16065ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16066 16067 16068 case $ac_mode in 16069 :F) 16070 # 16071 # CONFIG_FILE 16072 # 16073 16074_ACEOF 16075 16076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16077# If the template does not know about datarootdir, expand it. 16078# FIXME: This hack should be removed a few years after 2.60. 16079ac_datarootdir_hack=; ac_datarootdir_seen= 16080ac_sed_dataroot=' 16081/datarootdir/ { 16082 p 16083 q 16084} 16085/@datadir@/p 16086/@docdir@/p 16087/@infodir@/p 16088/@localedir@/p 16089/@mandir@/p' 16090case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16091*datarootdir*) ac_datarootdir_seen=yes;; 16092*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16094$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16095_ACEOF 16096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16097 ac_datarootdir_hack=' 16098 s&@datadir@&$datadir&g 16099 s&@docdir@&$docdir&g 16100 s&@infodir@&$infodir&g 16101 s&@localedir@&$localedir&g 16102 s&@mandir@&$mandir&g 16103 s&\\\${datarootdir}&$datarootdir&g' ;; 16104esac 16105_ACEOF 16106 16107# Neutralize VPATH when `$srcdir' = `.'. 16108# Shell code in configure.ac might set extrasub. 16109# FIXME: do we really want to maintain this feature? 16110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16111ac_sed_extra="$ac_vpsub 16112$extrasub 16113_ACEOF 16114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16115:t 16116/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16117s|@configure_input@|$ac_sed_conf_input|;t t 16118s&@top_builddir@&$ac_top_builddir_sub&;t t 16119s&@top_build_prefix@&$ac_top_build_prefix&;t t 16120s&@srcdir@&$ac_srcdir&;t t 16121s&@abs_srcdir@&$ac_abs_srcdir&;t t 16122s&@top_srcdir@&$ac_top_srcdir&;t t 16123s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16124s&@builddir@&$ac_builddir&;t t 16125s&@abs_builddir@&$ac_abs_builddir&;t t 16126s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16127$ac_datarootdir_hack 16128" 16129eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16130 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16131 16132test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16133 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16135 "$ac_tmp/out"`; test -z "$ac_out"; } && 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16137which seems to be undefined. Please make sure it is defined" >&5 16138$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16139which seems to be undefined. Please make sure it is defined" >&2;} 16140 16141 rm -f "$ac_tmp/stdin" 16142 case $ac_file in 16143 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16144 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16145 esac \ 16146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16147 ;; 16148 :H) 16149 # 16150 # CONFIG_HEADER 16151 # 16152 if test x"$ac_file" != x-; then 16153 { 16154 $as_echo "/* $configure_input */" \ 16155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16156 } >"$ac_tmp/config.h" \ 16157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16158 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16160$as_echo "$as_me: $ac_file is unchanged" >&6;} 16161 else 16162 rm -f "$ac_file" 16163 mv "$ac_tmp/config.h" "$ac_file" \ 16164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16165 fi 16166 else 16167 $as_echo "/* $configure_input */" \ 16168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16169 || as_fn_error $? "could not create -" "$LINENO" 5 16170 fi 16171 ;; 16172 16173 16174 esac 16175 16176done # for ac_tag 16177 16178 16179as_fn_exit 0 16180_ACEOF 16181ac_clean_files=$ac_clean_files_save 16182 16183test $ac_write_fail = 0 || 16184 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16185 16186 16187# configure is writing to config.log, and then calls config.status. 16188# config.status does its own redirection, appending to config.log. 16189# Unfortunately, on DOS this fails, as config.log is still kept open 16190# by configure, so config.status won't be able to write to it; its 16191# output is simply discarded. So we exec the FD to /dev/null, 16192# effectively closing config.log, so it can be properly (re)opened and 16193# appended to by config.status. When coming back to configure, we 16194# need to make the FD available again. 16195if test "$no_create" != yes; then 16196 ac_cs_success=: 16197 ac_config_status_args= 16198 test "$silent" = yes && 16199 ac_config_status_args="$ac_config_status_args --quiet" 16200 exec 5>/dev/null 16201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16202 exec 5>>auto/config.log 16203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16204 # would make configure fail if this is the last instruction. 16205 $ac_cs_success || as_fn_exit 1 16206fi 16207if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16209$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16210fi 16211 16212 16213