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 626MAKEMO 627MSGFMT 628INSTALL_TOOL_LANGS 629INSTALL_LANGS 630TAGPRG 631HANGULIN_OBJ 632HANGULIN_SRC 633GUI_X_LIBS 634GUITYPE 635GUI_LIB_LOC 636GUI_INC_LOC 637NARROW_PROTO 638MOTIF_LIBNAME 639GRESOURCE_OBJ 640GRESOURCE_SRC 641UPDATE_DESKTOP_DATABASE 642GTK_UPDATE_ICON_CACHE 643GLIB_COMPILE_RESOURCES 644GNOME_INCLUDEDIR 645GNOME_LIBDIR 646GNOME_LIBS 647GTK_LIBNAME 648GTK_LIBS 649GTK_CFLAGS 650PKG_CONFIG 651X_LIB 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657xmkmfpath 658TERM_OBJ 659TERM_SRC 660CHANNEL_OBJ 661CHANNEL_SRC 662NETBEANS_OBJ 663NETBEANS_SRC 664WORKSHOP_OBJ 665WORKSHOP_SRC 666RUBY_LIBS 667RUBY_CFLAGS 668RUBY_PRO 669RUBY_OBJ 670RUBY_SRC 671vi_cv_path_ruby 672TCL_LIBS 673TCL_CFLAGS 674TCL_PRO 675TCL_OBJ 676TCL_SRC 677vi_cv_path_tcl 678PYTHON3_OBJ 679PYTHON3_SRC 680PYTHON3_CFLAGS 681PYTHON3_LIBS 682vi_cv_path_python3 683PYTHON_OBJ 684PYTHON_SRC 685PYTHON_CFLAGS 686PYTHON_LIBS 687vi_cv_path_python 688PERL_LIBS 689PERL_CFLAGS 690PERL_PRO 691PERL_OBJ 692PERL_SRC 693shrpenv 694vi_cv_perl_xsubpp 695vi_cv_perllib 696vi_cv_path_perl 697MZSCHEME_MZC 698MZSCHEME_EXTRA 699MZSCHEME_CFLAGS 700MZSCHEME_LIBS 701MZSCHEME_PRO 702MZSCHEME_OBJ 703MZSCHEME_SRC 704vi_cv_path_mzscheme 705LUA_CFLAGS 706LUA_LIBS 707LUA_PRO 708LUA_OBJ 709LUA_SRC 710vi_cv_path_plain_lua 711vi_cv_path_luajit 712vi_cv_path_lua 713compiledby 714dogvimdiff 715dovimdiff 716QUOTESED 717line_break 718VIEWNAME 719EXNAME 720VIMNAME 721OS_EXTRA_OBJ 722OS_EXTRA_SRC 723XCODE_SELECT 724CPP_MM 725CROSS_COMPILING 726STRIP 727AWK 728FGREP 729EGREP 730GREP 731CPP 732OBJEXT 733EXEEXT 734ac_ct_CC 735CPPFLAGS 736LDFLAGS 737CFLAGS 738CC 739SET_MAKE 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759runstatedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782enable_fail_if_missing 783enable_darwin 784with_mac_arch 785with_developer_dir 786with_local_dir 787with_vim_name 788with_ex_name 789with_view_name 790with_global_runtime 791with_modified_by 792enable_smack 793enable_selinux 794with_features 795with_compiledby 796enable_xsmp 797enable_xsmp_interact 798enable_luainterp 799with_lua_prefix 800with_luajit 801enable_mzschemeinterp 802with_plthome 803enable_perlinterp 804enable_pythoninterp 805with_python_command 806with_python_config_dir 807enable_python3interp 808with_python3_command 809with_python3_config_dir 810enable_tclinterp 811with_tclsh 812enable_rubyinterp 813with_ruby_command 814enable_cscope 815enable_workshop 816enable_netbeans 817enable_channel 818enable_terminal 819enable_autoservername 820enable_multibyte 821enable_hangulinput 822enable_xim 823enable_fontset 824with_x 825enable_gui 826enable_gtk2_check 827enable_gnome_check 828enable_gtk3_check 829enable_motif_check 830enable_athena_check 831enable_nextaw_check 832enable_carbon_check 833enable_gtktest 834with_gnome_includes 835with_gnome_libs 836with_gnome 837enable_icon_cache_update 838enable_desktop_database_update 839with_motif_lib 840with_tlib 841enable_largefile 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 --enable-workshop Include Sun Visual Workshop support. 1495 --disable-netbeans Disable NetBeans integration support. 1496 --disable-channel Disable process communication support. 1497 --enable-terminal Enable terminal emulation support. 1498 --enable-autoservername Automatically define servername at vim startup. 1499 --enable-multibyte Include multibyte editing support. 1500 --enable-hangulinput Include Hangul input support. 1501 --enable-xim Include XIM input support. 1502 --enable-fontset Include X fontset output support. 1503 --enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1504 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1505 --enable-gnome-check If GTK GUI, check for GNOME default=no 1506 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1507 --enable-motif-check If auto-select GUI, check for Motif default=yes 1508 --enable-athena-check If auto-select GUI, check for Athena default=yes 1509 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1510 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1511 --disable-gtktest Do not try to compile and run a test GTK program 1512 --disable-icon-cache-update update disabled 1513 --disable-desktop-database-update update disabled 1514 --disable-largefile omit support for large files 1515 --disable-acl No check for ACL support. 1516 --disable-gpm Don't use gpm (Linux mouse daemon). 1517 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1518 --disable-nls Don't support NLS (gettext()). 1519 1520Optional Packages: 1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1523 --with-mac-arch=ARCH current, intel, ppc or both 1524 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1525 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1526 --without-local-dir do not search /usr/local for local libraries. 1527 --with-vim-name=NAME what to call the Vim executable 1528 --with-ex-name=NAME what to call the Ex executable 1529 --with-view-name=NAME what to call the View executable 1530 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1531 --with-modified-by=NAME name of who modified a release version 1532 --with-features=TYPE tiny, small, normal, big or huge (default: huge) 1533 --with-compiledby=NAME name to show in :version message 1534 --with-lua-prefix=PFX Prefix where Lua is installed. 1535 --with-luajit Link with LuaJIT instead of Lua. 1536 --with-plthome=PLTHOME Use PLTHOME. 1537 --with-python-command=NAME name of the Python 2 command (default: python2 or python) 1538 --with-python-config-dir=PATH Python's config directory (deprecated) 1539 --with-python3-command=NAME name of the Python 3 command (default: python3 or python) 1540 --with-python3-config-dir=PATH Python's config directory (deprecated) 1541 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1542 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1543 --with-x use the X Window System 1544 --with-gnome-includes=DIR Specify location of GNOME headers 1545 --with-gnome-libs=DIR Specify location of GNOME libs 1546 --with-gnome Specify prefix for GNOME files 1547 --with-motif-lib=STRING Library for Motif 1548 --with-tlib=library terminal library to be used 1549 1550Some influential environment variables: 1551 CC C compiler command 1552 CFLAGS C compiler flags 1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1554 nonstandard directory <lib dir> 1555 LIBS libraries to pass to the linker, e.g. -l<library> 1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1557 you have headers in a nonstandard directory <include dir> 1558 CPP C preprocessor 1559 XMKMF Path to xmkmf, Makefile generator for X Window System 1560 1561Use these variables to override the choices made by `configure' or to help 1562it to find libraries and programs with nonstandard names/locations. 1563 1564Report bugs to the package provider. 1565_ACEOF 1566ac_status=$? 1567fi 1568 1569if test "$ac_init_help" = "recursive"; then 1570 # If there are subdirs, report their specific --help. 1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1572 test -d "$ac_dir" || 1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1574 continue 1575 ac_builddir=. 1576 1577case "$ac_dir" in 1578.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1579*) 1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1581 # A ".." for each directory in $ac_dir_suffix. 1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1583 case $ac_top_builddir_sub in 1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1586 esac ;; 1587esac 1588ac_abs_top_builddir=$ac_pwd 1589ac_abs_builddir=$ac_pwd$ac_dir_suffix 1590# for backward compatibility: 1591ac_top_builddir=$ac_top_build_prefix 1592 1593case $srcdir in 1594 .) # We are building in place. 1595 ac_srcdir=. 1596 ac_top_srcdir=$ac_top_builddir_sub 1597 ac_abs_top_srcdir=$ac_pwd ;; 1598 [\\/]* | ?:[\\/]* ) # Absolute name. 1599 ac_srcdir=$srcdir$ac_dir_suffix; 1600 ac_top_srcdir=$srcdir 1601 ac_abs_top_srcdir=$srcdir ;; 1602 *) # Relative name. 1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1604 ac_top_srcdir=$ac_top_build_prefix$srcdir 1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1606esac 1607ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1608 1609 cd "$ac_dir" || { ac_status=$?; continue; } 1610 # Check for guested configure. 1611 if test -f "$ac_srcdir/configure.gnu"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1614 elif test -f "$ac_srcdir/configure"; then 1615 echo && 1616 $SHELL "$ac_srcdir/configure" --help=recursive 1617 else 1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1619 fi || ac_status=$? 1620 cd "$ac_pwd" || { ac_status=$?; break; } 1621 done 1622fi 1623 1624test -n "$ac_init_help" && exit $ac_status 1625if $ac_init_version; then 1626 cat <<\_ACEOF 1627configure 1628generated by GNU Autoconf 2.69 1629 1630Copyright (C) 2012 Free Software Foundation, Inc. 1631This configure script is free software; the Free Software Foundation 1632gives unlimited permission to copy, distribute and modify it. 1633_ACEOF 1634 exit 1635fi 1636 1637## ------------------------ ## 1638## Autoconf initialization. ## 1639## ------------------------ ## 1640 1641# ac_fn_c_try_compile LINENO 1642# -------------------------- 1643# Try to compile conftest.$ac_ext, and return whether this succeeded. 1644ac_fn_c_try_compile () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext 1648 if { { ac_try="$ac_compile" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_compile") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest.$ac_objext; then : 1667 ac_retval=0 1668else 1669 $as_echo "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_c_try_compile 1678 1679# ac_fn_c_try_cpp LINENO 1680# ---------------------- 1681# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_cpp () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 if { { ac_try="$ac_cpp conftest.$ac_ext" 1686case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1693 ac_status=$? 1694 if test -s conftest.err; then 1695 grep -v '^ *+' conftest.err >conftest.er1 1696 cat conftest.er1 >&5 1697 mv -f conftest.er1 conftest.err 1698 fi 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } > conftest.i && { 1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1702 test ! -s conftest.err 1703 }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=1 1710fi 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 as_fn_set_status $ac_retval 1713 1714} # ac_fn_c_try_cpp 1715 1716# ac_fn_c_try_link LINENO 1717# ----------------------- 1718# Try to link conftest.$ac_ext, and return whether this succeeded. 1719ac_fn_c_try_link () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 rm -f conftest.$ac_objext conftest$ac_exeext 1723 if { { ac_try="$ac_link" 1724case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_link") 2>conftest.err 1731 ac_status=$? 1732 if test -s conftest.err; then 1733 grep -v '^ *+' conftest.err >conftest.er1 1734 cat conftest.er1 >&5 1735 mv -f conftest.er1 conftest.err 1736 fi 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; } && { 1739 test -z "$ac_c_werror_flag" || 1740 test ! -s conftest.err 1741 } && test -s conftest$ac_exeext && { 1742 test "$cross_compiling" = yes || 1743 test -x conftest$ac_exeext 1744 }; then : 1745 ac_retval=0 1746else 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=1 1751fi 1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1754 # interfere with the next link command; also delete a directory that is 1755 # left behind by Apple's compiler. We do this before executing the actions. 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760} # ac_fn_c_try_link 1761 1762# ac_fn_c_try_run LINENO 1763# ---------------------- 1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1765# that executables *can* be run. 1766ac_fn_c_try_run () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 if { { ac_try="$ac_link" 1770case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_link") 2>&5 1777 ac_status=$? 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1780 { { case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_try") 2>&5 1787 ac_status=$? 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; }; }; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: program exited with status $ac_status" >&5 1793 $as_echo "$as_me: failed program was:" >&5 1794sed 's/^/| /' conftest.$ac_ext >&5 1795 1796 ac_retval=$ac_status 1797fi 1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 as_fn_set_status $ac_retval 1801 1802} # ac_fn_c_try_run 1803 1804# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1805# ------------------------------------------------------- 1806# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1807# the include files in INCLUDES and setting the cache variable VAR 1808# accordingly. 1809ac_fn_c_check_header_mongrel () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 if eval \${$3+:} false; then : 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1814$as_echo_n "checking for $2... " >&6; } 1815if eval \${$3+:} false; then : 1816 $as_echo_n "(cached) " >&6 1817fi 1818eval ac_res=\$$3 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820$as_echo "$ac_res" >&6; } 1821else 1822 # Is the header compilable? 1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1824$as_echo_n "checking $2 usability... " >&6; } 1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827$4 1828#include <$2> 1829_ACEOF 1830if ac_fn_c_try_compile "$LINENO"; then : 1831 ac_header_compiler=yes 1832else 1833 ac_header_compiler=no 1834fi 1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1837$as_echo "$ac_header_compiler" >&6; } 1838 1839# Is the header present? 1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1841$as_echo_n "checking $2 presence... " >&6; } 1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844#include <$2> 1845_ACEOF 1846if ac_fn_c_try_cpp "$LINENO"; then : 1847 ac_header_preproc=yes 1848else 1849 ac_header_preproc=no 1850fi 1851rm -f conftest.err conftest.i conftest.$ac_ext 1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1853$as_echo "$ac_header_preproc" >&6; } 1854 1855# So? What about this header? 1856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1857 yes:no: ) 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1859$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1862 ;; 1863 no:yes:* ) 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1865$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1867$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1869$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1871$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1874 ;; 1875esac 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1877$as_echo_n "checking for $2... " >&6; } 1878if eval \${$3+:} false; then : 1879 $as_echo_n "(cached) " >&6 1880else 1881 eval "$3=\$ac_header_compiler" 1882fi 1883eval ac_res=\$$3 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1885$as_echo "$ac_res" >&6; } 1886fi 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889} # ac_fn_c_check_header_mongrel 1890 1891# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1892# ------------------------------------------------------- 1893# Tests whether HEADER exists and can be compiled using the include files in 1894# INCLUDES, setting the cache variable VAR accordingly. 1895ac_fn_c_check_header_compile () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899$as_echo_n "checking for $2... " >&6; } 1900if eval \${$3+:} false; then : 1901 $as_echo_n "(cached) " >&6 1902else 1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904/* end confdefs.h. */ 1905$4 1906#include <$2> 1907_ACEOF 1908if ac_fn_c_try_compile "$LINENO"; then : 1909 eval "$3=yes" 1910else 1911 eval "$3=no" 1912fi 1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1914fi 1915eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917$as_echo "$ac_res" >&6; } 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 1920} # ac_fn_c_check_header_compile 1921 1922# ac_fn_c_check_func LINENO FUNC VAR 1923# ---------------------------------- 1924# Tests whether FUNC exists, setting the cache variable VAR accordingly 1925ac_fn_c_check_func () 1926{ 1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932else 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1937#define $2 innocuous_$2 1938 1939/* System header to define __stub macros and hopefully few prototypes, 1940 which can conflict with char $2 (); below. 1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1942 <limits.h> exists even on freestanding compilers. */ 1943 1944#ifdef __STDC__ 1945# include <limits.h> 1946#else 1947# include <assert.h> 1948#endif 1949 1950#undef $2 1951 1952/* Override any GCC internal prototype to avoid an error. 1953 Use char because int might match the return type of a GCC 1954 builtin and then its argument prototype would still apply. */ 1955#ifdef __cplusplus 1956extern "C" 1957#endif 1958char $2 (); 1959/* The GNU C library defines this for functions which it implements 1960 to always fail with ENOSYS. Some functions are actually named 1961 something starting with __ and the normal name is an alias. */ 1962#if defined __stub_$2 || defined __stub___$2 1963choke me 1964#endif 1965 1966int 1967main () 1968{ 1969return $2 (); 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_link "$LINENO"; then : 1975 eval "$3=yes" 1976else 1977 eval "$3=no" 1978fi 1979rm -f core conftest.err conftest.$ac_objext \ 1980 conftest$ac_exeext conftest.$ac_ext 1981fi 1982eval ac_res=\$$3 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 1987} # ac_fn_c_check_func 1988 1989# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1990# ------------------------------------------- 1991# Tests whether TYPE exists after having included INCLUDES, setting cache 1992# variable VAR accordingly. 1993ac_fn_c_check_type () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997$as_echo_n "checking for $2... " >&6; } 1998if eval \${$3+:} false; then : 1999 $as_echo_n "(cached) " >&6 2000else 2001 eval "$3=no" 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$4 2005int 2006main () 2007{ 2008if (sizeof ($2)) 2009 return 0; 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO"; then : 2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2016/* end confdefs.h. */ 2017$4 2018int 2019main () 2020{ 2021if (sizeof (($2))) 2022 return 0; 2023 ; 2024 return 0; 2025} 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 2029else 2030 eval "$3=yes" 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035fi 2036eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038$as_echo "$ac_res" >&6; } 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040 2041} # ac_fn_c_check_type 2042 2043# ac_fn_c_find_uintX_t LINENO BITS VAR 2044# ------------------------------------ 2045# Finds an unsigned integer type with width BITS, setting cache variable VAR 2046# accordingly. 2047ac_fn_c_find_uintX_t () 2048{ 2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2051$as_echo_n "checking for uint$2_t... " >&6; } 2052if eval \${$3+:} false; then : 2053 $as_echo_n "(cached) " >&6 2054else 2055 eval "$3=no" 2056 # Order is important - never check a type that is potentially smaller 2057 # than half of the expected target width. 2058 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2059 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062$ac_includes_default 2063int 2064main () 2065{ 2066static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2067test_array [0] = 0; 2068return test_array [0]; 2069 2070 ; 2071 return 0; 2072} 2073_ACEOF 2074if ac_fn_c_try_compile "$LINENO"; then : 2075 case $ac_type in #( 2076 uint$2_t) : 2077 eval "$3=yes" ;; #( 2078 *) : 2079 eval "$3=\$ac_type" ;; 2080esac 2081fi 2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2083 if eval test \"x\$"$3"\" = x"no"; then : 2084 2085else 2086 break 2087fi 2088 done 2089fi 2090eval ac_res=\$$3 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2092$as_echo "$ac_res" >&6; } 2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2094 2095} # ac_fn_c_find_uintX_t 2096 2097# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2098# -------------------------------------------- 2099# Tries to find the compile-time value of EXPR in a program that includes 2100# INCLUDES, setting VAR accordingly. Returns whether the value could be 2101# computed 2102ac_fn_c_compute_int () 2103{ 2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2105 if test "$cross_compiling" = yes; then 2106 # Depending upon the size, compute the lo and hi bounds. 2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2108/* end confdefs.h. */ 2109$4 2110int 2111main () 2112{ 2113static int test_array [1 - 2 * !(($2) >= 0)]; 2114test_array [0] = 0; 2115return test_array [0]; 2116 2117 ; 2118 return 0; 2119} 2120_ACEOF 2121if ac_fn_c_try_compile "$LINENO"; then : 2122 ac_lo=0 ac_mid=0 2123 while :; do 2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2125/* end confdefs.h. */ 2126$4 2127int 2128main () 2129{ 2130static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2131test_array [0] = 0; 2132return test_array [0]; 2133 2134 ; 2135 return 0; 2136} 2137_ACEOF 2138if ac_fn_c_try_compile "$LINENO"; then : 2139 ac_hi=$ac_mid; break 2140else 2141 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2142 if test $ac_lo -le $ac_mid; then 2143 ac_lo= ac_hi= 2144 break 2145 fi 2146 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2147fi 2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2149 done 2150else 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$4 2154int 2155main () 2156{ 2157static int test_array [1 - 2 * !(($2) < 0)]; 2158test_array [0] = 0; 2159return test_array [0]; 2160 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_c_try_compile "$LINENO"; then : 2166 ac_hi=-1 ac_mid=-1 2167 while :; do 2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2169/* end confdefs.h. */ 2170$4 2171int 2172main () 2173{ 2174static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2175test_array [0] = 0; 2176return test_array [0]; 2177 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_compile "$LINENO"; then : 2183 ac_lo=$ac_mid; break 2184else 2185 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2186 if test $ac_mid -le $ac_hi; then 2187 ac_lo= ac_hi= 2188 break 2189 fi 2190 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2191fi 2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2193 done 2194else 2195 ac_lo= ac_hi= 2196fi 2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200# Binary search between lo and hi bounds. 2201while test "x$ac_lo" != "x$ac_hi"; do 2202 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2204/* end confdefs.h. */ 2205$4 2206int 2207main () 2208{ 2209static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2210test_array [0] = 0; 2211return test_array [0]; 2212 2213 ; 2214 return 0; 2215} 2216_ACEOF 2217if ac_fn_c_try_compile "$LINENO"; then : 2218 ac_hi=$ac_mid 2219else 2220 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2221fi 2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2223done 2224case $ac_lo in #(( 2225?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2226'') ac_retval=1 ;; 2227esac 2228 else 2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2230/* end confdefs.h. */ 2231$4 2232static long int longval () { return $2; } 2233static unsigned long int ulongval () { return $2; } 2234#include <stdio.h> 2235#include <stdlib.h> 2236int 2237main () 2238{ 2239 2240 FILE *f = fopen ("conftest.val", "w"); 2241 if (! f) 2242 return 1; 2243 if (($2) < 0) 2244 { 2245 long int i = longval (); 2246 if (i != ($2)) 2247 return 1; 2248 fprintf (f, "%ld", i); 2249 } 2250 else 2251 { 2252 unsigned long int i = ulongval (); 2253 if (i != ($2)) 2254 return 1; 2255 fprintf (f, "%lu", i); 2256 } 2257 /* Do not output a trailing newline, as this causes \r\n confusion 2258 on some platforms. */ 2259 return ferror (f) || fclose (f) != 0; 2260 2261 ; 2262 return 0; 2263} 2264_ACEOF 2265if ac_fn_c_try_run "$LINENO"; then : 2266 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2267else 2268 ac_retval=1 2269fi 2270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2271 conftest.$ac_objext conftest.beam conftest.$ac_ext 2272rm -f conftest.val 2273 2274 fi 2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2276 as_fn_set_status $ac_retval 2277 2278} # ac_fn_c_compute_int 2279cat >auto/config.log <<_ACEOF 2280This file contains any messages produced by compilers while 2281running configure, to aid debugging if configure makes a mistake. 2282 2283It was created by $as_me, which was 2284generated by GNU Autoconf 2.69. Invocation command line was 2285 2286 $ $0 $@ 2287 2288_ACEOF 2289exec 5>>auto/config.log 2290{ 2291cat <<_ASUNAME 2292## --------- ## 2293## Platform. ## 2294## --------- ## 2295 2296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2297uname -m = `(uname -m) 2>/dev/null || echo unknown` 2298uname -r = `(uname -r) 2>/dev/null || echo unknown` 2299uname -s = `(uname -s) 2>/dev/null || echo unknown` 2300uname -v = `(uname -v) 2>/dev/null || echo unknown` 2301 2302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2303/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2304 2305/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2306/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2308/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2309/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2310/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2311/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2312 2313_ASUNAME 2314 2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2316for as_dir in $PATH 2317do 2318 IFS=$as_save_IFS 2319 test -z "$as_dir" && as_dir=. 2320 $as_echo "PATH: $as_dir" 2321 done 2322IFS=$as_save_IFS 2323 2324} >&5 2325 2326cat >&5 <<_ACEOF 2327 2328 2329## ----------- ## 2330## Core tests. ## 2331## ----------- ## 2332 2333_ACEOF 2334 2335 2336# Keep a trace of the command line. 2337# Strip out --no-create and --no-recursion so they do not pile up. 2338# Strip out --silent because we don't want to record it for future runs. 2339# Also quote any args containing shell meta-characters. 2340# Make two passes to allow for proper duplicate-argument suppression. 2341ac_configure_args= 2342ac_configure_args0= 2343ac_configure_args1= 2344ac_must_keep_next=false 2345for ac_pass in 1 2 2346do 2347 for ac_arg 2348 do 2349 case $ac_arg in 2350 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2352 | -silent | --silent | --silen | --sile | --sil) 2353 continue ;; 2354 *\'*) 2355 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2356 esac 2357 case $ac_pass in 2358 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2359 2) 2360 as_fn_append ac_configure_args1 " '$ac_arg'" 2361 if test $ac_must_keep_next = true; then 2362 ac_must_keep_next=false # Got value, back to normal. 2363 else 2364 case $ac_arg in 2365 *=* | --config-cache | -C | -disable-* | --disable-* \ 2366 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2367 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2368 | -with-* | --with-* | -without-* | --without-* | --x) 2369 case "$ac_configure_args0 " in 2370 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2371 esac 2372 ;; 2373 -* ) ac_must_keep_next=true ;; 2374 esac 2375 fi 2376 as_fn_append ac_configure_args " '$ac_arg'" 2377 ;; 2378 esac 2379 done 2380done 2381{ ac_configure_args0=; unset ac_configure_args0;} 2382{ ac_configure_args1=; unset ac_configure_args1;} 2383 2384# When interrupted or exit'd, cleanup temporary files, and complete 2385# config.log. We remove comments because anyway the quotes in there 2386# would cause problems or look ugly. 2387# WARNING: Use '\'' to represent an apostrophe within the trap. 2388# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2389trap 'exit_status=$? 2390 # Save into config.log some information that might help in debugging. 2391 { 2392 echo 2393 2394 $as_echo "## ---------------- ## 2395## Cache variables. ## 2396## ---------------- ##" 2397 echo 2398 # The following way of writing the cache mishandles newlines in values, 2399( 2400 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2401 eval ac_val=\$$ac_var 2402 case $ac_val in #( 2403 *${as_nl}*) 2404 case $ac_var in #( 2405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2407 esac 2408 case $ac_var in #( 2409 _ | IFS | as_nl) ;; #( 2410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2411 *) { eval $ac_var=; unset $ac_var;} ;; 2412 esac ;; 2413 esac 2414 done 2415 (set) 2>&1 | 2416 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2417 *${as_nl}ac_space=\ *) 2418 sed -n \ 2419 "s/'\''/'\''\\\\'\'''\''/g; 2420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2421 ;; #( 2422 *) 2423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2424 ;; 2425 esac | 2426 sort 2427) 2428 echo 2429 2430 $as_echo "## ----------------- ## 2431## Output variables. ## 2432## ----------------- ##" 2433 echo 2434 for ac_var in $ac_subst_vars 2435 do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in 2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 esac 2440 $as_echo "$ac_var='\''$ac_val'\''" 2441 done | sort 2442 echo 2443 2444 if test -n "$ac_subst_files"; then 2445 $as_echo "## ------------------- ## 2446## File substitutions. ## 2447## ------------------- ##" 2448 echo 2449 for ac_var in $ac_subst_files 2450 do 2451 eval ac_val=\$$ac_var 2452 case $ac_val in 2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2454 esac 2455 $as_echo "$ac_var='\''$ac_val'\''" 2456 done | sort 2457 echo 2458 fi 2459 2460 if test -s confdefs.h; then 2461 $as_echo "## ----------- ## 2462## confdefs.h. ## 2463## ----------- ##" 2464 echo 2465 cat confdefs.h 2466 echo 2467 fi 2468 test "$ac_signal" != 0 && 2469 $as_echo "$as_me: caught signal $ac_signal" 2470 $as_echo "$as_me: exit $exit_status" 2471 } >&5 2472 rm -f core *.core core.conftest.* && 2473 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2474 exit $exit_status 2475' 0 2476for ac_signal in 1 2 13 15; do 2477 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2478done 2479ac_signal=0 2480 2481# confdefs.h avoids OS command line length limits that DEFS can exceed. 2482rm -f -r conftest* confdefs.h 2483 2484$as_echo "/* confdefs.h */" > confdefs.h 2485 2486# Predefined preprocessor variables. 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_NAME "$PACKAGE_NAME" 2490_ACEOF 2491 2492cat >>confdefs.h <<_ACEOF 2493#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2494_ACEOF 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_VERSION "$PACKAGE_VERSION" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_STRING "$PACKAGE_STRING" 2502_ACEOF 2503 2504cat >>confdefs.h <<_ACEOF 2505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2506_ACEOF 2507 2508cat >>confdefs.h <<_ACEOF 2509#define PACKAGE_URL "$PACKAGE_URL" 2510_ACEOF 2511 2512 2513# Let the site file select an alternate cache file if it wants to. 2514# Prefer an explicitly selected file to automatically selected ones. 2515ac_site_file1=NONE 2516ac_site_file2=NONE 2517if test -n "$CONFIG_SITE"; then 2518 # We do not want a PATH search for config.site. 2519 case $CONFIG_SITE in #(( 2520 -*) ac_site_file1=./$CONFIG_SITE;; 2521 */*) ac_site_file1=$CONFIG_SITE;; 2522 *) ac_site_file1=./$CONFIG_SITE;; 2523 esac 2524elif test "x$prefix" != xNONE; then 2525 ac_site_file1=$prefix/share/config.site 2526 ac_site_file2=$prefix/etc/config.site 2527else 2528 ac_site_file1=$ac_default_prefix/share/config.site 2529 ac_site_file2=$ac_default_prefix/etc/config.site 2530fi 2531for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2532do 2533 test "x$ac_site_file" = xNONE && continue 2534 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2536$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2537 sed 's/^/| /' "$ac_site_file" >&5 2538 . "$ac_site_file" \ 2539 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2541as_fn_error $? "failed to load site script $ac_site_file 2542See \`config.log' for more details" "$LINENO" 5; } 2543 fi 2544done 2545 2546if test -r "$cache_file"; then 2547 # Some versions of bash will fail to source /dev/null (special files 2548 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2549 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2551$as_echo "$as_me: loading cache $cache_file" >&6;} 2552 case $cache_file in 2553 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2554 *) . "./$cache_file";; 2555 esac 2556 fi 2557else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2559$as_echo "$as_me: creating cache $cache_file" >&6;} 2560 >$cache_file 2561fi 2562 2563# Check that the precious variables saved in the cache have kept the same 2564# value. 2565ac_cache_corrupted=false 2566for ac_var in $ac_precious_vars; do 2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2568 eval ac_new_set=\$ac_env_${ac_var}_set 2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2570 eval ac_new_val=\$ac_env_${ac_var}_value 2571 case $ac_old_set,$ac_new_set in 2572 set,) 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2574$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2575 ac_cache_corrupted=: ;; 2576 ,set) 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2578$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2579 ac_cache_corrupted=: ;; 2580 ,);; 2581 *) 2582 if test "x$ac_old_val" != "x$ac_new_val"; then 2583 # differences in whitespace do not lead to failure. 2584 ac_old_val_w=`echo x $ac_old_val` 2585 ac_new_val_w=`echo x $ac_new_val` 2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2588$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2589 ac_cache_corrupted=: 2590 else 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2592$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2593 eval $ac_var=\$ac_old_val 2594 fi 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2596$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2598$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2599 fi;; 2600 esac 2601 # Pass precious variables to config.status. 2602 if test "$ac_new_set" = set; then 2603 case $ac_new_val in 2604 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2605 *) ac_arg=$ac_var=$ac_new_val ;; 2606 esac 2607 case " $ac_configure_args " in 2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2610 esac 2611 fi 2612done 2613if $ac_cache_corrupted; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2617$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2618 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2619fi 2620## -------------------- ## 2621## Main body of script. ## 2622## -------------------- ## 2623 2624ac_ext=c 2625ac_cpp='$CPP $CPPFLAGS' 2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2628ac_compiler_gnu=$ac_cv_c_compiler_gnu 2629 2630 2631ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2632 2633 2634$as_echo "#define UNIX 1" >>confdefs.h 2635 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2637$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2638set x ${MAKE-make} 2639ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2640if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 cat >conftest.make <<\_ACEOF 2644SHELL = /bin/sh 2645all: 2646 @echo '@@@%%%=$(MAKE)=@@@%%%' 2647_ACEOF 2648# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2649case `${MAKE-make} -f conftest.make 2>/dev/null` in 2650 *@@@%%%=?*=@@@%%%*) 2651 eval ac_cv_prog_make_${ac_make}_set=yes;; 2652 *) 2653 eval ac_cv_prog_make_${ac_make}_set=no;; 2654esac 2655rm -f conftest.make 2656fi 2657if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2659$as_echo "yes" >&6; } 2660 SET_MAKE= 2661else 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663$as_echo "no" >&6; } 2664 SET_MAKE="MAKE=${MAKE-make}" 2665fi 2666 2667 2668ac_ext=c 2669ac_cpp='$CPP $CPPFLAGS' 2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2672ac_compiler_gnu=$ac_cv_c_compiler_gnu 2673if test -n "$ac_tool_prefix"; then 2674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2675set dummy ${ac_tool_prefix}gcc; ac_word=$2 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2677$as_echo_n "checking for $ac_word... " >&6; } 2678if ${ac_cv_prog_CC+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test -n "$CC"; then 2682 ac_cv_prog_CC="$CC" # Let the user override the test. 2683else 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2691 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695done 2696 done 2697IFS=$as_save_IFS 2698 2699fi 2700fi 2701CC=$ac_cv_prog_CC 2702if test -n "$CC"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2704$as_echo "$CC" >&6; } 2705else 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2707$as_echo "no" >&6; } 2708fi 2709 2710 2711fi 2712if test -z "$ac_cv_prog_CC"; then 2713 ac_ct_CC=$CC 2714 # Extract the first word of "gcc", so it can be a program name with args. 2715set dummy gcc; ac_word=$2 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2717$as_echo_n "checking for $ac_word... " >&6; } 2718if ${ac_cv_prog_ac_ct_CC+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 if test -n "$ac_ct_CC"; then 2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2723else 2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2731 ac_cv_prog_ac_ct_CC="gcc" 2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2733 break 2 2734 fi 2735done 2736 done 2737IFS=$as_save_IFS 2738 2739fi 2740fi 2741ac_ct_CC=$ac_cv_prog_ac_ct_CC 2742if test -n "$ac_ct_CC"; then 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2744$as_echo "$ac_ct_CC" >&6; } 2745else 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2747$as_echo "no" >&6; } 2748fi 2749 2750 if test "x$ac_ct_CC" = x; then 2751 CC="" 2752 else 2753 case $cross_compiling:$ac_tool_warned in 2754yes:) 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2757ac_tool_warned=yes ;; 2758esac 2759 CC=$ac_ct_CC 2760 fi 2761else 2762 CC="$ac_cv_prog_CC" 2763fi 2764 2765if test -z "$CC"; then 2766 if test -n "$ac_tool_prefix"; then 2767 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2768set dummy ${ac_tool_prefix}cc; ac_word=$2 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770$as_echo_n "checking for $ac_word... " >&6; } 2771if ${ac_cv_prog_CC+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test -n "$CC"; then 2775 ac_cv_prog_CC="$CC" # Let the user override the test. 2776else 2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2784 ac_cv_prog_CC="${ac_tool_prefix}cc" 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788done 2789 done 2790IFS=$as_save_IFS 2791 2792fi 2793fi 2794CC=$ac_cv_prog_CC 2795if test -n "$CC"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2797$as_echo "$CC" >&6; } 2798else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800$as_echo "no" >&6; } 2801fi 2802 2803 2804 fi 2805fi 2806if test -z "$CC"; then 2807 # Extract the first word of "cc", so it can be a program name with args. 2808set dummy cc; ac_word=$2 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if ${ac_cv_prog_CC+:} false; then : 2812 $as_echo_n "(cached) " >&6 2813else 2814 if test -n "$CC"; then 2815 ac_cv_prog_CC="$CC" # Let the user override the test. 2816else 2817 ac_prog_rejected=no 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 test -z "$as_dir" && as_dir=. 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2825 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2826 ac_prog_rejected=yes 2827 continue 2828 fi 2829 ac_cv_prog_CC="cc" 2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2831 break 2 2832 fi 2833done 2834 done 2835IFS=$as_save_IFS 2836 2837if test $ac_prog_rejected = yes; then 2838 # We found a bogon in the path, so make sure we never use it. 2839 set dummy $ac_cv_prog_CC 2840 shift 2841 if test $# != 0; then 2842 # We chose a different compiler from the bogus one. 2843 # However, it has the same basename, so the bogon will be chosen 2844 # first if we set CC to just the basename; use the full file name. 2845 shift 2846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2847 fi 2848fi 2849fi 2850fi 2851CC=$ac_cv_prog_CC 2852if test -n "$CC"; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2854$as_echo "$CC" >&6; } 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858fi 2859 2860 2861fi 2862if test -z "$CC"; then 2863 if test -n "$ac_tool_prefix"; then 2864 for ac_prog in cl.exe 2865 do 2866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2867set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2869$as_echo_n "checking for $ac_word... " >&6; } 2870if ${ac_cv_prog_CC+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872else 2873 if test -n "$CC"; then 2874 ac_cv_prog_CC="$CC" # Let the user override the test. 2875else 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 test -z "$as_dir" && as_dir=. 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888 done 2889IFS=$as_save_IFS 2890 2891fi 2892fi 2893CC=$ac_cv_prog_CC 2894if test -n "$CC"; then 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2896$as_echo "$CC" >&6; } 2897else 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899$as_echo "no" >&6; } 2900fi 2901 2902 2903 test -n "$CC" && break 2904 done 2905fi 2906if test -z "$CC"; then 2907 ac_ct_CC=$CC 2908 for ac_prog in cl.exe 2909do 2910 # Extract the first word of "$ac_prog", so it can be a program name with args. 2911set dummy $ac_prog; ac_word=$2 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2913$as_echo_n "checking for $ac_word... " >&6; } 2914if ${ac_cv_prog_ac_ct_CC+:} false; then : 2915 $as_echo_n "(cached) " >&6 2916else 2917 if test -n "$ac_ct_CC"; then 2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2919else 2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2921for as_dir in $PATH 2922do 2923 IFS=$as_save_IFS 2924 test -z "$as_dir" && as_dir=. 2925 for ac_exec_ext in '' $ac_executable_extensions; do 2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2927 ac_cv_prog_ac_ct_CC="$ac_prog" 2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2929 break 2 2930 fi 2931done 2932 done 2933IFS=$as_save_IFS 2934 2935fi 2936fi 2937ac_ct_CC=$ac_cv_prog_ac_ct_CC 2938if test -n "$ac_ct_CC"; then 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2940$as_echo "$ac_ct_CC" >&6; } 2941else 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943$as_echo "no" >&6; } 2944fi 2945 2946 2947 test -n "$ac_ct_CC" && break 2948done 2949 2950 if test "x$ac_ct_CC" = x; then 2951 CC="" 2952 else 2953 case $cross_compiling:$ac_tool_warned in 2954yes:) 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2957ac_tool_warned=yes ;; 2958esac 2959 CC=$ac_ct_CC 2960 fi 2961fi 2962 2963fi 2964 2965 2966test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2968as_fn_error $? "no acceptable C compiler found in \$PATH 2969See \`config.log' for more details" "$LINENO" 5; } 2970 2971# Provide some information about the compiler. 2972$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2973set X $ac_compile 2974ac_compiler=$2 2975for ac_option in --version -v -V -qversion; do 2976 { { ac_try="$ac_compiler $ac_option >&5" 2977case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2982$as_echo "$ac_try_echo"; } >&5 2983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2984 ac_status=$? 2985 if test -s conftest.err; then 2986 sed '10a\ 2987... rest of stderr output deleted ... 2988 10q' conftest.err >conftest.er1 2989 cat conftest.er1 >&5 2990 fi 2991 rm -f conftest.er1 conftest.err 2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2993 test $ac_status = 0; } 2994done 2995 2996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2997/* end confdefs.h. */ 2998 2999int 3000main () 3001{ 3002 3003 ; 3004 return 0; 3005} 3006_ACEOF 3007ac_clean_files_save=$ac_clean_files 3008ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3009# Try to create an executable without -o first, disregard a.out. 3010# It will help us diagnose broken compilers, and finding out an intuition 3011# of exeext. 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3013$as_echo_n "checking whether the C compiler works... " >&6; } 3014ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3015 3016# The possible output files: 3017ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3018 3019ac_rmfiles= 3020for ac_file in $ac_files 3021do 3022 case $ac_file in 3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3024 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3025 esac 3026done 3027rm -f $ac_rmfiles 3028 3029if { { ac_try="$ac_link_default" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3035$as_echo "$ac_try_echo"; } >&5 3036 (eval "$ac_link_default") 2>&5 3037 ac_status=$? 3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3039 test $ac_status = 0; }; then : 3040 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3041# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3042# in a Makefile. We should not override ac_cv_exeext if it was cached, 3043# so that the user can short-circuit this test for compilers unknown to 3044# Autoconf. 3045for ac_file in $ac_files '' 3046do 3047 test -f "$ac_file" || continue 3048 case $ac_file in 3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3050 ;; 3051 [ab].out ) 3052 # We found the default executable, but exeext='' is most 3053 # certainly right. 3054 break;; 3055 *.* ) 3056 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3057 then :; else 3058 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3059 fi 3060 # We set ac_cv_exeext here because the later test for it is not 3061 # safe: cross compilers may not add the suffix if given an `-o' 3062 # argument, so we may need to know it at that point already. 3063 # Even if this section looks crufty: it has the advantage of 3064 # actually working. 3065 break;; 3066 * ) 3067 break;; 3068 esac 3069done 3070test "$ac_cv_exeext" = no && ac_cv_exeext= 3071 3072else 3073 ac_file='' 3074fi 3075if test -z "$ac_file"; then : 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077$as_echo "no" >&6; } 3078$as_echo "$as_me: failed program was:" >&5 3079sed 's/^/| /' conftest.$ac_ext >&5 3080 3081{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3083as_fn_error 77 "C compiler cannot create executables 3084See \`config.log' for more details" "$LINENO" 5; } 3085else 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3087$as_echo "yes" >&6; } 3088fi 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3090$as_echo_n "checking for C compiler default output file name... " >&6; } 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3092$as_echo "$ac_file" >&6; } 3093ac_exeext=$ac_cv_exeext 3094 3095rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3096ac_clean_files=$ac_clean_files_save 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3098$as_echo_n "checking for suffix of executables... " >&6; } 3099if { { ac_try="$ac_link" 3100case "(($ac_try" in 3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3102 *) ac_try_echo=$ac_try;; 3103esac 3104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3105$as_echo "$ac_try_echo"; } >&5 3106 (eval "$ac_link") 2>&5 3107 ac_status=$? 3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3109 test $ac_status = 0; }; then : 3110 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3111# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3112# work properly (i.e., refer to `conftest.exe'), while it won't with 3113# `rm'. 3114for ac_file in conftest.exe conftest conftest.*; do 3115 test -f "$ac_file" || continue 3116 case $ac_file in 3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3119 break;; 3120 * ) break;; 3121 esac 3122done 3123else 3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3126as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3127See \`config.log' for more details" "$LINENO" 5; } 3128fi 3129rm -f conftest conftest$ac_cv_exeext 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3131$as_echo "$ac_cv_exeext" >&6; } 3132 3133rm -f conftest.$ac_ext 3134EXEEXT=$ac_cv_exeext 3135ac_exeext=$EXEEXT 3136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3137/* end confdefs.h. */ 3138#include <stdio.h> 3139int 3140main () 3141{ 3142FILE *f = fopen ("conftest.out", "w"); 3143 return ferror (f) || fclose (f) != 0; 3144 3145 ; 3146 return 0; 3147} 3148_ACEOF 3149ac_clean_files="$ac_clean_files conftest.out" 3150# Check that the compiler produces executables we can run. If not, either 3151# the compiler is broken, or we cross compile. 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3153$as_echo_n "checking whether we are cross compiling... " >&6; } 3154if test "$cross_compiling" != yes; then 3155 { { ac_try="$ac_link" 3156case "(($ac_try" in 3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3158 *) ac_try_echo=$ac_try;; 3159esac 3160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3161$as_echo "$ac_try_echo"; } >&5 3162 (eval "$ac_link") 2>&5 3163 ac_status=$? 3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3165 test $ac_status = 0; } 3166 if { ac_try='./conftest$ac_cv_exeext' 3167 { { case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3172$as_echo "$ac_try_echo"; } >&5 3173 (eval "$ac_try") 2>&5 3174 ac_status=$? 3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3176 test $ac_status = 0; }; }; then 3177 cross_compiling=no 3178 else 3179 if test "$cross_compiling" = maybe; then 3180 cross_compiling=yes 3181 else 3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3184as_fn_error $? "cannot run C compiled programs. 3185If you meant to cross compile, use \`--host'. 3186See \`config.log' for more details" "$LINENO" 5; } 3187 fi 3188 fi 3189fi 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3191$as_echo "$cross_compiling" >&6; } 3192 3193rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3194ac_clean_files=$ac_clean_files_save 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3196$as_echo_n "checking for suffix of object files... " >&6; } 3197if ${ac_cv_objext+:} false; then : 3198 $as_echo_n "(cached) " >&6 3199else 3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3201/* end confdefs.h. */ 3202 3203int 3204main () 3205{ 3206 3207 ; 3208 return 0; 3209} 3210_ACEOF 3211rm -f conftest.o conftest.obj 3212if { { ac_try="$ac_compile" 3213case "(($ac_try" in 3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3215 *) ac_try_echo=$ac_try;; 3216esac 3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3218$as_echo "$ac_try_echo"; } >&5 3219 (eval "$ac_compile") 2>&5 3220 ac_status=$? 3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3222 test $ac_status = 0; }; then : 3223 for ac_file in conftest.o conftest.obj conftest.*; do 3224 test -f "$ac_file" || continue; 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3228 break;; 3229 esac 3230done 3231else 3232 $as_echo "$as_me: failed program was:" >&5 3233sed 's/^/| /' conftest.$ac_ext >&5 3234 3235{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3237as_fn_error $? "cannot compute suffix of object files: cannot compile 3238See \`config.log' for more details" "$LINENO" 5; } 3239fi 3240rm -f conftest.$ac_cv_objext conftest.$ac_ext 3241fi 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3243$as_echo "$ac_cv_objext" >&6; } 3244OBJEXT=$ac_cv_objext 3245ac_objext=$OBJEXT 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3247$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3248if ${ac_cv_c_compiler_gnu+:} false; then : 3249 $as_echo_n "(cached) " >&6 3250else 3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3252/* end confdefs.h. */ 3253 3254int 3255main () 3256{ 3257#ifndef __GNUC__ 3258 choke me 3259#endif 3260 3261 ; 3262 return 0; 3263} 3264_ACEOF 3265if ac_fn_c_try_compile "$LINENO"; then : 3266 ac_compiler_gnu=yes 3267else 3268 ac_compiler_gnu=no 3269fi 3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3271ac_cv_c_compiler_gnu=$ac_compiler_gnu 3272 3273fi 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3275$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3276if test $ac_compiler_gnu = yes; then 3277 GCC=yes 3278else 3279 GCC= 3280fi 3281ac_test_CFLAGS=${CFLAGS+set} 3282ac_save_CFLAGS=$CFLAGS 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3284$as_echo_n "checking whether $CC accepts -g... " >&6; } 3285if ${ac_cv_prog_cc_g+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 ac_save_c_werror_flag=$ac_c_werror_flag 3289 ac_c_werror_flag=yes 3290 ac_cv_prog_cc_g=no 3291 CFLAGS="-g" 3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3293/* end confdefs.h. */ 3294 3295int 3296main () 3297{ 3298 3299 ; 3300 return 0; 3301} 3302_ACEOF 3303if ac_fn_c_try_compile "$LINENO"; then : 3304 ac_cv_prog_cc_g=yes 3305else 3306 CFLAGS="" 3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3308/* end confdefs.h. */ 3309 3310int 3311main () 3312{ 3313 3314 ; 3315 return 0; 3316} 3317_ACEOF 3318if ac_fn_c_try_compile "$LINENO"; then : 3319 3320else 3321 ac_c_werror_flag=$ac_save_c_werror_flag 3322 CFLAGS="-g" 3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3324/* end confdefs.h. */ 3325 3326int 3327main () 3328{ 3329 3330 ; 3331 return 0; 3332} 3333_ACEOF 3334if ac_fn_c_try_compile "$LINENO"; then : 3335 ac_cv_prog_cc_g=yes 3336fi 3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3338fi 3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3340fi 3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3342 ac_c_werror_flag=$ac_save_c_werror_flag 3343fi 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3345$as_echo "$ac_cv_prog_cc_g" >&6; } 3346if test "$ac_test_CFLAGS" = set; then 3347 CFLAGS=$ac_save_CFLAGS 3348elif test $ac_cv_prog_cc_g = yes; then 3349 if test "$GCC" = yes; then 3350 CFLAGS="-g -O2" 3351 else 3352 CFLAGS="-g" 3353 fi 3354else 3355 if test "$GCC" = yes; then 3356 CFLAGS="-O2" 3357 else 3358 CFLAGS= 3359 fi 3360fi 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3362$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3363if ${ac_cv_prog_cc_c89+:} false; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 ac_cv_prog_cc_c89=no 3367ac_save_CC=$CC 3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369/* end confdefs.h. */ 3370#include <stdarg.h> 3371#include <stdio.h> 3372struct stat; 3373/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3374struct buf { int x; }; 3375FILE * (*rcsopen) (struct buf *, struct stat *, int); 3376static char *e (p, i) 3377 char **p; 3378 int i; 3379{ 3380 return p[i]; 3381} 3382static char *f (char * (*g) (char **, int), char **p, ...) 3383{ 3384 char *s; 3385 va_list v; 3386 va_start (v,p); 3387 s = g (p, va_arg (v,int)); 3388 va_end (v); 3389 return s; 3390} 3391 3392/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3393 function prototypes and stuff, but not '\xHH' hex character constants. 3394 These don't provoke an error unfortunately, instead are silently treated 3395 as 'x'. The following induces an error, until -std is added to get 3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3397 array size at least. It's necessary to write '\x00'==0 to get something 3398 that's true only with -std. */ 3399int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3400 3401/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3402 inside strings and character constants. */ 3403#define FOO(x) 'x' 3404int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3405 3406int test (int i, double x); 3407struct s1 {int (*f) (int a);}; 3408struct s2 {int (*f) (double a);}; 3409int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3410int argc; 3411char **argv; 3412int 3413main () 3414{ 3415return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3422do 3423 CC="$ac_save_CC $ac_arg" 3424 if ac_fn_c_try_compile "$LINENO"; then : 3425 ac_cv_prog_cc_c89=$ac_arg 3426fi 3427rm -f core conftest.err conftest.$ac_objext 3428 test "x$ac_cv_prog_cc_c89" != "xno" && break 3429done 3430rm -f conftest.$ac_ext 3431CC=$ac_save_CC 3432 3433fi 3434# AC_CACHE_VAL 3435case "x$ac_cv_prog_cc_c89" in 3436 x) 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3438$as_echo "none needed" >&6; } ;; 3439 xno) 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3441$as_echo "unsupported" >&6; } ;; 3442 *) 3443 CC="$CC $ac_cv_prog_cc_c89" 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3445$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3446esac 3447if test "x$ac_cv_prog_cc_c89" != xno; then : 3448 3449fi 3450 3451ac_ext=c 3452ac_cpp='$CPP $CPPFLAGS' 3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3455ac_compiler_gnu=$ac_cv_c_compiler_gnu 3456 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3458$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3459if ${ac_cv_prog_cc_c99+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 ac_cv_prog_cc_c99=no 3463ac_save_CC=$CC 3464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3465/* end confdefs.h. */ 3466#include <stdarg.h> 3467#include <stdbool.h> 3468#include <stdlib.h> 3469#include <wchar.h> 3470#include <stdio.h> 3471 3472// Check varargs macros. These examples are taken from C99 6.10.3.5. 3473#define debug(...) fprintf (stderr, __VA_ARGS__) 3474#define showlist(...) puts (#__VA_ARGS__) 3475#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3476static void 3477test_varargs_macros (void) 3478{ 3479 int x = 1234; 3480 int y = 5678; 3481 debug ("Flag"); 3482 debug ("X = %d\n", x); 3483 showlist (The first, second, and third items.); 3484 report (x>y, "x is %d but y is %d", x, y); 3485} 3486 3487// Check long long types. 3488#define BIG64 18446744073709551615ull 3489#define BIG32 4294967295ul 3490#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3491#if !BIG_OK 3492 your preprocessor is broken; 3493#endif 3494#if BIG_OK 3495#else 3496 your preprocessor is broken; 3497#endif 3498static long long int bignum = -9223372036854775807LL; 3499static unsigned long long int ubignum = BIG64; 3500 3501struct incomplete_array 3502{ 3503 int datasize; 3504 double data[]; 3505}; 3506 3507struct named_init { 3508 int number; 3509 const wchar_t *name; 3510 double average; 3511}; 3512 3513typedef const char *ccp; 3514 3515static inline int 3516test_restrict (ccp restrict text) 3517{ 3518 // See if C++-style comments work. 3519 // Iterate through items via the restricted pointer. 3520 // Also check for declarations in for loops. 3521 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3522 continue; 3523 return 0; 3524} 3525 3526// Check varargs and va_copy. 3527static void 3528test_varargs (const char *format, ...) 3529{ 3530 va_list args; 3531 va_start (args, format); 3532 va_list args_copy; 3533 va_copy (args_copy, args); 3534 3535 const char *str; 3536 int number; 3537 float fnumber; 3538 3539 while (*format) 3540 { 3541 switch (*format++) 3542 { 3543 case 's': // string 3544 str = va_arg (args_copy, const char *); 3545 break; 3546 case 'd': // int 3547 number = va_arg (args_copy, int); 3548 break; 3549 case 'f': // float 3550 fnumber = va_arg (args_copy, double); 3551 break; 3552 default: 3553 break; 3554 } 3555 } 3556 va_end (args_copy); 3557 va_end (args); 3558} 3559 3560int 3561main () 3562{ 3563 3564 // Check bool. 3565 _Bool success = false; 3566 3567 // Check restrict. 3568 if (test_restrict ("String literal") == 0) 3569 success = true; 3570 char *restrict newvar = "Another string"; 3571 3572 // Check varargs. 3573 test_varargs ("s, d' f .", "string", 65, 34.234); 3574 test_varargs_macros (); 3575 3576 // Check flexible array members. 3577 struct incomplete_array *ia = 3578 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3579 ia->datasize = 10; 3580 for (int i = 0; i < ia->datasize; ++i) 3581 ia->data[i] = i * 1.234; 3582 3583 // Check named initializers. 3584 struct named_init ni = { 3585 .number = 34, 3586 .name = L"Test wide string", 3587 .average = 543.34343, 3588 }; 3589 3590 ni.number = 58; 3591 3592 int dynamic_array[ni.number]; 3593 dynamic_array[ni.number - 1] = 543; 3594 3595 // work around unused variable warnings 3596 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3597 || dynamic_array[ni.number - 1] != 543); 3598 3599 ; 3600 return 0; 3601} 3602_ACEOF 3603for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3604do 3605 CC="$ac_save_CC $ac_arg" 3606 if ac_fn_c_try_compile "$LINENO"; then : 3607 ac_cv_prog_cc_c99=$ac_arg 3608fi 3609rm -f core conftest.err conftest.$ac_objext 3610 test "x$ac_cv_prog_cc_c99" != "xno" && break 3611done 3612rm -f conftest.$ac_ext 3613CC=$ac_save_CC 3614 3615fi 3616# AC_CACHE_VAL 3617case "x$ac_cv_prog_cc_c99" in 3618 x) 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3620$as_echo "none needed" >&6; } ;; 3621 xno) 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3623$as_echo "unsupported" >&6; } ;; 3624 *) 3625 CC="$CC $ac_cv_prog_cc_c99" 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3627$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3628esac 3629if test "x$ac_cv_prog_cc_c99" != xno; then : 3630 3631fi 3632 3633 ac_ext=c 3634ac_cpp='$CPP $CPPFLAGS' 3635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3637ac_compiler_gnu=$ac_cv_c_compiler_gnu 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3639$as_echo_n "checking how to run the C preprocessor... " >&6; } 3640# On Suns, sometimes $CPP names a directory. 3641if test -n "$CPP" && test -d "$CPP"; then 3642 CPP= 3643fi 3644if test -z "$CPP"; then 3645 if ${ac_cv_prog_CPP+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 # Double quotes because CPP needs to be expanded 3649 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3650 do 3651 ac_preproc_ok=false 3652for ac_c_preproc_warn_flag in '' yes 3653do 3654 # Use a header file that comes with gcc, so configuring glibc 3655 # with a fresh cross-compiler works. 3656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3657 # <limits.h> exists even on freestanding compilers. 3658 # On the NeXT, cc -E runs the code through the compiler's parser, 3659 # not just through cpp. "Syntax error" is here to catch this case. 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662#ifdef __STDC__ 3663# include <limits.h> 3664#else 3665# include <assert.h> 3666#endif 3667 Syntax error 3668_ACEOF 3669if ac_fn_c_try_cpp "$LINENO"; then : 3670 3671else 3672 # Broken: fails on valid input. 3673continue 3674fi 3675rm -f conftest.err conftest.i conftest.$ac_ext 3676 3677 # OK, works on sane cases. Now check whether nonexistent headers 3678 # can be detected and how. 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681#include <ac_nonexistent.h> 3682_ACEOF 3683if ac_fn_c_try_cpp "$LINENO"; then : 3684 # Broken: success on invalid input. 3685continue 3686else 3687 # Passes both tests. 3688ac_preproc_ok=: 3689break 3690fi 3691rm -f conftest.err conftest.i conftest.$ac_ext 3692 3693done 3694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3695rm -f conftest.i conftest.err conftest.$ac_ext 3696if $ac_preproc_ok; then : 3697 break 3698fi 3699 3700 done 3701 ac_cv_prog_CPP=$CPP 3702 3703fi 3704 CPP=$ac_cv_prog_CPP 3705else 3706 ac_cv_prog_CPP=$CPP 3707fi 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3709$as_echo "$CPP" >&6; } 3710ac_preproc_ok=false 3711for ac_c_preproc_warn_flag in '' yes 3712do 3713 # Use a header file that comes with gcc, so configuring glibc 3714 # with a fresh cross-compiler works. 3715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3716 # <limits.h> exists even on freestanding compilers. 3717 # On the NeXT, cc -E runs the code through the compiler's parser, 3718 # not just through cpp. "Syntax error" is here to catch this case. 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721#ifdef __STDC__ 3722# include <limits.h> 3723#else 3724# include <assert.h> 3725#endif 3726 Syntax error 3727_ACEOF 3728if ac_fn_c_try_cpp "$LINENO"; then : 3729 3730else 3731 # Broken: fails on valid input. 3732continue 3733fi 3734rm -f conftest.err conftest.i conftest.$ac_ext 3735 3736 # OK, works on sane cases. Now check whether nonexistent headers 3737 # can be detected and how. 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3739/* end confdefs.h. */ 3740#include <ac_nonexistent.h> 3741_ACEOF 3742if ac_fn_c_try_cpp "$LINENO"; then : 3743 # Broken: success on invalid input. 3744continue 3745else 3746 # Passes both tests. 3747ac_preproc_ok=: 3748break 3749fi 3750rm -f conftest.err conftest.i conftest.$ac_ext 3751 3752done 3753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3754rm -f conftest.i conftest.err conftest.$ac_ext 3755if $ac_preproc_ok; then : 3756 3757else 3758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3760as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3761See \`config.log' for more details" "$LINENO" 5; } 3762fi 3763 3764ac_ext=c 3765ac_cpp='$CPP $CPPFLAGS' 3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3768ac_compiler_gnu=$ac_cv_c_compiler_gnu 3769 3770 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3772$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3773if ${ac_cv_path_GREP+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 if test -z "$GREP"; then 3777 ac_path_GREP_found=false 3778 # Loop through the user's path and test for each of PROGNAME-LIST 3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_prog in grep ggrep; do 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3787 as_fn_executable_p "$ac_path_GREP" || continue 3788# Check for GNU ac_path_GREP and select it if it is found. 3789 # Check for GNU $ac_path_GREP 3790case `"$ac_path_GREP" --version 2>&1` in 3791*GNU*) 3792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3793*) 3794 ac_count=0 3795 $as_echo_n 0123456789 >"conftest.in" 3796 while : 3797 do 3798 cat "conftest.in" "conftest.in" >"conftest.tmp" 3799 mv "conftest.tmp" "conftest.in" 3800 cp "conftest.in" "conftest.nl" 3801 $as_echo 'GREP' >> "conftest.nl" 3802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3804 as_fn_arith $ac_count + 1 && ac_count=$as_val 3805 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3806 # Best one so far, save it but keep looking for a better one 3807 ac_cv_path_GREP="$ac_path_GREP" 3808 ac_path_GREP_max=$ac_count 3809 fi 3810 # 10*(2^10) chars as input seems more than enough 3811 test $ac_count -gt 10 && break 3812 done 3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3814esac 3815 3816 $ac_path_GREP_found && break 3 3817 done 3818 done 3819 done 3820IFS=$as_save_IFS 3821 if test -z "$ac_cv_path_GREP"; then 3822 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3823 fi 3824else 3825 ac_cv_path_GREP=$GREP 3826fi 3827 3828fi 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3830$as_echo "$ac_cv_path_GREP" >&6; } 3831 GREP="$ac_cv_path_GREP" 3832 3833 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3835$as_echo_n "checking for egrep... " >&6; } 3836if ${ac_cv_path_EGREP+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3840 then ac_cv_path_EGREP="$GREP -E" 3841 else 3842 if test -z "$EGREP"; then 3843 ac_path_EGREP_found=false 3844 # Loop through the user's path and test for each of PROGNAME-LIST 3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3847do 3848 IFS=$as_save_IFS 3849 test -z "$as_dir" && as_dir=. 3850 for ac_prog in egrep; do 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3853 as_fn_executable_p "$ac_path_EGREP" || continue 3854# Check for GNU ac_path_EGREP and select it if it is found. 3855 # Check for GNU $ac_path_EGREP 3856case `"$ac_path_EGREP" --version 2>&1` in 3857*GNU*) 3858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3859*) 3860 ac_count=0 3861 $as_echo_n 0123456789 >"conftest.in" 3862 while : 3863 do 3864 cat "conftest.in" "conftest.in" >"conftest.tmp" 3865 mv "conftest.tmp" "conftest.in" 3866 cp "conftest.in" "conftest.nl" 3867 $as_echo 'EGREP' >> "conftest.nl" 3868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3870 as_fn_arith $ac_count + 1 && ac_count=$as_val 3871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3872 # Best one so far, save it but keep looking for a better one 3873 ac_cv_path_EGREP="$ac_path_EGREP" 3874 ac_path_EGREP_max=$ac_count 3875 fi 3876 # 10*(2^10) chars as input seems more than enough 3877 test $ac_count -gt 10 && break 3878 done 3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3880esac 3881 3882 $ac_path_EGREP_found && break 3 3883 done 3884 done 3885 done 3886IFS=$as_save_IFS 3887 if test -z "$ac_cv_path_EGREP"; then 3888 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3889 fi 3890else 3891 ac_cv_path_EGREP=$EGREP 3892fi 3893 3894 fi 3895fi 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3897$as_echo "$ac_cv_path_EGREP" >&6; } 3898 EGREP="$ac_cv_path_EGREP" 3899 3900 3901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903 3904_ACEOF 3905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3906 $EGREP "" >/dev/null 2>&1; then : 3907 3908fi 3909rm -f conftest* 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3911$as_echo_n "checking for fgrep... " >&6; } 3912if ${ac_cv_path_FGREP+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3916 then ac_cv_path_FGREP="$GREP -F" 3917 else 3918 if test -z "$FGREP"; then 3919 ac_path_FGREP_found=false 3920 # Loop through the user's path and test for each of PROGNAME-LIST 3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3923do 3924 IFS=$as_save_IFS 3925 test -z "$as_dir" && as_dir=. 3926 for ac_prog in fgrep; do 3927 for ac_exec_ext in '' $ac_executable_extensions; do 3928 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3929 as_fn_executable_p "$ac_path_FGREP" || continue 3930# Check for GNU ac_path_FGREP and select it if it is found. 3931 # Check for GNU $ac_path_FGREP 3932case `"$ac_path_FGREP" --version 2>&1` in 3933*GNU*) 3934 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3935*) 3936 ac_count=0 3937 $as_echo_n 0123456789 >"conftest.in" 3938 while : 3939 do 3940 cat "conftest.in" "conftest.in" >"conftest.tmp" 3941 mv "conftest.tmp" "conftest.in" 3942 cp "conftest.in" "conftest.nl" 3943 $as_echo 'FGREP' >> "conftest.nl" 3944 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3946 as_fn_arith $ac_count + 1 && ac_count=$as_val 3947 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3948 # Best one so far, save it but keep looking for a better one 3949 ac_cv_path_FGREP="$ac_path_FGREP" 3950 ac_path_FGREP_max=$ac_count 3951 fi 3952 # 10*(2^10) chars as input seems more than enough 3953 test $ac_count -gt 10 && break 3954 done 3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3956esac 3957 3958 $ac_path_FGREP_found && break 3 3959 done 3960 done 3961 done 3962IFS=$as_save_IFS 3963 if test -z "$ac_cv_path_FGREP"; then 3964 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3965 fi 3966else 3967 ac_cv_path_FGREP=$FGREP 3968fi 3969 3970 fi 3971fi 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3973$as_echo "$ac_cv_path_FGREP" >&6; } 3974 FGREP="$ac_cv_path_FGREP" 3975 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3977$as_echo_n "checking for library containing strerror... " >&6; } 3978if ${ac_cv_search_strerror+:} false; then : 3979 $as_echo_n "(cached) " >&6 3980else 3981 ac_func_search_save_LIBS=$LIBS 3982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984 3985/* Override any GCC internal prototype to avoid an error. 3986 Use char because int might match the return type of a GCC 3987 builtin and then its argument prototype would still apply. */ 3988#ifdef __cplusplus 3989extern "C" 3990#endif 3991char strerror (); 3992int 3993main () 3994{ 3995return strerror (); 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000for ac_lib in '' cposix; do 4001 if test -z "$ac_lib"; then 4002 ac_res="none required" 4003 else 4004 ac_res=-l$ac_lib 4005 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4006 fi 4007 if ac_fn_c_try_link "$LINENO"; then : 4008 ac_cv_search_strerror=$ac_res 4009fi 4010rm -f core conftest.err conftest.$ac_objext \ 4011 conftest$ac_exeext 4012 if ${ac_cv_search_strerror+:} false; then : 4013 break 4014fi 4015done 4016if ${ac_cv_search_strerror+:} false; then : 4017 4018else 4019 ac_cv_search_strerror=no 4020fi 4021rm conftest.$ac_ext 4022LIBS=$ac_func_search_save_LIBS 4023fi 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4025$as_echo "$ac_cv_search_strerror" >&6; } 4026ac_res=$ac_cv_search_strerror 4027if test "$ac_res" != no; then : 4028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4029 4030fi 4031 for ac_prog in gawk mawk nawk awk 4032do 4033 # Extract the first word of "$ac_prog", so it can be a program name with args. 4034set dummy $ac_prog; ac_word=$2 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4036$as_echo_n "checking for $ac_word... " >&6; } 4037if ${ac_cv_prog_AWK+:} false; then : 4038 $as_echo_n "(cached) " >&6 4039else 4040 if test -n "$AWK"; then 4041 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4042else 4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044for as_dir in $PATH 4045do 4046 IFS=$as_save_IFS 4047 test -z "$as_dir" && as_dir=. 4048 for ac_exec_ext in '' $ac_executable_extensions; do 4049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4050 ac_cv_prog_AWK="$ac_prog" 4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4052 break 2 4053 fi 4054done 4055 done 4056IFS=$as_save_IFS 4057 4058fi 4059fi 4060AWK=$ac_cv_prog_AWK 4061if test -n "$AWK"; then 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4063$as_echo "$AWK" >&6; } 4064else 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4066$as_echo "no" >&6; } 4067fi 4068 4069 4070 test -n "$AWK" && break 4071done 4072 4073# Extract the first word of "strip", so it can be a program name with args. 4074set dummy strip; ac_word=$2 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4076$as_echo_n "checking for $ac_word... " >&6; } 4077if ${ac_cv_prog_STRIP+:} false; then : 4078 $as_echo_n "(cached) " >&6 4079else 4080 if test -n "$STRIP"; then 4081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4082else 4083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4084for as_dir in $PATH 4085do 4086 IFS=$as_save_IFS 4087 test -z "$as_dir" && as_dir=. 4088 for ac_exec_ext in '' $ac_executable_extensions; do 4089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4090 ac_cv_prog_STRIP="strip" 4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4092 break 2 4093 fi 4094done 4095 done 4096IFS=$as_save_IFS 4097 4098 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 4099fi 4100fi 4101STRIP=$ac_cv_prog_STRIP 4102if test -n "$STRIP"; then 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4104$as_echo "$STRIP" >&6; } 4105else 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4107$as_echo "no" >&6; } 4108fi 4109 4110 4111 4112 4113 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4115$as_echo_n "checking for ANSI C header files... " >&6; } 4116if ${ac_cv_header_stdc+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118else 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120/* end confdefs.h. */ 4121#include <stdlib.h> 4122#include <stdarg.h> 4123#include <string.h> 4124#include <float.h> 4125 4126int 4127main () 4128{ 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134if ac_fn_c_try_compile "$LINENO"; then : 4135 ac_cv_header_stdc=yes 4136else 4137 ac_cv_header_stdc=no 4138fi 4139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4140 4141if test $ac_cv_header_stdc = yes; then 4142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144/* end confdefs.h. */ 4145#include <string.h> 4146 4147_ACEOF 4148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4149 $EGREP "memchr" >/dev/null 2>&1; then : 4150 4151else 4152 ac_cv_header_stdc=no 4153fi 4154rm -f conftest* 4155 4156fi 4157 4158if test $ac_cv_header_stdc = yes; then 4159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162#include <stdlib.h> 4163 4164_ACEOF 4165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4166 $EGREP "free" >/dev/null 2>&1; then : 4167 4168else 4169 ac_cv_header_stdc=no 4170fi 4171rm -f conftest* 4172 4173fi 4174 4175if test $ac_cv_header_stdc = yes; then 4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4177 if test "$cross_compiling" = yes; then : 4178 : 4179else 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182#include <ctype.h> 4183#include <stdlib.h> 4184#if ((' ' & 0x0FF) == 0x020) 4185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4187#else 4188# define ISLOWER(c) \ 4189 (('a' <= (c) && (c) <= 'i') \ 4190 || ('j' <= (c) && (c) <= 'r') \ 4191 || ('s' <= (c) && (c) <= 'z')) 4192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4193#endif 4194 4195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4196int 4197main () 4198{ 4199 int i; 4200 for (i = 0; i < 256; i++) 4201 if (XOR (islower (i), ISLOWER (i)) 4202 || toupper (i) != TOUPPER (i)) 4203 return 2; 4204 return 0; 4205} 4206_ACEOF 4207if ac_fn_c_try_run "$LINENO"; then : 4208 4209else 4210 ac_cv_header_stdc=no 4211fi 4212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4213 conftest.$ac_objext conftest.beam conftest.$ac_ext 4214fi 4215 4216fi 4217fi 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4219$as_echo "$ac_cv_header_stdc" >&6; } 4220if test $ac_cv_header_stdc = yes; then 4221 4222$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4223 4224fi 4225 4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4227$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4228if ${ac_cv_header_sys_wait_h+:} false; then : 4229 $as_echo_n "(cached) " >&6 4230else 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233#include <sys/types.h> 4234#include <sys/wait.h> 4235#ifndef WEXITSTATUS 4236# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4237#endif 4238#ifndef WIFEXITED 4239# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4240#endif 4241 4242int 4243main () 4244{ 4245 int s; 4246 wait (&s); 4247 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4248 ; 4249 return 0; 4250} 4251_ACEOF 4252if ac_fn_c_try_compile "$LINENO"; then : 4253 ac_cv_header_sys_wait_h=yes 4254else 4255 ac_cv_header_sys_wait_h=no 4256fi 4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4258fi 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4260$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4261if test $ac_cv_header_sys_wait_h = yes; then 4262 4263$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4264 4265fi 4266 4267 4268if test x"$ac_cv_prog_cc_c99" != xno; then 4269 4270 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 4272$as_echo_n "checking for unsigned long long int... " >&6; } 4273if ${ac_cv_type_unsigned_long_long_int+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 ac_cv_type_unsigned_long_long_int=yes 4277 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4279/* end confdefs.h. */ 4280 4281 /* For now, do not test the preprocessor; as of 2007 there are too many 4282 implementations with broken preprocessors. Perhaps this can 4283 be revisited in 2012. In the meantime, code should not expect 4284 #if to work with literals wider than 32 bits. */ 4285 /* Test literals. */ 4286 long long int ll = 9223372036854775807ll; 4287 long long int nll = -9223372036854775807LL; 4288 unsigned long long int ull = 18446744073709551615ULL; 4289 /* Test constant expressions. */ 4290 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 4291 ? 1 : -1)]; 4292 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 4293 ? 1 : -1)]; 4294 int i = 63; 4295int 4296main () 4297{ 4298/* Test availability of runtime routines for shift and division. */ 4299 long long int llmax = 9223372036854775807ll; 4300 unsigned long long int ullmax = 18446744073709551615ull; 4301 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 4302 | (llmax / ll) | (llmax % ll) 4303 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 4304 | (ullmax / ull) | (ullmax % ull)); 4305 ; 4306 return 0; 4307} 4308 4309_ACEOF 4310if ac_fn_c_try_link "$LINENO"; then : 4311 4312else 4313 ac_cv_type_unsigned_long_long_int=no 4314fi 4315rm -f core conftest.err conftest.$ac_objext \ 4316 conftest$ac_exeext conftest.$ac_ext 4317 fi 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 4320$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 4321 if test $ac_cv_type_unsigned_long_long_int = yes; then 4322 4323$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 4324 4325 fi 4326 4327 4328 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 4330$as_echo_n "checking for long long int... " >&6; } 4331if ${ac_cv_type_long_long_int+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 ac_cv_type_long_long_int=yes 4335 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 4336 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 4337 if test $ac_cv_type_long_long_int = yes; then 4338 if test "$cross_compiling" = yes; then : 4339 : 4340else 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343#include <limits.h> 4344 #ifndef LLONG_MAX 4345 # define HALF \ 4346 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 4347 # define LLONG_MAX (HALF - 1 + HALF) 4348 #endif 4349int 4350main () 4351{ 4352long long int n = 1; 4353 int i; 4354 for (i = 0; ; i++) 4355 { 4356 long long int m = n << i; 4357 if (m >> i != n) 4358 return 1; 4359 if (LLONG_MAX / 2 < m) 4360 break; 4361 } 4362 return 0; 4363 ; 4364 return 0; 4365} 4366_ACEOF 4367if ac_fn_c_try_run "$LINENO"; then : 4368 4369else 4370 ac_cv_type_long_long_int=no 4371fi 4372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4373 conftest.$ac_objext conftest.beam conftest.$ac_ext 4374fi 4375 4376 fi 4377 fi 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 4380$as_echo "$ac_cv_type_long_long_int" >&6; } 4381 if test $ac_cv_type_long_long_int = yes; then 4382 4383$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 4384 4385 fi 4386 4387 if test "$ac_cv_type_long_long_int" = no; then 4388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4390as_fn_error $? "Compiler does not support long long int 4391See \`config.log' for more details" "$LINENO" 5; } 4392 fi 4393 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5 4395$as_echo_n "checking if the compiler supports trailing commas... " >&6; } 4396 trailing_commas=no 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399 4400int 4401main () 4402{ 4403 4404 enum { 4405 one, 4406 }; 4407 ; 4408 return 0; 4409} 4410_ACEOF 4411if ac_fn_c_try_compile "$LINENO"; then : 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4413$as_echo "yes" >&6; }; trailing_commas=yes 4414else 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4416$as_echo "no" >&6; } 4417fi 4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4419 if test "$trailing_commas" = no; then 4420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4422as_fn_error $? "Compiler does not support trailing comma in enum 4423See \`config.log' for more details" "$LINENO" 5; } 4424 fi 4425 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5 4427$as_echo_n "checking if the compiler supports C++ comments... " >&6; } 4428 slash_comments=no 4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4430/* end confdefs.h. */ 4431 4432int 4433main () 4434{ 4435// C++ comments? 4436 ; 4437 return 0; 4438} 4439_ACEOF 4440if ac_fn_c_try_compile "$LINENO"; then : 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4442$as_echo "yes" >&6; }; slash_comments=yes 4443else 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4445$as_echo "no" >&6; } 4446fi 4447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4448 if test "$slash_comments" = no; then 4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4451as_fn_error $? "Compiler does not support C++ comments 4452See \`config.log' for more details" "$LINENO" 5; } 4453 fi 4454fi 4455 4456 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4458$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4459# Check whether --enable-fail_if_missing was given. 4460if test "${enable_fail_if_missing+set}" = set; then : 4461 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4462else 4463 fail_if_missing="no" 4464fi 4465 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4467$as_echo "$fail_if_missing" >&6; } 4468 4469if test -z "$CFLAGS"; then 4470 CFLAGS="-O" 4471 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4472fi 4473if test "$GCC" = yes; then 4474 gccversion=`$CC -dumpversion` 4475 if test "x$gccversion" = "x"; then 4476 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4477 fi 4478 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4479 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4480 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4481 else 4482 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4483 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4484 CFLAGS="$CFLAGS -fno-strength-reduce" 4485 fi 4486 fi 4487fi 4488 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4490$as_echo_n "checking for clang version... " >&6; } 4491CLANG_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'` 4492if test x"$CLANG_VERSION_STRING" != x"" ; then 4493 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4494 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4495 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4496 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4498$as_echo "$CLANG_VERSION" >&6; } 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4500$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4501 if test "$CLANG_VERSION" -ge 500002075 ; then 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4503$as_echo "no" >&6; } 4504 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4505 else 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4507$as_echo "yes" >&6; } 4508 fi 4509else 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4511$as_echo "N/A" >&6; } 4512fi 4513 4514CROSS_COMPILING= 4515if test "$cross_compiling" = yes; then 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4517$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4518 CROSS_COMPILING=1 4519fi 4520 4521 4522test "$GCC" = yes && CPP_MM=M; 4523 4524if test -f ./toolcheck; then 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4526$as_echo "$as_me: checking for buggy tools..." >&6;} 4527 sh ./toolcheck 1>&6 4528fi 4529 4530OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4531 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4533$as_echo_n "checking for BeOS... " >&6; } 4534case `uname` in 4535 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4536 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4537$as_echo "yes" >&6; };; 4538 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4539$as_echo "no" >&6; };; 4540esac 4541 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4543$as_echo_n "checking for QNX... " >&6; } 4544case `uname` in 4545 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4546 test -z "$with_x" && with_x=no 4547 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4548$as_echo "yes" >&6; };; 4549 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4550$as_echo "no" >&6; };; 4551esac 4552 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4554$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4555if test "`(uname) 2>/dev/null`" = Darwin; then 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4557$as_echo "yes" >&6; } 4558 MACOS_X=yes 4559 CPPFLAGS="$CPPFLAGS -D_DARWIN_C_SOURCE -DMACOS_X" 4560 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4562$as_echo_n "checking --disable-darwin argument... " >&6; } 4563 # Check whether --enable-darwin was given. 4564if test "${enable_darwin+set}" = set; then : 4565 enableval=$enable_darwin; 4566else 4567 enable_darwin="yes" 4568fi 4569 4570 if test "$enable_darwin" = "yes"; then 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4572$as_echo "no" >&6; } 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4574$as_echo_n "checking if Darwin files are there... " >&6; } 4575 if test -f os_macosx.m; then 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4577$as_echo "yes" >&6; } 4578 else 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4580$as_echo "no, Darwin support disabled" >&6; } 4581 enable_darwin=no 4582 fi 4583 else 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4585$as_echo "yes, Darwin support excluded" >&6; } 4586 fi 4587 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4589$as_echo_n "checking --with-mac-arch argument... " >&6; } 4590 4591# Check whether --with-mac-arch was given. 4592if test "${with_mac_arch+set}" = set; then : 4593 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4594$as_echo "$MACARCH" >&6; } 4595else 4596 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4597$as_echo "defaulting to $MACARCH" >&6; } 4598fi 4599 4600 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4602$as_echo_n "checking --with-developer-dir argument... " >&6; } 4603 4604# Check whether --with-developer-dir was given. 4605if test "${with_developer_dir+set}" = set; then : 4606 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4607$as_echo "$DEVELOPER_DIR" >&6; } 4608else 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4610$as_echo "not present" >&6; } 4611fi 4612 4613 4614 if test "x$DEVELOPER_DIR" = "x"; then 4615 # Extract the first word of "xcode-select", so it can be a program name with args. 4616set dummy xcode-select; ac_word=$2 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4618$as_echo_n "checking for $ac_word... " >&6; } 4619if ${ac_cv_path_XCODE_SELECT+:} false; then : 4620 $as_echo_n "(cached) " >&6 4621else 4622 case $XCODE_SELECT in 4623 [\\/]* | ?:[\\/]*) 4624 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4625 ;; 4626 *) 4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4634 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4636 break 2 4637 fi 4638done 4639 done 4640IFS=$as_save_IFS 4641 4642 ;; 4643esac 4644fi 4645XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4646if test -n "$XCODE_SELECT"; then 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4648$as_echo "$XCODE_SELECT" >&6; } 4649else 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4651$as_echo "no" >&6; } 4652fi 4653 4654 4655 if test "x$XCODE_SELECT" != "x"; then 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4657$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4658 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4660$as_echo "$DEVELOPER_DIR" >&6; } 4661 else 4662 DEVELOPER_DIR=/Developer 4663 fi 4664 fi 4665 4666 if test "x$MACARCH" = "xboth"; then 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4668$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4669 save_cppflags="$CPPFLAGS" 4670 save_cflags="$CFLAGS" 4671 save_ldflags="$LDFLAGS" 4672 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4674/* end confdefs.h. */ 4675 4676int 4677main () 4678{ 4679 4680 ; 4681 return 0; 4682} 4683_ACEOF 4684if ac_fn_c_try_link "$LINENO"; then : 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4686$as_echo "found" >&6; } 4687else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4689$as_echo "not found" >&6; } 4690 CFLAGS="$save_cflags" 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4692$as_echo_n "checking if Intel architecture is supported... " >&6; } 4693 CPPFLAGS="$CPPFLAGS -arch i386" 4694 LDFLAGS="$save_ldflags -arch i386" 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696/* end confdefs.h. */ 4697 4698int 4699main () 4700{ 4701 4702 ; 4703 return 0; 4704} 4705_ACEOF 4706if ac_fn_c_try_link "$LINENO"; then : 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4708$as_echo "yes" >&6; }; MACARCH="intel" 4709else 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4711$as_echo "no" >&6; } 4712 MACARCH="ppc" 4713 CPPFLAGS="$save_cppflags -arch ppc" 4714 LDFLAGS="$save_ldflags -arch ppc" 4715fi 4716rm -f core conftest.err conftest.$ac_objext \ 4717 conftest$ac_exeext conftest.$ac_ext 4718fi 4719rm -f core conftest.err conftest.$ac_objext \ 4720 conftest$ac_exeext conftest.$ac_ext 4721 elif test "x$MACARCH" = "xintel"; then 4722 CPPFLAGS="$CPPFLAGS -arch intel" 4723 LDFLAGS="$LDFLAGS -arch intel" 4724 elif test "x$MACARCH" = "xppc"; then 4725 CPPFLAGS="$CPPFLAGS -arch ppc" 4726 LDFLAGS="$LDFLAGS -arch ppc" 4727 fi 4728 4729 if test "$enable_darwin" = "yes"; then 4730 MACOS_X_DARWIN=yes 4731 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4732 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4733 CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" 4734 4735 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4736for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4737 inttypes.h stdint.h unistd.h 4738do : 4739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4740ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4741" 4742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4743 cat >>confdefs.h <<_ACEOF 4744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4745_ACEOF 4746 4747fi 4748 4749done 4750 4751 4752ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4753if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4754 CARBON=yes 4755fi 4756 4757 4758 if test "x$CARBON" = "xyes"; then 4759 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 4760 with_x=no 4761 fi 4762 fi 4763 fi 4764 4765 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4766 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4767 fi 4768 4769else 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4771$as_echo "no" >&6; } 4772fi 4773 4774for ac_header in AvailabilityMacros.h 4775do : 4776 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4777if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4778 cat >>confdefs.h <<_ACEOF 4779#define HAVE_AVAILABILITYMACROS_H 1 4780_ACEOF 4781 4782fi 4783 4784done 4785 4786 4787 4788 4789 4790if test "$cross_compiling" = no; then 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4792$as_echo_n "checking --with-local-dir argument... " >&6; } 4793 have_local_include='' 4794 have_local_lib='' 4795 4796# Check whether --with-local-dir was given. 4797if test "${with_local_dir+set}" = set; then : 4798 withval=$with_local_dir; 4799 local_dir="$withval" 4800 case "$withval" in 4801 */*) ;; 4802 no) 4803 # avoid adding local dir to LDFLAGS and CPPFLAGS 4804 have_local_include=yes 4805 have_local_lib=yes 4806 ;; 4807 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4808 esac 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4810$as_echo "$local_dir" >&6; } 4811 4812else 4813 4814 local_dir=/usr/local 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4816$as_echo "Defaulting to $local_dir" >&6; } 4817 4818fi 4819 4820 if test "$GCC" = yes -a "$local_dir" != no; then 4821 echo 'void f(){}' > conftest.c 4822 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4823 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4824 rm -f conftest.c conftest.o 4825 fi 4826 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4827 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4828 if test "$tt" = "$LDFLAGS"; then 4829 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4830 fi 4831 fi 4832 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4833 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4834 if test "$tt" = "$CPPFLAGS"; then 4835 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4836 fi 4837 fi 4838fi 4839 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4841$as_echo_n "checking --with-vim-name argument... " >&6; } 4842 4843# Check whether --with-vim-name was given. 4844if test "${with_vim_name+set}" = set; then : 4845 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4846$as_echo "$VIMNAME" >&6; } 4847else 4848 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4849$as_echo "Defaulting to $VIMNAME" >&6; } 4850fi 4851 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4854$as_echo_n "checking --with-ex-name argument... " >&6; } 4855 4856# Check whether --with-ex-name was given. 4857if test "${with_ex_name+set}" = set; then : 4858 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4859$as_echo "$EXNAME" >&6; } 4860else 4861 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4862$as_echo "Defaulting to ex" >&6; } 4863fi 4864 4865 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4867$as_echo_n "checking --with-view-name argument... " >&6; } 4868 4869# Check whether --with-view-name was given. 4870if test "${with_view_name+set}" = set; then : 4871 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4872$as_echo "$VIEWNAME" >&6; } 4873else 4874 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4875$as_echo "Defaulting to view" >&6; } 4876fi 4877 4878 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4881$as_echo_n "checking --with-global-runtime argument... " >&6; } 4882 4883# Check whether --with-global-runtime was given. 4884if test "${with_global_runtime+set}" = set; then : 4885 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4886$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4887#define RUNTIME_GLOBAL "$withval" 4888_ACEOF 4889 4890else 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4892$as_echo "no" >&6; } 4893fi 4894 4895 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4897$as_echo_n "checking --with-modified-by argument... " >&6; } 4898 4899# Check whether --with-modified-by was given. 4900if test "${with_modified_by+set}" = set; then : 4901 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4902$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4903#define MODIFIED_BY "$withval" 4904_ACEOF 4905 4906else 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4908$as_echo "no" >&6; } 4909fi 4910 4911 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4913$as_echo_n "checking if character set is EBCDIC... " >&6; } 4914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4915/* end confdefs.h. */ 4916 4917int 4918main () 4919{ 4920 /* TryCompile function for CharSet. 4921 Treat any failure as ASCII for compatibility with existing art. 4922 Use compile-time rather than run-time tests for cross-compiler 4923 tolerance. */ 4924#if '0'!=240 4925make an error "Character set is not EBCDIC" 4926#endif 4927 ; 4928 return 0; 4929} 4930_ACEOF 4931if ac_fn_c_try_compile "$LINENO"; then : 4932 # TryCompile action if true 4933cf_cv_ebcdic=yes 4934else 4935 # TryCompile action if false 4936cf_cv_ebcdic=no 4937fi 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939# end of TryCompile ]) 4940# end of CacheVal CvEbcdic 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4942$as_echo "$cf_cv_ebcdic" >&6; } 4943case "$cf_cv_ebcdic" in #(vi 4944 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4945 4946 line_break='"\\n"' 4947 ;; 4948 *) line_break='"\\012"';; 4949esac 4950 4951 4952if test "$cf_cv_ebcdic" = "yes"; then 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4954$as_echo_n "checking for z/OS Unix... " >&6; } 4955case `uname` in 4956 OS/390) zOSUnix="yes"; 4957 if test "$CC" = "cc"; then 4958 ccm="$_CC_CCMODE" 4959 ccn="CC" 4960 else 4961 if test "$CC" = "c89"; then 4962 ccm="$_CC_C89MODE" 4963 ccn="C89" 4964 else 4965 ccm=1 4966 fi 4967 fi 4968 if test "$ccm" != "1"; then 4969 echo "" 4970 echo "------------------------------------------" 4971 echo " On z/OS Unix, the environment variable" 4972 echo " _CC_${ccn}MODE must be set to \"1\"!" 4973 echo " Do:" 4974 echo " export _CC_${ccn}MODE=1" 4975 echo " and then call configure again." 4976 echo "------------------------------------------" 4977 exit 1 4978 fi 4979 # Set CFLAGS for configure process. 4980 # This will be reset later for config.mk. 4981 # Use haltonmsg to force error for missing H files. 4982 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4983 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4985$as_echo "yes" >&6; } 4986 ;; 4987 *) zOSUnix="no"; 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4989$as_echo "no" >&6; } 4990 ;; 4991esac 4992fi 4993 4994if test "$zOSUnix" = "yes"; then 4995 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4996else 4997 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4998fi 4999 5000 5001 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 5003$as_echo_n "checking --disable-smack argument... " >&6; } 5004# Check whether --enable-smack was given. 5005if test "${enable_smack+set}" = set; then : 5006 enableval=$enable_smack; 5007else 5008 enable_smack="yes" 5009fi 5010 5011if test "$enable_smack" = "yes"; then 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5013$as_echo "no" >&6; } 5014 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 5015if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 5016 true 5017else 5018 enable_smack="no" 5019fi 5020 5021 5022else 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5024$as_echo "yes" >&6; } 5025fi 5026if test "$enable_smack" = "yes"; then 5027 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 5028if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 5029 true 5030else 5031 enable_smack="no" 5032fi 5033 5034 5035fi 5036if test "$enable_smack" = "yes"; then 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 5038$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041#include <linux/xattr.h> 5042_ACEOF 5043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5044 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5046$as_echo "yes" >&6; } 5047else 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5049$as_echo "no" >&6; }; enable_smack="no" 5050fi 5051rm -f conftest* 5052 5053fi 5054if test "$enable_smack" = "yes"; then 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 5056$as_echo_n "checking for setxattr in -lattr... " >&6; } 5057if ${ac_cv_lib_attr_setxattr+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 ac_check_lib_save_LIBS=$LIBS 5061LIBS="-lattr $LIBS" 5062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5063/* end confdefs.h. */ 5064 5065/* Override any GCC internal prototype to avoid an error. 5066 Use char because int might match the return type of a GCC 5067 builtin and then its argument prototype would still apply. */ 5068#ifdef __cplusplus 5069extern "C" 5070#endif 5071char setxattr (); 5072int 5073main () 5074{ 5075return setxattr (); 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080if ac_fn_c_try_link "$LINENO"; then : 5081 ac_cv_lib_attr_setxattr=yes 5082else 5083 ac_cv_lib_attr_setxattr=no 5084fi 5085rm -f core conftest.err conftest.$ac_objext \ 5086 conftest$ac_exeext conftest.$ac_ext 5087LIBS=$ac_check_lib_save_LIBS 5088fi 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 5090$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 5091if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 5092 LIBS="$LIBS -lattr" 5093 found_smack="yes" 5094 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 5095 5096fi 5097 5098fi 5099 5100if test "x$found_smack" = "x"; then 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 5102$as_echo_n "checking --disable-selinux argument... " >&6; } 5103 # Check whether --enable-selinux was given. 5104if test "${enable_selinux+set}" = set; then : 5105 enableval=$enable_selinux; 5106else 5107 enable_selinux="yes" 5108fi 5109 5110 if test "$enable_selinux" = "yes"; then 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5112$as_echo "no" >&6; } 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 5114$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 5115if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 5116 $as_echo_n "(cached) " >&6 5117else 5118 ac_check_lib_save_LIBS=$LIBS 5119LIBS="-lselinux $LIBS" 5120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5121/* end confdefs.h. */ 5122 5123/* Override any GCC internal prototype to avoid an error. 5124 Use char because int might match the return type of a GCC 5125 builtin and then its argument prototype would still apply. */ 5126#ifdef __cplusplus 5127extern "C" 5128#endif 5129char is_selinux_enabled (); 5130int 5131main () 5132{ 5133return is_selinux_enabled (); 5134 ; 5135 return 0; 5136} 5137_ACEOF 5138if ac_fn_c_try_link "$LINENO"; then : 5139 ac_cv_lib_selinux_is_selinux_enabled=yes 5140else 5141 ac_cv_lib_selinux_is_selinux_enabled=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext \ 5144 conftest$ac_exeext conftest.$ac_ext 5145LIBS=$ac_check_lib_save_LIBS 5146fi 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 5148$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 5149if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 5150 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 5151if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : 5152 LIBS="$LIBS -lselinux" 5153 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 5154 5155fi 5156 5157 5158fi 5159 5160 else 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5162$as_echo "yes" >&6; } 5163 fi 5164fi 5165 5166 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 5168$as_echo_n "checking --with-features argument... " >&6; } 5169 5170# Check whether --with-features was given. 5171if test "${with_features+set}" = set; then : 5172 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 5173$as_echo "$features" >&6; } 5174else 5175 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 5176$as_echo "Defaulting to huge" >&6; } 5177fi 5178 5179 5180dovimdiff="" 5181dogvimdiff="" 5182case "$features" in 5183 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 5184 ;; 5185 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 5186 ;; 5187 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 5188 dovimdiff="installvimdiff"; 5189 dogvimdiff="installgvimdiff" ;; 5190 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 5191 dovimdiff="installvimdiff"; 5192 dogvimdiff="installgvimdiff" ;; 5193 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 5194 dovimdiff="installvimdiff"; 5195 dogvimdiff="installgvimdiff" ;; 5196 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 5197$as_echo "Sorry, $features is not supported" >&6; } ;; 5198esac 5199 5200 5201 5202 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 5204$as_echo_n "checking --with-compiledby argument... " >&6; } 5205 5206# Check whether --with-compiledby was given. 5207if test "${with_compiledby+set}" = set; then : 5208 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 5209$as_echo "$withval" >&6; } 5210else 5211 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5212$as_echo "no" >&6; } 5213fi 5214 5215 5216 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 5218$as_echo_n "checking --disable-xsmp argument... " >&6; } 5219# Check whether --enable-xsmp was given. 5220if test "${enable_xsmp+set}" = set; then : 5221 enableval=$enable_xsmp; 5222else 5223 enable_xsmp="yes" 5224fi 5225 5226 5227if test "$enable_xsmp" = "yes"; then 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5229$as_echo "no" >&6; } 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 5231$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 5232 # Check whether --enable-xsmp-interact was given. 5233if test "${enable_xsmp_interact+set}" = set; then : 5234 enableval=$enable_xsmp_interact; 5235else 5236 enable_xsmp_interact="yes" 5237fi 5238 5239 if test "$enable_xsmp_interact" = "yes"; then 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241$as_echo "no" >&6; } 5242 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 5243 5244 else 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5246$as_echo "yes" >&6; } 5247 fi 5248else 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5250$as_echo "yes" >&6; } 5251fi 5252 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 5254$as_echo_n "checking --enable-luainterp argument... " >&6; } 5255# Check whether --enable-luainterp was given. 5256if test "${enable_luainterp+set}" = set; then : 5257 enableval=$enable_luainterp; 5258else 5259 enable_luainterp="no" 5260fi 5261 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 5263$as_echo "$enable_luainterp" >&6; } 5264 5265if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 5266 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5267 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 5268 fi 5269 5270 5271 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 5273$as_echo_n "checking --with-lua-prefix argument... " >&6; } 5274 5275# Check whether --with-lua_prefix was given. 5276if test "${with_lua_prefix+set}" = set; then : 5277 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 5278$as_echo "$with_lua_prefix" >&6; } 5279else 5280 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5281$as_echo "no" >&6; } 5282fi 5283 5284 5285 if test "X$with_lua_prefix" != "X"; then 5286 vi_cv_path_lua_pfx="$with_lua_prefix" 5287 else 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 5289$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 5290 if test "X$LUA_PREFIX" != "X"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 5292$as_echo "\"$LUA_PREFIX\"" >&6; } 5293 vi_cv_path_lua_pfx="$LUA_PREFIX" 5294 else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 5296$as_echo "not set, default to /usr" >&6; } 5297 vi_cv_path_lua_pfx="/usr" 5298 fi 5299 fi 5300 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 5302$as_echo_n "checking --with-luajit... " >&6; } 5303 5304# Check whether --with-luajit was given. 5305if test "${with_luajit+set}" = set; then : 5306 withval=$with_luajit; vi_cv_with_luajit="$withval" 5307else 5308 vi_cv_with_luajit="no" 5309fi 5310 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 5312$as_echo "$vi_cv_with_luajit" >&6; } 5313 5314 LUA_INC= 5315 if test "X$vi_cv_path_lua_pfx" != "X"; then 5316 if test "x$vi_cv_with_luajit" != "xno"; then 5317 # Extract the first word of "luajit", so it can be a program name with args. 5318set dummy luajit; ac_word=$2 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320$as_echo_n "checking for $ac_word... " >&6; } 5321if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 case $vi_cv_path_luajit in 5325 [\\/]* | ?:[\\/]*) 5326 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 5327 ;; 5328 *) 5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5330for as_dir in $PATH 5331do 5332 IFS=$as_save_IFS 5333 test -z "$as_dir" && as_dir=. 5334 for ac_exec_ext in '' $ac_executable_extensions; do 5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5336 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5338 break 2 5339 fi 5340done 5341 done 5342IFS=$as_save_IFS 5343 5344 ;; 5345esac 5346fi 5347vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 5348if test -n "$vi_cv_path_luajit"; then 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 5350$as_echo "$vi_cv_path_luajit" >&6; } 5351else 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5353$as_echo "no" >&6; } 5354fi 5355 5356 5357 if test "X$vi_cv_path_luajit" != "X"; then 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 5359$as_echo_n "checking LuaJIT version... " >&6; } 5360if ${vi_cv_version_luajit+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 5364fi 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 5366$as_echo "$vi_cv_version_luajit" >&6; } 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 5368$as_echo_n "checking Lua version of LuaJIT... " >&6; } 5369if ${vi_cv_version_lua_luajit+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 5373fi 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 5375$as_echo "$vi_cv_version_lua_luajit" >&6; } 5376 vi_cv_path_lua="$vi_cv_path_luajit" 5377 vi_cv_version_lua="$vi_cv_version_lua_luajit" 5378 fi 5379 else 5380 # Extract the first word of "lua", so it can be a program name with args. 5381set dummy lua; ac_word=$2 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5383$as_echo_n "checking for $ac_word... " >&6; } 5384if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 case $vi_cv_path_plain_lua in 5388 [\\/]* | ?:[\\/]*) 5389 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5390 ;; 5391 *) 5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5393for as_dir in $PATH 5394do 5395 IFS=$as_save_IFS 5396 test -z "$as_dir" && as_dir=. 5397 for ac_exec_ext in '' $ac_executable_extensions; do 5398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5399 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5401 break 2 5402 fi 5403done 5404 done 5405IFS=$as_save_IFS 5406 5407 ;; 5408esac 5409fi 5410vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5411if test -n "$vi_cv_path_plain_lua"; then 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5413$as_echo "$vi_cv_path_plain_lua" >&6; } 5414else 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5416$as_echo "no" >&6; } 5417fi 5418 5419 5420 if test "X$vi_cv_path_plain_lua" != "X"; then 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5422$as_echo_n "checking Lua version... " >&6; } 5423if ${vi_cv_version_plain_lua+:} false; then : 5424 $as_echo_n "(cached) " >&6 5425else 5426 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5427fi 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5429$as_echo "$vi_cv_version_plain_lua" >&6; } 5430 fi 5431 vi_cv_path_lua="$vi_cv_path_plain_lua" 5432 vi_cv_version_lua="$vi_cv_version_plain_lua" 5433 fi 5434 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5435 { $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 5436$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5437 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5439$as_echo "yes" >&6; } 5440 LUA_INC=/luajit-$vi_cv_version_luajit 5441 fi 5442 fi 5443 if test "X$LUA_INC" = "X"; then 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5445$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5446 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5448$as_echo "yes" >&6; } 5449 else 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5451$as_echo "no" >&6; } 5452 { $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 5453$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5454 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5456$as_echo "yes" >&6; } 5457 LUA_INC=/lua$vi_cv_version_lua 5458 else 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5460$as_echo "no" >&6; } 5461 vi_cv_path_lua_pfx= 5462 fi 5463 fi 5464 fi 5465 fi 5466 5467 if test "X$vi_cv_path_lua_pfx" != "X"; then 5468 if test "x$vi_cv_with_luajit" != "xno"; then 5469 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5470 if test "X$multiarch" != "X"; then 5471 lib_multiarch="lib/${multiarch}" 5472 else 5473 lib_multiarch="lib" 5474 fi 5475 if test "X$vi_cv_version_lua" = "X"; then 5476 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5477 else 5478 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5479 fi 5480 else 5481 if test "X$LUA_INC" != "X"; then 5482 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5483 else 5484 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5485 fi 5486 fi 5487 if test "$enable_luainterp" = "dynamic"; then 5488 lua_ok="yes" 5489 else 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5491$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5492 libs_save=$LIBS 5493 LIBS="$LIBS $LUA_LIBS" 5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495/* end confdefs.h. */ 5496 5497int 5498main () 5499{ 5500 5501 ; 5502 return 0; 5503} 5504_ACEOF 5505if ac_fn_c_try_link "$LINENO"; then : 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5507$as_echo "yes" >&6; }; lua_ok="yes" 5508else 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5510$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5511fi 5512rm -f core conftest.err conftest.$ac_objext \ 5513 conftest$ac_exeext conftest.$ac_ext 5514 LIBS=$libs_save 5515 fi 5516 if test "x$lua_ok" = "xyes"; then 5517 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5518 LUA_SRC="if_lua.c" 5519 LUA_OBJ="objects/if_lua.o" 5520 LUA_PRO="if_lua.pro" 5521 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5522 5523 fi 5524 if test "$enable_luainterp" = "dynamic"; then 5525 if test "x$vi_cv_with_luajit" != "xno"; then 5526 luajit="jit" 5527 fi 5528 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5529 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5530 else 5531 if test "x$MACOS_X" = "xyes"; then 5532 ext="dylib" 5533 indexes="" 5534 else 5535 ext="so" 5536 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5537 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5538 if test "X$multiarch" != "X"; then 5539 lib_multiarch="lib/${multiarch}" 5540 fi 5541 fi 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5543$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5544 for subdir in "${lib_multiarch}" lib64 lib; do 5545 if test -z "$subdir"; then 5546 continue 5547 fi 5548 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5549 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5550 for i in $indexes ""; do 5551 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5552 sover2="$i" 5553 break 3 5554 fi 5555 done 5556 done 5557 sover="" 5558 done 5559 if test "X$sover" = "X"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5561$as_echo "no" >&6; } 5562 lua_ok="no" 5563 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5564 else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5566$as_echo "yes" >&6; } 5567 lua_ok="yes" 5568 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5569 fi 5570 fi 5571 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5572 5573 LUA_LIBS="" 5574 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5575 fi 5576 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5577 test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5578 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5579 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5580 fi 5581 fi 5582 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5583 as_fn_error $? "could not configure lua" "$LINENO" 5 5584 fi 5585 5586 5587 5588 5589 5590fi 5591 5592 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5594$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5595# Check whether --enable-mzschemeinterp was given. 5596if test "${enable_mzschemeinterp+set}" = set; then : 5597 enableval=$enable_mzschemeinterp; 5598else 5599 enable_mzschemeinterp="no" 5600fi 5601 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5603$as_echo "$enable_mzschemeinterp" >&6; } 5604 5605if test "$enable_mzschemeinterp" = "yes"; then 5606 5607 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5609$as_echo_n "checking --with-plthome argument... " >&6; } 5610 5611# Check whether --with-plthome was given. 5612if test "${with_plthome+set}" = set; then : 5613 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5614$as_echo "$with_plthome" >&6; } 5615else 5616 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5617$as_echo "\"no\"" >&6; } 5618fi 5619 5620 5621 if test "X$with_plthome" != "X"; then 5622 vi_cv_path_mzscheme_pfx="$with_plthome" 5623 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5624 else 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5626$as_echo_n "checking PLTHOME environment var... " >&6; } 5627 if test "X$PLTHOME" != "X"; then 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5629$as_echo "\"$PLTHOME\"" >&6; } 5630 vi_cv_path_mzscheme_pfx="$PLTHOME" 5631 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5632 else 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5634$as_echo "not set" >&6; } 5635 # Extract the first word of "mzscheme", so it can be a program name with args. 5636set dummy mzscheme; ac_word=$2 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5638$as_echo_n "checking for $ac_word... " >&6; } 5639if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641else 5642 case $vi_cv_path_mzscheme in 5643 [\\/]* | ?:[\\/]*) 5644 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5645 ;; 5646 *) 5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5654 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662 ;; 5663esac 5664fi 5665vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5666if test -n "$vi_cv_path_mzscheme"; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5668$as_echo "$vi_cv_path_mzscheme" >&6; } 5669else 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5671$as_echo "no" >&6; } 5672fi 5673 5674 5675 5676 if test "X$vi_cv_path_mzscheme" != "X"; then 5677 lsout=`ls -l $vi_cv_path_mzscheme` 5678 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5679 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5680 fi 5681 fi 5682 5683 if test "X$vi_cv_path_mzscheme" != "X"; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5685$as_echo_n "checking MzScheme install prefix... " >&6; } 5686if ${vi_cv_path_mzscheme_pfx+:} false; then : 5687 $as_echo_n "(cached) " >&6 5688else 5689 echo "(display (simplify-path \ 5690 (build-path (call-with-values \ 5691 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5692 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5693 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5694 sed -e 's+/$++'` 5695fi 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5697$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5698 rm -f mzdirs.scm 5699 fi 5700 fi 5701 fi 5702 5703 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5705$as_echo_n "checking for racket include directory... " >&6; } 5706 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5707 if test "X$SCHEME_INC" != "X"; then 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5709$as_echo "${SCHEME_INC}" >&6; } 5710 else 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5712$as_echo "not found" >&6; } 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5714$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5715 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5716 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5718$as_echo "yes" >&6; } 5719 else 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5721$as_echo "no" >&6; } 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5723$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5724 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5726$as_echo "yes" >&6; } 5727 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5728 else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5730$as_echo "no" >&6; } 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5732$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5733 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5735$as_echo "yes" >&6; } 5736 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5737 else 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5739$as_echo "no" >&6; } 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5741$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5742 if test -f /usr/include/plt/scheme.h; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5744$as_echo "yes" >&6; } 5745 SCHEME_INC=/usr/include/plt 5746 else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5750$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5751 if test -f /usr/include/racket/scheme.h; then 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5753$as_echo "yes" >&6; } 5754 SCHEME_INC=/usr/include/racket 5755 else 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5757$as_echo "no" >&6; } 5758 vi_cv_path_mzscheme_pfx= 5759 fi 5760 fi 5761 fi 5762 fi 5763 fi 5764 fi 5765 fi 5766 5767 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5768 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5770$as_echo_n "checking for racket lib directory... " >&6; } 5771 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5772 if test "X$SCHEME_LIB" != "X"; then 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5774$as_echo "${SCHEME_LIB}" >&6; } 5775 else 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5777$as_echo "not found" >&6; } 5778 fi 5779 5780 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5781 if test "X$path" != "X"; then 5782 if test "x$MACOS_X" = "xyes"; then 5783 MZSCHEME_LIBS="-framework Racket" 5784 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5785 elif test -f "${path}/libmzscheme3m.a"; then 5786 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5787 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5788 elif test -f "${path}/libracket3m.a"; then 5789 MZSCHEME_LIBS="${path}/libracket3m.a" 5790 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5791 elif test -f "${path}/libracket.a"; then 5792 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5793 elif test -f "${path}/libmzscheme.a"; then 5794 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5795 else 5796 if test -f "${path}/libmzscheme3m.so"; then 5797 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5798 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5799 elif test -f "${path}/libracket3m.so"; then 5800 MZSCHEME_LIBS="-L${path} -lracket3m" 5801 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5802 elif test -f "${path}/libracket.so"; then 5803 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5804 else 5805 if test "$path" != "$SCHEME_LIB"; then 5806 continue 5807 fi 5808 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5809 fi 5810 if test "$GCC" = yes; then 5811 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5812 elif test "`(uname) 2>/dev/null`" = SunOS && 5813 uname -r | grep '^5' >/dev/null; then 5814 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5815 fi 5816 fi 5817 fi 5818 if test "X$MZSCHEME_LIBS" != "X"; then 5819 break 5820 fi 5821 done 5822 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5824$as_echo_n "checking if racket requires -pthread... " >&6; } 5825 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5827$as_echo "yes" >&6; } 5828 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5829 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5830 else 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5832$as_echo "no" >&6; } 5833 fi 5834 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5836$as_echo_n "checking for racket config directory... " >&6; } 5837 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5838 if test "X$SCHEME_CONFIGDIR" != "X"; then 5839 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5841$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5842 else 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5844$as_echo "not found" >&6; } 5845 fi 5846 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5848$as_echo_n "checking for racket collects directory... " >&6; } 5849 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))))'` 5850 if test "X$SCHEME_COLLECTS" = "X"; then 5851 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5852 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5853 else 5854 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5855 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5856 else 5857 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5858 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5859 else 5860 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5861 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5862 fi 5863 fi 5864 fi 5865 fi 5866 fi 5867 if test "X$SCHEME_COLLECTS" != "X" ; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5869$as_echo "${SCHEME_COLLECTS}" >&6; } 5870 else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5872$as_echo "not found" >&6; } 5873 fi 5874 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5876$as_echo_n "checking for mzscheme_base.c... " >&6; } 5877 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5878 MZSCHEME_EXTRA="mzscheme_base.c" 5879 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5880 MZSCHEME_MOD="++lib scheme/base" 5881 else 5882 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5883 MZSCHEME_EXTRA="mzscheme_base.c" 5884 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5885 MZSCHEME_MOD="++lib scheme/base" 5886 else 5887 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5888 MZSCHEME_EXTRA="mzscheme_base.c" 5889 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5890 MZSCHEME_MOD="" 5891 fi 5892 fi 5893 fi 5894 if test "X$MZSCHEME_EXTRA" != "X" ; then 5895 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5897$as_echo "needed" >&6; } 5898 else 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5900$as_echo "not needed" >&6; } 5901 fi 5902 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5904$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5905if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 ac_check_lib_save_LIBS=$LIBS 5909LIBS="-lffi $LIBS" 5910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911/* end confdefs.h. */ 5912 5913/* Override any GCC internal prototype to avoid an error. 5914 Use char because int might match the return type of a GCC 5915 builtin and then its argument prototype would still apply. */ 5916#ifdef __cplusplus 5917extern "C" 5918#endif 5919char ffi_type_void (); 5920int 5921main () 5922{ 5923return ffi_type_void (); 5924 ; 5925 return 0; 5926} 5927_ACEOF 5928if ac_fn_c_try_link "$LINENO"; then : 5929 ac_cv_lib_ffi_ffi_type_void=yes 5930else 5931 ac_cv_lib_ffi_ffi_type_void=no 5932fi 5933rm -f core conftest.err conftest.$ac_objext \ 5934 conftest$ac_exeext conftest.$ac_ext 5935LIBS=$ac_check_lib_save_LIBS 5936fi 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5938$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5939if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5940 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5941fi 5942 5943 5944 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5945 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5946 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5948$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5949 cflags_save=$CFLAGS 5950 libs_save=$LIBS 5951 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5952 LIBS="$LIBS $MZSCHEME_LIBS" 5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5954/* end confdefs.h. */ 5955 5956int 5957main () 5958{ 5959 5960 ; 5961 return 0; 5962} 5963_ACEOF 5964if ac_fn_c_try_link "$LINENO"; then : 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5966$as_echo "yes" >&6; }; mzs_ok=yes 5967else 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5969$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5970fi 5971rm -f core conftest.err conftest.$ac_objext \ 5972 conftest$ac_exeext conftest.$ac_ext 5973 CFLAGS=$cflags_save 5974 LIBS=$libs_save 5975 if test $mzs_ok = yes; then 5976 MZSCHEME_SRC="if_mzsch.c" 5977 MZSCHEME_OBJ="objects/if_mzsch.o" 5978 MZSCHEME_PRO="if_mzsch.pro" 5979 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5980 5981 else 5982 MZSCHEME_CFLAGS= 5983 MZSCHEME_LIBS= 5984 MZSCHEME_EXTRA= 5985 MZSCHEME_MZC= 5986 fi 5987 fi 5988 5989 5990 5991 5992 5993 5994 5995fi 5996 5997 5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5999$as_echo_n "checking --enable-perlinterp argument... " >&6; } 6000# Check whether --enable-perlinterp was given. 6001if test "${enable_perlinterp+set}" = set; then : 6002 enableval=$enable_perlinterp; 6003else 6004 enable_perlinterp="no" 6005fi 6006 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 6008$as_echo "$enable_perlinterp" >&6; } 6009if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 6010 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6011 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 6012 fi 6013 6014 # Extract the first word of "perl", so it can be a program name with args. 6015set dummy perl; ac_word=$2 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6017$as_echo_n "checking for $ac_word... " >&6; } 6018if ${ac_cv_path_vi_cv_path_perl+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 case $vi_cv_path_perl in 6022 [\\/]* | ?:[\\/]*) 6023 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 6024 ;; 6025 *) 6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6027for as_dir in $PATH 6028do 6029 IFS=$as_save_IFS 6030 test -z "$as_dir" && as_dir=. 6031 for ac_exec_ext in '' $ac_executable_extensions; do 6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6033 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6035 break 2 6036 fi 6037done 6038 done 6039IFS=$as_save_IFS 6040 6041 ;; 6042esac 6043fi 6044vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 6045if test -n "$vi_cv_path_perl"; then 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 6047$as_echo "$vi_cv_path_perl" >&6; } 6048else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6050$as_echo "no" >&6; } 6051fi 6052 6053 6054 if test "X$vi_cv_path_perl" != "X"; then 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 6056$as_echo_n "checking Perl version... " >&6; } 6057 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 6058 eval `$vi_cv_path_perl -V:usethreads` 6059 eval `$vi_cv_path_perl -V:libperl` 6060 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 6061 badthreads=no 6062 else 6063 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 6064 eval `$vi_cv_path_perl -V:use5005threads` 6065 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 6066 badthreads=no 6067 else 6068 badthreads=yes 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 6070$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 6071 fi 6072 else 6073 badthreads=yes 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 6075$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 6076 fi 6077 fi 6078 if test $badthreads = no; then 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 6080$as_echo "OK" >&6; } 6081 eval `$vi_cv_path_perl -V:shrpenv` 6082 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 6083 shrpenv="" 6084 fi 6085 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 6086 6087 vi_cv_perl_extutils=unknown_perl_extutils_path 6088 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 6089 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 6090 if test -f "$xsubpp_path"; then 6091 vi_cv_perl_xsubpp="$xsubpp_path" 6092 fi 6093 done 6094 6095 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 6096 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 6097 -e 's/-fdebug-prefix-map[^ ]*//g' \ 6098 -e 's/-pipe //' \ 6099 -e 's/-W[^ ]*//g' \ 6100 -e 's/-D_FORTIFY_SOURCE=.//g'` 6101 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 6102 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 6103 -e 's/-bE:perl.exp//' -e 's/-lc //'` 6104 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 6105 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 6106 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 6108$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 6109 cflags_save=$CFLAGS 6110 libs_save=$LIBS 6111 ldflags_save=$LDFLAGS 6112 CFLAGS="$CFLAGS $perlcppflags" 6113 LIBS="$LIBS $perllibs" 6114 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 6115 LDFLAGS="$perlldflags $LDFLAGS" 6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6117/* end confdefs.h. */ 6118 6119int 6120main () 6121{ 6122 6123 ; 6124 return 0; 6125} 6126_ACEOF 6127if ac_fn_c_try_link "$LINENO"; then : 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6129$as_echo "yes" >&6; }; perl_ok=yes 6130else 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 6132$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 6133fi 6134rm -f core conftest.err conftest.$ac_objext \ 6135 conftest$ac_exeext conftest.$ac_ext 6136 CFLAGS=$cflags_save 6137 LIBS=$libs_save 6138 LDFLAGS=$ldflags_save 6139 if test $perl_ok = yes; then 6140 if test "X$perlcppflags" != "X"; then 6141 PERL_CFLAGS=$perlcppflags 6142 fi 6143 if test "X$perlldflags" != "X"; then 6144 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 6145 LDFLAGS="$perlldflags $LDFLAGS" 6146 fi 6147 fi 6148 PERL_LIBS=$perllibs 6149 PERL_SRC="auto/if_perl.c if_perlsfio.c" 6150 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 6151 PERL_PRO="if_perl.pro if_perlsfio.pro" 6152 $as_echo "#define FEAT_PERL 1" >>confdefs.h 6153 6154 fi 6155 fi 6156 else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 6158$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 6159 fi 6160 fi 6161 6162 if test "x$MACOS_X" = "xyes"; then 6163 dir=/System/Library/Perl 6164 darwindir=$dir/darwin 6165 if test -d $darwindir; then 6166 PERL=/usr/bin/perl 6167 else 6168 dir=/System/Library/Perl/5.8.1 6169 darwindir=$dir/darwin-thread-multi-2level 6170 if test -d $darwindir; then 6171 PERL=/usr/bin/perl 6172 fi 6173 fi 6174 if test -n "$PERL"; then 6175 PERL_DIR="$dir" 6176 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 6177 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 6178 PERL_LIBS="-L$darwindir/CORE -lperl" 6179 fi 6180 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6181 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 6182 fi 6183 if test "$enable_perlinterp" = "dynamic"; then 6184 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 6185 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 6186 6187 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 6188 fi 6189 fi 6190 6191 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 6192 as_fn_error $? "could not configure perl" "$LINENO" 5 6193 fi 6194fi 6195 6196 6197 6198 6199 6200 6201 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 6203$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 6204# Check whether --enable-pythoninterp was given. 6205if test "${enable_pythoninterp+set}" = set; then : 6206 enableval=$enable_pythoninterp; 6207else 6208 enable_pythoninterp="no" 6209fi 6210 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 6212$as_echo "$enable_pythoninterp" >&6; } 6213if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 6214 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6215 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6216 fi 6217 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5 6219$as_echo_n "checking --with-python-command argument... " >&6; } 6220 6221 6222# Check whether --with-python-command was given. 6223if test "${with_python_command+set}" = set; then : 6224 withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6225$as_echo "$vi_cv_path_python" >&6; } 6226else 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6228$as_echo "no" >&6; } 6229fi 6230 6231 6232 if test "X$vi_cv_path_python" = "X"; then 6233 for ac_prog in python2 python 6234do 6235 # Extract the first word of "$ac_prog", so it can be a program name with args. 6236set dummy $ac_prog; ac_word=$2 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6238$as_echo_n "checking for $ac_word... " >&6; } 6239if ${ac_cv_path_vi_cv_path_python+:} false; then : 6240 $as_echo_n "(cached) " >&6 6241else 6242 case $vi_cv_path_python in 6243 [\\/]* | ?:[\\/]*) 6244 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 6245 ;; 6246 *) 6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6254 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262 ;; 6263esac 6264fi 6265vi_cv_path_python=$ac_cv_path_vi_cv_path_python 6266if test -n "$vi_cv_path_python"; then 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 6268$as_echo "$vi_cv_path_python" >&6; } 6269else 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271$as_echo "no" >&6; } 6272fi 6273 6274 6275 test -n "$vi_cv_path_python" && break 6276done 6277 6278 fi 6279 if test "X$vi_cv_path_python" != "X"; then 6280 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6282$as_echo_n "checking Python version... " >&6; } 6283if ${vi_cv_var_python_version+:} false; then : 6284 $as_echo_n "(cached) " >&6 6285else 6286 vi_cv_var_python_version=` 6287 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 6288 6289fi 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 6291$as_echo "$vi_cv_var_python_version" >&6; } 6292 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 6294$as_echo_n "checking Python is 2.3 or better... " >&6; } 6295 if ${vi_cv_path_python} -c \ 6296 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 6297 then 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6299$as_echo "yep" >&6; } 6300 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6302$as_echo_n "checking Python's install prefix... " >&6; } 6303if ${vi_cv_path_python_pfx+:} false; then : 6304 $as_echo_n "(cached) " >&6 6305else 6306 vi_cv_path_python_pfx=` 6307 ${vi_cv_path_python} -c \ 6308 "import sys; print sys.prefix"` 6309fi 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 6311$as_echo "$vi_cv_path_python_pfx" >&6; } 6312 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6314$as_echo_n "checking Python's execution prefix... " >&6; } 6315if ${vi_cv_path_python_epfx+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317else 6318 vi_cv_path_python_epfx=` 6319 ${vi_cv_path_python} -c \ 6320 "import sys; print sys.exec_prefix"` 6321fi 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 6323$as_echo "$vi_cv_path_python_epfx" >&6; } 6324 6325 6326 if ${vi_cv_path_pythonpath+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 vi_cv_path_pythonpath=` 6330 unset PYTHONPATH; 6331 ${vi_cv_path_python} -c \ 6332 "import sys, string; print string.join(sys.path,':')"` 6333fi 6334 6335 6336 6337 6338# Check whether --with-python-config-dir was given. 6339if test "${with_python_config_dir+set}" = set; then : 6340 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"; have_python_config_dir=1 6341fi 6342 6343 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6345$as_echo_n "checking Python's configuration directory... " >&6; } 6346if ${vi_cv_path_python_conf+:} false; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 6350 vi_cv_path_python_conf= 6351 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 6352 if test -d "$d" && test -f "$d/config.c"; then 6353 vi_cv_path_python_conf="$d" 6354 else 6355 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 6356 for subdir in lib64 lib share; do 6357 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 6358 if test -d "$d" && test -f "$d/config.c"; then 6359 vi_cv_path_python_conf="$d" 6360 fi 6361 done 6362 done 6363 fi 6364 6365fi 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 6367$as_echo "$vi_cv_path_python_conf" >&6; } 6368 6369 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 6370 6371 if test "X$PYTHON_CONFDIR" = "X"; then 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6373$as_echo "can't find it!" >&6; } 6374 else 6375 6376 if ${vi_cv_path_python_plibs+:} false; then : 6377 $as_echo_n "(cached) " >&6 6378else 6379 6380 pwd=`pwd` 6381 tmp_mkf="$pwd/config-PyMake$$" 6382 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6383__: 6384 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 6385 @echo "python_LIBS='$(LIBS)'" 6386 @echo "python_SYSLIBS='$(SYSLIBS)'" 6387 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 6388 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 6389 @echo "python_INSTSONAME='$(INSTSONAME)'" 6390 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 6391 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 6392 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 6393eof 6394 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6395 rm -f -- "${tmp_mkf}" 6396 if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 6397 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6398 vi_cv_path_python_plibs="-framework Python" 6399 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6400 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6401 fi 6402 else 6403 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6404 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6405 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6406 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6407 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6408 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6409 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6410 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6411 fi 6412 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6413 fi 6414 fi 6415 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6416 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6417 fi 6418 6419fi 6420 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6422$as_echo_n "checking Python's dll name... " >&6; } 6423if ${vi_cv_dll_name_python+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 6427 if test "X$python_DLLLIBRARY" != "X"; then 6428 vi_cv_dll_name_python="$python_DLLLIBRARY" 6429 else 6430 vi_cv_dll_name_python="$python_INSTSONAME" 6431 fi 6432 6433fi 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6435$as_echo "$vi_cv_dll_name_python" >&6; } 6436 6437 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6438 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6439 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 6440 else 6441 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}" 6442 fi 6443 if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then 6444 PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6445 6446 fi 6447 PYTHON_SRC="if_python.c" 6448 PYTHON_OBJ="objects/if_python.o" 6449 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6451$as_echo_n "checking if -pthread should be used... " >&6; } 6452 threadsafe_flag= 6453 thread_lib= 6454 if test "`(uname) 2>/dev/null`" != Darwin; then 6455 test "$GCC" = yes && threadsafe_flag="-pthread" 6456 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6457 threadsafe_flag="-D_THREAD_SAFE" 6458 thread_lib="-pthread" 6459 fi 6460 if test "`(uname) 2>/dev/null`" = SunOS; then 6461 threadsafe_flag="-pthreads" 6462 fi 6463 fi 6464 libs_save_old=$LIBS 6465 if test -n "$threadsafe_flag"; then 6466 cflags_save=$CFLAGS 6467 CFLAGS="$CFLAGS $threadsafe_flag" 6468 LIBS="$LIBS $thread_lib" 6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470/* end confdefs.h. */ 6471 6472int 6473main () 6474{ 6475 6476 ; 6477 return 0; 6478} 6479_ACEOF 6480if ac_fn_c_try_link "$LINENO"; then : 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6482$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6483else 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6485$as_echo "no" >&6; }; LIBS=$libs_save_old 6486 6487fi 6488rm -f core conftest.err conftest.$ac_objext \ 6489 conftest$ac_exeext conftest.$ac_ext 6490 CFLAGS=$cflags_save 6491 else 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6493$as_echo "no" >&6; } 6494 fi 6495 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6497$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6498 cflags_save=$CFLAGS 6499 libs_save=$LIBS 6500 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6501 LIBS="$LIBS $PYTHON_LIBS" 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504 6505int 6506main () 6507{ 6508 6509 ; 6510 return 0; 6511} 6512_ACEOF 6513if ac_fn_c_try_link "$LINENO"; then : 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6515$as_echo "yes" >&6; }; python_ok=yes 6516else 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6518$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6519fi 6520rm -f core conftest.err conftest.$ac_objext \ 6521 conftest$ac_exeext conftest.$ac_ext 6522 CFLAGS=$cflags_save 6523 LIBS=$libs_save 6524 if test $python_ok = yes; then 6525 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6526 6527 else 6528 LIBS=$libs_save_old 6529 PYTHON_SRC= 6530 PYTHON_OBJ= 6531 PYTHON_LIBS= 6532 PYTHON_CFLAGS= 6533 fi 6534 fi 6535 else 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6537$as_echo "too old" >&6; } 6538 fi 6539 fi 6540 6541 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6542 as_fn_error $? "could not configure python" "$LINENO" 5 6543 fi 6544fi 6545 6546 6547 6548 6549 6550 6551 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6553$as_echo_n "checking --enable-python3interp argument... " >&6; } 6554# Check whether --enable-python3interp was given. 6555if test "${enable_python3interp+set}" = set; then : 6556 enableval=$enable_python3interp; 6557else 6558 enable_python3interp="no" 6559fi 6560 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6562$as_echo "$enable_python3interp" >&6; } 6563if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6564 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6565 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6566 fi 6567 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5 6569$as_echo_n "checking --with-python3-command argument... " >&6; } 6570 6571 6572# Check whether --with-python3-command was given. 6573if test "${with_python3_command+set}" = set; then : 6574 withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6575$as_echo "$vi_cv_path_python3" >&6; } 6576else 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6578$as_echo "no" >&6; } 6579fi 6580 6581 6582 if test "X$vi_cv_path_python3" = "X"; then 6583 for ac_prog in python3 python 6584do 6585 # Extract the first word of "$ac_prog", so it can be a program name with args. 6586set dummy $ac_prog; ac_word=$2 6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6588$as_echo_n "checking for $ac_word... " >&6; } 6589if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591else 6592 case $vi_cv_path_python3 in 6593 [\\/]* | ?:[\\/]*) 6594 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6595 ;; 6596 *) 6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6598for as_dir in $PATH 6599do 6600 IFS=$as_save_IFS 6601 test -z "$as_dir" && as_dir=. 6602 for ac_exec_ext in '' $ac_executable_extensions; do 6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6604 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6606 break 2 6607 fi 6608done 6609 done 6610IFS=$as_save_IFS 6611 6612 ;; 6613esac 6614fi 6615vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6616if test -n "$vi_cv_path_python3"; then 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6618$as_echo "$vi_cv_path_python3" >&6; } 6619else 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621$as_echo "no" >&6; } 6622fi 6623 6624 6625 test -n "$vi_cv_path_python3" && break 6626done 6627 6628 fi 6629 if test "X$vi_cv_path_python3" != "X"; then 6630 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6632$as_echo_n "checking Python version... " >&6; } 6633if ${vi_cv_var_python3_version+:} false; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 vi_cv_var_python3_version=` 6637 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6638 6639fi 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6641$as_echo "$vi_cv_var_python3_version" >&6; } 6642 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6644$as_echo_n "checking Python is 3.0 or better... " >&6; } 6645 if ${vi_cv_path_python3} -c \ 6646 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6647 then 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6649$as_echo "yep" >&6; } 6650 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6652$as_echo_n "checking Python's abiflags... " >&6; } 6653if ${vi_cv_var_python3_abiflags+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 6657 vi_cv_var_python3_abiflags= 6658 if ${vi_cv_path_python3} -c \ 6659 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6660 then 6661 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6662 "import sys; print(sys.abiflags)"` 6663 fi 6664fi 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6666$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6667 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6669$as_echo_n "checking Python's install prefix... " >&6; } 6670if ${vi_cv_path_python3_pfx+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672else 6673 vi_cv_path_python3_pfx=` 6674 ${vi_cv_path_python3} -c \ 6675 "import sys; print(sys.prefix)"` 6676fi 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6678$as_echo "$vi_cv_path_python3_pfx" >&6; } 6679 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6681$as_echo_n "checking Python's execution prefix... " >&6; } 6682if ${vi_cv_path_python3_epfx+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 vi_cv_path_python3_epfx=` 6686 ${vi_cv_path_python3} -c \ 6687 "import sys; print(sys.exec_prefix)"` 6688fi 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6690$as_echo "$vi_cv_path_python3_epfx" >&6; } 6691 6692 6693 if ${vi_cv_path_python3path+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 vi_cv_path_python3path=` 6697 unset PYTHONPATH; 6698 ${vi_cv_path_python3} -c \ 6699 "import sys, string; print(':'.join(sys.path))"` 6700fi 6701 6702 6703 6704 6705# Check whether --with-python3-config-dir was given. 6706if test "${with_python3_config_dir+set}" = set; then : 6707 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1 6708fi 6709 6710 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6712$as_echo_n "checking Python's configuration directory... " >&6; } 6713if ${vi_cv_path_python3_conf+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715else 6716 6717 vi_cv_path_python3_conf= 6718 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6719 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6720 if test -d "$d" && test -f "$d/config.c"; then 6721 vi_cv_path_python3_conf="$d" 6722 else 6723 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6724 for subdir in lib64 lib share; do 6725 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6726 if test -d "$d" && test -f "$d/config.c"; then 6727 vi_cv_path_python3_conf="$d" 6728 fi 6729 done 6730 done 6731 fi 6732 6733fi 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6735$as_echo "$vi_cv_path_python3_conf" >&6; } 6736 6737 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6738 6739 if test "X$PYTHON3_CONFDIR" = "X"; then 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6741$as_echo "can't find it!" >&6; } 6742 else 6743 6744 if ${vi_cv_path_python3_plibs+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 6748 pwd=`pwd` 6749 tmp_mkf="$pwd/config-PyMake$$" 6750 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6751__: 6752 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6753 @echo "python3_LIBS='$(LIBS)'" 6754 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6755 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6756 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6757eof 6758 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6759 rm -f -- "${tmp_mkf}" 6760 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6761 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6762 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6763 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6764 6765fi 6766 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6768$as_echo_n "checking Python3's dll name... " >&6; } 6769if ${vi_cv_dll_name_python3+:} false; then : 6770 $as_echo_n "(cached) " >&6 6771else 6772 6773 if test "X$python3_DLLLIBRARY" != "X"; then 6774 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6775 else 6776 vi_cv_dll_name_python3="$python3_INSTSONAME" 6777 fi 6778 6779fi 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6781$as_echo "$vi_cv_dll_name_python3" >&6; } 6782 6783 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6784 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6785 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6786 else 6787 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}" 6788 fi 6789 if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then 6790 PYTHON3_CFLAGS="${PYTHON3_CFLAGS} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6791 fi 6792 PYTHON3_SRC="if_python3.c" 6793 PYTHON3_OBJ="objects/if_python3.o" 6794 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6796$as_echo_n "checking if -pthread should be used... " >&6; } 6797 threadsafe_flag= 6798 thread_lib= 6799 if test "`(uname) 2>/dev/null`" != Darwin; then 6800 test "$GCC" = yes && threadsafe_flag="-pthread" 6801 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6802 threadsafe_flag="-D_THREAD_SAFE" 6803 thread_lib="-pthread" 6804 fi 6805 if test "`(uname) 2>/dev/null`" = SunOS; then 6806 threadsafe_flag="-pthreads" 6807 fi 6808 fi 6809 libs_save_old=$LIBS 6810 if test -n "$threadsafe_flag"; then 6811 cflags_save=$CFLAGS 6812 CFLAGS="$CFLAGS $threadsafe_flag" 6813 LIBS="$LIBS $thread_lib" 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816 6817int 6818main () 6819{ 6820 6821 ; 6822 return 0; 6823} 6824_ACEOF 6825if ac_fn_c_try_link "$LINENO"; then : 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6827$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6828else 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6830$as_echo "no" >&6; }; LIBS=$libs_save_old 6831 6832fi 6833rm -f core conftest.err conftest.$ac_objext \ 6834 conftest$ac_exeext conftest.$ac_ext 6835 CFLAGS=$cflags_save 6836 else 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6838$as_echo "no" >&6; } 6839 fi 6840 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6842$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6843 cflags_save=$CFLAGS 6844 libs_save=$LIBS 6845 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6846 LIBS="$LIBS $PYTHON3_LIBS" 6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6848/* end confdefs.h. */ 6849 6850int 6851main () 6852{ 6853 6854 ; 6855 return 0; 6856} 6857_ACEOF 6858if ac_fn_c_try_link "$LINENO"; then : 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6860$as_echo "yes" >&6; }; python3_ok=yes 6861else 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6863$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6864fi 6865rm -f core conftest.err conftest.$ac_objext \ 6866 conftest$ac_exeext conftest.$ac_ext 6867 CFLAGS=$cflags_save 6868 LIBS=$libs_save 6869 if test "$python3_ok" = yes; then 6870 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6871 6872 else 6873 LIBS=$libs_save_old 6874 PYTHON3_SRC= 6875 PYTHON3_OBJ= 6876 PYTHON3_LIBS= 6877 PYTHON3_CFLAGS= 6878 fi 6879 fi 6880 else 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6882$as_echo "too old" >&6; } 6883 fi 6884 fi 6885 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6886 as_fn_error $? "could not configure python3" "$LINENO" 5 6887 fi 6888fi 6889 6890 6891 6892 6893 6894 6895if test "$python_ok" = yes && test "$python3_ok" = yes; then 6896 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6897 6898 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6899 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6901$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6902 cflags_save=$CFLAGS 6903 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6904 libs_save=$LIBS 6905 LIBS="-ldl $LIBS" 6906 if test "$cross_compiling" = yes; then : 6907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6909as_fn_error $? "cannot run test program while cross compiling 6910See \`config.log' for more details" "$LINENO" 5; } 6911else 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914 6915 #include <dlfcn.h> 6916 /* If this program fails, then RTLD_GLOBAL is needed. 6917 * RTLD_GLOBAL will be used and then it is not possible to 6918 * have both python versions enabled in the same vim instance. 6919 * Only the first python version used will be switched on. 6920 */ 6921 6922 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6923 { 6924 int needed = 0; 6925 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6926 if (pylib != 0) 6927 { 6928 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6929 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6930 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6931 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6932 (*pfx)(prefix); 6933 (*init)(); 6934 needed = (*simple)("import termios") == -1; 6935 (*final)(); 6936 dlclose(pylib); 6937 } 6938 return !needed; 6939 } 6940 6941 int main(int argc, char** argv) 6942 { 6943 int not_needed = 0; 6944 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6945 not_needed = 1; 6946 return !not_needed; 6947 } 6948_ACEOF 6949if ac_fn_c_try_run "$LINENO"; then : 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6951$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6952 6953else 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6955$as_echo "no" >&6; } 6956fi 6957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6958 conftest.$ac_objext conftest.beam conftest.$ac_ext 6959fi 6960 6961 6962 CFLAGS=$cflags_save 6963 LIBS=$libs_save 6964 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6966$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6967 cflags_save=$CFLAGS 6968 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6969 libs_save=$LIBS 6970 LIBS="-ldl $LIBS" 6971 if test "$cross_compiling" = yes; then : 6972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6974as_fn_error $? "cannot run test program while cross compiling 6975See \`config.log' for more details" "$LINENO" 5; } 6976else 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978/* end confdefs.h. */ 6979 6980 #include <dlfcn.h> 6981 #include <wchar.h> 6982 /* If this program fails, then RTLD_GLOBAL is needed. 6983 * RTLD_GLOBAL will be used and then it is not possible to 6984 * have both python versions enabled in the same vim instance. 6985 * Only the first python version used will be switched on. 6986 */ 6987 6988 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6989 { 6990 int needed = 0; 6991 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6992 if (pylib != 0) 6993 { 6994 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6995 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6996 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6997 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6998 (*pfx)(prefix); 6999 (*init)(); 7000 needed = (*simple)("import termios") == -1; 7001 (*final)(); 7002 dlclose(pylib); 7003 } 7004 return !needed; 7005 } 7006 7007 int main(int argc, char** argv) 7008 { 7009 int not_needed = 0; 7010 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 7011 not_needed = 1; 7012 return !not_needed; 7013 } 7014_ACEOF 7015if ac_fn_c_try_run "$LINENO"; then : 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7017$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 7018 7019else 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7021$as_echo "no" >&6; } 7022fi 7023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7024 conftest.$ac_objext conftest.beam conftest.$ac_ext 7025fi 7026 7027 7028 CFLAGS=$cflags_save 7029 LIBS=$libs_save 7030 7031 PYTHON_SRC="if_python.c" 7032 PYTHON_OBJ="objects/if_python.o" 7033 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7034 PYTHON_LIBS= 7035 PYTHON3_SRC="if_python3.c" 7036 PYTHON3_OBJ="objects/if_python3.o" 7037 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7038 PYTHON3_LIBS= 7039elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 7040 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 7041 7042 PYTHON_SRC="if_python.c" 7043 PYTHON_OBJ="objects/if_python.o" 7044 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 7045 PYTHON_LIBS= 7046elif test "$python_ok" = yes; then 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 7048$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 7049 cflags_save=$CFLAGS 7050 libs_save=$LIBS 7051 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 7052 LIBS="$LIBS $PYTHON_LIBS" 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055 7056int 7057main () 7058{ 7059 7060 ; 7061 return 0; 7062} 7063_ACEOF 7064if ac_fn_c_try_link "$LINENO"; then : 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7066$as_echo "yes" >&6; }; fpie_ok=yes 7067else 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7069$as_echo "no" >&6; }; fpie_ok=no 7070fi 7071rm -f core conftest.err conftest.$ac_objext \ 7072 conftest$ac_exeext conftest.$ac_ext 7073 CFLAGS=$cflags_save 7074 LIBS=$libs_save 7075 if test $fpie_ok = yes; then 7076 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 7077 fi 7078elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 7079 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 7080 7081 PYTHON3_SRC="if_python3.c" 7082 PYTHON3_OBJ="objects/if_python3.o" 7083 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 7084 PYTHON3_LIBS= 7085elif test "$python3_ok" = yes; then 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 7087$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 7088 cflags_save=$CFLAGS 7089 libs_save=$LIBS 7090 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 7091 LIBS="$LIBS $PYTHON3_LIBS" 7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093/* end confdefs.h. */ 7094 7095int 7096main () 7097{ 7098 7099 ; 7100 return 0; 7101} 7102_ACEOF 7103if ac_fn_c_try_link "$LINENO"; then : 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7105$as_echo "yes" >&6; }; fpie_ok=yes 7106else 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7108$as_echo "no" >&6; }; fpie_ok=no 7109fi 7110rm -f core conftest.err conftest.$ac_objext \ 7111 conftest$ac_exeext conftest.$ac_ext 7112 CFLAGS=$cflags_save 7113 LIBS=$libs_save 7114 if test $fpie_ok = yes; then 7115 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 7116 fi 7117fi 7118 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 7120$as_echo_n "checking --enable-tclinterp argument... " >&6; } 7121# Check whether --enable-tclinterp was given. 7122if test "${enable_tclinterp+set}" = set; then : 7123 enableval=$enable_tclinterp; 7124else 7125 enable_tclinterp="no" 7126fi 7127 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 7129$as_echo "$enable_tclinterp" >&6; } 7130 7131if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 7132 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 7134$as_echo_n "checking --with-tclsh argument... " >&6; } 7135 7136# Check whether --with-tclsh was given. 7137if test "${with_tclsh+set}" = set; then : 7138 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 7139$as_echo "$tclsh_name" >&6; } 7140else 7141 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7146set dummy $tclsh_name; ac_word=$2 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7148$as_echo_n "checking for $ac_word... " >&6; } 7149if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7150 $as_echo_n "(cached) " >&6 7151else 7152 case $vi_cv_path_tcl in 7153 [\\/]* | ?:[\\/]*) 7154 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7155 ;; 7156 *) 7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7158for as_dir in $PATH 7159do 7160 IFS=$as_save_IFS 7161 test -z "$as_dir" && as_dir=. 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7164 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7166 break 2 7167 fi 7168done 7169 done 7170IFS=$as_save_IFS 7171 7172 ;; 7173esac 7174fi 7175vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7176if test -n "$vi_cv_path_tcl"; then 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7178$as_echo "$vi_cv_path_tcl" >&6; } 7179else 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7181$as_echo "no" >&6; } 7182fi 7183 7184 7185 7186 7187 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 7188 tclsh_name="tclsh8.4" 7189 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7190set dummy $tclsh_name; ac_word=$2 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7192$as_echo_n "checking for $ac_word... " >&6; } 7193if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 case $vi_cv_path_tcl in 7197 [\\/]* | ?:[\\/]*) 7198 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7199 ;; 7200 *) 7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7202for as_dir in $PATH 7203do 7204 IFS=$as_save_IFS 7205 test -z "$as_dir" && as_dir=. 7206 for ac_exec_ext in '' $ac_executable_extensions; do 7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7208 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7210 break 2 7211 fi 7212done 7213 done 7214IFS=$as_save_IFS 7215 7216 ;; 7217esac 7218fi 7219vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7220if test -n "$vi_cv_path_tcl"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7222$as_echo "$vi_cv_path_tcl" >&6; } 7223else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7225$as_echo "no" >&6; } 7226fi 7227 7228 7229 fi 7230 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 7231 tclsh_name="tclsh8.2" 7232 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7233set dummy $tclsh_name; ac_word=$2 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7235$as_echo_n "checking for $ac_word... " >&6; } 7236if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 case $vi_cv_path_tcl in 7240 [\\/]* | ?:[\\/]*) 7241 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7242 ;; 7243 *) 7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7245for as_dir in $PATH 7246do 7247 IFS=$as_save_IFS 7248 test -z "$as_dir" && as_dir=. 7249 for ac_exec_ext in '' $ac_executable_extensions; do 7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7251 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7253 break 2 7254 fi 7255done 7256 done 7257IFS=$as_save_IFS 7258 7259 ;; 7260esac 7261fi 7262vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7263if test -n "$vi_cv_path_tcl"; then 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7265$as_echo "$vi_cv_path_tcl" >&6; } 7266else 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7268$as_echo "no" >&6; } 7269fi 7270 7271 7272 fi 7273 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 7274 tclsh_name="tclsh8.0" 7275 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7276set dummy $tclsh_name; ac_word=$2 7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7278$as_echo_n "checking for $ac_word... " >&6; } 7279if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7280 $as_echo_n "(cached) " >&6 7281else 7282 case $vi_cv_path_tcl in 7283 [\\/]* | ?:[\\/]*) 7284 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7285 ;; 7286 *) 7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7288for as_dir in $PATH 7289do 7290 IFS=$as_save_IFS 7291 test -z "$as_dir" && as_dir=. 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7294 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298done 7299 done 7300IFS=$as_save_IFS 7301 7302 ;; 7303esac 7304fi 7305vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7306if test -n "$vi_cv_path_tcl"; then 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7308$as_echo "$vi_cv_path_tcl" >&6; } 7309else 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311$as_echo "no" >&6; } 7312fi 7313 7314 7315 fi 7316 if test "X$vi_cv_path_tcl" = "X"; then 7317 tclsh_name="tclsh" 7318 # Extract the first word of "$tclsh_name", so it can be a program name with args. 7319set dummy $tclsh_name; ac_word=$2 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321$as_echo_n "checking for $ac_word... " >&6; } 7322if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 case $vi_cv_path_tcl in 7326 [\\/]* | ?:[\\/]*) 7327 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 7328 ;; 7329 *) 7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7331for as_dir in $PATH 7332do 7333 IFS=$as_save_IFS 7334 test -z "$as_dir" && as_dir=. 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7337 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7339 break 2 7340 fi 7341done 7342 done 7343IFS=$as_save_IFS 7344 7345 ;; 7346esac 7347fi 7348vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 7349if test -n "$vi_cv_path_tcl"; then 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 7351$as_echo "$vi_cv_path_tcl" >&6; } 7352else 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7354$as_echo "no" >&6; } 7355fi 7356 7357 7358 fi 7359 if test "X$vi_cv_path_tcl" != "X"; then 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 7361$as_echo_n "checking Tcl version... " >&6; } 7362 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 7363 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 7365$as_echo "$tclver - OK" >&6; }; 7366 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 -` 7367 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 7368 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 7370$as_echo_n "checking for location of Tcl include... " >&6; } 7371 if test "x$MACOS_X" != "xyes"; then 7372 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 7373 else 7374 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 7375 fi 7376 TCL_INC= 7377 for try in $tclinc; do 7378 if test -f "$try/tcl.h"; then 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 7380$as_echo "$try/tcl.h" >&6; } 7381 TCL_INC=$try 7382 break 7383 fi 7384 done 7385 if test -z "$TCL_INC"; then 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7387$as_echo "<not found>" >&6; } 7388 SKIP_TCL=YES 7389 fi 7390 if test -z "$SKIP_TCL"; then 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 7392$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 7393 if test "x$MACOS_X" != "xyes"; then 7394 tclcnf=`echo $tclinc | sed s/include/lib/g` 7395 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 7396 else 7397 tclcnf="/System/Library/Frameworks/Tcl.framework" 7398 fi 7399 for try in $tclcnf; do 7400 if test -f "$try/tclConfig.sh"; then 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 7402$as_echo "$try/tclConfig.sh" >&6; } 7403 . "$try/tclConfig.sh" 7404 if test "$enable_tclinterp" = "dynamic"; then 7405 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 7406 else 7407 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 7408 fi 7409 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'` 7410 break 7411 fi 7412 done 7413 if test -z "$TCL_LIBS"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7415$as_echo "<not found>" >&6; } 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7417$as_echo_n "checking for Tcl library by myself... " >&6; } 7418 tcllib=`echo $tclinc | sed s/include/lib/g` 7419 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7420 for ext in .so .a ; do 7421 for ver in "" $tclver ; do 7422 for try in $tcllib ; do 7423 trylib=tcl$ver$ext 7424 if test -f "$try/lib$trylib" ; then 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7426$as_echo "$try/lib$trylib" >&6; } 7427 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7428 if test "`(uname) 2>/dev/null`" = SunOS && 7429 uname -r | grep '^5' >/dev/null; then 7430 TCL_LIBS="$TCL_LIBS -R $try" 7431 fi 7432 break 3 7433 fi 7434 done 7435 done 7436 done 7437 if test -z "$TCL_LIBS"; then 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7439$as_echo "<not found>" >&6; } 7440 SKIP_TCL=YES 7441 fi 7442 fi 7443 if test -z "$SKIP_TCL"; then 7444 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7445 7446 TCL_SRC=if_tcl.c 7447 TCL_OBJ=objects/if_tcl.o 7448 TCL_PRO=if_tcl.pro 7449 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7450 fi 7451 fi 7452 else 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7454$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7455 fi 7456 fi 7457 if test "$enable_tclinterp" = "dynamic"; then 7458 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7459 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7460 7461 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7462 fi 7463 fi 7464 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7465 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7466 fi 7467fi 7468 7469 7470 7471 7472 7473 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7475$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7476# Check whether --enable-rubyinterp was given. 7477if test "${enable_rubyinterp+set}" = set; then : 7478 enableval=$enable_rubyinterp; 7479else 7480 enable_rubyinterp="no" 7481fi 7482 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7484$as_echo "$enable_rubyinterp" >&6; } 7485if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7486 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7487 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7488 fi 7489 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7491$as_echo_n "checking --with-ruby-command argument... " >&6; } 7492 7493 7494# Check whether --with-ruby-command was given. 7495if test "${with_ruby_command+set}" = set; then : 7496 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7497$as_echo "$RUBY_CMD" >&6; } 7498else 7499 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7500$as_echo "defaulting to $RUBY_CMD" >&6; } 7501fi 7502 7503 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7504set dummy $RUBY_CMD; ac_word=$2 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7506$as_echo_n "checking for $ac_word... " >&6; } 7507if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 case $vi_cv_path_ruby in 7511 [\\/]* | ?:[\\/]*) 7512 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7513 ;; 7514 *) 7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7516for as_dir in $PATH 7517do 7518 IFS=$as_save_IFS 7519 test -z "$as_dir" && as_dir=. 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7522 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7524 break 2 7525 fi 7526done 7527 done 7528IFS=$as_save_IFS 7529 7530 ;; 7531esac 7532fi 7533vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7534if test -n "$vi_cv_path_ruby"; then 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7536$as_echo "$vi_cv_path_ruby" >&6; } 7537else 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7539$as_echo "no" >&6; } 7540fi 7541 7542 7543 if test "X$vi_cv_path_ruby" != "X"; then 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7545$as_echo_n "checking Ruby version... " >&6; } 7546 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7548$as_echo "OK" >&6; } 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7550$as_echo_n "checking Ruby rbconfig... " >&6; } 7551 ruby_rbconfig="RbConfig" 7552 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7553 ruby_rbconfig="Config" 7554 fi 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7556$as_echo "$ruby_rbconfig" >&6; } 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7558$as_echo_n "checking Ruby header files... " >&6; } 7559 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7560 if test "X$rubyhdrdir" != "X"; then 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7562$as_echo "$rubyhdrdir" >&6; } 7563 RUBY_CFLAGS="-I$rubyhdrdir" 7564 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7565 if test -d "$rubyarchdir"; then 7566 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7567 fi 7568 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7569 if test "X$rubyversion" = "X"; then 7570 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7571 fi 7572 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7573 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7574 if test "X$rubylibs" != "X"; then 7575 RUBY_LIBS="$rubylibs" 7576 fi 7577 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7578 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7579 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7580 if test -f "$rubylibdir/$librubya"; then 7581 librubyarg="$librubyarg" 7582 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7583 elif test "$librubyarg" = "libruby.a"; then 7584 librubyarg="-lruby" 7585 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7586 fi 7587 7588 if test "X$librubyarg" != "X"; then 7589 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7590 fi 7591 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7592 if test "X$rubyldflags" != "X"; then 7593 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7594 if test "X$rubyldflags" != "X"; then 7595 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7596 LDFLAGS="$rubyldflags $LDFLAGS" 7597 fi 7598 fi 7599 fi 7600 RUBY_SRC="if_ruby.c" 7601 RUBY_OBJ="objects/if_ruby.o" 7602 RUBY_PRO="if_ruby.pro" 7603 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7604 7605 if test "$enable_rubyinterp" = "dynamic"; then 7606 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` 7607 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7608 7609 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7610 RUBY_LIBS= 7611 fi 7612 else 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7614$as_echo "not found; disabling Ruby" >&6; } 7615 fi 7616 else 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7618$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7619 fi 7620 fi 7621 7622 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7623 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7624 fi 7625fi 7626 7627 7628 7629 7630 7631 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7633$as_echo_n "checking --enable-cscope argument... " >&6; } 7634# Check whether --enable-cscope was given. 7635if test "${enable_cscope+set}" = set; then : 7636 enableval=$enable_cscope; 7637else 7638 enable_cscope="no" 7639fi 7640 7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7642$as_echo "$enable_cscope" >&6; } 7643if test "$enable_cscope" = "yes"; then 7644 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7645 7646fi 7647 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7649$as_echo_n "checking --enable-workshop argument... " >&6; } 7650# Check whether --enable-workshop was given. 7651if test "${enable_workshop+set}" = set; then : 7652 enableval=$enable_workshop; 7653else 7654 enable_workshop="no" 7655fi 7656 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7658$as_echo "$enable_workshop" >&6; } 7659if test "$enable_workshop" = "yes"; then 7660 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7661 7662 WORKSHOP_SRC="workshop.c integration.c" 7663 7664 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7665 7666 if test "${enable_gui-xxx}" = xxx; then 7667 enable_gui=motif 7668 fi 7669fi 7670 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7672$as_echo_n "checking --disable-netbeans argument... " >&6; } 7673# Check whether --enable-netbeans was given. 7674if test "${enable_netbeans+set}" = set; then : 7675 enableval=$enable_netbeans; 7676else 7677 enable_netbeans="yes" 7678fi 7679 7680if test "$enable_netbeans" = "yes"; then 7681 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7683$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7684 enable_netbeans="no" 7685 else 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7687$as_echo "no" >&6; } 7688 fi 7689else 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7691$as_echo "yes" >&6; } 7692fi 7693 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7695$as_echo_n "checking --disable-channel argument... " >&6; } 7696# Check whether --enable-channel was given. 7697if test "${enable_channel+set}" = set; then : 7698 enableval=$enable_channel; 7699else 7700 enable_channel="yes" 7701fi 7702 7703if test "$enable_channel" = "yes"; then 7704 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7706$as_echo "cannot use channels with tiny or small features" >&6; } 7707 enable_channel="no" 7708 else 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7710$as_echo "no" >&6; } 7711 fi 7712else 7713 if test "$enable_netbeans" = "yes"; then 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7715$as_echo "yes, netbeans also disabled" >&6; } 7716 enable_netbeans="no" 7717 else 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7719$as_echo "yes" >&6; } 7720 fi 7721fi 7722 7723if test "$enable_channel" = "yes"; then 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7725$as_echo_n "checking for socket in -lsocket... " >&6; } 7726if ${ac_cv_lib_socket_socket+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 ac_check_lib_save_LIBS=$LIBS 7730LIBS="-lsocket $LIBS" 7731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733 7734/* Override any GCC internal prototype to avoid an error. 7735 Use char because int might match the return type of a GCC 7736 builtin and then its argument prototype would still apply. */ 7737#ifdef __cplusplus 7738extern "C" 7739#endif 7740char socket (); 7741int 7742main () 7743{ 7744return socket (); 7745 ; 7746 return 0; 7747} 7748_ACEOF 7749if ac_fn_c_try_link "$LINENO"; then : 7750 ac_cv_lib_socket_socket=yes 7751else 7752 ac_cv_lib_socket_socket=no 7753fi 7754rm -f core conftest.err conftest.$ac_objext \ 7755 conftest$ac_exeext conftest.$ac_ext 7756LIBS=$ac_check_lib_save_LIBS 7757fi 7758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7759$as_echo "$ac_cv_lib_socket_socket" >&6; } 7760if test "x$ac_cv_lib_socket_socket" = xyes; then : 7761 cat >>confdefs.h <<_ACEOF 7762#define HAVE_LIBSOCKET 1 7763_ACEOF 7764 7765 LIBS="-lsocket $LIBS" 7766 7767fi 7768 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7770$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7771if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 ac_check_lib_save_LIBS=$LIBS 7775LIBS="-lnsl $LIBS" 7776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7777/* end confdefs.h. */ 7778 7779/* Override any GCC internal prototype to avoid an error. 7780 Use char because int might match the return type of a GCC 7781 builtin and then its argument prototype would still apply. */ 7782#ifdef __cplusplus 7783extern "C" 7784#endif 7785char gethostbyname (); 7786int 7787main () 7788{ 7789return gethostbyname (); 7790 ; 7791 return 0; 7792} 7793_ACEOF 7794if ac_fn_c_try_link "$LINENO"; then : 7795 ac_cv_lib_nsl_gethostbyname=yes 7796else 7797 ac_cv_lib_nsl_gethostbyname=no 7798fi 7799rm -f core conftest.err conftest.$ac_objext \ 7800 conftest$ac_exeext conftest.$ac_ext 7801LIBS=$ac_check_lib_save_LIBS 7802fi 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7804$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7805if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7806 cat >>confdefs.h <<_ACEOF 7807#define HAVE_LIBNSL 1 7808_ACEOF 7809 7810 LIBS="-lnsl $LIBS" 7811 7812fi 7813 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7815$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7817/* end confdefs.h. */ 7818 7819#include <stdio.h> 7820#include <stdlib.h> 7821#include <stdarg.h> 7822#include <fcntl.h> 7823#include <netdb.h> 7824#include <netinet/in.h> 7825#include <errno.h> 7826#include <sys/types.h> 7827#include <sys/socket.h> 7828 /* Check bitfields */ 7829 struct nbbuf { 7830 unsigned int initDone:1; 7831 unsigned short signmaplen; 7832 }; 7833 7834int 7835main () 7836{ 7837 7838 /* Check creating a socket. */ 7839 struct sockaddr_in server; 7840 (void)socket(AF_INET, SOCK_STREAM, 0); 7841 (void)htons(100); 7842 (void)gethostbyname("microsoft.com"); 7843 if (errno == ECONNREFUSED) 7844 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7845 7846 ; 7847 return 0; 7848} 7849_ACEOF 7850if ac_fn_c_try_link "$LINENO"; then : 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7852$as_echo "yes" >&6; } 7853else 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7855$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7856fi 7857rm -f core conftest.err conftest.$ac_objext \ 7858 conftest$ac_exeext conftest.$ac_ext 7859fi 7860if test "$enable_netbeans" = "yes"; then 7861 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7862 7863 NETBEANS_SRC="netbeans.c" 7864 7865 NETBEANS_OBJ="objects/netbeans.o" 7866 7867fi 7868if test "$enable_channel" = "yes"; then 7869 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7870 7871 CHANNEL_SRC="channel.c" 7872 7873 CHANNEL_OBJ="objects/channel.o" 7874 7875fi 7876 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 7878$as_echo_n "checking --enable-terminal argument... " >&6; } 7879# Check whether --enable-terminal was given. 7880if test "${enable_terminal+set}" = set; then : 7881 enableval=$enable_terminal; 7882else 7883 enable_terminal="auto" 7884fi 7885 7886if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then 7887 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 7889$as_echo "cannot use terminal emulator with tiny or small features" >&6; } 7890 enable_terminal="no" 7891 else 7892 if test "$enable_terminal" = "auto"; then 7893 enable_terminal="yes" 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 7895$as_echo "defaulting to yes" >&6; } 7896 else 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7898$as_echo "yes" >&6; } 7899 fi 7900 fi 7901else 7902 if test "$enable_terminal" = "auto"; then 7903 enable_terminal="no" 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 7905$as_echo "defaulting to no" >&6; } 7906 else 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7908$as_echo "no" >&6; } 7909 fi 7910fi 7911if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then 7912 $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h 7913 7914 TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/screen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" 7915 7916 TERM_OBJ="objects/term_encoding.o objects/term_keyboard.o objects/term_mouse.o objects/term_parser.o objects/term_pen.o objects/term_screen.o objects/term_state.o objects/term_unicode.o objects/term_vterm.o" 7917 7918fi 7919 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 7921$as_echo_n "checking --enable-autoservername argument... " >&6; } 7922# Check whether --enable-autoservername was given. 7923if test "${enable_autoservername+set}" = set; then : 7924 enableval=$enable_autoservername; 7925else 7926 enable_autoservername="no" 7927fi 7928 7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 7930$as_echo "$enable_autoservername" >&6; } 7931if test "$enable_autoservername" = "yes"; then 7932 $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h 7933 7934fi 7935 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7937$as_echo_n "checking --enable-multibyte argument... " >&6; } 7938# Check whether --enable-multibyte was given. 7939if test "${enable_multibyte+set}" = set; then : 7940 enableval=$enable_multibyte; 7941else 7942 enable_multibyte="no" 7943fi 7944 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7946$as_echo "$enable_multibyte" >&6; } 7947if test "$enable_multibyte" = "yes"; then 7948 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7949 7950fi 7951 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7953$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7954# Check whether --enable-hangulinput was given. 7955if test "${enable_hangulinput+set}" = set; then : 7956 enableval=$enable_hangulinput; 7957else 7958 enable_hangulinput="no" 7959fi 7960 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7962$as_echo "$enable_hangulinput" >&6; } 7963 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7965$as_echo_n "checking --enable-xim argument... " >&6; } 7966# Check whether --enable-xim was given. 7967if test "${enable_xim+set}" = set; then : 7968 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7969$as_echo "$enable_xim" >&6; } 7970else 7971 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7972$as_echo "defaulting to auto" >&6; } 7973fi 7974 7975 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7977$as_echo_n "checking --enable-fontset argument... " >&6; } 7978# Check whether --enable-fontset was given. 7979if test "${enable_fontset+set}" = set; then : 7980 enableval=$enable_fontset; 7981else 7982 enable_fontset="no" 7983fi 7984 7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7986$as_echo "$enable_fontset" >&6; } 7987 7988test -z "$with_x" && with_x=yes 7989test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7990if test "$with_x" = no; then 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7992$as_echo "defaulting to: don't HAVE_X11" >&6; } 7993else 7994 7995 # Extract the first word of "xmkmf", so it can be a program name with args. 7996set dummy xmkmf; ac_word=$2 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7998$as_echo_n "checking for $ac_word... " >&6; } 7999if ${ac_cv_path_xmkmfpath+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 case $xmkmfpath in 8003 [\\/]* | ?:[\\/]*) 8004 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 8005 ;; 8006 *) 8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8008for as_dir in $PATH 8009do 8010 IFS=$as_save_IFS 8011 test -z "$as_dir" && as_dir=. 8012 for ac_exec_ext in '' $ac_executable_extensions; do 8013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8014 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8016 break 2 8017 fi 8018done 8019 done 8020IFS=$as_save_IFS 8021 8022 ;; 8023esac 8024fi 8025xmkmfpath=$ac_cv_path_xmkmfpath 8026if test -n "$xmkmfpath"; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 8028$as_echo "$xmkmfpath" >&6; } 8029else 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031$as_echo "no" >&6; } 8032fi 8033 8034 8035 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 8037$as_echo_n "checking for X... " >&6; } 8038 8039 8040# Check whether --with-x was given. 8041if test "${with_x+set}" = set; then : 8042 withval=$with_x; 8043fi 8044 8045# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8046if test "x$with_x" = xno; then 8047 # The user explicitly disabled X. 8048 have_x=disabled 8049else 8050 case $x_includes,$x_libraries in #( 8051 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 8052 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 # One or both of the vars are not set, and there is no cached value. 8056ac_x_includes=no ac_x_libraries=no 8057rm -f -r conftest.dir 8058if mkdir conftest.dir; then 8059 cd conftest.dir 8060 cat >Imakefile <<'_ACEOF' 8061incroot: 8062 @echo incroot='${INCROOT}' 8063usrlibdir: 8064 @echo usrlibdir='${USRLIBDIR}' 8065libdir: 8066 @echo libdir='${LIBDIR}' 8067_ACEOF 8068 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 8069 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8070 for ac_var in incroot usrlibdir libdir; do 8071 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 8072 done 8073 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8074 for ac_extension in a so sl dylib la dll; do 8075 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8076 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8077 ac_im_usrlibdir=$ac_im_libdir; break 8078 fi 8079 done 8080 # Screen out bogus values from the imake configuration. They are 8081 # bogus both because they are the default anyway, and because 8082 # using them would break gcc on systems where it needs fixed includes. 8083 case $ac_im_incroot in 8084 /usr/include) ac_x_includes= ;; 8085 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8086 esac 8087 case $ac_im_usrlibdir in 8088 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 8089 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8090 esac 8091 fi 8092 cd .. 8093 rm -f -r conftest.dir 8094fi 8095 8096# Standard set of common directories for X headers. 8097# Check X11 before X11Rn because it is often a symlink to the current release. 8098ac_x_header_dirs=' 8099/usr/X11/include 8100/usr/X11R7/include 8101/usr/X11R6/include 8102/usr/X11R5/include 8103/usr/X11R4/include 8104 8105/usr/include/X11 8106/usr/include/X11R7 8107/usr/include/X11R6 8108/usr/include/X11R5 8109/usr/include/X11R4 8110 8111/usr/local/X11/include 8112/usr/local/X11R7/include 8113/usr/local/X11R6/include 8114/usr/local/X11R5/include 8115/usr/local/X11R4/include 8116 8117/usr/local/include/X11 8118/usr/local/include/X11R7 8119/usr/local/include/X11R6 8120/usr/local/include/X11R5 8121/usr/local/include/X11R4 8122 8123/usr/X386/include 8124/usr/x386/include 8125/usr/XFree86/include/X11 8126 8127/usr/include 8128/usr/local/include 8129/usr/unsupported/include 8130/usr/athena/include 8131/usr/local/x11r5/include 8132/usr/lpp/Xamples/include 8133 8134/usr/openwin/include 8135/usr/openwin/share/include' 8136 8137if test "$ac_x_includes" = no; then 8138 # Guess where to find include files, by looking for Xlib.h. 8139 # First, try using that file with no special directory specified. 8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8141/* end confdefs.h. */ 8142#include <X11/Xlib.h> 8143_ACEOF 8144if ac_fn_c_try_cpp "$LINENO"; then : 8145 # We can compile using X headers with no special include directory. 8146ac_x_includes= 8147else 8148 for ac_dir in $ac_x_header_dirs; do 8149 if test -r "$ac_dir/X11/Xlib.h"; then 8150 ac_x_includes=$ac_dir 8151 break 8152 fi 8153done 8154fi 8155rm -f conftest.err conftest.i conftest.$ac_ext 8156fi # $ac_x_includes = no 8157 8158if test "$ac_x_libraries" = no; then 8159 # Check for the libraries. 8160 # See if we find them without any special options. 8161 # Don't add to $LIBS permanently. 8162 ac_save_LIBS=$LIBS 8163 LIBS="-lX11 $LIBS" 8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165/* end confdefs.h. */ 8166#include <X11/Xlib.h> 8167int 8168main () 8169{ 8170XrmInitialize () 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175if ac_fn_c_try_link "$LINENO"; then : 8176 LIBS=$ac_save_LIBS 8177# We can link X programs with no special library path. 8178ac_x_libraries= 8179else 8180 LIBS=$ac_save_LIBS 8181for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8182do 8183 # Don't even attempt the hair of trying to link an X program! 8184 for ac_extension in a so sl dylib la dll; do 8185 if test -r "$ac_dir/libX11.$ac_extension"; then 8186 ac_x_libraries=$ac_dir 8187 break 2 8188 fi 8189 done 8190done 8191fi 8192rm -f core conftest.err conftest.$ac_objext \ 8193 conftest$ac_exeext conftest.$ac_ext 8194fi # $ac_x_libraries = no 8195 8196case $ac_x_includes,$ac_x_libraries in #( 8197 no,* | *,no | *\'*) 8198 # Didn't find X, or a directory has "'" in its name. 8199 ac_cv_have_x="have_x=no";; #( 8200 *) 8201 # Record where we found X for the cache. 8202 ac_cv_have_x="have_x=yes\ 8203 ac_x_includes='$ac_x_includes'\ 8204 ac_x_libraries='$ac_x_libraries'" 8205esac 8206fi 8207;; #( 8208 *) have_x=yes;; 8209 esac 8210 eval "$ac_cv_have_x" 8211fi # $with_x != no 8212 8213if test "$have_x" != yes; then 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 8215$as_echo "$have_x" >&6; } 8216 no_x=yes 8217else 8218 # If each of the values was on the command line, it overrides each guess. 8219 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 8220 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8221 # Update the cache value to reflect the command line values. 8222 ac_cv_have_x="have_x=yes\ 8223 ac_x_includes='$x_includes'\ 8224 ac_x_libraries='$x_libraries'" 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 8226$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 8227fi 8228 8229if test "$no_x" = yes; then 8230 # Not all programs may use this symbol, but it does not hurt to define it. 8231 8232$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 8233 8234 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8235else 8236 if test -n "$x_includes"; then 8237 X_CFLAGS="$X_CFLAGS -I$x_includes" 8238 fi 8239 8240 # It would also be nice to do this for all -L options, not just this one. 8241 if test -n "$x_libraries"; then 8242 X_LIBS="$X_LIBS -L$x_libraries" 8243 # For Solaris; some versions of Sun CC require a space after -R and 8244 # others require no space. Words are not sufficient . . . . 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 8246$as_echo_n "checking whether -R must be followed by a space... " >&6; } 8247 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 8248 ac_xsave_c_werror_flag=$ac_c_werror_flag 8249 ac_c_werror_flag=yes 8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8251/* end confdefs.h. */ 8252 8253int 8254main () 8255{ 8256 8257 ; 8258 return 0; 8259} 8260_ACEOF 8261if ac_fn_c_try_link "$LINENO"; then : 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8263$as_echo "no" >&6; } 8264 X_LIBS="$X_LIBS -R$x_libraries" 8265else 8266 LIBS="$ac_xsave_LIBS -R $x_libraries" 8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8268/* end confdefs.h. */ 8269 8270int 8271main () 8272{ 8273 8274 ; 8275 return 0; 8276} 8277_ACEOF 8278if ac_fn_c_try_link "$LINENO"; then : 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8280$as_echo "yes" >&6; } 8281 X_LIBS="$X_LIBS -R $x_libraries" 8282else 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 8284$as_echo "neither works" >&6; } 8285fi 8286rm -f core conftest.err conftest.$ac_objext \ 8287 conftest$ac_exeext conftest.$ac_ext 8288fi 8289rm -f core conftest.err conftest.$ac_objext \ 8290 conftest$ac_exeext conftest.$ac_ext 8291 ac_c_werror_flag=$ac_xsave_c_werror_flag 8292 LIBS=$ac_xsave_LIBS 8293 fi 8294 8295 # Check for system-dependent libraries X programs must link with. 8296 # Do this before checking for the system-independent R6 libraries 8297 # (-lICE), since we may need -lsocket or whatever for X linking. 8298 8299 if test "$ISC" = yes; then 8300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8301 else 8302 # Martyn Johnson says this is needed for Ultrix, if the X 8303 # libraries were built with DECnet support. And Karl Berry says 8304 # the Alpha needs dnet_stub (dnet does not exist). 8305 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8307/* end confdefs.h. */ 8308 8309/* Override any GCC internal prototype to avoid an error. 8310 Use char because int might match the return type of a GCC 8311 builtin and then its argument prototype would still apply. */ 8312#ifdef __cplusplus 8313extern "C" 8314#endif 8315char XOpenDisplay (); 8316int 8317main () 8318{ 8319return XOpenDisplay (); 8320 ; 8321 return 0; 8322} 8323_ACEOF 8324if ac_fn_c_try_link "$LINENO"; then : 8325 8326else 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 8328$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 8329if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 ac_check_lib_save_LIBS=$LIBS 8333LIBS="-ldnet $LIBS" 8334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8335/* end confdefs.h. */ 8336 8337/* Override any GCC internal prototype to avoid an error. 8338 Use char because int might match the return type of a GCC 8339 builtin and then its argument prototype would still apply. */ 8340#ifdef __cplusplus 8341extern "C" 8342#endif 8343char dnet_ntoa (); 8344int 8345main () 8346{ 8347return dnet_ntoa (); 8348 ; 8349 return 0; 8350} 8351_ACEOF 8352if ac_fn_c_try_link "$LINENO"; then : 8353 ac_cv_lib_dnet_dnet_ntoa=yes 8354else 8355 ac_cv_lib_dnet_dnet_ntoa=no 8356fi 8357rm -f core conftest.err conftest.$ac_objext \ 8358 conftest$ac_exeext conftest.$ac_ext 8359LIBS=$ac_check_lib_save_LIBS 8360fi 8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8362$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 8363if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 8364 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8365fi 8366 8367 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 8369$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 8370if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 ac_check_lib_save_LIBS=$LIBS 8374LIBS="-ldnet_stub $LIBS" 8375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8376/* end confdefs.h. */ 8377 8378/* Override any GCC internal prototype to avoid an error. 8379 Use char because int might match the return type of a GCC 8380 builtin and then its argument prototype would still apply. */ 8381#ifdef __cplusplus 8382extern "C" 8383#endif 8384char dnet_ntoa (); 8385int 8386main () 8387{ 8388return dnet_ntoa (); 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393if ac_fn_c_try_link "$LINENO"; then : 8394 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8395else 8396 ac_cv_lib_dnet_stub_dnet_ntoa=no 8397fi 8398rm -f core conftest.err conftest.$ac_objext \ 8399 conftest$ac_exeext conftest.$ac_ext 8400LIBS=$ac_check_lib_save_LIBS 8401fi 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8403$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 8404if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 8405 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8406fi 8407 8408 fi 8409fi 8410rm -f core conftest.err conftest.$ac_objext \ 8411 conftest$ac_exeext conftest.$ac_ext 8412 LIBS="$ac_xsave_LIBS" 8413 8414 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 8415 # to get the SysV transport functions. 8416 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8417 # needs -lnsl. 8418 # The nsl library prevents programs from opening the X display 8419 # on Irix 5.2, according to T.E. Dickey. 8420 # The functions gethostbyname, getservbyname, and inet_addr are 8421 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8422 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8423if test "x$ac_cv_func_gethostbyname" = xyes; then : 8424 8425fi 8426 8427 if test $ac_cv_func_gethostbyname = no; then 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8429$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8430if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8431 $as_echo_n "(cached) " >&6 8432else 8433 ac_check_lib_save_LIBS=$LIBS 8434LIBS="-lnsl $LIBS" 8435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8436/* end confdefs.h. */ 8437 8438/* Override any GCC internal prototype to avoid an error. 8439 Use char because int might match the return type of a GCC 8440 builtin and then its argument prototype would still apply. */ 8441#ifdef __cplusplus 8442extern "C" 8443#endif 8444char gethostbyname (); 8445int 8446main () 8447{ 8448return gethostbyname (); 8449 ; 8450 return 0; 8451} 8452_ACEOF 8453if ac_fn_c_try_link "$LINENO"; then : 8454 ac_cv_lib_nsl_gethostbyname=yes 8455else 8456 ac_cv_lib_nsl_gethostbyname=no 8457fi 8458rm -f core conftest.err conftest.$ac_objext \ 8459 conftest$ac_exeext conftest.$ac_ext 8460LIBS=$ac_check_lib_save_LIBS 8461fi 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8463$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8464if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8466fi 8467 8468 if test $ac_cv_lib_nsl_gethostbyname = no; then 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8470$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8471if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8472 $as_echo_n "(cached) " >&6 8473else 8474 ac_check_lib_save_LIBS=$LIBS 8475LIBS="-lbsd $LIBS" 8476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478 8479/* Override any GCC internal prototype to avoid an error. 8480 Use char because int might match the return type of a GCC 8481 builtin and then its argument prototype would still apply. */ 8482#ifdef __cplusplus 8483extern "C" 8484#endif 8485char gethostbyname (); 8486int 8487main () 8488{ 8489return gethostbyname (); 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494if ac_fn_c_try_link "$LINENO"; then : 8495 ac_cv_lib_bsd_gethostbyname=yes 8496else 8497 ac_cv_lib_bsd_gethostbyname=no 8498fi 8499rm -f core conftest.err conftest.$ac_objext \ 8500 conftest$ac_exeext conftest.$ac_ext 8501LIBS=$ac_check_lib_save_LIBS 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8504$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8505if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8506 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8507fi 8508 8509 fi 8510 fi 8511 8512 # [email protected] says without -lsocket, 8513 # socket/setsockopt and other routines are undefined under SCO ODT 8514 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8515 # on later versions), says Simon Leinen: it contains gethostby* 8516 # variants that don't use the name server (or something). -lsocket 8517 # must be given before -lnsl if both are needed. We assume that 8518 # if connect needs -lnsl, so does gethostbyname. 8519 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8520if test "x$ac_cv_func_connect" = xyes; then : 8521 8522fi 8523 8524 if test $ac_cv_func_connect = no; then 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8526$as_echo_n "checking for connect in -lsocket... " >&6; } 8527if ${ac_cv_lib_socket_connect+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 ac_check_lib_save_LIBS=$LIBS 8531LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533/* end confdefs.h. */ 8534 8535/* Override any GCC internal prototype to avoid an error. 8536 Use char because int might match the return type of a GCC 8537 builtin and then its argument prototype would still apply. */ 8538#ifdef __cplusplus 8539extern "C" 8540#endif 8541char connect (); 8542int 8543main () 8544{ 8545return connect (); 8546 ; 8547 return 0; 8548} 8549_ACEOF 8550if ac_fn_c_try_link "$LINENO"; then : 8551 ac_cv_lib_socket_connect=yes 8552else 8553 ac_cv_lib_socket_connect=no 8554fi 8555rm -f core conftest.err conftest.$ac_objext \ 8556 conftest$ac_exeext conftest.$ac_ext 8557LIBS=$ac_check_lib_save_LIBS 8558fi 8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8560$as_echo "$ac_cv_lib_socket_connect" >&6; } 8561if test "x$ac_cv_lib_socket_connect" = xyes; then : 8562 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8563fi 8564 8565 fi 8566 8567 # Guillermo Gomez says -lposix is necessary on A/UX. 8568 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8569if test "x$ac_cv_func_remove" = xyes; then : 8570 8571fi 8572 8573 if test $ac_cv_func_remove = no; then 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8575$as_echo_n "checking for remove in -lposix... " >&6; } 8576if ${ac_cv_lib_posix_remove+:} false; then : 8577 $as_echo_n "(cached) " >&6 8578else 8579 ac_check_lib_save_LIBS=$LIBS 8580LIBS="-lposix $LIBS" 8581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8582/* end confdefs.h. */ 8583 8584/* Override any GCC internal prototype to avoid an error. 8585 Use char because int might match the return type of a GCC 8586 builtin and then its argument prototype would still apply. */ 8587#ifdef __cplusplus 8588extern "C" 8589#endif 8590char remove (); 8591int 8592main () 8593{ 8594return remove (); 8595 ; 8596 return 0; 8597} 8598_ACEOF 8599if ac_fn_c_try_link "$LINENO"; then : 8600 ac_cv_lib_posix_remove=yes 8601else 8602 ac_cv_lib_posix_remove=no 8603fi 8604rm -f core conftest.err conftest.$ac_objext \ 8605 conftest$ac_exeext conftest.$ac_ext 8606LIBS=$ac_check_lib_save_LIBS 8607fi 8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8609$as_echo "$ac_cv_lib_posix_remove" >&6; } 8610if test "x$ac_cv_lib_posix_remove" = xyes; then : 8611 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8612fi 8613 8614 fi 8615 8616 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8617 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8618if test "x$ac_cv_func_shmat" = xyes; then : 8619 8620fi 8621 8622 if test $ac_cv_func_shmat = no; then 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8624$as_echo_n "checking for shmat in -lipc... " >&6; } 8625if ${ac_cv_lib_ipc_shmat+:} false; then : 8626 $as_echo_n "(cached) " >&6 8627else 8628 ac_check_lib_save_LIBS=$LIBS 8629LIBS="-lipc $LIBS" 8630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8631/* end confdefs.h. */ 8632 8633/* Override any GCC internal prototype to avoid an error. 8634 Use char because int might match the return type of a GCC 8635 builtin and then its argument prototype would still apply. */ 8636#ifdef __cplusplus 8637extern "C" 8638#endif 8639char shmat (); 8640int 8641main () 8642{ 8643return shmat (); 8644 ; 8645 return 0; 8646} 8647_ACEOF 8648if ac_fn_c_try_link "$LINENO"; then : 8649 ac_cv_lib_ipc_shmat=yes 8650else 8651 ac_cv_lib_ipc_shmat=no 8652fi 8653rm -f core conftest.err conftest.$ac_objext \ 8654 conftest$ac_exeext conftest.$ac_ext 8655LIBS=$ac_check_lib_save_LIBS 8656fi 8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8658$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8659if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8660 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8661fi 8662 8663 fi 8664 fi 8665 8666 # Check for libraries that X11R6 Xt/Xaw programs need. 8667 ac_save_LDFLAGS=$LDFLAGS 8668 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8669 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8670 # check for ICE first), but we must link in the order -lSM -lICE or 8671 # we get undefined symbols. So assume we have SM if we have ICE. 8672 # These have to be linked with before -lX11, unlike the other 8673 # libraries we check for below, so use a different variable. 8674 # John Interrante, Karl Berry 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8676$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8677if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679else 8680 ac_check_lib_save_LIBS=$LIBS 8681LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683/* end confdefs.h. */ 8684 8685/* Override any GCC internal prototype to avoid an error. 8686 Use char because int might match the return type of a GCC 8687 builtin and then its argument prototype would still apply. */ 8688#ifdef __cplusplus 8689extern "C" 8690#endif 8691char IceConnectionNumber (); 8692int 8693main () 8694{ 8695return IceConnectionNumber (); 8696 ; 8697 return 0; 8698} 8699_ACEOF 8700if ac_fn_c_try_link "$LINENO"; then : 8701 ac_cv_lib_ICE_IceConnectionNumber=yes 8702else 8703 ac_cv_lib_ICE_IceConnectionNumber=no 8704fi 8705rm -f core conftest.err conftest.$ac_objext \ 8706 conftest$ac_exeext conftest.$ac_ext 8707LIBS=$ac_check_lib_save_LIBS 8708fi 8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8710$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8711if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8712 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8713fi 8714 8715 LDFLAGS=$ac_save_LDFLAGS 8716 8717fi 8718 8719 8720 if test "$zOSUnix" = "yes"; then 8721 CFLAGS="$CFLAGS -W c,dll" 8722 LDFLAGS="$LDFLAGS -W l,dll" 8723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8724 fi 8725 8726 8727 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8728 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8730$as_echo "Corrected X libraries to $x_libraries" >&6; } 8731 X_LIBS="$X_LIBS -L$x_libraries" 8732 if test "`(uname) 2>/dev/null`" = SunOS && 8733 uname -r | grep '^5' >/dev/null; then 8734 X_LIBS="$X_LIBS -R $x_libraries" 8735 fi 8736 fi 8737 8738 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8739 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8741$as_echo "Corrected X includes to $x_includes" >&6; } 8742 X_CFLAGS="$X_CFLAGS -I$x_includes" 8743 fi 8744 8745 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8746 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8747 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8748 8749 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8751$as_echo_n "checking if X11 header files can be found... " >&6; } 8752 cflags_save=$CFLAGS 8753 CFLAGS="$CFLAGS $X_CFLAGS" 8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8755/* end confdefs.h. */ 8756#include <X11/Xlib.h> 8757#include <X11/Intrinsic.h> 8758int 8759main () 8760{ 8761 8762 ; 8763 return 0; 8764} 8765_ACEOF 8766if ac_fn_c_try_compile "$LINENO"; then : 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8768$as_echo "yes" >&6; } 8769else 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8771$as_echo "no" >&6; }; no_x=yes 8772fi 8773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8774 CFLAGS=$cflags_save 8775 8776 if test "${no_x-no}" = yes; then 8777 with_x=no 8778 else 8779 $as_echo "#define HAVE_X11 1" >>confdefs.h 8780 8781 X_LIB="-lXt -lX11"; 8782 8783 8784 ac_save_LDFLAGS="$LDFLAGS" 8785 LDFLAGS="-L$x_libraries $LDFLAGS" 8786 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8788$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8789if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8790 $as_echo_n "(cached) " >&6 8791else 8792 ac_check_lib_save_LIBS=$LIBS 8793LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795/* end confdefs.h. */ 8796 8797/* Override any GCC internal prototype to avoid an error. 8798 Use char because int might match the return type of a GCC 8799 builtin and then its argument prototype would still apply. */ 8800#ifdef __cplusplus 8801extern "C" 8802#endif 8803char _XdmcpAuthDoIt (); 8804int 8805main () 8806{ 8807return _XdmcpAuthDoIt (); 8808 ; 8809 return 0; 8810} 8811_ACEOF 8812if ac_fn_c_try_link "$LINENO"; then : 8813 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8814else 8815 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8816fi 8817rm -f core conftest.err conftest.$ac_objext \ 8818 conftest$ac_exeext conftest.$ac_ext 8819LIBS=$ac_check_lib_save_LIBS 8820fi 8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8822$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8823if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8825fi 8826 8827 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8829$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8830if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832else 8833 ac_check_lib_save_LIBS=$LIBS 8834LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8836/* end confdefs.h. */ 8837 8838/* Override any GCC internal prototype to avoid an error. 8839 Use char because int might match the return type of a GCC 8840 builtin and then its argument prototype would still apply. */ 8841#ifdef __cplusplus 8842extern "C" 8843#endif 8844char IceOpenConnection (); 8845int 8846main () 8847{ 8848return IceOpenConnection (); 8849 ; 8850 return 0; 8851} 8852_ACEOF 8853if ac_fn_c_try_link "$LINENO"; then : 8854 ac_cv_lib_ICE_IceOpenConnection=yes 8855else 8856 ac_cv_lib_ICE_IceOpenConnection=no 8857fi 8858rm -f core conftest.err conftest.$ac_objext \ 8859 conftest$ac_exeext conftest.$ac_ext 8860LIBS=$ac_check_lib_save_LIBS 8861fi 8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8863$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8864if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8865 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8866fi 8867 8868 8869 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8871$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8872if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874else 8875 ac_check_lib_save_LIBS=$LIBS 8876LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8878/* end confdefs.h. */ 8879 8880/* Override any GCC internal prototype to avoid an error. 8881 Use char because int might match the return type of a GCC 8882 builtin and then its argument prototype would still apply. */ 8883#ifdef __cplusplus 8884extern "C" 8885#endif 8886char XpmCreatePixmapFromData (); 8887int 8888main () 8889{ 8890return XpmCreatePixmapFromData (); 8891 ; 8892 return 0; 8893} 8894_ACEOF 8895if ac_fn_c_try_link "$LINENO"; then : 8896 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8897else 8898 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext \ 8901 conftest$ac_exeext conftest.$ac_ext 8902LIBS=$ac_check_lib_save_LIBS 8903fi 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8905$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8906if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8907 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8908fi 8909 8910 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8912$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8913 cflags_save=$CFLAGS 8914 if test "$GCC" = yes; then 8915 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8916 else 8917 CFLAGS="$CFLAGS $X_CFLAGS" 8918 fi 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920/* end confdefs.h. */ 8921#include <X11/Xlib.h> 8922int 8923main () 8924{ 8925 8926 ; 8927 return 0; 8928} 8929_ACEOF 8930if ac_fn_c_try_compile "$LINENO"; then : 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8932$as_echo "no" >&6; } 8933else 8934 CFLAGS="$CFLAGS -Wno-implicit-int" 8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936/* end confdefs.h. */ 8937#include <X11/Xlib.h> 8938int 8939main () 8940{ 8941 8942 ; 8943 return 0; 8944} 8945_ACEOF 8946if ac_fn_c_try_compile "$LINENO"; then : 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8948$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8949else 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8951$as_echo "test failed" >&6; } 8952 8953fi 8954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8955 8956fi 8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8958 CFLAGS=$cflags_save 8959 8960 LDFLAGS="$ac_save_LDFLAGS" 8961 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8963$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8964 if ${ac_cv_small_wchar_t+:} false; then : 8965 $as_echo_n "(cached) " >&6 8966else 8967 if test "$cross_compiling" = yes; then : 8968 as_fn_error $? "failed to compile test program" "$LINENO" 5 8969else 8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8971/* end confdefs.h. */ 8972 8973#include <X11/Xlib.h> 8974#if STDC_HEADERS 8975# include <stdlib.h> 8976# include <stddef.h> 8977#endif 8978 main() 8979 { 8980 if (sizeof(wchar_t) <= 2) 8981 exit(1); 8982 exit(0); 8983 } 8984_ACEOF 8985if ac_fn_c_try_run "$LINENO"; then : 8986 ac_cv_small_wchar_t="no" 8987else 8988 ac_cv_small_wchar_t="yes" 8989fi 8990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8991 conftest.$ac_objext conftest.beam conftest.$ac_ext 8992fi 8993 8994fi 8995 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8997$as_echo "$ac_cv_small_wchar_t" >&6; } 8998 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8999 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 9000 9001 fi 9002 9003 fi 9004fi 9005 9006test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 9007 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 9009$as_echo_n "checking --enable-gui argument... " >&6; } 9010# Check whether --enable-gui was given. 9011if test "${enable_gui+set}" = set; then : 9012 enableval=$enable_gui; 9013else 9014 enable_gui="auto" 9015fi 9016 9017 9018enable_gui_canon=`echo "_$enable_gui" | \ 9019 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 9020 9021SKIP_GTK2=YES 9022SKIP_GTK3=YES 9023SKIP_GNOME=YES 9024SKIP_MOTIF=YES 9025SKIP_ATHENA=YES 9026SKIP_NEXTAW=YES 9027SKIP_PHOTON=YES 9028SKIP_CARBON=YES 9029GUITYPE=NONE 9030 9031if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 9032 SKIP_PHOTON= 9033 case "$enable_gui_canon" in 9034 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9035$as_echo "no GUI support" >&6; } 9036 SKIP_PHOTON=YES ;; 9037 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9038$as_echo "yes - automatic GUI support" >&6; } ;; 9039 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 9040$as_echo "auto - automatic GUI support" >&6; } ;; 9041 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 9042$as_echo "Photon GUI support" >&6; } ;; 9043 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9044$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9045 SKIP_PHOTON=YES ;; 9046 esac 9047 9048elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then 9049 SKIP_CARBON= 9050 case "$enable_gui_canon" in 9051 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9052$as_echo "no GUI support" >&6; } 9053 SKIP_CARBON=YES ;; 9054 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 9055$as_echo "yes - automatic GUI support" >&6; } ;; 9056 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 9057$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 9058 SKIP_CARBON=YES ;; 9059 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 9060$as_echo "Carbon GUI support" >&6; } ;; 9061 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9062$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 9063 SKIP_CARBON=YES ;; 9064 esac 9065 9066else 9067 9068 case "$enable_gui_canon" in 9069 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 9070$as_echo "no GUI support" >&6; } ;; 9071 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 9072$as_echo "yes/auto - automatic GUI support" >&6; } 9073 SKIP_GTK2= 9074 SKIP_GNOME= 9075 SKIP_MOTIF= 9076 SKIP_ATHENA= 9077 SKIP_NEXTAW= 9078 SKIP_CARBON=;; 9079 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 9080$as_echo "GTK+ 2.x GUI support" >&6; } 9081 SKIP_GTK2=;; 9082 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 9083$as_echo "GNOME 2.x GUI support" >&6; } 9084 SKIP_GNOME= 9085 SKIP_GTK2=;; 9086 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 9087$as_echo "GTK+ 3.x GUI support" >&6; } 9088 SKIP_GTK3=;; 9089 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 9090$as_echo "Motif GUI support" >&6; } 9091 SKIP_MOTIF=;; 9092 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 9093$as_echo "Athena GUI support" >&6; } 9094 SKIP_ATHENA=;; 9095 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 9096$as_echo "neXtaw GUI support" >&6; } 9097 SKIP_NEXTAW=;; 9098 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 9099$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 9100 esac 9101 9102fi 9103 9104if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 9105 -a "$enable_gui_canon" != "gnome2"; then 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 9107$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 9108 # Check whether --enable-gtk2-check was given. 9109if test "${enable_gtk2_check+set}" = set; then : 9110 enableval=$enable_gtk2_check; 9111else 9112 enable_gtk2_check="yes" 9113fi 9114 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 9116$as_echo "$enable_gtk2_check" >&6; } 9117 if test "x$enable_gtk2_check" = "xno"; then 9118 SKIP_GTK2=YES 9119 SKIP_GNOME=YES 9120 fi 9121fi 9122 9123if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 9125$as_echo_n "checking whether or not to look for GNOME... " >&6; } 9126 # Check whether --enable-gnome-check was given. 9127if test "${enable_gnome_check+set}" = set; then : 9128 enableval=$enable_gnome_check; 9129else 9130 enable_gnome_check="no" 9131fi 9132 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 9134$as_echo "$enable_gnome_check" >&6; } 9135 if test "x$enable_gnome_check" = "xno"; then 9136 SKIP_GNOME=YES 9137 fi 9138fi 9139 9140if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 9142$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 9143 # Check whether --enable-gtk3-check was given. 9144if test "${enable_gtk3_check+set}" = set; then : 9145 enableval=$enable_gtk3_check; 9146else 9147 enable_gtk3_check="yes" 9148fi 9149 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 9151$as_echo "$enable_gtk3_check" >&6; } 9152 if test "x$enable_gtk3_check" = "xno"; then 9153 SKIP_GTK3=YES 9154 fi 9155fi 9156 9157if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 9159$as_echo_n "checking whether or not to look for Motif... " >&6; } 9160 # Check whether --enable-motif-check was given. 9161if test "${enable_motif_check+set}" = set; then : 9162 enableval=$enable_motif_check; 9163else 9164 enable_motif_check="yes" 9165fi 9166 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 9168$as_echo "$enable_motif_check" >&6; } 9169 if test "x$enable_motif_check" = "xno"; then 9170 SKIP_MOTIF=YES 9171 fi 9172fi 9173 9174if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 9176$as_echo_n "checking whether or not to look for Athena... " >&6; } 9177 # Check whether --enable-athena-check was given. 9178if test "${enable_athena_check+set}" = set; then : 9179 enableval=$enable_athena_check; 9180else 9181 enable_athena_check="yes" 9182fi 9183 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 9185$as_echo "$enable_athena_check" >&6; } 9186 if test "x$enable_athena_check" = "xno"; then 9187 SKIP_ATHENA=YES 9188 fi 9189fi 9190 9191if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 9193$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 9194 # Check whether --enable-nextaw-check was given. 9195if test "${enable_nextaw_check+set}" = set; then : 9196 enableval=$enable_nextaw_check; 9197else 9198 enable_nextaw_check="yes" 9199fi 9200 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 9202$as_echo "$enable_nextaw_check" >&6; }; 9203 if test "x$enable_nextaw_check" = "xno"; then 9204 SKIP_NEXTAW=YES 9205 fi 9206fi 9207 9208if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 9210$as_echo_n "checking whether or not to look for Carbon... " >&6; } 9211 # Check whether --enable-carbon-check was given. 9212if test "${enable_carbon_check+set}" = set; then : 9213 enableval=$enable_carbon_check; 9214else 9215 enable_carbon_check="yes" 9216fi 9217 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 9219$as_echo "$enable_carbon_check" >&6; }; 9220 if test "x$enable_carbon_check" = "xno"; then 9221 SKIP_CARBON=YES 9222 fi 9223fi 9224 9225 9226if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 9228$as_echo_n "checking for Carbon GUI... " >&6; } 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9230$as_echo "yes" >&6; }; 9231 GUITYPE=CARBONGUI 9232 if test "$VIMNAME" = "vim"; then 9233 VIMNAME=Vim 9234 fi 9235 9236 if test "x$MACARCH" = "xboth"; then 9237 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 9238 else 9239 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 9240 fi 9241 9242 if test x$prefix = xNONE; then 9243 prefix=/Applications 9244 fi 9245 9246 datadir='${prefix}/Vim.app/Contents/Resources' 9247 9248 SKIP_GTK2=YES; 9249 SKIP_GNOME=YES; 9250 SKIP_MOTIF=YES; 9251 SKIP_ATHENA=YES; 9252 SKIP_NEXTAW=YES; 9253 SKIP_PHOTON=YES; 9254 SKIP_CARBON=YES 9255fi 9256 9257 9258 9259 9260 9261 9262 9263 9264if test -z "$SKIP_GTK2"; then 9265 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9267$as_echo_n "checking --disable-gtktest argument... " >&6; } 9268 # Check whether --enable-gtktest was given. 9269if test "${enable_gtktest+set}" = set; then : 9270 enableval=$enable_gtktest; 9271else 9272 enable_gtktest=yes 9273fi 9274 9275 if test "x$enable_gtktest" = "xyes" ; then 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9277$as_echo "gtk test enabled" >&6; } 9278 else 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9280$as_echo "gtk test disabled" >&6; } 9281 fi 9282 9283 if test "X$PKG_CONFIG" = "X"; then 9284 if test -n "$ac_tool_prefix"; then 9285 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9286set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9288$as_echo_n "checking for $ac_word... " >&6; } 9289if ${ac_cv_path_PKG_CONFIG+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291else 9292 case $PKG_CONFIG in 9293 [\\/]* | ?:[\\/]*) 9294 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9295 ;; 9296 *) 9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9298for as_dir in $PATH 9299do 9300 IFS=$as_save_IFS 9301 test -z "$as_dir" && as_dir=. 9302 for ac_exec_ext in '' $ac_executable_extensions; do 9303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9304 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9306 break 2 9307 fi 9308done 9309 done 9310IFS=$as_save_IFS 9311 9312 ;; 9313esac 9314fi 9315PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9316if test -n "$PKG_CONFIG"; then 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9318$as_echo "$PKG_CONFIG" >&6; } 9319else 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9321$as_echo "no" >&6; } 9322fi 9323 9324 9325fi 9326if test -z "$ac_cv_path_PKG_CONFIG"; then 9327 ac_pt_PKG_CONFIG=$PKG_CONFIG 9328 # Extract the first word of "pkg-config", so it can be a program name with args. 9329set dummy pkg-config; ac_word=$2 9330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9331$as_echo_n "checking for $ac_word... " >&6; } 9332if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9333 $as_echo_n "(cached) " >&6 9334else 9335 case $ac_pt_PKG_CONFIG in 9336 [\\/]* | ?:[\\/]*) 9337 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9338 ;; 9339 *) 9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9341for as_dir in $PATH 9342do 9343 IFS=$as_save_IFS 9344 test -z "$as_dir" && as_dir=. 9345 for ac_exec_ext in '' $ac_executable_extensions; do 9346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9347 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9349 break 2 9350 fi 9351done 9352 done 9353IFS=$as_save_IFS 9354 9355 ;; 9356esac 9357fi 9358ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9359if test -n "$ac_pt_PKG_CONFIG"; then 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9361$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9362else 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9364$as_echo "no" >&6; } 9365fi 9366 9367 if test "x$ac_pt_PKG_CONFIG" = x; then 9368 PKG_CONFIG="no" 9369 else 9370 case $cross_compiling:$ac_tool_warned in 9371yes:) 9372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9374ac_tool_warned=yes ;; 9375esac 9376 PKG_CONFIG=$ac_pt_PKG_CONFIG 9377 fi 9378else 9379 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9380fi 9381 9382 fi 9383 9384 if test "x$PKG_CONFIG" != "xno"; then 9385 9386 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9387 { 9388 no_gtk="" 9389 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9390 && $PKG_CONFIG --exists gtk+-2.0; then 9391 { 9392 min_gtk_version=2.2.0 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9394$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9395 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9396 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9397 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9398 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9399 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9400 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9401 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9402 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9403 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9404 } 9405 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9406 && $PKG_CONFIG --exists gtk+-3.0; then 9407 { 9408 min_gtk_version=2.2.0 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9410$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9411 9412 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9413 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9414 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9415 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9416 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9417 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9418 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9419 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9420 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9421 } 9422 else 9423 no_gtk=yes 9424 fi 9425 9426 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9427 { 9428 ac_save_CFLAGS="$CFLAGS" 9429 ac_save_LIBS="$LIBS" 9430 CFLAGS="$CFLAGS $GTK_CFLAGS" 9431 LIBS="$LIBS $GTK_LIBS" 9432 9433 rm -f conf.gtktest 9434 if test "$cross_compiling" = yes; then : 9435 echo $ac_n "cross compiling; assumed OK... $ac_c" 9436else 9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9438/* end confdefs.h. */ 9439 9440#include <gtk/gtk.h> 9441#include <stdio.h> 9442#if STDC_HEADERS 9443# include <stdlib.h> 9444# include <stddef.h> 9445#endif 9446 9447int 9448main () 9449{ 9450int major, minor, micro; 9451char *tmp_version; 9452 9453system ("touch conf.gtktest"); 9454 9455/* HP/UX 9 (%@#!) writes to sscanf strings */ 9456tmp_version = g_strdup("$min_gtk_version"); 9457if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9458 printf("%s, bad version string\n", "$min_gtk_version"); 9459 exit(1); 9460 } 9461 9462if ((gtk_major_version > major) || 9463 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9464 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9465 (gtk_micro_version >= micro))) 9466{ 9467 return 0; 9468} 9469return 1; 9470} 9471 9472_ACEOF 9473if ac_fn_c_try_run "$LINENO"; then : 9474 9475else 9476 no_gtk=yes 9477fi 9478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9479 conftest.$ac_objext conftest.beam conftest.$ac_ext 9480fi 9481 9482 CFLAGS="$ac_save_CFLAGS" 9483 LIBS="$ac_save_LIBS" 9484 } 9485 fi 9486 if test "x$no_gtk" = x ; then 9487 if test "x$enable_gtktest" = "xyes"; then 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9489$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9490 else 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9492$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9493 fi 9494 GUI_LIB_LOC="$GTK_LIBDIR" 9495 GTK_LIBNAME="$GTK_LIBS" 9496 GUI_INC_LOC="$GTK_CFLAGS" 9497 else 9498 { 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9500$as_echo "no" >&6; } 9501 GTK_CFLAGS="" 9502 GTK_LIBS="" 9503 : 9504 } 9505 fi 9506 } 9507 else 9508 GTK_CFLAGS="" 9509 GTK_LIBS="" 9510 : 9511 fi 9512 9513 9514 rm -f conf.gtktest 9515 9516 if test "x$GTK_CFLAGS" != "x"; then 9517 SKIP_GTK3=YES 9518 SKIP_ATHENA=YES 9519 SKIP_NEXTAW=YES 9520 SKIP_MOTIF=YES 9521 GUITYPE=GTK 9522 9523 fi 9524 fi 9525 if test "x$GUITYPE" = "xGTK"; then 9526 if test -z "$SKIP_GNOME"; then 9527 { 9528 9529 9530 9531 9532 9533 9534# Check whether --with-gnome-includes was given. 9535if test "${with_gnome_includes+set}" = set; then : 9536 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9537 9538fi 9539 9540 9541 9542# Check whether --with-gnome-libs was given. 9543if test "${with_gnome_libs+set}" = set; then : 9544 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9545 9546fi 9547 9548 9549 9550# Check whether --with-gnome was given. 9551if test "${with_gnome+set}" = set; then : 9552 withval=$with_gnome; if test x$withval = xyes; then 9553 want_gnome=yes 9554 have_gnome=yes 9555 else 9556 if test "x$withval" = xno; then 9557 want_gnome=no 9558 else 9559 want_gnome=yes 9560 LDFLAGS="$LDFLAGS -L$withval/lib" 9561 CFLAGS="$CFLAGS -I$withval/include" 9562 gnome_prefix=$withval/lib 9563 fi 9564 fi 9565else 9566 want_gnome=yes 9567fi 9568 9569 9570 if test "x$want_gnome" = xyes; then 9571 { 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9573$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9574 if $PKG_CONFIG --exists libgnomeui-2.0; then 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9576$as_echo "yes" >&6; } 9577 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9578 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9579 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9580 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9582$as_echo_n "checking for FreeBSD... " >&6; } 9583 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9585$as_echo "yes" >&6; } 9586 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9587 GNOME_LIBS="$GNOME_LIBS -pthread" 9588 else 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9590$as_echo "no" >&6; } 9591 fi 9592 have_gnome=yes 9593 else 9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9595$as_echo "not found" >&6; } 9596 if test "x" = xfail; then 9597 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9598 fi 9599 fi 9600 } 9601 fi 9602 9603 if test "x$have_gnome" = xyes ; then 9604 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9605 9606 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9607 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9608 fi 9609 } 9610 fi 9611 fi 9612fi 9613 9614 9615if test -z "$SKIP_GTK3"; then 9616 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9618$as_echo_n "checking --disable-gtktest argument... " >&6; } 9619 # Check whether --enable-gtktest was given. 9620if test "${enable_gtktest+set}" = set; then : 9621 enableval=$enable_gtktest; 9622else 9623 enable_gtktest=yes 9624fi 9625 9626 if test "x$enable_gtktest" = "xyes" ; then 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9628$as_echo "gtk test enabled" >&6; } 9629 else 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9631$as_echo "gtk test disabled" >&6; } 9632 fi 9633 9634 if test "X$PKG_CONFIG" = "X"; then 9635 if test -n "$ac_tool_prefix"; then 9636 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9637set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9639$as_echo_n "checking for $ac_word... " >&6; } 9640if ${ac_cv_path_PKG_CONFIG+:} false; then : 9641 $as_echo_n "(cached) " >&6 9642else 9643 case $PKG_CONFIG in 9644 [\\/]* | ?:[\\/]*) 9645 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9646 ;; 9647 *) 9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9649for as_dir in $PATH 9650do 9651 IFS=$as_save_IFS 9652 test -z "$as_dir" && as_dir=. 9653 for ac_exec_ext in '' $ac_executable_extensions; do 9654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9655 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9657 break 2 9658 fi 9659done 9660 done 9661IFS=$as_save_IFS 9662 9663 ;; 9664esac 9665fi 9666PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9667if test -n "$PKG_CONFIG"; then 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9669$as_echo "$PKG_CONFIG" >&6; } 9670else 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9672$as_echo "no" >&6; } 9673fi 9674 9675 9676fi 9677if test -z "$ac_cv_path_PKG_CONFIG"; then 9678 ac_pt_PKG_CONFIG=$PKG_CONFIG 9679 # Extract the first word of "pkg-config", so it can be a program name with args. 9680set dummy pkg-config; ac_word=$2 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9682$as_echo_n "checking for $ac_word... " >&6; } 9683if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9684 $as_echo_n "(cached) " >&6 9685else 9686 case $ac_pt_PKG_CONFIG in 9687 [\\/]* | ?:[\\/]*) 9688 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9689 ;; 9690 *) 9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9692for as_dir in $PATH 9693do 9694 IFS=$as_save_IFS 9695 test -z "$as_dir" && as_dir=. 9696 for ac_exec_ext in '' $ac_executable_extensions; do 9697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9698 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9700 break 2 9701 fi 9702done 9703 done 9704IFS=$as_save_IFS 9705 9706 ;; 9707esac 9708fi 9709ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9710if test -n "$ac_pt_PKG_CONFIG"; then 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9712$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9713else 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9715$as_echo "no" >&6; } 9716fi 9717 9718 if test "x$ac_pt_PKG_CONFIG" = x; then 9719 PKG_CONFIG="no" 9720 else 9721 case $cross_compiling:$ac_tool_warned in 9722yes:) 9723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9725ac_tool_warned=yes ;; 9726esac 9727 PKG_CONFIG=$ac_pt_PKG_CONFIG 9728 fi 9729else 9730 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9731fi 9732 9733 fi 9734 9735 if test "x$PKG_CONFIG" != "xno"; then 9736 9737 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9738 { 9739 no_gtk="" 9740 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9741 && $PKG_CONFIG --exists gtk+-2.0; then 9742 { 9743 min_gtk_version=3.0.0 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9745$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9746 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9747 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9748 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9749 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9750 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9751 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9752 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9753 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9754 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9755 } 9756 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9757 && $PKG_CONFIG --exists gtk+-3.0; then 9758 { 9759 min_gtk_version=3.0.0 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9761$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9762 9763 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9764 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9765 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9766 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9767 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9768 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9769 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9770 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9771 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9772 } 9773 else 9774 no_gtk=yes 9775 fi 9776 9777 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9778 { 9779 ac_save_CFLAGS="$CFLAGS" 9780 ac_save_LIBS="$LIBS" 9781 CFLAGS="$CFLAGS $GTK_CFLAGS" 9782 LIBS="$LIBS $GTK_LIBS" 9783 9784 rm -f conf.gtktest 9785 if test "$cross_compiling" = yes; then : 9786 echo $ac_n "cross compiling; assumed OK... $ac_c" 9787else 9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9789/* end confdefs.h. */ 9790 9791#include <gtk/gtk.h> 9792#include <stdio.h> 9793#if STDC_HEADERS 9794# include <stdlib.h> 9795# include <stddef.h> 9796#endif 9797 9798int 9799main () 9800{ 9801int major, minor, micro; 9802char *tmp_version; 9803 9804system ("touch conf.gtktest"); 9805 9806/* HP/UX 9 (%@#!) writes to sscanf strings */ 9807tmp_version = g_strdup("$min_gtk_version"); 9808if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9809 printf("%s, bad version string\n", "$min_gtk_version"); 9810 exit(1); 9811 } 9812 9813if ((gtk_major_version > major) || 9814 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9815 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9816 (gtk_micro_version >= micro))) 9817{ 9818 return 0; 9819} 9820return 1; 9821} 9822 9823_ACEOF 9824if ac_fn_c_try_run "$LINENO"; then : 9825 9826else 9827 no_gtk=yes 9828fi 9829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9830 conftest.$ac_objext conftest.beam conftest.$ac_ext 9831fi 9832 9833 CFLAGS="$ac_save_CFLAGS" 9834 LIBS="$ac_save_LIBS" 9835 } 9836 fi 9837 if test "x$no_gtk" = x ; then 9838 if test "x$enable_gtktest" = "xyes"; then 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9840$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9841 else 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9843$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9844 fi 9845 GUI_LIB_LOC="$GTK_LIBDIR" 9846 GTK_LIBNAME="$GTK_LIBS" 9847 GUI_INC_LOC="$GTK_CFLAGS" 9848 else 9849 { 9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9851$as_echo "no" >&6; } 9852 GTK_CFLAGS="" 9853 GTK_LIBS="" 9854 : 9855 } 9856 fi 9857 } 9858 else 9859 GTK_CFLAGS="" 9860 GTK_LIBS="" 9861 : 9862 fi 9863 9864 9865 rm -f conf.gtktest 9866 9867 if test "x$GTK_CFLAGS" != "x"; then 9868 SKIP_GTK2=YES 9869 SKIP_GNOME=YES 9870 SKIP_ATHENA=YES 9871 SKIP_NEXTAW=YES 9872 SKIP_MOTIF=YES 9873 GUITYPE=GTK 9874 9875 $as_echo "#define USE_GTK3 1" >>confdefs.h 9876 9877 fi 9878 fi 9879fi 9880 9881if test "x$GUITYPE" = "xGTK"; then 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9883$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9884 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9885 if test "x$gdk_pixbuf_version" != x ; then 9886 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9887 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9888 if test "x$gdk_pixbuf_version_minor" != x -a \ 9889 $gdk_pixbuf_version_minor -ge 31 ; then 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9891$as_echo "OK." >&6; } 9892 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9893set dummy glib-compile-resources; ac_word=$2 9894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9895$as_echo_n "checking for $ac_word... " >&6; } 9896if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9897 $as_echo_n "(cached) " >&6 9898else 9899 case $GLIB_COMPILE_RESOURCES in 9900 [\\/]* | ?:[\\/]*) 9901 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9902 ;; 9903 *) 9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9905for as_dir in $PATH 9906do 9907 IFS=$as_save_IFS 9908 test -z "$as_dir" && as_dir=. 9909 for ac_exec_ext in '' $ac_executable_extensions; do 9910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9911 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9913 break 2 9914 fi 9915done 9916 done 9917IFS=$as_save_IFS 9918 9919 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9920 ;; 9921esac 9922fi 9923GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9924if test -n "$GLIB_COMPILE_RESOURCES"; then 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9926$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9927else 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9929$as_echo "no" >&6; } 9930fi 9931 9932 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9934$as_echo_n "checking glib-compile-resources... " >&6; } 9935 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9936 GLIB_COMPILE_RESOURCES="" 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9938$as_echo "cannot be found in PATH." >&6; } 9939 else 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9941$as_echo "usable." >&6; } 9942 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9943 9944 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9945 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9946 fi 9947 else 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9949$as_echo "not usable." >&6; } 9950 fi 9951 else 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9953$as_echo "cannot obtain from pkg_config." >&6; } 9954 fi 9955 9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 9957$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 9958 # Check whether --enable-icon_cache_update was given. 9959if test "${enable_icon_cache_update+set}" = set; then : 9960 enableval=$enable_icon_cache_update; 9961else 9962 enable_icon_cache_update="yes" 9963fi 9964 9965 if test "$enable_icon_cache_update" = "yes"; then 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9967$as_echo "not set" >&6; } 9968 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 9969set dummy gtk-update-icon-cache; ac_word=$2 9970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9971$as_echo_n "checking for $ac_word... " >&6; } 9972if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 9973 $as_echo_n "(cached) " >&6 9974else 9975 case $GTK_UPDATE_ICON_CACHE in 9976 [\\/]* | ?:[\\/]*) 9977 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 9978 ;; 9979 *) 9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9981for as_dir in $PATH 9982do 9983 IFS=$as_save_IFS 9984 test -z "$as_dir" && as_dir=. 9985 for ac_exec_ext in '' $ac_executable_extensions; do 9986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9987 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9989 break 2 9990 fi 9991done 9992 done 9993IFS=$as_save_IFS 9994 9995 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 9996 ;; 9997esac 9998fi 9999GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 10000if test -n "$GTK_UPDATE_ICON_CACHE"; then 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 10002$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 10003else 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10005$as_echo "no" >&6; } 10006fi 10007 10008 10009 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10011$as_echo "not found in PATH." >&6; } 10012 fi 10013 else 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10015$as_echo "update disabled" >&6; } 10016 fi 10017 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 10019$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 10020 # Check whether --enable-desktop_database_update was given. 10021if test "${enable_desktop_database_update+set}" = set; then : 10022 enableval=$enable_desktop_database_update; 10023else 10024 enable_desktop_database_update="yes" 10025fi 10026 10027 if test "$enable_desktop_database_update" = "yes"; then 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 10029$as_echo "not set" >&6; } 10030 # Extract the first word of "update-desktop-database", so it can be a program name with args. 10031set dummy update-desktop-database; ac_word=$2 10032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10033$as_echo_n "checking for $ac_word... " >&6; } 10034if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036else 10037 case $UPDATE_DESKTOP_DATABASE in 10038 [\\/]* | ?:[\\/]*) 10039 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 10040 ;; 10041 *) 10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10043for as_dir in $PATH 10044do 10045 IFS=$as_save_IFS 10046 test -z "$as_dir" && as_dir=. 10047 for ac_exec_ext in '' $ac_executable_extensions; do 10048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10049 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10051 break 2 10052 fi 10053done 10054 done 10055IFS=$as_save_IFS 10056 10057 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 10058 ;; 10059esac 10060fi 10061UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 10062if test -n "$UPDATE_DESKTOP_DATABASE"; then 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 10064$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 10065else 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10067$as_echo "no" >&6; } 10068fi 10069 10070 10071 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 10073$as_echo "not found in PATH." >&6; } 10074 fi 10075 else 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 10077$as_echo "update disabled" >&6; } 10078 fi 10079fi 10080 10081 10082 10083 10084 10085 10086 10087if test -z "$SKIP_MOTIF"; then 10088 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" 10089 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 10090 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 10092$as_echo_n "checking for location of Motif GUI includes... " >&6; } 10093 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 10094 GUI_INC_LOC= 10095 for try in $gui_includes; do 10096 if test -f "$try/Xm/Xm.h"; then 10097 GUI_INC_LOC=$try 10098 fi 10099 done 10100 if test -n "$GUI_INC_LOC"; then 10101 if test "$GUI_INC_LOC" = /usr/include; then 10102 GUI_INC_LOC= 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10104$as_echo "in default path" >&6; } 10105 else 10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 10107$as_echo "$GUI_INC_LOC" >&6; } 10108 fi 10109 else 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10111$as_echo "<not found>" >&6; } 10112 SKIP_MOTIF=YES 10113 fi 10114fi 10115 10116 10117if test -z "$SKIP_MOTIF"; then 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 10119$as_echo_n "checking --with-motif-lib argument... " >&6; } 10120 10121# Check whether --with-motif-lib was given. 10122if test "${with_motif_lib+set}" = set; then : 10123 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 10124fi 10125 10126 10127 if test -n "$MOTIF_LIBNAME"; then 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 10129$as_echo "$MOTIF_LIBNAME" >&6; } 10130 GUI_LIB_LOC= 10131 else 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10133$as_echo "no" >&6; } 10134 10135 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 10136 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 10138$as_echo_n "checking for location of Motif GUI libs... " >&6; } 10139 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" 10140 GUI_LIB_LOC= 10141 for try in $gui_libs; do 10142 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 10143 if test -f "$libtry"; then 10144 GUI_LIB_LOC=$try 10145 fi 10146 done 10147 done 10148 if test -n "$GUI_LIB_LOC"; then 10149 if test "$GUI_LIB_LOC" = /usr/lib \ 10150 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 10151 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 10152 GUI_LIB_LOC= 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 10154$as_echo "in default path" >&6; } 10155 else 10156 if test -n "$GUI_LIB_LOC"; then 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 10158$as_echo "$GUI_LIB_LOC" >&6; } 10159 if test "`(uname) 2>/dev/null`" = SunOS && 10160 uname -r | grep '^5' >/dev/null; then 10161 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 10162 fi 10163 fi 10164 fi 10165 MOTIF_LIBNAME=-lXm 10166 else 10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 10168$as_echo "<not found>" >&6; } 10169 SKIP_MOTIF=YES 10170 fi 10171 fi 10172fi 10173 10174if test -z "$SKIP_MOTIF"; then 10175 SKIP_ATHENA=YES 10176 SKIP_NEXTAW=YES 10177 GUITYPE=MOTIF 10178 10179fi 10180 10181 10182GUI_X_LIBS= 10183 10184if test -z "$SKIP_ATHENA"; then 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 10186$as_echo_n "checking if Athena header files can be found... " >&6; } 10187 cflags_save=$CFLAGS 10188 CFLAGS="$CFLAGS $X_CFLAGS" 10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10190/* end confdefs.h. */ 10191 10192#include <X11/Intrinsic.h> 10193#include <X11/Xaw/Paned.h> 10194int 10195main () 10196{ 10197 10198 ; 10199 return 0; 10200} 10201_ACEOF 10202if ac_fn_c_try_compile "$LINENO"; then : 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10204$as_echo "yes" >&6; } 10205else 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10207$as_echo "no" >&6; }; SKIP_ATHENA=YES 10208fi 10209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10210 CFLAGS=$cflags_save 10211fi 10212 10213if test -z "$SKIP_ATHENA"; then 10214 GUITYPE=ATHENA 10215fi 10216 10217if test -z "$SKIP_NEXTAW"; then 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 10219$as_echo_n "checking if neXtaw header files can be found... " >&6; } 10220 cflags_save=$CFLAGS 10221 CFLAGS="$CFLAGS $X_CFLAGS" 10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224 10225#include <X11/Intrinsic.h> 10226#include <X11/neXtaw/Paned.h> 10227int 10228main () 10229{ 10230 10231 ; 10232 return 0; 10233} 10234_ACEOF 10235if ac_fn_c_try_compile "$LINENO"; then : 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10237$as_echo "yes" >&6; } 10238else 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10240$as_echo "no" >&6; }; SKIP_NEXTAW=YES 10241fi 10242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10243 CFLAGS=$cflags_save 10244fi 10245 10246if test -z "$SKIP_NEXTAW"; then 10247 GUITYPE=NEXTAW 10248fi 10249 10250if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10251 if test -n "$GUI_INC_LOC"; then 10252 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 10253 fi 10254 if test -n "$GUI_LIB_LOC"; then 10255 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 10256 fi 10257 10258 ldflags_save=$LDFLAGS 10259 LDFLAGS="$X_LIBS $LDFLAGS" 10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 10261$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 10262if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 10263 $as_echo_n "(cached) " >&6 10264else 10265 ac_check_lib_save_LIBS=$LIBS 10266LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268/* end confdefs.h. */ 10269 10270/* Override any GCC internal prototype to avoid an error. 10271 Use char because int might match the return type of a GCC 10272 builtin and then its argument prototype would still apply. */ 10273#ifdef __cplusplus 10274extern "C" 10275#endif 10276char XShapeQueryExtension (); 10277int 10278main () 10279{ 10280return XShapeQueryExtension (); 10281 ; 10282 return 0; 10283} 10284_ACEOF 10285if ac_fn_c_try_link "$LINENO"; then : 10286 ac_cv_lib_Xext_XShapeQueryExtension=yes 10287else 10288 ac_cv_lib_Xext_XShapeQueryExtension=no 10289fi 10290rm -f core conftest.err conftest.$ac_objext \ 10291 conftest$ac_exeext conftest.$ac_ext 10292LIBS=$ac_check_lib_save_LIBS 10293fi 10294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 10295$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 10296if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 10297 GUI_X_LIBS="-lXext" 10298fi 10299 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 10301$as_echo_n "checking for wslen in -lw... " >&6; } 10302if ${ac_cv_lib_w_wslen+:} false; then : 10303 $as_echo_n "(cached) " >&6 10304else 10305 ac_check_lib_save_LIBS=$LIBS 10306LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10308/* end confdefs.h. */ 10309 10310/* Override any GCC internal prototype to avoid an error. 10311 Use char because int might match the return type of a GCC 10312 builtin and then its argument prototype would still apply. */ 10313#ifdef __cplusplus 10314extern "C" 10315#endif 10316char wslen (); 10317int 10318main () 10319{ 10320return wslen (); 10321 ; 10322 return 0; 10323} 10324_ACEOF 10325if ac_fn_c_try_link "$LINENO"; then : 10326 ac_cv_lib_w_wslen=yes 10327else 10328 ac_cv_lib_w_wslen=no 10329fi 10330rm -f core conftest.err conftest.$ac_objext \ 10331 conftest$ac_exeext conftest.$ac_ext 10332LIBS=$ac_check_lib_save_LIBS 10333fi 10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 10335$as_echo "$ac_cv_lib_w_wslen" >&6; } 10336if test "x$ac_cv_lib_w_wslen" = xyes; then : 10337 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 10338fi 10339 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 10341$as_echo_n "checking for dlsym in -ldl... " >&6; } 10342if ${ac_cv_lib_dl_dlsym+:} false; then : 10343 $as_echo_n "(cached) " >&6 10344else 10345 ac_check_lib_save_LIBS=$LIBS 10346LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10348/* end confdefs.h. */ 10349 10350/* Override any GCC internal prototype to avoid an error. 10351 Use char because int might match the return type of a GCC 10352 builtin and then its argument prototype would still apply. */ 10353#ifdef __cplusplus 10354extern "C" 10355#endif 10356char dlsym (); 10357int 10358main () 10359{ 10360return dlsym (); 10361 ; 10362 return 0; 10363} 10364_ACEOF 10365if ac_fn_c_try_link "$LINENO"; then : 10366 ac_cv_lib_dl_dlsym=yes 10367else 10368 ac_cv_lib_dl_dlsym=no 10369fi 10370rm -f core conftest.err conftest.$ac_objext \ 10371 conftest$ac_exeext conftest.$ac_ext 10372LIBS=$ac_check_lib_save_LIBS 10373fi 10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 10375$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 10376if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 10377 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 10378fi 10379 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 10381$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 10382if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 10383 $as_echo_n "(cached) " >&6 10384else 10385 ac_check_lib_save_LIBS=$LIBS 10386LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10388/* end confdefs.h. */ 10389 10390/* Override any GCC internal prototype to avoid an error. 10391 Use char because int might match the return type of a GCC 10392 builtin and then its argument prototype would still apply. */ 10393#ifdef __cplusplus 10394extern "C" 10395#endif 10396char XmuCreateStippledPixmap (); 10397int 10398main () 10399{ 10400return XmuCreateStippledPixmap (); 10401 ; 10402 return 0; 10403} 10404_ACEOF 10405if ac_fn_c_try_link "$LINENO"; then : 10406 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 10407else 10408 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 10409fi 10410rm -f core conftest.err conftest.$ac_objext \ 10411 conftest$ac_exeext conftest.$ac_ext 10412LIBS=$ac_check_lib_save_LIBS 10413fi 10414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 10415$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 10416if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 10417 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 10418fi 10419 10420 if test -z "$SKIP_MOTIF"; then 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 10422$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 10423if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 10424 $as_echo_n "(cached) " >&6 10425else 10426 ac_check_lib_save_LIBS=$LIBS 10427LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10429/* end confdefs.h. */ 10430 10431/* Override any GCC internal prototype to avoid an error. 10432 Use char because int might match the return type of a GCC 10433 builtin and then its argument prototype would still apply. */ 10434#ifdef __cplusplus 10435extern "C" 10436#endif 10437char XpEndJob (); 10438int 10439main () 10440{ 10441return XpEndJob (); 10442 ; 10443 return 0; 10444} 10445_ACEOF 10446if ac_fn_c_try_link "$LINENO"; then : 10447 ac_cv_lib_Xp_XpEndJob=yes 10448else 10449 ac_cv_lib_Xp_XpEndJob=no 10450fi 10451rm -f core conftest.err conftest.$ac_objext \ 10452 conftest$ac_exeext conftest.$ac_ext 10453LIBS=$ac_check_lib_save_LIBS 10454fi 10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 10456$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 10457if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 10458 GUI_X_LIBS="-lXp $GUI_X_LIBS" 10459fi 10460 10461 fi 10462 LDFLAGS=$ldflags_save 10463 10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 10465$as_echo_n "checking for extra X11 defines... " >&6; } 10466 NARROW_PROTO= 10467 rm -fr conftestdir 10468 if mkdir conftestdir; then 10469 cd conftestdir 10470 cat > Imakefile <<'EOF' 10471acfindx: 10472 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 10473EOF 10474 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 10475 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 10476 fi 10477 cd .. 10478 rm -fr conftestdir 10479 fi 10480 if test -z "$NARROW_PROTO"; then 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10482$as_echo "no" >&6; } 10483 else 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 10485$as_echo "$NARROW_PROTO" >&6; } 10486 fi 10487 10488fi 10489 10490if test "$enable_xsmp" = "yes"; then 10491 cppflags_save=$CPPFLAGS 10492 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10493 for ac_header in X11/SM/SMlib.h 10494do : 10495 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 10496if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 10497 cat >>confdefs.h <<_ACEOF 10498#define HAVE_X11_SM_SMLIB_H 1 10499_ACEOF 10500 10501fi 10502 10503done 10504 10505 CPPFLAGS=$cppflags_save 10506fi 10507 10508 10509if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 10510 cppflags_save=$CPPFLAGS 10511 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10512 for ac_header in X11/xpm.h X11/Sunkeysym.h 10513do : 10514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10515ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10516if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10517 cat >>confdefs.h <<_ACEOF 10518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10519_ACEOF 10520 10521fi 10522 10523done 10524 10525 10526 if test ! "$enable_xim" = "no"; then 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 10528$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10530/* end confdefs.h. */ 10531#include <X11/Xlib.h> 10532_ACEOF 10533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10534 $EGREP "XIMText" >/dev/null 2>&1; then : 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10536$as_echo "yes" >&6; } 10537else 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 10539$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 10540fi 10541rm -f conftest* 10542 10543 fi 10544 CPPFLAGS=$cppflags_save 10545 10546 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 10547 -a "x$GUITYPE" != "xNONE" ; then 10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 10549$as_echo "X GUI selected; xim has been enabled" >&6; } 10550 enable_xim="yes" 10551 fi 10552fi 10553 10554if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10555 cppflags_save=$CPPFLAGS 10556 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 10558$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10560/* end confdefs.h. */ 10561 10562#include <X11/Intrinsic.h> 10563#include <X11/Xmu/Editres.h> 10564int 10565main () 10566{ 10567int i; i = 0; 10568 ; 10569 return 0; 10570} 10571_ACEOF 10572if ac_fn_c_try_compile "$LINENO"; then : 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10574$as_echo "yes" >&6; } 10575 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10576 10577else 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10579$as_echo "no" >&6; } 10580fi 10581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10582 CPPFLAGS=$cppflags_save 10583fi 10584 10585if test -z "$SKIP_MOTIF"; then 10586 cppflags_save=$CPPFLAGS 10587 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10588 if test "$zOSUnix" = "yes"; then 10589 xmheader="Xm/Xm.h" 10590 else 10591 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10592 Xm/UnhighlightT.h Xm/Notebook.h" 10593 fi 10594 for ac_header in $xmheader 10595do : 10596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10597ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10598if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10599 cat >>confdefs.h <<_ACEOF 10600#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10601_ACEOF 10602 10603fi 10604 10605done 10606 10607 10608 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10610$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10612/* end confdefs.h. */ 10613#include <Xm/XpmP.h> 10614int 10615main () 10616{ 10617XpmAttributes_21 attr; 10618 ; 10619 return 0; 10620} 10621_ACEOF 10622if ac_fn_c_try_compile "$LINENO"; then : 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10624$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10625 10626else 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10628$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10629 10630 10631fi 10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10633 else 10634 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10635 10636 fi 10637 CPPFLAGS=$cppflags_save 10638fi 10639 10640if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10642$as_echo "no GUI selected; xim has been disabled" >&6; } 10643 enable_xim="no" 10644fi 10645if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10647$as_echo "no GUI selected; fontset has been disabled" >&6; } 10648 enable_fontset="no" 10649fi 10650if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10652$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10653 enable_fontset="no" 10654fi 10655 10656if test -z "$SKIP_PHOTON"; then 10657 GUITYPE=PHOTONGUI 10658fi 10659 10660 10661 10662 10663 10664 10665if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10666 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10667fi 10668 10669if test "$enable_xim" = "yes"; then 10670 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10671 10672fi 10673if test "$enable_fontset" = "yes"; then 10674 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10675 10676fi 10677 10678 10679 10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10681$as_echo_n "checking for /proc link to executable... " >&6; } 10682if test -L "/proc/self/exe"; then 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10684$as_echo "/proc/self/exe" >&6; } 10685 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10686 10687elif test -L "/proc/self/path/a.out"; then 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10689$as_echo "/proc/self/path/a.out" >&6; } 10690 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10691 10692elif test -L "/proc/curproc/file"; then 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10694$as_echo "/proc/curproc/file" >&6; } 10695 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10696 10697else 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10699$as_echo "no" >&6; } 10700fi 10701 10702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10703$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10704case `uname` in 10705 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10706$as_echo "yes" >&6; } 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10708$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10709 if test "x$with_x" = "xno" ; then 10710 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10712$as_echo "yes" >&6; } 10713 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10714 10715 else 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10717$as_echo "no - using X11" >&6; } 10718 fi ;; 10719 10720 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10721$as_echo "no" >&6; };; 10722esac 10723 10724if test "$enable_hangulinput" = "yes"; then 10725 if test "x$GUITYPE" = "xNONE"; then 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 10727$as_echo "no GUI selected; hangul input has been disabled" >&6; } 10728 enable_hangulinput=no 10729 else 10730 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 10731 10732 HANGULIN_SRC=hangulin.c 10733 10734 HANGULIN_OBJ=objects/hangulin.o 10735 10736 fi 10737fi 10738 10739 10740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10741$as_echo_n "checking whether toupper is broken... " >&6; } 10742if ${vim_cv_toupper_broken+:} false; then : 10743 $as_echo_n "(cached) " >&6 10744else 10745 10746 if test "$cross_compiling" = yes; then : 10747 10748 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10749 10750else 10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752/* end confdefs.h. */ 10753 10754#include "confdefs.h" 10755#include <ctype.h> 10756#if STDC_HEADERS 10757# include <stdlib.h> 10758# include <stddef.h> 10759#endif 10760main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10761 10762_ACEOF 10763if ac_fn_c_try_run "$LINENO"; then : 10764 10765 vim_cv_toupper_broken=yes 10766 10767else 10768 10769 vim_cv_toupper_broken=no 10770 10771fi 10772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10773 conftest.$ac_objext conftest.beam conftest.$ac_ext 10774fi 10775 10776fi 10777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10778$as_echo "$vim_cv_toupper_broken" >&6; } 10779 10780if test "x$vim_cv_toupper_broken" = "xyes" ; then 10781 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10782 10783fi 10784 10785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10786$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10788/* end confdefs.h. */ 10789#include <stdio.h> 10790int 10791main () 10792{ 10793printf("(" __DATE__ " " __TIME__ ")"); 10794 ; 10795 return 0; 10796} 10797_ACEOF 10798if ac_fn_c_try_compile "$LINENO"; then : 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10800$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10801 10802else 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10804$as_echo "no" >&6; } 10805fi 10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10807 10808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10809$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10811/* end confdefs.h. */ 10812#include <stdio.h> 10813int 10814main () 10815{ 10816int x __attribute__((unused)); 10817 ; 10818 return 0; 10819} 10820_ACEOF 10821if ac_fn_c_try_compile "$LINENO"; then : 10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10823$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10824 10825else 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10827$as_echo "no" >&6; } 10828fi 10829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10830 10831ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10832if test "x$ac_cv_header_elf_h" = xyes; then : 10833 HAS_ELF=1 10834fi 10835 10836 10837if test "$HAS_ELF" = 1; then 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10839$as_echo_n "checking for main in -lelf... " >&6; } 10840if ${ac_cv_lib_elf_main+:} false; then : 10841 $as_echo_n "(cached) " >&6 10842else 10843 ac_check_lib_save_LIBS=$LIBS 10844LIBS="-lelf $LIBS" 10845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10846/* end confdefs.h. */ 10847 10848 10849int 10850main () 10851{ 10852return main (); 10853 ; 10854 return 0; 10855} 10856_ACEOF 10857if ac_fn_c_try_link "$LINENO"; then : 10858 ac_cv_lib_elf_main=yes 10859else 10860 ac_cv_lib_elf_main=no 10861fi 10862rm -f core conftest.err conftest.$ac_objext \ 10863 conftest$ac_exeext conftest.$ac_ext 10864LIBS=$ac_check_lib_save_LIBS 10865fi 10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10867$as_echo "$ac_cv_lib_elf_main" >&6; } 10868if test "x$ac_cv_lib_elf_main" = xyes; then : 10869 cat >>confdefs.h <<_ACEOF 10870#define HAVE_LIBELF 1 10871_ACEOF 10872 10873 LIBS="-lelf $LIBS" 10874 10875fi 10876 10877fi 10878 10879ac_header_dirent=no 10880for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10881 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10883$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10884if eval \${$as_ac_Header+:} false; then : 10885 $as_echo_n "(cached) " >&6 10886else 10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10888/* end confdefs.h. */ 10889#include <sys/types.h> 10890#include <$ac_hdr> 10891 10892int 10893main () 10894{ 10895if ((DIR *) 0) 10896return 0; 10897 ; 10898 return 0; 10899} 10900_ACEOF 10901if ac_fn_c_try_compile "$LINENO"; then : 10902 eval "$as_ac_Header=yes" 10903else 10904 eval "$as_ac_Header=no" 10905fi 10906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10907fi 10908eval ac_res=\$$as_ac_Header 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10910$as_echo "$ac_res" >&6; } 10911if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10912 cat >>confdefs.h <<_ACEOF 10913#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10914_ACEOF 10915 10916ac_header_dirent=$ac_hdr; break 10917fi 10918 10919done 10920# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10921if test $ac_header_dirent = dirent.h; then 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10923$as_echo_n "checking for library containing opendir... " >&6; } 10924if ${ac_cv_search_opendir+:} false; then : 10925 $as_echo_n "(cached) " >&6 10926else 10927 ac_func_search_save_LIBS=$LIBS 10928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929/* end confdefs.h. */ 10930 10931/* Override any GCC internal prototype to avoid an error. 10932 Use char because int might match the return type of a GCC 10933 builtin and then its argument prototype would still apply. */ 10934#ifdef __cplusplus 10935extern "C" 10936#endif 10937char opendir (); 10938int 10939main () 10940{ 10941return opendir (); 10942 ; 10943 return 0; 10944} 10945_ACEOF 10946for ac_lib in '' dir; do 10947 if test -z "$ac_lib"; then 10948 ac_res="none required" 10949 else 10950 ac_res=-l$ac_lib 10951 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10952 fi 10953 if ac_fn_c_try_link "$LINENO"; then : 10954 ac_cv_search_opendir=$ac_res 10955fi 10956rm -f core conftest.err conftest.$ac_objext \ 10957 conftest$ac_exeext 10958 if ${ac_cv_search_opendir+:} false; then : 10959 break 10960fi 10961done 10962if ${ac_cv_search_opendir+:} false; then : 10963 10964else 10965 ac_cv_search_opendir=no 10966fi 10967rm conftest.$ac_ext 10968LIBS=$ac_func_search_save_LIBS 10969fi 10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10971$as_echo "$ac_cv_search_opendir" >&6; } 10972ac_res=$ac_cv_search_opendir 10973if test "$ac_res" != no; then : 10974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10975 10976fi 10977 10978else 10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10980$as_echo_n "checking for library containing opendir... " >&6; } 10981if ${ac_cv_search_opendir+:} false; then : 10982 $as_echo_n "(cached) " >&6 10983else 10984 ac_func_search_save_LIBS=$LIBS 10985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987 10988/* Override any GCC internal prototype to avoid an error. 10989 Use char because int might match the return type of a GCC 10990 builtin and then its argument prototype would still apply. */ 10991#ifdef __cplusplus 10992extern "C" 10993#endif 10994char opendir (); 10995int 10996main () 10997{ 10998return opendir (); 10999 ; 11000 return 0; 11001} 11002_ACEOF 11003for ac_lib in '' x; do 11004 if test -z "$ac_lib"; then 11005 ac_res="none required" 11006 else 11007 ac_res=-l$ac_lib 11008 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11009 fi 11010 if ac_fn_c_try_link "$LINENO"; then : 11011 ac_cv_search_opendir=$ac_res 11012fi 11013rm -f core conftest.err conftest.$ac_objext \ 11014 conftest$ac_exeext 11015 if ${ac_cv_search_opendir+:} false; then : 11016 break 11017fi 11018done 11019if ${ac_cv_search_opendir+:} false; then : 11020 11021else 11022 ac_cv_search_opendir=no 11023fi 11024rm conftest.$ac_ext 11025LIBS=$ac_func_search_save_LIBS 11026fi 11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11028$as_echo "$ac_cv_search_opendir" >&6; } 11029ac_res=$ac_cv_search_opendir 11030if test "$ac_res" != no; then : 11031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11032 11033fi 11034 11035fi 11036 11037 11038if test $ac_cv_header_sys_wait_h = no; then 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 11040$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042/* end confdefs.h. */ 11043#include <sys/wait.h> 11044int 11045main () 11046{ 11047union wait xx, yy; xx = yy 11048 ; 11049 return 0; 11050} 11051_ACEOF 11052if ac_fn_c_try_compile "$LINENO"; then : 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11054$as_echo "yes" >&6; } 11055 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11056 11057 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 11058 11059else 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11061$as_echo "no" >&6; } 11062fi 11063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11064fi 11065 11066for ac_header in stdint.h stdlib.h string.h \ 11067 sys/select.h sys/utsname.h termcap.h fcntl.h \ 11068 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 11069 termio.h iconv.h inttypes.h langinfo.h math.h \ 11070 unistd.h stropts.h errno.h sys/resource.h \ 11071 sys/systeminfo.h locale.h sys/stream.h termios.h \ 11072 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 11073 utime.h sys/param.h libintl.h libgen.h \ 11074 util/debug.h util/msg18n.h frame.h sys/acl.h \ 11075 sys/access.h sys/sysinfo.h wchar.h wctype.h 11076do : 11077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11078ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11079if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11080 cat >>confdefs.h <<_ACEOF 11081#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11082_ACEOF 11083 11084fi 11085 11086done 11087 11088 11089for ac_header in sys/ptem.h 11090do : 11091 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 11092# include <sys/stream.h> 11093#endif 11094" 11095if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 11096 cat >>confdefs.h <<_ACEOF 11097#define HAVE_SYS_PTEM_H 1 11098_ACEOF 11099 11100fi 11101 11102done 11103 11104 11105for ac_header in sys/sysctl.h 11106do : 11107 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 11108# include <sys/param.h> 11109#endif 11110" 11111if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 11112 cat >>confdefs.h <<_ACEOF 11113#define HAVE_SYS_SYSCTL_H 1 11114_ACEOF 11115 11116fi 11117 11118done 11119 11120 11121 11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 11123$as_echo_n "checking for pthread_np.h... " >&6; } 11124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11125/* end confdefs.h. */ 11126 11127#include <pthread.h> 11128#include <pthread_np.h> 11129int 11130main () 11131{ 11132int i; i = 0; 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_PTHREAD_NP_H 1" >>confdefs.h 11141 11142else 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11144$as_echo "no" >&6; } 11145fi 11146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11147 11148for ac_header in strings.h 11149do : 11150 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 11151if test "x$ac_cv_header_strings_h" = xyes; then : 11152 cat >>confdefs.h <<_ACEOF 11153#define HAVE_STRINGS_H 1 11154_ACEOF 11155 11156fi 11157 11158done 11159 11160if test "x$MACOS_X" = "xyes"; then 11161 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11162 11163else 11164 11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 11166$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 11167cppflags_save=$CPPFLAGS 11168CPPFLAGS="$CPPFLAGS $X_CFLAGS" 11169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11170/* end confdefs.h. */ 11171 11172#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 11173# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 11174 /* but don't do it on AIX 5.1 (Uribarri) */ 11175#endif 11176#ifdef HAVE_XM_XM_H 11177# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 11178#endif 11179#ifdef HAVE_STRING_H 11180# include <string.h> 11181#endif 11182#if defined(HAVE_STRINGS_H) 11183# include <strings.h> 11184#endif 11185 11186int 11187main () 11188{ 11189int i; i = 0; 11190 ; 11191 return 0; 11192} 11193_ACEOF 11194if ac_fn_c_try_compile "$LINENO"; then : 11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11196$as_echo "yes" >&6; } 11197else 11198 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 11199 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11201$as_echo "no" >&6; } 11202fi 11203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11204CPPFLAGS=$cppflags_save 11205fi 11206 11207if test $ac_cv_c_compiler_gnu = yes; then 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 11209$as_echo_n "checking whether $CC needs -traditional... " >&6; } 11210if ${ac_cv_prog_gcc_traditional+:} false; then : 11211 $as_echo_n "(cached) " >&6 11212else 11213 ac_pattern="Autoconf.*'x'" 11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11215/* end confdefs.h. */ 11216#include <sgtty.h> 11217Autoconf TIOCGETP 11218_ACEOF 11219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11220 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11221 ac_cv_prog_gcc_traditional=yes 11222else 11223 ac_cv_prog_gcc_traditional=no 11224fi 11225rm -f conftest* 11226 11227 11228 if test $ac_cv_prog_gcc_traditional = no; then 11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11230/* end confdefs.h. */ 11231#include <termio.h> 11232Autoconf TCGETA 11233_ACEOF 11234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11235 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11236 ac_cv_prog_gcc_traditional=yes 11237fi 11238rm -f conftest* 11239 11240 fi 11241fi 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 11243$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 11244 if test $ac_cv_prog_gcc_traditional = yes; then 11245 CC="$CC -traditional" 11246 fi 11247fi 11248 11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11250$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11251if ${ac_cv_c_const+:} false; then : 11252 $as_echo_n "(cached) " >&6 11253else 11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255/* end confdefs.h. */ 11256 11257int 11258main () 11259{ 11260 11261#ifndef __cplusplus 11262 /* Ultrix mips cc rejects this sort of thing. */ 11263 typedef int charset[2]; 11264 const charset cs = { 0, 0 }; 11265 /* SunOS 4.1.1 cc rejects this. */ 11266 char const *const *pcpcc; 11267 char **ppc; 11268 /* NEC SVR4.0.2 mips cc rejects this. */ 11269 struct point {int x, y;}; 11270 static struct point const zero = {0,0}; 11271 /* AIX XL C 1.02.0.0 rejects this. 11272 It does not let you subtract one const X* pointer from another in 11273 an arm of an if-expression whose if-part is not a constant 11274 expression */ 11275 const char *g = "string"; 11276 pcpcc = &g + (g ? g-g : 0); 11277 /* HPUX 7.0 cc rejects these. */ 11278 ++pcpcc; 11279 ppc = (char**) pcpcc; 11280 pcpcc = (char const *const *) ppc; 11281 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11282 char tx; 11283 char *t = &tx; 11284 char const *s = 0 ? (char *) 0 : (char const *) 0; 11285 11286 *t++ = 0; 11287 if (s) return 0; 11288 } 11289 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11290 int x[] = {25, 17}; 11291 const int *foo = &x[0]; 11292 ++foo; 11293 } 11294 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11295 typedef const int *iptr; 11296 iptr p = 0; 11297 ++p; 11298 } 11299 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11300 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11301 struct s { int j; const int *ap[3]; } bx; 11302 struct s *b = &bx; b->j = 5; 11303 } 11304 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11305 const int foo = 10; 11306 if (!foo) return 0; 11307 } 11308 return !cs[0] && !zero.x; 11309#endif 11310 11311 ; 11312 return 0; 11313} 11314_ACEOF 11315if ac_fn_c_try_compile "$LINENO"; then : 11316 ac_cv_c_const=yes 11317else 11318 ac_cv_c_const=no 11319fi 11320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11321fi 11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11323$as_echo "$ac_cv_c_const" >&6; } 11324if test $ac_cv_c_const = no; then 11325 11326$as_echo "#define const /**/" >>confdefs.h 11327 11328fi 11329 11330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 11331$as_echo_n "checking for working volatile... " >&6; } 11332if ${ac_cv_c_volatile+:} false; then : 11333 $as_echo_n "(cached) " >&6 11334else 11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11336/* end confdefs.h. */ 11337 11338int 11339main () 11340{ 11341 11342volatile int x; 11343int * volatile y = (int *) 0; 11344return !x && !y; 11345 ; 11346 return 0; 11347} 11348_ACEOF 11349if ac_fn_c_try_compile "$LINENO"; then : 11350 ac_cv_c_volatile=yes 11351else 11352 ac_cv_c_volatile=no 11353fi 11354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11355fi 11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 11357$as_echo "$ac_cv_c_volatile" >&6; } 11358if test $ac_cv_c_volatile = no; then 11359 11360$as_echo "#define volatile /**/" >>confdefs.h 11361 11362fi 11363 11364ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11365if test "x$ac_cv_type_mode_t" = xyes; then : 11366 11367else 11368 11369cat >>confdefs.h <<_ACEOF 11370#define mode_t int 11371_ACEOF 11372 11373fi 11374 11375ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 11376if test "x$ac_cv_type_off_t" = xyes; then : 11377 11378else 11379 11380cat >>confdefs.h <<_ACEOF 11381#define off_t long int 11382_ACEOF 11383 11384fi 11385 11386ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11387if test "x$ac_cv_type_pid_t" = xyes; then : 11388 11389else 11390 11391cat >>confdefs.h <<_ACEOF 11392#define pid_t int 11393_ACEOF 11394 11395fi 11396 11397ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11398if test "x$ac_cv_type_size_t" = xyes; then : 11399 11400else 11401 11402cat >>confdefs.h <<_ACEOF 11403#define size_t unsigned int 11404_ACEOF 11405 11406fi 11407 11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11409$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11410if ${ac_cv_type_uid_t+:} false; then : 11411 $as_echo_n "(cached) " >&6 11412else 11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11414/* end confdefs.h. */ 11415#include <sys/types.h> 11416 11417_ACEOF 11418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11419 $EGREP "uid_t" >/dev/null 2>&1; then : 11420 ac_cv_type_uid_t=yes 11421else 11422 ac_cv_type_uid_t=no 11423fi 11424rm -f conftest* 11425 11426fi 11427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11428$as_echo "$ac_cv_type_uid_t" >&6; } 11429if test $ac_cv_type_uid_t = no; then 11430 11431$as_echo "#define uid_t int" >>confdefs.h 11432 11433 11434$as_echo "#define gid_t int" >>confdefs.h 11435 11436fi 11437 11438ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 11439case $ac_cv_c_uint32_t in #( 11440 no|yes) ;; #( 11441 *) 11442 11443$as_echo "#define _UINT32_T 1" >>confdefs.h 11444 11445 11446cat >>confdefs.h <<_ACEOF 11447#define uint32_t $ac_cv_c_uint32_t 11448_ACEOF 11449;; 11450 esac 11451 11452 11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11454$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11455if ${ac_cv_header_time+:} false; then : 11456 $as_echo_n "(cached) " >&6 11457else 11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11459/* end confdefs.h. */ 11460#include <sys/types.h> 11461#include <sys/time.h> 11462#include <time.h> 11463 11464int 11465main () 11466{ 11467if ((struct tm *) 0) 11468return 0; 11469 ; 11470 return 0; 11471} 11472_ACEOF 11473if ac_fn_c_try_compile "$LINENO"; then : 11474 ac_cv_header_time=yes 11475else 11476 ac_cv_header_time=no 11477fi 11478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11479fi 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11481$as_echo "$ac_cv_header_time" >&6; } 11482if test $ac_cv_header_time = yes; then 11483 11484$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11485 11486fi 11487 11488ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 11489if test "x$ac_cv_type_ino_t" = xyes; then : 11490 11491else 11492 11493cat >>confdefs.h <<_ACEOF 11494#define ino_t long 11495_ACEOF 11496 11497fi 11498 11499ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 11500if test "x$ac_cv_type_dev_t" = xyes; then : 11501 11502else 11503 11504cat >>confdefs.h <<_ACEOF 11505#define dev_t unsigned 11506_ACEOF 11507 11508fi 11509 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11511$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11512if ${ac_cv_c_bigendian+:} false; then : 11513 $as_echo_n "(cached) " >&6 11514else 11515 ac_cv_c_bigendian=unknown 11516 # See if we're dealing with a universal compiler. 11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11518/* end confdefs.h. */ 11519#ifndef __APPLE_CC__ 11520 not a universal capable compiler 11521 #endif 11522 typedef int dummy; 11523 11524_ACEOF 11525if ac_fn_c_try_compile "$LINENO"; then : 11526 11527 # Check for potential -arch flags. It is not universal unless 11528 # there are at least two -arch flags with different values. 11529 ac_arch= 11530 ac_prev= 11531 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11532 if test -n "$ac_prev"; then 11533 case $ac_word in 11534 i?86 | x86_64 | ppc | ppc64) 11535 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11536 ac_arch=$ac_word 11537 else 11538 ac_cv_c_bigendian=universal 11539 break 11540 fi 11541 ;; 11542 esac 11543 ac_prev= 11544 elif test "x$ac_word" = "x-arch"; then 11545 ac_prev=arch 11546 fi 11547 done 11548fi 11549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11550 if test $ac_cv_c_bigendian = unknown; then 11551 # See if sys/param.h defines the BYTE_ORDER macro. 11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11553/* end confdefs.h. */ 11554#include <sys/types.h> 11555 #include <sys/param.h> 11556 11557int 11558main () 11559{ 11560#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11561 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11562 && LITTLE_ENDIAN) 11563 bogus endian macros 11564 #endif 11565 11566 ; 11567 return 0; 11568} 11569_ACEOF 11570if ac_fn_c_try_compile "$LINENO"; then : 11571 # It does; now see whether it defined to BIG_ENDIAN or not. 11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11573/* end confdefs.h. */ 11574#include <sys/types.h> 11575 #include <sys/param.h> 11576 11577int 11578main () 11579{ 11580#if BYTE_ORDER != BIG_ENDIAN 11581 not big endian 11582 #endif 11583 11584 ; 11585 return 0; 11586} 11587_ACEOF 11588if ac_fn_c_try_compile "$LINENO"; then : 11589 ac_cv_c_bigendian=yes 11590else 11591 ac_cv_c_bigendian=no 11592fi 11593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11594fi 11595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11596 fi 11597 if test $ac_cv_c_bigendian = unknown; then 11598 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11600/* end confdefs.h. */ 11601#include <limits.h> 11602 11603int 11604main () 11605{ 11606#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11607 bogus endian macros 11608 #endif 11609 11610 ; 11611 return 0; 11612} 11613_ACEOF 11614if ac_fn_c_try_compile "$LINENO"; then : 11615 # It does; now see whether it defined to _BIG_ENDIAN or not. 11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11617/* end confdefs.h. */ 11618#include <limits.h> 11619 11620int 11621main () 11622{ 11623#ifndef _BIG_ENDIAN 11624 not big endian 11625 #endif 11626 11627 ; 11628 return 0; 11629} 11630_ACEOF 11631if ac_fn_c_try_compile "$LINENO"; then : 11632 ac_cv_c_bigendian=yes 11633else 11634 ac_cv_c_bigendian=no 11635fi 11636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11637fi 11638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11639 fi 11640 if test $ac_cv_c_bigendian = unknown; then 11641 # Compile a test program. 11642 if test "$cross_compiling" = yes; then : 11643 # Try to guess by grepping values from an object file. 11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11645/* end confdefs.h. */ 11646short int ascii_mm[] = 11647 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11648 short int ascii_ii[] = 11649 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11650 int use_ascii (int i) { 11651 return ascii_mm[i] + ascii_ii[i]; 11652 } 11653 short int ebcdic_ii[] = 11654 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11655 short int ebcdic_mm[] = 11656 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11657 int use_ebcdic (int i) { 11658 return ebcdic_mm[i] + ebcdic_ii[i]; 11659 } 11660 extern int foo; 11661 11662int 11663main () 11664{ 11665return use_ascii (foo) == use_ebcdic (foo); 11666 ; 11667 return 0; 11668} 11669_ACEOF 11670if ac_fn_c_try_compile "$LINENO"; then : 11671 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11672 ac_cv_c_bigendian=yes 11673 fi 11674 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11675 if test "$ac_cv_c_bigendian" = unknown; then 11676 ac_cv_c_bigendian=no 11677 else 11678 # finding both strings is unlikely to happen, but who knows? 11679 ac_cv_c_bigendian=unknown 11680 fi 11681 fi 11682fi 11683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11684else 11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11686/* end confdefs.h. */ 11687$ac_includes_default 11688int 11689main () 11690{ 11691 11692 /* Are we little or big endian? From Harbison&Steele. */ 11693 union 11694 { 11695 long int l; 11696 char c[sizeof (long int)]; 11697 } u; 11698 u.l = 1; 11699 return u.c[sizeof (long int) - 1] == 1; 11700 11701 ; 11702 return 0; 11703} 11704_ACEOF 11705if ac_fn_c_try_run "$LINENO"; then : 11706 ac_cv_c_bigendian=no 11707else 11708 ac_cv_c_bigendian=yes 11709fi 11710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11711 conftest.$ac_objext conftest.beam conftest.$ac_ext 11712fi 11713 11714 fi 11715fi 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11717$as_echo "$ac_cv_c_bigendian" >&6; } 11718 case $ac_cv_c_bigendian in #( 11719 yes) 11720 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11721;; #( 11722 no) 11723 ;; #( 11724 universal) 11725 11726$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11727 11728 ;; #( 11729 *) 11730 as_fn_error $? "unknown endianness 11731 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11732 esac 11733 11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11735$as_echo_n "checking for inline... " >&6; } 11736if ${ac_cv_c_inline+:} false; then : 11737 $as_echo_n "(cached) " >&6 11738else 11739 ac_cv_c_inline=no 11740for ac_kw in inline __inline__ __inline; do 11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11742/* end confdefs.h. */ 11743#ifndef __cplusplus 11744typedef int foo_t; 11745static $ac_kw foo_t static_foo () {return 0; } 11746$ac_kw foo_t foo () {return 0; } 11747#endif 11748 11749_ACEOF 11750if ac_fn_c_try_compile "$LINENO"; then : 11751 ac_cv_c_inline=$ac_kw 11752fi 11753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11754 test "$ac_cv_c_inline" != no && break 11755done 11756 11757fi 11758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11759$as_echo "$ac_cv_c_inline" >&6; } 11760 11761case $ac_cv_c_inline in 11762 inline | yes) ;; 11763 *) 11764 case $ac_cv_c_inline in 11765 no) ac_val=;; 11766 *) ac_val=$ac_cv_c_inline;; 11767 esac 11768 cat >>confdefs.h <<_ACEOF 11769#ifndef __cplusplus 11770#define inline $ac_val 11771#endif 11772_ACEOF 11773 ;; 11774esac 11775 11776 11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11778$as_echo_n "checking for rlim_t... " >&6; } 11779if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11781$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11782else 11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11784/* end confdefs.h. */ 11785 11786#include <sys/types.h> 11787#if STDC_HEADERS 11788# include <stdlib.h> 11789# include <stddef.h> 11790#endif 11791#ifdef HAVE_SYS_RESOURCE_H 11792# include <sys/resource.h> 11793#endif 11794 11795_ACEOF 11796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11797 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11798 ac_cv_type_rlim_t=yes 11799else 11800 ac_cv_type_rlim_t=no 11801fi 11802rm -f conftest* 11803 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11805$as_echo "$ac_cv_type_rlim_t" >&6; } 11806fi 11807if test $ac_cv_type_rlim_t = no; then 11808 cat >> confdefs.h <<\EOF 11809#define rlim_t unsigned long 11810EOF 11811fi 11812 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11814$as_echo_n "checking for stack_t... " >&6; } 11815if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11817$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11818else 11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11820/* end confdefs.h. */ 11821 11822#include <sys/types.h> 11823#if STDC_HEADERS 11824# include <stdlib.h> 11825# include <stddef.h> 11826#endif 11827#include <signal.h> 11828 11829_ACEOF 11830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11831 $EGREP "stack_t" >/dev/null 2>&1; then : 11832 ac_cv_type_stack_t=yes 11833else 11834 ac_cv_type_stack_t=no 11835fi 11836rm -f conftest* 11837 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11839$as_echo "$ac_cv_type_stack_t" >&6; } 11840fi 11841if test $ac_cv_type_stack_t = no; then 11842 cat >> confdefs.h <<\EOF 11843#define stack_t struct sigaltstack 11844EOF 11845fi 11846 11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11848$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11850/* end confdefs.h. */ 11851 11852#include <sys/types.h> 11853#if STDC_HEADERS 11854# include <stdlib.h> 11855# include <stddef.h> 11856#endif 11857#include <signal.h> 11858#include "confdefs.h" 11859 11860int 11861main () 11862{ 11863stack_t sigstk; sigstk.ss_base = 0; 11864 ; 11865 return 0; 11866} 11867_ACEOF 11868if ac_fn_c_try_compile "$LINENO"; then : 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11870$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11871 11872else 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11874$as_echo "no" >&6; } 11875fi 11876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11877 11878olibs="$LIBS" 11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11880$as_echo_n "checking --with-tlib argument... " >&6; } 11881 11882# Check whether --with-tlib was given. 11883if test "${with_tlib+set}" = set; then : 11884 withval=$with_tlib; 11885fi 11886 11887if test -n "$with_tlib"; then 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11889$as_echo "$with_tlib" >&6; } 11890 LIBS="$LIBS -l$with_tlib" 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11892$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11894/* end confdefs.h. */ 11895 11896int 11897main () 11898{ 11899 11900 ; 11901 return 0; 11902} 11903_ACEOF 11904if ac_fn_c_try_link "$LINENO"; then : 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11906$as_echo "OK" >&6; } 11907else 11908 as_fn_error $? "FAILED" "$LINENO" 5 11909fi 11910rm -f core conftest.err conftest.$ac_objext \ 11911 conftest$ac_exeext conftest.$ac_ext 11912 olibs="$LIBS" 11913else 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11915$as_echo "empty: automatic terminal library selection" >&6; } 11916 case "`uname -s 2>/dev/null`" in 11917 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11918 *) tlibs="tinfo ncurses termlib termcap curses";; 11919 esac 11920 for libname in $tlibs; do 11921 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11923$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11924if eval \${$as_ac_Lib+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 ac_check_lib_save_LIBS=$LIBS 11928LIBS="-l${libname} $LIBS" 11929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11930/* end confdefs.h. */ 11931 11932/* Override any GCC internal prototype to avoid an error. 11933 Use char because int might match the return type of a GCC 11934 builtin and then its argument prototype would still apply. */ 11935#ifdef __cplusplus 11936extern "C" 11937#endif 11938char tgetent (); 11939int 11940main () 11941{ 11942return tgetent (); 11943 ; 11944 return 0; 11945} 11946_ACEOF 11947if ac_fn_c_try_link "$LINENO"; then : 11948 eval "$as_ac_Lib=yes" 11949else 11950 eval "$as_ac_Lib=no" 11951fi 11952rm -f core conftest.err conftest.$ac_objext \ 11953 conftest$ac_exeext conftest.$ac_ext 11954LIBS=$ac_check_lib_save_LIBS 11955fi 11956eval ac_res=\$$as_ac_Lib 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11958$as_echo "$ac_res" >&6; } 11959if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11960 cat >>confdefs.h <<_ACEOF 11961#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 11962_ACEOF 11963 11964 LIBS="-l${libname} $LIBS" 11965 11966fi 11967 11968 if test "x$olibs" != "x$LIBS"; then 11969 if test "$cross_compiling" = yes; then : 11970 res="FAIL" 11971else 11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11973/* end confdefs.h. */ 11974 11975#ifdef HAVE_TERMCAP_H 11976# include <termcap.h> 11977#endif 11978#if STDC_HEADERS 11979# include <stdlib.h> 11980# include <stddef.h> 11981#endif 11982main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 11983_ACEOF 11984if ac_fn_c_try_run "$LINENO"; then : 11985 res="OK" 11986else 11987 res="FAIL" 11988fi 11989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11990 conftest.$ac_objext conftest.beam conftest.$ac_ext 11991fi 11992 11993 if test "$res" = "OK"; then 11994 break 11995 fi 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 11997$as_echo "$libname library is not usable" >&6; } 11998 LIBS="$olibs" 11999 fi 12000 done 12001 if test "x$olibs" = "x$LIBS"; then 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 12003$as_echo "no terminal library found" >&6; } 12004 fi 12005fi 12006 12007if test "x$olibs" = "x$LIBS"; then 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 12009$as_echo_n "checking for tgetent()... " >&6; } 12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12011/* end confdefs.h. */ 12012 12013int 12014main () 12015{ 12016char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 12017 ; 12018 return 0; 12019} 12020_ACEOF 12021if ac_fn_c_try_link "$LINENO"; then : 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12023$as_echo "yes" >&6; } 12024else 12025 as_fn_error $? "NOT FOUND! 12026 You need to install a terminal library; for example ncurses. 12027 Or specify the name of the library with --with-tlib." "$LINENO" 5 12028fi 12029rm -f core conftest.err conftest.$ac_objext \ 12030 conftest$ac_exeext conftest.$ac_ext 12031fi 12032 12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 12034$as_echo_n "checking whether we talk terminfo... " >&6; } 12035if ${vim_cv_terminfo+:} false; then : 12036 $as_echo_n "(cached) " >&6 12037else 12038 12039 if test "$cross_compiling" = yes; then : 12040 12041 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 12042 12043else 12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12045/* end confdefs.h. */ 12046 12047#include "confdefs.h" 12048#ifdef HAVE_TERMCAP_H 12049# include <termcap.h> 12050#endif 12051#ifdef HAVE_STRING_H 12052# include <string.h> 12053#endif 12054#if STDC_HEADERS 12055# include <stdlib.h> 12056# include <stddef.h> 12057#endif 12058main() 12059{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 12060 12061_ACEOF 12062if ac_fn_c_try_run "$LINENO"; then : 12063 12064 vim_cv_terminfo=no 12065 12066else 12067 12068 vim_cv_terminfo=yes 12069 12070fi 12071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12072 conftest.$ac_objext conftest.beam conftest.$ac_ext 12073fi 12074 12075 12076fi 12077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 12078$as_echo "$vim_cv_terminfo" >&6; } 12079 12080if test "x$vim_cv_terminfo" = "xyes" ; then 12081 $as_echo "#define TERMINFO 1" >>confdefs.h 12082 12083fi 12084 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 12086$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 12087if ${vim_cv_tgetent+:} false; then : 12088 $as_echo_n "(cached) " >&6 12089else 12090 12091 if test "$cross_compiling" = yes; then : 12092 12093 as_fn_error $? "failed to compile test program." "$LINENO" 5 12094 12095else 12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12097/* end confdefs.h. */ 12098 12099#include "confdefs.h" 12100#ifdef HAVE_TERMCAP_H 12101# include <termcap.h> 12102#endif 12103#if STDC_HEADERS 12104# include <stdlib.h> 12105# include <stddef.h> 12106#endif 12107main() 12108{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 12109 12110_ACEOF 12111if ac_fn_c_try_run "$LINENO"; then : 12112 12113 vim_cv_tgetent=zero 12114 12115else 12116 12117 vim_cv_tgetent=non-zero 12118 12119fi 12120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12121 conftest.$ac_objext conftest.beam conftest.$ac_ext 12122fi 12123 12124 12125fi 12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 12127$as_echo "$vim_cv_tgetent" >&6; } 12128 12129if test "x$vim_cv_tgetent" = "xzero" ; then 12130 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 12131 12132fi 12133 12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 12135$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 12136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12137/* end confdefs.h. */ 12138 12139#ifdef HAVE_TERMCAP_H 12140# include <termcap.h> 12141#endif 12142 12143int 12144main () 12145{ 12146ospeed = 20000 12147 ; 12148 return 0; 12149} 12150_ACEOF 12151if ac_fn_c_try_link "$LINENO"; then : 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12153$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 12154 12155else 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12157$as_echo "no" >&6; } 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 12159$as_echo_n "checking whether ospeed can be extern... " >&6; } 12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12161/* end confdefs.h. */ 12162 12163#ifdef HAVE_TERMCAP_H 12164# include <termcap.h> 12165#endif 12166extern short ospeed; 12167 12168int 12169main () 12170{ 12171ospeed = 20000 12172 ; 12173 return 0; 12174} 12175_ACEOF 12176if ac_fn_c_try_link "$LINENO"; then : 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12178$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 12179 12180else 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12182$as_echo "no" >&6; } 12183fi 12184rm -f core conftest.err conftest.$ac_objext \ 12185 conftest$ac_exeext conftest.$ac_ext 12186 12187fi 12188rm -f core conftest.err conftest.$ac_objext \ 12189 conftest$ac_exeext conftest.$ac_ext 12190 12191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 12192$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 12193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12194/* end confdefs.h. */ 12195 12196#ifdef HAVE_TERMCAP_H 12197# include <termcap.h> 12198#endif 12199 12200int 12201main () 12202{ 12203if (UP == 0 && BC == 0) PC = 1 12204 ; 12205 return 0; 12206} 12207_ACEOF 12208if ac_fn_c_try_link "$LINENO"; then : 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12210$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 12211 12212else 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12214$as_echo "no" >&6; } 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 12216$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12218/* end confdefs.h. */ 12219 12220#ifdef HAVE_TERMCAP_H 12221# include <termcap.h> 12222#endif 12223extern char *UP, *BC, PC; 12224 12225int 12226main () 12227{ 12228if (UP == 0 && BC == 0) PC = 1 12229 ; 12230 return 0; 12231} 12232_ACEOF 12233if ac_fn_c_try_link "$LINENO"; then : 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12235$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 12236 12237else 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12239$as_echo "no" >&6; } 12240fi 12241rm -f core conftest.err conftest.$ac_objext \ 12242 conftest$ac_exeext conftest.$ac_ext 12243 12244fi 12245rm -f core conftest.err conftest.$ac_objext \ 12246 conftest$ac_exeext conftest.$ac_ext 12247 12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 12249$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 12250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12251/* end confdefs.h. */ 12252 12253#ifdef HAVE_TERMCAP_H 12254# include <termcap.h> 12255#endif 12256 12257int 12258main () 12259{ 12260extern int xx(); tputs("test", 1, (outfuntype)xx) 12261 ; 12262 return 0; 12263} 12264_ACEOF 12265if ac_fn_c_try_compile "$LINENO"; then : 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12267$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 12268 12269else 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12271$as_echo "no" >&6; } 12272fi 12273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12274 12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 12276$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 12277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12278/* end confdefs.h. */ 12279 12280#include <sys/types.h> 12281#include <sys/time.h> 12282#include <sys/select.h> 12283int 12284main () 12285{ 12286 12287 ; 12288 return 0; 12289} 12290_ACEOF 12291if ac_fn_c_try_compile "$LINENO"; then : 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12293$as_echo "yes" >&6; } 12294 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 12295 12296else 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12298$as_echo "no" >&6; } 12299fi 12300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12301 12302 12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 12304$as_echo_n "checking for /dev/ptc... " >&6; } 12305if test -r /dev/ptc; then 12306 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 12307 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12309$as_echo "yes" >&6; } 12310else 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12312$as_echo "no" >&6; } 12313fi 12314 12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 12316$as_echo_n "checking for SVR4 ptys... " >&6; } 12317if test -c /dev/ptmx ; then 12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12319/* end confdefs.h. */ 12320 12321int 12322main () 12323{ 12324ptsname(0);grantpt(0);unlockpt(0); 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329if ac_fn_c_try_link "$LINENO"; then : 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12331$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 12332 12333else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12335$as_echo "no" >&6; } 12336fi 12337rm -f core conftest.err conftest.$ac_objext \ 12338 conftest$ac_exeext conftest.$ac_ext 12339else 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12341$as_echo "no" >&6; } 12342fi 12343 12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 12345$as_echo_n "checking for ptyranges... " >&6; } 12346if test -d /dev/ptym ; then 12347 pdir='/dev/ptym' 12348else 12349 pdir='/dev' 12350fi 12351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12352/* end confdefs.h. */ 12353#ifdef M_UNIX 12354 yes; 12355#endif 12356 12357_ACEOF 12358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12359 $EGREP "yes" >/dev/null 2>&1; then : 12360 ptys=`echo /dev/ptyp??` 12361else 12362 ptys=`echo $pdir/pty??` 12363fi 12364rm -f conftest* 12365 12366if test "$ptys" != "$pdir/pty??" ; then 12367 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 12368 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 12369 cat >>confdefs.h <<_ACEOF 12370#define PTYRANGE0 "$p0" 12371_ACEOF 12372 12373 cat >>confdefs.h <<_ACEOF 12374#define PTYRANGE1 "$p1" 12375_ACEOF 12376 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 12378$as_echo "$p0 / $p1" >&6; } 12379else 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 12381$as_echo "don't know" >&6; } 12382fi 12383 12384rm -f conftest_grp 12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 12386$as_echo_n "checking default tty permissions/group... " >&6; } 12387if ${vim_cv_tty_group+:} false; then : 12388 $as_echo_n "(cached) " >&6 12389else 12390 12391 if test "$cross_compiling" = yes; then : 12392 12393 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 12394 12395else 12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12397/* end confdefs.h. */ 12398 12399#include "confdefs.h" 12400#include <sys/types.h> 12401#if STDC_HEADERS 12402# include <stdlib.h> 12403# include <stddef.h> 12404#endif 12405#ifdef HAVE_UNISTD_H 12406#include <unistd.h> 12407#endif 12408#include <sys/stat.h> 12409#include <stdio.h> 12410main() 12411{ 12412 struct stat sb; 12413 char *x,*ttyname(); 12414 int om, m; 12415 FILE *fp; 12416 12417 if (!(x = ttyname(0))) exit(1); 12418 if (stat(x, &sb)) exit(1); 12419 om = sb.st_mode; 12420 if (om & 002) exit(0); 12421 m = system("mesg y"); 12422 if (m == -1 || m == 127) exit(1); 12423 if (stat(x, &sb)) exit(1); 12424 m = sb.st_mode; 12425 if (chmod(x, om)) exit(1); 12426 if (m & 002) exit(0); 12427 if (sb.st_gid == getgid()) exit(1); 12428 if (!(fp=fopen("conftest_grp", "w"))) 12429 exit(1); 12430 fprintf(fp, "%d\n", sb.st_gid); 12431 fclose(fp); 12432 exit(0); 12433} 12434 12435_ACEOF 12436if ac_fn_c_try_run "$LINENO"; then : 12437 12438 if test -f conftest_grp; then 12439 vim_cv_tty_group=`cat conftest_grp` 12440 if test "x$vim_cv_tty_mode" = "x" ; then 12441 vim_cv_tty_mode=0620 12442 fi 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 12444$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 12445 else 12446 vim_cv_tty_group=world 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 12448$as_echo "ptys are world accessible" >&6; } 12449 fi 12450 12451else 12452 12453 vim_cv_tty_group=world 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 12455$as_echo "can't determine - assume ptys are world accessible" >&6; } 12456 12457fi 12458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12459 conftest.$ac_objext conftest.beam conftest.$ac_ext 12460fi 12461 12462 12463fi 12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 12465$as_echo "$vim_cv_tty_group" >&6; } 12466rm -f conftest_grp 12467 12468if test "x$vim_cv_tty_group" != "xworld" ; then 12469 cat >>confdefs.h <<_ACEOF 12470#define PTYGROUP $vim_cv_tty_group 12471_ACEOF 12472 12473 if test "x$vim_cv_tty_mode" = "x" ; then 12474 as_fn_error $? "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (probably 0620)" "$LINENO" 5 12475 else 12476 $as_echo "#define PTYMODE 0620" >>confdefs.h 12477 12478 fi 12479fi 12480 12481 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12483$as_echo_n "checking return type of signal handlers... " >&6; } 12484if ${ac_cv_type_signal+:} false; then : 12485 $as_echo_n "(cached) " >&6 12486else 12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12488/* end confdefs.h. */ 12489#include <sys/types.h> 12490#include <signal.h> 12491 12492int 12493main () 12494{ 12495return *(signal (0, 0)) (0) == 1; 12496 ; 12497 return 0; 12498} 12499_ACEOF 12500if ac_fn_c_try_compile "$LINENO"; then : 12501 ac_cv_type_signal=int 12502else 12503 ac_cv_type_signal=void 12504fi 12505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12506fi 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12508$as_echo "$ac_cv_type_signal" >&6; } 12509 12510cat >>confdefs.h <<_ACEOF 12511#define RETSIGTYPE $ac_cv_type_signal 12512_ACEOF 12513 12514 12515 12516if test $ac_cv_type_signal = void; then 12517 $as_echo "#define SIGRETURN return" >>confdefs.h 12518 12519else 12520 $as_echo "#define SIGRETURN return 0" >>confdefs.h 12521 12522fi 12523 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 12525$as_echo_n "checking for struct sigcontext... " >&6; } 12526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12527/* end confdefs.h. */ 12528 12529#include <signal.h> 12530test_sig() 12531{ 12532 struct sigcontext *scont; 12533 scont = (struct sigcontext *)0; 12534 return 1; 12535} 12536int 12537main () 12538{ 12539 12540 ; 12541 return 0; 12542} 12543_ACEOF 12544if ac_fn_c_try_compile "$LINENO"; then : 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12546$as_echo "yes" >&6; } 12547 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 12548 12549else 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12551$as_echo "no" >&6; } 12552fi 12553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12554 12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 12556$as_echo_n "checking getcwd implementation is broken... " >&6; } 12557if ${vim_cv_getcwd_broken+:} false; then : 12558 $as_echo_n "(cached) " >&6 12559else 12560 12561 if test "$cross_compiling" = yes; then : 12562 12563 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 12564 12565else 12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12567/* end confdefs.h. */ 12568 12569#include "confdefs.h" 12570#ifdef HAVE_UNISTD_H 12571#include <unistd.h> 12572#endif 12573char *dagger[] = { "IFS=pwd", 0 }; 12574main() 12575{ 12576 char buffer[500]; 12577 extern char **environ; 12578 environ = dagger; 12579 return getcwd(buffer, 500) ? 0 : 1; 12580} 12581 12582_ACEOF 12583if ac_fn_c_try_run "$LINENO"; then : 12584 12585 vim_cv_getcwd_broken=no 12586 12587else 12588 12589 vim_cv_getcwd_broken=yes 12590 12591fi 12592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12593 conftest.$ac_objext conftest.beam conftest.$ac_ext 12594fi 12595 12596 12597fi 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12599$as_echo "$vim_cv_getcwd_broken" >&6; } 12600 12601if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12602 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12603 12604fi 12605 12606for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \ 12607 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \ 12608 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12609 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12610 sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \ 12611 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 12612 usleep utime utimes mblen ftruncate 12613do : 12614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12615ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12616if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12617 cat >>confdefs.h <<_ACEOF 12618#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12619_ACEOF 12620 12621fi 12622done 12623 12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12625$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12626if ${ac_cv_sys_largefile_source+:} false; then : 12627 $as_echo_n "(cached) " >&6 12628else 12629 while :; do 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632#include <sys/types.h> /* for off_t */ 12633 #include <stdio.h> 12634int 12635main () 12636{ 12637int (*fp) (FILE *, off_t, int) = fseeko; 12638 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12639 ; 12640 return 0; 12641} 12642_ACEOF 12643if ac_fn_c_try_link "$LINENO"; then : 12644 ac_cv_sys_largefile_source=no; break 12645fi 12646rm -f core conftest.err conftest.$ac_objext \ 12647 conftest$ac_exeext conftest.$ac_ext 12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12649/* end confdefs.h. */ 12650#define _LARGEFILE_SOURCE 1 12651#include <sys/types.h> /* for off_t */ 12652 #include <stdio.h> 12653int 12654main () 12655{ 12656int (*fp) (FILE *, off_t, int) = fseeko; 12657 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12658 ; 12659 return 0; 12660} 12661_ACEOF 12662if ac_fn_c_try_link "$LINENO"; then : 12663 ac_cv_sys_largefile_source=1; break 12664fi 12665rm -f core conftest.err conftest.$ac_objext \ 12666 conftest$ac_exeext conftest.$ac_ext 12667 ac_cv_sys_largefile_source=unknown 12668 break 12669done 12670fi 12671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12672$as_echo "$ac_cv_sys_largefile_source" >&6; } 12673case $ac_cv_sys_largefile_source in #( 12674 no | unknown) ;; 12675 *) 12676cat >>confdefs.h <<_ACEOF 12677#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12678_ACEOF 12679;; 12680esac 12681rm -rf conftest* 12682 12683# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12684# in glibc 2.1.3, but that breaks too many other things. 12685# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12686if test $ac_cv_sys_largefile_source != unknown; then 12687 12688$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12689 12690fi 12691 12692 12693# Check whether --enable-largefile was given. 12694if test "${enable_largefile+set}" = set; then : 12695 enableval=$enable_largefile; 12696fi 12697 12698if test "$enable_largefile" != no; then 12699 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12701$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12702if ${ac_cv_sys_largefile_CC+:} false; then : 12703 $as_echo_n "(cached) " >&6 12704else 12705 ac_cv_sys_largefile_CC=no 12706 if test "$GCC" != yes; then 12707 ac_save_CC=$CC 12708 while :; do 12709 # IRIX 6.2 and later do not support large files by default, 12710 # so use the C compiler's -n32 option if that helps. 12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12712/* end confdefs.h. */ 12713#include <sys/types.h> 12714 /* Check that off_t can represent 2**63 - 1 correctly. 12715 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12716 since some C++ compilers masquerading as C compilers 12717 incorrectly reject 9223372036854775807. */ 12718#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12720 && LARGE_OFF_T % 2147483647 == 1) 12721 ? 1 : -1]; 12722int 12723main () 12724{ 12725 12726 ; 12727 return 0; 12728} 12729_ACEOF 12730 if ac_fn_c_try_compile "$LINENO"; then : 12731 break 12732fi 12733rm -f core conftest.err conftest.$ac_objext 12734 CC="$CC -n32" 12735 if ac_fn_c_try_compile "$LINENO"; then : 12736 ac_cv_sys_largefile_CC=' -n32'; break 12737fi 12738rm -f core conftest.err conftest.$ac_objext 12739 break 12740 done 12741 CC=$ac_save_CC 12742 rm -f conftest.$ac_ext 12743 fi 12744fi 12745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12746$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12747 if test "$ac_cv_sys_largefile_CC" != no; then 12748 CC=$CC$ac_cv_sys_largefile_CC 12749 fi 12750 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12752$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12753if ${ac_cv_sys_file_offset_bits+:} false; then : 12754 $as_echo_n "(cached) " >&6 12755else 12756 while :; do 12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12758/* end confdefs.h. */ 12759#include <sys/types.h> 12760 /* Check that off_t can represent 2**63 - 1 correctly. 12761 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12762 since some C++ compilers masquerading as C compilers 12763 incorrectly reject 9223372036854775807. */ 12764#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12766 && LARGE_OFF_T % 2147483647 == 1) 12767 ? 1 : -1]; 12768int 12769main () 12770{ 12771 12772 ; 12773 return 0; 12774} 12775_ACEOF 12776if ac_fn_c_try_compile "$LINENO"; then : 12777 ac_cv_sys_file_offset_bits=no; break 12778fi 12779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12781/* end confdefs.h. */ 12782#define _FILE_OFFSET_BITS 64 12783#include <sys/types.h> 12784 /* Check that off_t can represent 2**63 - 1 correctly. 12785 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12786 since some C++ compilers masquerading as C compilers 12787 incorrectly reject 9223372036854775807. */ 12788#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12790 && LARGE_OFF_T % 2147483647 == 1) 12791 ? 1 : -1]; 12792int 12793main () 12794{ 12795 12796 ; 12797 return 0; 12798} 12799_ACEOF 12800if ac_fn_c_try_compile "$LINENO"; then : 12801 ac_cv_sys_file_offset_bits=64; break 12802fi 12803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12804 ac_cv_sys_file_offset_bits=unknown 12805 break 12806done 12807fi 12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12809$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12810case $ac_cv_sys_file_offset_bits in #( 12811 no | unknown) ;; 12812 *) 12813cat >>confdefs.h <<_ACEOF 12814#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12815_ACEOF 12816;; 12817esac 12818rm -rf conftest* 12819 if test $ac_cv_sys_file_offset_bits = unknown; then 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12821$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12822if ${ac_cv_sys_large_files+:} false; then : 12823 $as_echo_n "(cached) " >&6 12824else 12825 while :; do 12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12827/* end confdefs.h. */ 12828#include <sys/types.h> 12829 /* Check that off_t can represent 2**63 - 1 correctly. 12830 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12831 since some C++ compilers masquerading as C compilers 12832 incorrectly reject 9223372036854775807. */ 12833#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12835 && LARGE_OFF_T % 2147483647 == 1) 12836 ? 1 : -1]; 12837int 12838main () 12839{ 12840 12841 ; 12842 return 0; 12843} 12844_ACEOF 12845if ac_fn_c_try_compile "$LINENO"; then : 12846 ac_cv_sys_large_files=no; break 12847fi 12848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850/* end confdefs.h. */ 12851#define _LARGE_FILES 1 12852#include <sys/types.h> 12853 /* Check that off_t can represent 2**63 - 1 correctly. 12854 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12855 since some C++ compilers masquerading as C compilers 12856 incorrectly reject 9223372036854775807. */ 12857#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12859 && LARGE_OFF_T % 2147483647 == 1) 12860 ? 1 : -1]; 12861int 12862main () 12863{ 12864 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869if ac_fn_c_try_compile "$LINENO"; then : 12870 ac_cv_sys_large_files=1; break 12871fi 12872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12873 ac_cv_sys_large_files=unknown 12874 break 12875done 12876fi 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12878$as_echo "$ac_cv_sys_large_files" >&6; } 12879case $ac_cv_sys_large_files in #( 12880 no | unknown) ;; 12881 *) 12882cat >>confdefs.h <<_ACEOF 12883#define _LARGE_FILES $ac_cv_sys_large_files 12884_ACEOF 12885;; 12886esac 12887rm -rf conftest* 12888 fi 12889 12890 12891fi 12892 12893 12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 12895$as_echo_n "checking for st_blksize... " >&6; } 12896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12897/* end confdefs.h. */ 12898#include <sys/types.h> 12899#include <sys/stat.h> 12900int 12901main () 12902{ 12903 struct stat st; 12904 int n; 12905 12906 stat("/", &st); 12907 n = (int)st.st_blksize; 12908 ; 12909 return 0; 12910} 12911_ACEOF 12912if ac_fn_c_try_compile "$LINENO"; then : 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12914$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12915 12916else 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12918$as_echo "no" >&6; } 12919fi 12920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12921 12922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 12923$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 12924if ${vim_cv_stat_ignores_slash+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 12928 if test "$cross_compiling" = yes; then : 12929 12930 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 12931 12932else 12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12934/* end confdefs.h. */ 12935 12936#include "confdefs.h" 12937#if STDC_HEADERS 12938# include <stdlib.h> 12939# include <stddef.h> 12940#endif 12941#include <sys/types.h> 12942#include <sys/stat.h> 12943main() {struct stat st; exit(stat("configure/", &st) != 0); } 12944 12945_ACEOF 12946if ac_fn_c_try_run "$LINENO"; then : 12947 12948 vim_cv_stat_ignores_slash=yes 12949 12950else 12951 12952 vim_cv_stat_ignores_slash=no 12953 12954fi 12955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12956 conftest.$ac_objext conftest.beam conftest.$ac_ext 12957fi 12958 12959 12960fi 12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 12962$as_echo "$vim_cv_stat_ignores_slash" >&6; } 12963 12964if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 12965 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 12966 12967fi 12968 12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 12970$as_echo_n "checking for iconv_open()... " >&6; } 12971save_LIBS="$LIBS" 12972LIBS="$LIBS -liconv" 12973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12974/* end confdefs.h. */ 12975 12976#ifdef HAVE_ICONV_H 12977# include <iconv.h> 12978#endif 12979 12980int 12981main () 12982{ 12983iconv_open("fr", "to"); 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988if ac_fn_c_try_link "$LINENO"; then : 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 12990$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12991 12992else 12993 LIBS="$save_LIBS" 12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12995/* end confdefs.h. */ 12996 12997#ifdef HAVE_ICONV_H 12998# include <iconv.h> 12999#endif 13000 13001int 13002main () 13003{ 13004iconv_open("fr", "to"); 13005 ; 13006 return 0; 13007} 13008_ACEOF 13009if ac_fn_c_try_link "$LINENO"; then : 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13011$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13012 13013else 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13015$as_echo "no" >&6; } 13016fi 13017rm -f core conftest.err conftest.$ac_objext \ 13018 conftest$ac_exeext conftest.$ac_ext 13019fi 13020rm -f core conftest.err conftest.$ac_objext \ 13021 conftest$ac_exeext conftest.$ac_ext 13022 13023 13024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 13025$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 13026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028 13029#ifdef HAVE_LANGINFO_H 13030# include <langinfo.h> 13031#endif 13032 13033int 13034main () 13035{ 13036char *cs = nl_langinfo(CODESET); 13037 ; 13038 return 0; 13039} 13040_ACEOF 13041if ac_fn_c_try_link "$LINENO"; then : 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13043$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 13044 13045else 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13047$as_echo "no" >&6; } 13048fi 13049rm -f core conftest.err conftest.$ac_objext \ 13050 conftest$ac_exeext conftest.$ac_ext 13051 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 13053$as_echo_n "checking for strtod in -lm... " >&6; } 13054if ${ac_cv_lib_m_strtod+:} false; then : 13055 $as_echo_n "(cached) " >&6 13056else 13057 ac_check_lib_save_LIBS=$LIBS 13058LIBS="-lm $LIBS" 13059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13060/* end confdefs.h. */ 13061 13062/* Override any GCC internal prototype to avoid an error. 13063 Use char because int might match the return type of a GCC 13064 builtin and then its argument prototype would still apply. */ 13065#ifdef __cplusplus 13066extern "C" 13067#endif 13068char strtod (); 13069int 13070main () 13071{ 13072return strtod (); 13073 ; 13074 return 0; 13075} 13076_ACEOF 13077if ac_fn_c_try_link "$LINENO"; then : 13078 ac_cv_lib_m_strtod=yes 13079else 13080 ac_cv_lib_m_strtod=no 13081fi 13082rm -f core conftest.err conftest.$ac_objext \ 13083 conftest$ac_exeext conftest.$ac_ext 13084LIBS=$ac_check_lib_save_LIBS 13085fi 13086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 13087$as_echo "$ac_cv_lib_m_strtod" >&6; } 13088if test "x$ac_cv_lib_m_strtod" = xyes; then : 13089 cat >>confdefs.h <<_ACEOF 13090#define HAVE_LIBM 1 13091_ACEOF 13092 13093 LIBS="-lm $LIBS" 13094 13095fi 13096 13097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 13098$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 13099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100/* end confdefs.h. */ 13101 13102#ifdef HAVE_MATH_H 13103# include <math.h> 13104#endif 13105#if STDC_HEADERS 13106# include <stdlib.h> 13107# include <stddef.h> 13108#endif 13109 13110int 13111main () 13112{ 13113char *s; double d; 13114 d = strtod("1.1", &s); 13115 d = fabs(1.11); 13116 d = ceil(1.11); 13117 d = floor(1.11); 13118 d = log10(1.11); 13119 d = pow(1.11, 2.22); 13120 d = sqrt(1.11); 13121 d = sin(1.11); 13122 d = cos(1.11); 13123 d = atan(1.11); 13124 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" >&5 13131$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 13132 13133else 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13135$as_echo "no" >&6; } 13136fi 13137rm -f core conftest.err conftest.$ac_objext \ 13138 conftest$ac_exeext conftest.$ac_ext 13139 13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 13141$as_echo_n "checking for isinf()... " >&6; } 13142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13143/* end confdefs.h. */ 13144 13145#ifdef HAVE_MATH_H 13146# include <math.h> 13147#endif 13148#if STDC_HEADERS 13149# include <stdlib.h> 13150# include <stddef.h> 13151#endif 13152 13153int 13154main () 13155{ 13156int r = isinf(1.11); 13157 ; 13158 return 0; 13159} 13160_ACEOF 13161if ac_fn_c_try_link "$LINENO"; then : 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13163$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 13164 13165else 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13167$as_echo "no" >&6; } 13168fi 13169rm -f core conftest.err conftest.$ac_objext \ 13170 conftest$ac_exeext conftest.$ac_ext 13171 13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 13173$as_echo_n "checking for isnan()... " >&6; } 13174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176 13177#ifdef HAVE_MATH_H 13178# include <math.h> 13179#endif 13180#if STDC_HEADERS 13181# include <stdlib.h> 13182# include <stddef.h> 13183#endif 13184 13185int 13186main () 13187{ 13188int r = isnan(1.11); 13189 ; 13190 return 0; 13191} 13192_ACEOF 13193if ac_fn_c_try_link "$LINENO"; then : 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13195$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 13196 13197else 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13199$as_echo "no" >&6; } 13200fi 13201rm -f core conftest.err conftest.$ac_objext \ 13202 conftest$ac_exeext conftest.$ac_ext 13203 13204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 13205$as_echo_n "checking --disable-acl argument... " >&6; } 13206# Check whether --enable-acl was given. 13207if test "${enable_acl+set}" = set; then : 13208 enableval=$enable_acl; 13209else 13210 enable_acl="yes" 13211fi 13212 13213if test "$enable_acl" = "yes"; then 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13215$as_echo "no" >&6; } 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 13217$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 13218if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 13219 $as_echo_n "(cached) " >&6 13220else 13221 ac_check_lib_save_LIBS=$LIBS 13222LIBS="-lposix1e $LIBS" 13223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13224/* end confdefs.h. */ 13225 13226/* Override any GCC internal prototype to avoid an error. 13227 Use char because int might match the return type of a GCC 13228 builtin and then its argument prototype would still apply. */ 13229#ifdef __cplusplus 13230extern "C" 13231#endif 13232char acl_get_file (); 13233int 13234main () 13235{ 13236return acl_get_file (); 13237 ; 13238 return 0; 13239} 13240_ACEOF 13241if ac_fn_c_try_link "$LINENO"; then : 13242 ac_cv_lib_posix1e_acl_get_file=yes 13243else 13244 ac_cv_lib_posix1e_acl_get_file=no 13245fi 13246rm -f core conftest.err conftest.$ac_objext \ 13247 conftest$ac_exeext conftest.$ac_ext 13248LIBS=$ac_check_lib_save_LIBS 13249fi 13250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 13251$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 13252if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 13253 LIBS="$LIBS -lposix1e" 13254else 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 13256$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 13257if ${ac_cv_lib_acl_acl_get_file+:} false; then : 13258 $as_echo_n "(cached) " >&6 13259else 13260 ac_check_lib_save_LIBS=$LIBS 13261LIBS="-lacl $LIBS" 13262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13263/* end confdefs.h. */ 13264 13265/* Override any GCC internal prototype to avoid an error. 13266 Use char because int might match the return type of a GCC 13267 builtin and then its argument prototype would still apply. */ 13268#ifdef __cplusplus 13269extern "C" 13270#endif 13271char acl_get_file (); 13272int 13273main () 13274{ 13275return acl_get_file (); 13276 ; 13277 return 0; 13278} 13279_ACEOF 13280if ac_fn_c_try_link "$LINENO"; then : 13281 ac_cv_lib_acl_acl_get_file=yes 13282else 13283 ac_cv_lib_acl_acl_get_file=no 13284fi 13285rm -f core conftest.err conftest.$ac_objext \ 13286 conftest$ac_exeext conftest.$ac_ext 13287LIBS=$ac_check_lib_save_LIBS 13288fi 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 13290$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 13291if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 13292 LIBS="$LIBS -lacl" 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 13294$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 13295if ${ac_cv_lib_attr_fgetxattr+:} false; then : 13296 $as_echo_n "(cached) " >&6 13297else 13298 ac_check_lib_save_LIBS=$LIBS 13299LIBS="-lattr $LIBS" 13300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13301/* end confdefs.h. */ 13302 13303/* Override any GCC internal prototype to avoid an error. 13304 Use char because int might match the return type of a GCC 13305 builtin and then its argument prototype would still apply. */ 13306#ifdef __cplusplus 13307extern "C" 13308#endif 13309char fgetxattr (); 13310int 13311main () 13312{ 13313return fgetxattr (); 13314 ; 13315 return 0; 13316} 13317_ACEOF 13318if ac_fn_c_try_link "$LINENO"; then : 13319 ac_cv_lib_attr_fgetxattr=yes 13320else 13321 ac_cv_lib_attr_fgetxattr=no 13322fi 13323rm -f core conftest.err conftest.$ac_objext \ 13324 conftest$ac_exeext conftest.$ac_ext 13325LIBS=$ac_check_lib_save_LIBS 13326fi 13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 13328$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 13329if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 13330 LIBS="$LIBS -lattr" 13331fi 13332 13333fi 13334 13335fi 13336 13337 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 13339$as_echo_n "checking for POSIX ACL support... " >&6; } 13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13341/* end confdefs.h. */ 13342 13343#include <sys/types.h> 13344#ifdef HAVE_SYS_ACL_H 13345# include <sys/acl.h> 13346#endif 13347acl_t acl; 13348int 13349main () 13350{ 13351acl = acl_get_file("foo", ACL_TYPE_ACCESS); 13352 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 13353 acl_free(acl); 13354 ; 13355 return 0; 13356} 13357_ACEOF 13358if ac_fn_c_try_link "$LINENO"; then : 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13360$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 13361 13362else 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13364$as_echo "no" >&6; } 13365fi 13366rm -f core conftest.err conftest.$ac_objext \ 13367 conftest$ac_exeext conftest.$ac_ext 13368 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 13370$as_echo_n "checking for acl_get in -lsec... " >&6; } 13371if ${ac_cv_lib_sec_acl_get+:} false; then : 13372 $as_echo_n "(cached) " >&6 13373else 13374 ac_check_lib_save_LIBS=$LIBS 13375LIBS="-lsec $LIBS" 13376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13377/* end confdefs.h. */ 13378 13379/* Override any GCC internal prototype to avoid an error. 13380 Use char because int might match the return type of a GCC 13381 builtin and then its argument prototype would still apply. */ 13382#ifdef __cplusplus 13383extern "C" 13384#endif 13385char acl_get (); 13386int 13387main () 13388{ 13389return acl_get (); 13390 ; 13391 return 0; 13392} 13393_ACEOF 13394if ac_fn_c_try_link "$LINENO"; then : 13395 ac_cv_lib_sec_acl_get=yes 13396else 13397 ac_cv_lib_sec_acl_get=no 13398fi 13399rm -f core conftest.err conftest.$ac_objext \ 13400 conftest$ac_exeext conftest.$ac_ext 13401LIBS=$ac_check_lib_save_LIBS 13402fi 13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 13404$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 13405if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 13406 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 13407 13408else 13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 13410$as_echo_n "checking for Solaris ACL support... " >&6; } 13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13412/* end confdefs.h. */ 13413 13414#ifdef HAVE_SYS_ACL_H 13415# include <sys/acl.h> 13416#endif 13417int 13418main () 13419{ 13420acl("foo", GETACLCNT, 0, NULL); 13421 13422 ; 13423 return 0; 13424} 13425_ACEOF 13426if ac_fn_c_try_link "$LINENO"; then : 13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13428$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 13429 13430else 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13432$as_echo "no" >&6; } 13433fi 13434rm -f core conftest.err conftest.$ac_objext \ 13435 conftest$ac_exeext conftest.$ac_ext 13436fi 13437 13438 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 13440$as_echo_n "checking for AIX ACL support... " >&6; } 13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13442/* end confdefs.h. */ 13443 13444#if STDC_HEADERS 13445# include <stdlib.h> 13446# include <stddef.h> 13447#endif 13448#ifdef HAVE_SYS_ACL_H 13449# include <sys/acl.h> 13450#endif 13451#ifdef HAVE_SYS_ACCESS_H 13452# include <sys/access.h> 13453#endif 13454#define _ALL_SOURCE 13455 13456#include <sys/stat.h> 13457 13458int aclsize; 13459struct acl *aclent; 13460int 13461main () 13462{ 13463aclsize = sizeof(struct acl); 13464 aclent = (void *)malloc(aclsize); 13465 statacl("foo", STX_NORMAL, aclent, aclsize); 13466 13467 ; 13468 return 0; 13469} 13470_ACEOF 13471if ac_fn_c_try_link "$LINENO"; then : 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13473$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 13474 13475else 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13477$as_echo "no" >&6; } 13478fi 13479rm -f core conftest.err conftest.$ac_objext \ 13480 conftest$ac_exeext conftest.$ac_ext 13481else 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13483$as_echo "yes" >&6; } 13484fi 13485 13486if test "x$GTK_CFLAGS" != "x"; then 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 13488$as_echo_n "checking for pango_shape_full... " >&6; } 13489 ac_save_CFLAGS="$CFLAGS" 13490 ac_save_LIBS="$LIBS" 13491 CFLAGS="$CFLAGS $GTK_CFLAGS" 13492 LIBS="$LIBS $GTK_LIBS" 13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13494/* end confdefs.h. */ 13495#include <gtk/gtk.h> 13496int 13497main () 13498{ 13499 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 13500 ; 13501 return 0; 13502} 13503_ACEOF 13504if ac_fn_c_try_link "$LINENO"; then : 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13506$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 13507 13508else 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13510$as_echo "no" >&6; } 13511fi 13512rm -f core conftest.err conftest.$ac_objext \ 13513 conftest$ac_exeext conftest.$ac_ext 13514 CFLAGS="$ac_save_CFLAGS" 13515 LIBS="$ac_save_LIBS" 13516fi 13517 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 13519$as_echo_n "checking --disable-gpm argument... " >&6; } 13520# Check whether --enable-gpm was given. 13521if test "${enable_gpm+set}" = set; then : 13522 enableval=$enable_gpm; 13523else 13524 enable_gpm="yes" 13525fi 13526 13527 13528if test "$enable_gpm" = "yes"; then 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13530$as_echo "no" >&6; } 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 13532$as_echo_n "checking for gpm... " >&6; } 13533if ${vi_cv_have_gpm+:} false; then : 13534 $as_echo_n "(cached) " >&6 13535else 13536 olibs="$LIBS" ; LIBS="-lgpm" 13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13538/* end confdefs.h. */ 13539#include <gpm.h> 13540 #include <linux/keyboard.h> 13541int 13542main () 13543{ 13544Gpm_GetLibVersion(NULL); 13545 ; 13546 return 0; 13547} 13548_ACEOF 13549if ac_fn_c_try_link "$LINENO"; then : 13550 vi_cv_have_gpm=yes 13551else 13552 vi_cv_have_gpm=no 13553fi 13554rm -f core conftest.err conftest.$ac_objext \ 13555 conftest$ac_exeext conftest.$ac_ext 13556 LIBS="$olibs" 13557 13558fi 13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 13560$as_echo "$vi_cv_have_gpm" >&6; } 13561 if test $vi_cv_have_gpm = yes; then 13562 LIBS="$LIBS -lgpm" 13563 $as_echo "#define HAVE_GPM 1" >>confdefs.h 13564 13565 fi 13566else 13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13568$as_echo "yes" >&6; } 13569fi 13570 13571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 13572$as_echo_n "checking --disable-sysmouse argument... " >&6; } 13573# Check whether --enable-sysmouse was given. 13574if test "${enable_sysmouse+set}" = set; then : 13575 enableval=$enable_sysmouse; 13576else 13577 enable_sysmouse="yes" 13578fi 13579 13580 13581if test "$enable_sysmouse" = "yes"; then 13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13583$as_echo "no" >&6; } 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13585$as_echo_n "checking for sysmouse... " >&6; } 13586if ${vi_cv_have_sysmouse+:} false; then : 13587 $as_echo_n "(cached) " >&6 13588else 13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13590/* end confdefs.h. */ 13591#include <sys/consio.h> 13592 #include <signal.h> 13593 #include <sys/fbio.h> 13594int 13595main () 13596{ 13597struct mouse_info mouse; 13598 mouse.operation = MOUSE_MODE; 13599 mouse.operation = MOUSE_SHOW; 13600 mouse.u.mode.mode = 0; 13601 mouse.u.mode.signal = SIGUSR2; 13602 ; 13603 return 0; 13604} 13605_ACEOF 13606if ac_fn_c_try_link "$LINENO"; then : 13607 vi_cv_have_sysmouse=yes 13608else 13609 vi_cv_have_sysmouse=no 13610fi 13611rm -f core conftest.err conftest.$ac_objext \ 13612 conftest$ac_exeext conftest.$ac_ext 13613 13614fi 13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13616$as_echo "$vi_cv_have_sysmouse" >&6; } 13617 if test $vi_cv_have_sysmouse = yes; then 13618 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13619 13620 fi 13621else 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13623$as_echo "yes" >&6; } 13624fi 13625 13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13627$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13629/* end confdefs.h. */ 13630#if HAVE_FCNTL_H 13631# include <fcntl.h> 13632#endif 13633int 13634main () 13635{ 13636 int flag = FD_CLOEXEC; 13637 ; 13638 return 0; 13639} 13640_ACEOF 13641if ac_fn_c_try_compile "$LINENO"; then : 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13643$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13644 13645else 13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13647$as_echo "not usable" >&6; } 13648fi 13649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13650 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13652$as_echo_n "checking for rename... " >&6; } 13653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655#include <stdio.h> 13656int 13657main () 13658{ 13659rename("this", "that") 13660 ; 13661 return 0; 13662} 13663_ACEOF 13664if ac_fn_c_try_link "$LINENO"; then : 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13666$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13667 13668else 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13670$as_echo "no" >&6; } 13671fi 13672rm -f core conftest.err conftest.$ac_objext \ 13673 conftest$ac_exeext conftest.$ac_ext 13674 13675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13676$as_echo_n "checking for sysctl... " >&6; } 13677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13678/* end confdefs.h. */ 13679#include <sys/types.h> 13680#include <sys/sysctl.h> 13681int 13682main () 13683{ 13684 int mib[2], r; 13685 size_t len; 13686 13687 mib[0] = CTL_HW; 13688 mib[1] = HW_USERMEM; 13689 len = sizeof(r); 13690 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13691 13692 ; 13693 return 0; 13694} 13695_ACEOF 13696if ac_fn_c_try_compile "$LINENO"; then : 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13698$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13699 13700else 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13702$as_echo "not usable" >&6; } 13703fi 13704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13705 13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13707$as_echo_n "checking for sysinfo... " >&6; } 13708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13709/* end confdefs.h. */ 13710#include <sys/types.h> 13711#include <sys/sysinfo.h> 13712int 13713main () 13714{ 13715 struct sysinfo sinfo; 13716 int t; 13717 13718 (void)sysinfo(&sinfo); 13719 t = sinfo.totalram; 13720 13721 ; 13722 return 0; 13723} 13724_ACEOF 13725if ac_fn_c_try_compile "$LINENO"; then : 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13727$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13728 13729else 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13731$as_echo "not usable" >&6; } 13732fi 13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13734 13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13736$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13738/* end confdefs.h. */ 13739#include <sys/types.h> 13740#include <sys/sysinfo.h> 13741int 13742main () 13743{ 13744 struct sysinfo sinfo; 13745 sinfo.mem_unit = 1; 13746 13747 ; 13748 return 0; 13749} 13750_ACEOF 13751if ac_fn_c_try_compile "$LINENO"; then : 13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13753$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13754 13755else 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13757$as_echo "no" >&6; } 13758fi 13759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13760 13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13762$as_echo_n "checking for sysconf... " >&6; } 13763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13764/* end confdefs.h. */ 13765#include <unistd.h> 13766int 13767main () 13768{ 13769 (void)sysconf(_SC_PAGESIZE); 13770 (void)sysconf(_SC_PHYS_PAGES); 13771 13772 ; 13773 return 0; 13774} 13775_ACEOF 13776if ac_fn_c_try_compile "$LINENO"; then : 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13778$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13779 13780else 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13782$as_echo "not usable" >&6; } 13783fi 13784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13785 13786# The cast to long int works around a bug in the HP C Compiler 13787# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13788# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13789# This bug is HP SR number 8606223364. 13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13791$as_echo_n "checking size of int... " >&6; } 13792if ${ac_cv_sizeof_int+:} false; then : 13793 $as_echo_n "(cached) " >&6 13794else 13795 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13796 13797else 13798 if test "$ac_cv_type_int" = yes; then 13799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13801as_fn_error 77 "cannot compute sizeof (int) 13802See \`config.log' for more details" "$LINENO" 5; } 13803 else 13804 ac_cv_sizeof_int=0 13805 fi 13806fi 13807 13808fi 13809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13810$as_echo "$ac_cv_sizeof_int" >&6; } 13811 13812 13813 13814cat >>confdefs.h <<_ACEOF 13815#define SIZEOF_INT $ac_cv_sizeof_int 13816_ACEOF 13817 13818 13819# The cast to long int works around a bug in the HP C Compiler 13820# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13821# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13822# This bug is HP SR number 8606223364. 13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13824$as_echo_n "checking size of long... " >&6; } 13825if ${ac_cv_sizeof_long+:} false; then : 13826 $as_echo_n "(cached) " >&6 13827else 13828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13829 13830else 13831 if test "$ac_cv_type_long" = yes; then 13832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13834as_fn_error 77 "cannot compute sizeof (long) 13835See \`config.log' for more details" "$LINENO" 5; } 13836 else 13837 ac_cv_sizeof_long=0 13838 fi 13839fi 13840 13841fi 13842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13843$as_echo "$ac_cv_sizeof_long" >&6; } 13844 13845 13846 13847cat >>confdefs.h <<_ACEOF 13848#define SIZEOF_LONG $ac_cv_sizeof_long 13849_ACEOF 13850 13851 13852# The cast to long int works around a bug in the HP C Compiler 13853# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13854# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13855# This bug is HP SR number 8606223364. 13856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13857$as_echo_n "checking size of time_t... " >&6; } 13858if ${ac_cv_sizeof_time_t+:} false; then : 13859 $as_echo_n "(cached) " >&6 13860else 13861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 13862 13863else 13864 if test "$ac_cv_type_time_t" = yes; then 13865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13867as_fn_error 77 "cannot compute sizeof (time_t) 13868See \`config.log' for more details" "$LINENO" 5; } 13869 else 13870 ac_cv_sizeof_time_t=0 13871 fi 13872fi 13873 13874fi 13875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 13876$as_echo "$ac_cv_sizeof_time_t" >&6; } 13877 13878 13879 13880cat >>confdefs.h <<_ACEOF 13881#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 13882_ACEOF 13883 13884 13885# The cast to long int works around a bug in the HP C Compiler 13886# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13887# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13888# This bug is HP SR number 8606223364. 13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 13890$as_echo_n "checking size of off_t... " >&6; } 13891if ${ac_cv_sizeof_off_t+:} false; then : 13892 $as_echo_n "(cached) " >&6 13893else 13894 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 13895 13896else 13897 if test "$ac_cv_type_off_t" = yes; then 13898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13900as_fn_error 77 "cannot compute sizeof (off_t) 13901See \`config.log' for more details" "$LINENO" 5; } 13902 else 13903 ac_cv_sizeof_off_t=0 13904 fi 13905fi 13906 13907fi 13908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 13909$as_echo "$ac_cv_sizeof_off_t" >&6; } 13910 13911 13912 13913cat >>confdefs.h <<_ACEOF 13914#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13915_ACEOF 13916 13917 13918 13919cat >>confdefs.h <<_ACEOF 13920#define VIM_SIZEOF_INT $ac_cv_sizeof_int 13921_ACEOF 13922 13923cat >>confdefs.h <<_ACEOF 13924#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 13925_ACEOF 13926 13927 13928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 13929$as_echo_n "checking uint32_t is 32 bits... " >&6; } 13930if test "$cross_compiling" = yes; then : 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 13932$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 13933else 13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13935/* end confdefs.h. */ 13936 13937#ifdef HAVE_STDINT_H 13938# include <stdint.h> 13939#endif 13940#ifdef HAVE_INTTYPES_H 13941# include <inttypes.h> 13942#endif 13943main() { 13944 uint32_t nr1 = (uint32_t)-1; 13945 uint32_t nr2 = (uint32_t)0xffffffffUL; 13946 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 13947 exit(0); 13948} 13949_ACEOF 13950if ac_fn_c_try_run "$LINENO"; then : 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13952$as_echo "ok" >&6; } 13953else 13954 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 13955fi 13956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13957 conftest.$ac_objext conftest.beam conftest.$ac_ext 13958fi 13959 13960 13961 13962bcopy_test_prog=' 13963#include "confdefs.h" 13964#ifdef HAVE_STRING_H 13965# include <string.h> 13966#endif 13967#if STDC_HEADERS 13968# include <stdlib.h> 13969# include <stddef.h> 13970#endif 13971main() { 13972 char buf[10]; 13973 strcpy(buf, "abcdefghi"); 13974 mch_memmove(buf, buf + 2, 3); 13975 if (strncmp(buf, "ababcf", 6)) 13976 exit(1); 13977 strcpy(buf, "abcdefghi"); 13978 mch_memmove(buf + 2, buf, 3); 13979 if (strncmp(buf, "cdedef", 6)) 13980 exit(1); 13981 exit(0); /* libc version works properly. */ 13982}' 13983 13984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 13985$as_echo_n "checking whether memmove handles overlaps... " >&6; } 13986if ${vim_cv_memmove_handles_overlap+:} false; then : 13987 $as_echo_n "(cached) " >&6 13988else 13989 13990 if test "$cross_compiling" = yes; then : 13991 13992 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 13993 13994else 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 13998_ACEOF 13999if ac_fn_c_try_run "$LINENO"; then : 14000 14001 vim_cv_memmove_handles_overlap=yes 14002 14003else 14004 14005 vim_cv_memmove_handles_overlap=no 14006 14007fi 14008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14009 conftest.$ac_objext conftest.beam conftest.$ac_ext 14010fi 14011 14012 14013fi 14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 14015$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 14016 14017if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 14018 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 14019 14020else 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 14022$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 14023if ${vim_cv_bcopy_handles_overlap+:} false; then : 14024 $as_echo_n "(cached) " >&6 14025else 14026 14027 if test "$cross_compiling" = yes; then : 14028 14029 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 14030 14031else 14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 14035_ACEOF 14036if ac_fn_c_try_run "$LINENO"; then : 14037 14038 vim_cv_bcopy_handles_overlap=yes 14039 14040else 14041 14042 vim_cv_bcopy_handles_overlap=no 14043 14044fi 14045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14046 conftest.$ac_objext conftest.beam conftest.$ac_ext 14047fi 14048 14049 14050fi 14051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 14052$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 14053 14054 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 14055 $as_echo "#define USEBCOPY 1" >>confdefs.h 14056 14057 else 14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 14059$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 14060if ${vim_cv_memcpy_handles_overlap+:} false; then : 14061 $as_echo_n "(cached) " >&6 14062else 14063 14064 if test "$cross_compiling" = yes; then : 14065 14066 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 14067 14068else 14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14070/* end confdefs.h. */ 14071#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 14072_ACEOF 14073if ac_fn_c_try_run "$LINENO"; then : 14074 14075 vim_cv_memcpy_handles_overlap=yes 14076 14077else 14078 14079 vim_cv_memcpy_handles_overlap=no 14080 14081fi 14082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14083 conftest.$ac_objext conftest.beam conftest.$ac_ext 14084fi 14085 14086 14087fi 14088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 14089$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 14090 14091 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 14092 $as_echo "#define USEMEMCPY 1" >>confdefs.h 14093 14094 fi 14095 fi 14096fi 14097 14098 14099if test "x$with_x" = "xyes"; then 14100 cflags_save=$CFLAGS 14101 libs_save=$LIBS 14102 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 14103 CFLAGS="$CFLAGS $X_CFLAGS" 14104 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 14106$as_echo_n "checking whether X_LOCALE needed... " >&6; } 14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14108/* end confdefs.h. */ 14109#include <X11/Xlocale.h> 14110int 14111main () 14112{ 14113 14114 ; 14115 return 0; 14116} 14117_ACEOF 14118if ac_fn_c_try_compile "$LINENO"; then : 14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14120/* end confdefs.h. */ 14121 14122/* Override any GCC internal prototype to avoid an error. 14123 Use char because int might match the return type of a GCC 14124 builtin and then its argument prototype would still apply. */ 14125#ifdef __cplusplus 14126extern "C" 14127#endif 14128char _Xsetlocale (); 14129int 14130main () 14131{ 14132return _Xsetlocale (); 14133 ; 14134 return 0; 14135} 14136_ACEOF 14137if ac_fn_c_try_link "$LINENO"; then : 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14139$as_echo "yes" >&6; } 14140 $as_echo "#define X_LOCALE 1" >>confdefs.h 14141 14142else 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14144$as_echo "no" >&6; } 14145fi 14146rm -f core conftest.err conftest.$ac_objext \ 14147 conftest$ac_exeext conftest.$ac_ext 14148else 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14150$as_echo "no" >&6; } 14151fi 14152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14153 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 14155$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14157/* end confdefs.h. */ 14158 14159/* Override any GCC internal prototype to avoid an error. 14160 Use char because int might match the return type of a GCC 14161 builtin and then its argument prototype would still apply. */ 14162#ifdef __cplusplus 14163extern "C" 14164#endif 14165char Xutf8SetWMProperties (); 14166int 14167main () 14168{ 14169return Xutf8SetWMProperties (); 14170 ; 14171 return 0; 14172} 14173_ACEOF 14174if ac_fn_c_try_link "$LINENO"; then : 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14176$as_echo "yes" >&6; } 14177 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 14178 14179else 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14181$as_echo "no" >&6; } 14182fi 14183rm -f core conftest.err conftest.$ac_objext \ 14184 conftest$ac_exeext conftest.$ac_ext 14185 14186 CFLAGS=$cflags_save 14187 LIBS=$libs_save 14188fi 14189 14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 14191$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 14192if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 14193 $as_echo_n "(cached) " >&6 14194else 14195 ac_check_lib_save_LIBS=$LIBS 14196LIBS="-lxpg4 $LIBS" 14197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14198/* end confdefs.h. */ 14199 14200/* Override any GCC internal prototype to avoid an error. 14201 Use char because int might match the return type of a GCC 14202 builtin and then its argument prototype would still apply. */ 14203#ifdef __cplusplus 14204extern "C" 14205#endif 14206char _xpg4_setrunelocale (); 14207int 14208main () 14209{ 14210return _xpg4_setrunelocale (); 14211 ; 14212 return 0; 14213} 14214_ACEOF 14215if ac_fn_c_try_link "$LINENO"; then : 14216 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 14217else 14218 ac_cv_lib_xpg4__xpg4_setrunelocale=no 14219fi 14220rm -f core conftest.err conftest.$ac_objext \ 14221 conftest$ac_exeext conftest.$ac_ext 14222LIBS=$ac_check_lib_save_LIBS 14223fi 14224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 14225$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 14226if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 14227 LIBS="$LIBS -lxpg4" 14228fi 14229 14230 14231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 14232$as_echo_n "checking how to create tags... " >&6; } 14233test -f tags && mv tags tags.save 14234if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14235 TAGPRG="ctags -I INIT+ --fields=+S" 14236elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14237 TAGPRG="exctags -I INIT+ --fields=+S" 14238elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14239 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 14240else 14241 TAGPRG="ctags" 14242 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 14243 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 14244 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 14245 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 14246 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 14247 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 14248 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 14249fi 14250test -f tags.save && mv tags.save tags 14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 14252$as_echo "$TAGPRG" >&6; } 14253 14254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 14255$as_echo_n "checking how to run man with a section nr... " >&6; } 14256MANDEF="man" 14257(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 14258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 14259$as_echo "$MANDEF" >&6; } 14260if test "$MANDEF" = "man -s"; then 14261 $as_echo "#define USEMAN_S 1" >>confdefs.h 14262 14263fi 14264 14265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 14266$as_echo_n "checking --disable-nls argument... " >&6; } 14267# Check whether --enable-nls was given. 14268if test "${enable_nls+set}" = set; then : 14269 enableval=$enable_nls; 14270else 14271 enable_nls="yes" 14272fi 14273 14274 14275if test "$enable_nls" = "yes"; then 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14277$as_echo "no" >&6; } 14278 14279 INSTALL_LANGS=install-languages 14280 14281 INSTALL_TOOL_LANGS=install-tool-languages 14282 14283 14284 # Extract the first word of "msgfmt", so it can be a program name with args. 14285set dummy msgfmt; ac_word=$2 14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14287$as_echo_n "checking for $ac_word... " >&6; } 14288if ${ac_cv_prog_MSGFMT+:} false; then : 14289 $as_echo_n "(cached) " >&6 14290else 14291 if test -n "$MSGFMT"; then 14292 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 14293else 14294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14295for as_dir in $PATH 14296do 14297 IFS=$as_save_IFS 14298 test -z "$as_dir" && as_dir=. 14299 for ac_exec_ext in '' $ac_executable_extensions; do 14300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14301 ac_cv_prog_MSGFMT="msgfmt" 14302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14303 break 2 14304 fi 14305done 14306 done 14307IFS=$as_save_IFS 14308 14309fi 14310fi 14311MSGFMT=$ac_cv_prog_MSGFMT 14312if test -n "$MSGFMT"; then 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 14314$as_echo "$MSGFMT" >&6; } 14315else 14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14317$as_echo "no" >&6; } 14318fi 14319 14320 14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 14322$as_echo_n "checking for NLS... " >&6; } 14323 if test -f po/Makefile; then 14324 have_gettext="no" 14325 if test -n "$MSGFMT"; then 14326 olibs=$LIBS 14327 LIBS="" 14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14329/* end confdefs.h. */ 14330#include <libintl.h> 14331int 14332main () 14333{ 14334gettext("Test"); 14335 ; 14336 return 0; 14337} 14338_ACEOF 14339if ac_fn_c_try_link "$LINENO"; then : 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 14341$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 14342else 14343 LIBS="-lintl" 14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14345/* end confdefs.h. */ 14346#include <libintl.h> 14347int 14348main () 14349{ 14350gettext("Test"); 14351 ; 14352 return 0; 14353} 14354_ACEOF 14355if ac_fn_c_try_link "$LINENO"; then : 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 14357$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 14358 LIBS="$olibs -lintl" 14359else 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 14361$as_echo "gettext() doesn't work" >&6; }; 14362 LIBS=$olibs 14363fi 14364rm -f core conftest.err conftest.$ac_objext \ 14365 conftest$ac_exeext conftest.$ac_ext 14366fi 14367rm -f core conftest.err conftest.$ac_objext \ 14368 conftest$ac_exeext conftest.$ac_ext 14369 else 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 14371$as_echo "msgfmt not found - disabled" >&6; }; 14372 fi 14373 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 14374 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14375 14376 MAKEMO=yes 14377 14378 for ac_func in bind_textdomain_codeset 14379do : 14380 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 14381if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 14382 cat >>confdefs.h <<_ACEOF 14383#define HAVE_BIND_TEXTDOMAIN_CODESET 1 14384_ACEOF 14385 14386fi 14387done 14388 14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 14390$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14392/* end confdefs.h. */ 14393#include <libintl.h> 14394 extern int _nl_msg_cat_cntr; 14395int 14396main () 14397{ 14398++_nl_msg_cat_cntr; 14399 ; 14400 return 0; 14401} 14402_ACEOF 14403if ac_fn_c_try_link "$LINENO"; then : 14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14405$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 14406 14407else 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14409$as_echo "no" >&6; } 14410fi 14411rm -f core conftest.err conftest.$ac_objext \ 14412 conftest$ac_exeext conftest.$ac_ext 14413 fi 14414 else 14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 14416$as_echo "no \"po/Makefile\" - disabled" >&6; }; 14417 fi 14418else 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14420$as_echo "yes" >&6; } 14421fi 14422 14423ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14424if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14425 DLL=dlfcn.h 14426else 14427 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14428if test "x$ac_cv_header_dl_h" = xyes; then : 14429 DLL=dl.h 14430fi 14431 14432 14433fi 14434 14435 14436if test x${DLL} = xdlfcn.h; then 14437 14438$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 14439 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 14441$as_echo_n "checking for dlopen()... " >&6; } 14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14443/* end confdefs.h. */ 14444 14445int 14446main () 14447{ 14448 14449 extern void* dlopen(); 14450 dlopen(); 14451 14452 ; 14453 return 0; 14454} 14455_ACEOF 14456if ac_fn_c_try_link "$LINENO"; then : 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14458$as_echo "yes" >&6; }; 14459 14460$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14461 14462else 14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14464$as_echo "no" >&6; }; 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 14466$as_echo_n "checking for dlopen() in -ldl... " >&6; } 14467 olibs=$LIBS 14468 LIBS="$LIBS -ldl" 14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14470/* end confdefs.h. */ 14471 14472int 14473main () 14474{ 14475 14476 extern void* dlopen(); 14477 dlopen(); 14478 14479 ; 14480 return 0; 14481} 14482_ACEOF 14483if ac_fn_c_try_link "$LINENO"; then : 14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14485$as_echo "yes" >&6; }; 14486 14487$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14488 14489else 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14491$as_echo "no" >&6; }; 14492 LIBS=$olibs 14493fi 14494rm -f core conftest.err conftest.$ac_objext \ 14495 conftest$ac_exeext conftest.$ac_ext 14496fi 14497rm -f core conftest.err conftest.$ac_objext \ 14498 conftest$ac_exeext conftest.$ac_ext 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 14500$as_echo_n "checking for dlsym()... " >&6; } 14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14502/* end confdefs.h. */ 14503 14504int 14505main () 14506{ 14507 14508 extern void* dlsym(); 14509 dlsym(); 14510 14511 ; 14512 return 0; 14513} 14514_ACEOF 14515if ac_fn_c_try_link "$LINENO"; then : 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14517$as_echo "yes" >&6; }; 14518 14519$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14520 14521else 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14523$as_echo "no" >&6; }; 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 14525$as_echo_n "checking for dlsym() in -ldl... " >&6; } 14526 olibs=$LIBS 14527 LIBS="$LIBS -ldl" 14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14529/* end confdefs.h. */ 14530 14531int 14532main () 14533{ 14534 14535 extern void* dlsym(); 14536 dlsym(); 14537 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542if ac_fn_c_try_link "$LINENO"; then : 14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14544$as_echo "yes" >&6; }; 14545 14546$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14547 14548else 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14550$as_echo "no" >&6; }; 14551 LIBS=$olibs 14552fi 14553rm -f core conftest.err conftest.$ac_objext \ 14554 conftest$ac_exeext conftest.$ac_ext 14555fi 14556rm -f core conftest.err conftest.$ac_objext \ 14557 conftest$ac_exeext conftest.$ac_ext 14558elif test x${DLL} = xdl.h; then 14559 14560$as_echo "#define HAVE_DL_H 1" >>confdefs.h 14561 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 14563$as_echo_n "checking for shl_load()... " >&6; } 14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14565/* end confdefs.h. */ 14566 14567int 14568main () 14569{ 14570 14571 extern void* shl_load(); 14572 shl_load(); 14573 14574 ; 14575 return 0; 14576} 14577_ACEOF 14578if ac_fn_c_try_link "$LINENO"; then : 14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14580$as_echo "yes" >&6; }; 14581 14582$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14583 14584else 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14586$as_echo "no" >&6; }; 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14588$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14589 olibs=$LIBS 14590 LIBS="$LIBS -ldld" 14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14592/* end confdefs.h. */ 14593 14594int 14595main () 14596{ 14597 14598 extern void* shl_load(); 14599 shl_load(); 14600 14601 ; 14602 return 0; 14603} 14604_ACEOF 14605if ac_fn_c_try_link "$LINENO"; then : 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14607$as_echo "yes" >&6; }; 14608 14609$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14610 14611else 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14613$as_echo "no" >&6; }; 14614 LIBS=$olibs 14615fi 14616rm -f core conftest.err conftest.$ac_objext \ 14617 conftest$ac_exeext conftest.$ac_ext 14618fi 14619rm -f core conftest.err conftest.$ac_objext \ 14620 conftest$ac_exeext conftest.$ac_ext 14621fi 14622for ac_header in setjmp.h 14623do : 14624 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14625if test "x$ac_cv_header_setjmp_h" = xyes; then : 14626 cat >>confdefs.h <<_ACEOF 14627#define HAVE_SETJMP_H 1 14628_ACEOF 14629 14630fi 14631 14632done 14633 14634 14635if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then 14636 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14637 LIBS=`echo $LIBS | sed s/-ldl//` 14638 PERL_LIBS="$PERL_LIBS -ldl" 14639 fi 14640fi 14641 14642if test "$MACOS_X" = "yes"; then 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 14644$as_echo_n "checking whether we need macOS frameworks... " >&6; } 14645 if test "$GUITYPE" = "CARBONGUI"; then 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5 14647$as_echo "yes, we need Carbon" >&6; } 14648 LIBS="$LIBS -framework Carbon" 14649 elif test "$MACOS_X_DARWIN" = "yes"; then 14650 if test "$features" = "tiny"; then 14651 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14652 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14653 if test "$enable_multibyte" = "yes"; then 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 14655$as_echo "yes, we need CoreServices" >&6; } 14656 LIBS="$LIBS -framework CoreServices" 14657 else 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14659$as_echo "no" >&6; } 14660 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'` 14661 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'` 14662 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'` 14663 fi 14664 else 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 14666$as_echo "yes, we need AppKit" >&6; } 14667 LIBS="$LIBS -framework AppKit" 14668 if test "$features" = "small" -a "$enable_multibyte" = "no"; then 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5 14670$as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;} 14671 enable_multibyte=yes 14672 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 14673 14674 fi 14675 fi 14676 else 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14678$as_echo "no" >&6; } 14679 fi 14680fi 14681if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14682 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14683fi 14684 14685DEPEND_CFLAGS_FILTER= 14686if test "$GCC" = yes; then 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14688$as_echo_n "checking for GCC 3 or later... " >&6; } 14689 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 14690 if test "$gccmajor" -gt "2"; then 14691 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14693$as_echo "yes" >&6; } 14694 else 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14696$as_echo "no" >&6; } 14697 fi 14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14699$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14700 if test "$gccmajor" -gt "3"; then 14701 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/'` 14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14703$as_echo "yes" >&6; } 14704 else 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14706$as_echo "no" >&6; } 14707 fi 14708fi 14709 14710 14711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 14712$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } 14713if 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 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14715$as_echo "yes" >&6; } 14716 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14717 14718else 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14720$as_echo "no" >&6; } 14721fi 14722 14723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14724$as_echo_n "checking linker --as-needed support... " >&6; } 14725LINK_AS_NEEDED= 14726# Check if linker supports --as-needed and --no-as-needed options 14727if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14728 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14729 LINK_AS_NEEDED=yes 14730fi 14731if test "$LINK_AS_NEEDED" = yes; then 14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14733$as_echo "yes" >&6; } 14734else 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14736$as_echo "no" >&6; } 14737fi 14738 14739 14740# IBM z/OS reset CFLAGS for config.mk 14741if test "$zOSUnix" = "yes"; then 14742 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14743fi 14744 14745ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14746 14747cat >confcache <<\_ACEOF 14748# This file is a shell script that caches the results of configure 14749# tests run on this system so they can be shared between configure 14750# scripts and configure runs, see configure's option --config-cache. 14751# It is not useful on other systems. If it contains results you don't 14752# want to keep, you may remove or edit it. 14753# 14754# config.status only pays attention to the cache file if you give it 14755# the --recheck option to rerun configure. 14756# 14757# `ac_cv_env_foo' variables (set or unset) will be overridden when 14758# loading this file, other *unset* `ac_cv_foo' will be assigned the 14759# following values. 14760 14761_ACEOF 14762 14763# The following way of writing the cache mishandles newlines in values, 14764# but we know of no workaround that is simple, portable, and efficient. 14765# So, we kill variables containing newlines. 14766# Ultrix sh set writes to stderr and can't be redirected directly, 14767# and sets the high bit in the cache file unless we assign to the vars. 14768( 14769 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14770 eval ac_val=\$$ac_var 14771 case $ac_val in #( 14772 *${as_nl}*) 14773 case $ac_var in #( 14774 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14775$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14776 esac 14777 case $ac_var in #( 14778 _ | IFS | as_nl) ;; #( 14779 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14780 *) { eval $ac_var=; unset $ac_var;} ;; 14781 esac ;; 14782 esac 14783 done 14784 14785 (set) 2>&1 | 14786 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14787 *${as_nl}ac_space=\ *) 14788 # `set' does not quote correctly, so add quotes: double-quote 14789 # substitution turns \\\\ into \\, and sed turns \\ into \. 14790 sed -n \ 14791 "s/'/'\\\\''/g; 14792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14793 ;; #( 14794 *) 14795 # `set' quotes correctly as required by POSIX, so do not add quotes. 14796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14797 ;; 14798 esac | 14799 sort 14800) | 14801 sed ' 14802 /^ac_cv_env_/b end 14803 t clear 14804 :clear 14805 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14806 t end 14807 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14808 :end' >>confcache 14809if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14810 if test -w "$cache_file"; then 14811 if test "x$cache_file" != "x/dev/null"; then 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14813$as_echo "$as_me: updating cache $cache_file" >&6;} 14814 if test ! -f "$cache_file" || test -h "$cache_file"; then 14815 cat confcache >"$cache_file" 14816 else 14817 case $cache_file in #( 14818 */* | ?:*) 14819 mv -f confcache "$cache_file"$$ && 14820 mv -f "$cache_file"$$ "$cache_file" ;; #( 14821 *) 14822 mv -f confcache "$cache_file" ;; 14823 esac 14824 fi 14825 fi 14826 else 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14828$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14829 fi 14830fi 14831rm -f confcache 14832 14833test "x$prefix" = xNONE && prefix=$ac_default_prefix 14834# Let make expand exec_prefix. 14835test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14836 14837DEFS=-DHAVE_CONFIG_H 14838 14839ac_libobjs= 14840ac_ltlibobjs= 14841U= 14842for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14843 # 1. Remove the extension, and $U if already installed. 14844 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14845 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14846 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14847 # will be set to the directory where LIBOBJS objects are built. 14848 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14849 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14850done 14851LIBOBJS=$ac_libobjs 14852 14853LTLIBOBJS=$ac_ltlibobjs 14854 14855 14856 14857 14858: "${CONFIG_STATUS=./config.status}" 14859ac_write_fail=0 14860ac_clean_files_save=$ac_clean_files 14861ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14862{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14863$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14864as_write_fail=0 14865cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14866#! $SHELL 14867# Generated by $as_me. 14868# Run this file to recreate the current configuration. 14869# Compiler output produced by configure, useful for debugging 14870# configure, is in config.log if it exists. 14871 14872debug=false 14873ac_cs_recheck=false 14874ac_cs_silent=false 14875 14876SHELL=\${CONFIG_SHELL-$SHELL} 14877export SHELL 14878_ASEOF 14879cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14880## -------------------- ## 14881## M4sh Initialization. ## 14882## -------------------- ## 14883 14884# Be more Bourne compatible 14885DUALCASE=1; export DUALCASE # for MKS sh 14886if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14887 emulate sh 14888 NULLCMD=: 14889 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14890 # is contrary to our usage. Disable this feature. 14891 alias -g '${1+"$@"}'='"$@"' 14892 setopt NO_GLOB_SUBST 14893else 14894 case `(set -o) 2>/dev/null` in #( 14895 *posix*) : 14896 set -o posix ;; #( 14897 *) : 14898 ;; 14899esac 14900fi 14901 14902 14903as_nl=' 14904' 14905export as_nl 14906# Printing a long string crashes Solaris 7 /usr/bin/printf. 14907as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14908as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14909as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14910# Prefer a ksh shell builtin over an external printf program on Solaris, 14911# but without wasting forks for bash or zsh. 14912if test -z "$BASH_VERSION$ZSH_VERSION" \ 14913 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14914 as_echo='print -r --' 14915 as_echo_n='print -rn --' 14916elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14917 as_echo='printf %s\n' 14918 as_echo_n='printf %s' 14919else 14920 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14921 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14922 as_echo_n='/usr/ucb/echo -n' 14923 else 14924 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14925 as_echo_n_body='eval 14926 arg=$1; 14927 case $arg in #( 14928 *"$as_nl"*) 14929 expr "X$arg" : "X\\(.*\\)$as_nl"; 14930 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14931 esac; 14932 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14933 ' 14934 export as_echo_n_body 14935 as_echo_n='sh -c $as_echo_n_body as_echo' 14936 fi 14937 export as_echo_body 14938 as_echo='sh -c $as_echo_body as_echo' 14939fi 14940 14941# The user is always right. 14942if test "${PATH_SEPARATOR+set}" != set; then 14943 PATH_SEPARATOR=: 14944 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14945 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14946 PATH_SEPARATOR=';' 14947 } 14948fi 14949 14950 14951# IFS 14952# We need space, tab and new line, in precisely that order. Quoting is 14953# there to prevent editors from complaining about space-tab. 14954# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14955# splitting by setting IFS to empty value.) 14956IFS=" "" $as_nl" 14957 14958# Find who we are. Look in the path if we contain no directory separator. 14959as_myself= 14960case $0 in #(( 14961 *[\\/]* ) as_myself=$0 ;; 14962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14963for as_dir in $PATH 14964do 14965 IFS=$as_save_IFS 14966 test -z "$as_dir" && as_dir=. 14967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14968 done 14969IFS=$as_save_IFS 14970 14971 ;; 14972esac 14973# We did not find ourselves, most probably we were run as `sh COMMAND' 14974# in which case we are not to be found in the path. 14975if test "x$as_myself" = x; then 14976 as_myself=$0 14977fi 14978if test ! -f "$as_myself"; then 14979 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14980 exit 1 14981fi 14982 14983# Unset variables that we do not need and which cause bugs (e.g. in 14984# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14985# suppresses any "Segmentation fault" message there. '((' could 14986# trigger a bug in pdksh 5.2.14. 14987for as_var in BASH_ENV ENV MAIL MAILPATH 14988do eval test x\${$as_var+set} = xset \ 14989 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14990done 14991PS1='$ ' 14992PS2='> ' 14993PS4='+ ' 14994 14995# NLS nuisances. 14996LC_ALL=C 14997export LC_ALL 14998LANGUAGE=C 14999export LANGUAGE 15000 15001# CDPATH. 15002(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15003 15004 15005# as_fn_error STATUS ERROR [LINENO LOG_FD] 15006# ---------------------------------------- 15007# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15008# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15009# script with STATUS, using 1 if that was 0. 15010as_fn_error () 15011{ 15012 as_status=$1; test $as_status -eq 0 && as_status=1 15013 if test "$4"; then 15014 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15015 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15016 fi 15017 $as_echo "$as_me: error: $2" >&2 15018 as_fn_exit $as_status 15019} # as_fn_error 15020 15021 15022# as_fn_set_status STATUS 15023# ----------------------- 15024# Set $? to STATUS, without forking. 15025as_fn_set_status () 15026{ 15027 return $1 15028} # as_fn_set_status 15029 15030# as_fn_exit STATUS 15031# ----------------- 15032# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15033as_fn_exit () 15034{ 15035 set +e 15036 as_fn_set_status $1 15037 exit $1 15038} # as_fn_exit 15039 15040# as_fn_unset VAR 15041# --------------- 15042# Portably unset VAR. 15043as_fn_unset () 15044{ 15045 { eval $1=; unset $1;} 15046} 15047as_unset=as_fn_unset 15048# as_fn_append VAR VALUE 15049# ---------------------- 15050# Append the text in VALUE to the end of the definition contained in VAR. Take 15051# advantage of any shell optimizations that allow amortized linear growth over 15052# repeated appends, instead of the typical quadratic growth present in naive 15053# implementations. 15054if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15055 eval 'as_fn_append () 15056 { 15057 eval $1+=\$2 15058 }' 15059else 15060 as_fn_append () 15061 { 15062 eval $1=\$$1\$2 15063 } 15064fi # as_fn_append 15065 15066# as_fn_arith ARG... 15067# ------------------ 15068# Perform arithmetic evaluation on the ARGs, and store the result in the 15069# global $as_val. Take advantage of shells that can avoid forks. The arguments 15070# must be portable across $(()) and expr. 15071if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15072 eval 'as_fn_arith () 15073 { 15074 as_val=$(( $* )) 15075 }' 15076else 15077 as_fn_arith () 15078 { 15079 as_val=`expr "$@" || test $? -eq 1` 15080 } 15081fi # as_fn_arith 15082 15083 15084if expr a : '\(a\)' >/dev/null 2>&1 && 15085 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15086 as_expr=expr 15087else 15088 as_expr=false 15089fi 15090 15091if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15092 as_basename=basename 15093else 15094 as_basename=false 15095fi 15096 15097if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15098 as_dirname=dirname 15099else 15100 as_dirname=false 15101fi 15102 15103as_me=`$as_basename -- "$0" || 15104$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15105 X"$0" : 'X\(//\)$' \| \ 15106 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15107$as_echo X/"$0" | 15108 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15109 s//\1/ 15110 q 15111 } 15112 /^X\/\(\/\/\)$/{ 15113 s//\1/ 15114 q 15115 } 15116 /^X\/\(\/\).*/{ 15117 s//\1/ 15118 q 15119 } 15120 s/.*/./; q'` 15121 15122# Avoid depending upon Character Ranges. 15123as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15124as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15125as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15126as_cr_digits='0123456789' 15127as_cr_alnum=$as_cr_Letters$as_cr_digits 15128 15129ECHO_C= ECHO_N= ECHO_T= 15130case `echo -n x` in #((((( 15131-n*) 15132 case `echo 'xy\c'` in 15133 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15134 xy) ECHO_C='\c';; 15135 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15136 ECHO_T=' ';; 15137 esac;; 15138*) 15139 ECHO_N='-n';; 15140esac 15141 15142rm -f conf$$ conf$$.exe conf$$.file 15143if test -d conf$$.dir; then 15144 rm -f conf$$.dir/conf$$.file 15145else 15146 rm -f conf$$.dir 15147 mkdir conf$$.dir 2>/dev/null 15148fi 15149if (echo >conf$$.file) 2>/dev/null; then 15150 if ln -s conf$$.file conf$$ 2>/dev/null; then 15151 as_ln_s='ln -s' 15152 # ... but there are two gotchas: 15153 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15154 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15155 # In both cases, we have to default to `cp -pR'. 15156 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15157 as_ln_s='cp -pR' 15158 elif ln conf$$.file conf$$ 2>/dev/null; then 15159 as_ln_s=ln 15160 else 15161 as_ln_s='cp -pR' 15162 fi 15163else 15164 as_ln_s='cp -pR' 15165fi 15166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15167rmdir conf$$.dir 2>/dev/null 15168 15169 15170# as_fn_mkdir_p 15171# ------------- 15172# Create "$as_dir" as a directory, including parents if necessary. 15173as_fn_mkdir_p () 15174{ 15175 15176 case $as_dir in #( 15177 -*) as_dir=./$as_dir;; 15178 esac 15179 test -d "$as_dir" || eval $as_mkdir_p || { 15180 as_dirs= 15181 while :; do 15182 case $as_dir in #( 15183 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15184 *) as_qdir=$as_dir;; 15185 esac 15186 as_dirs="'$as_qdir' $as_dirs" 15187 as_dir=`$as_dirname -- "$as_dir" || 15188$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15189 X"$as_dir" : 'X\(//\)[^/]' \| \ 15190 X"$as_dir" : 'X\(//\)$' \| \ 15191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15192$as_echo X"$as_dir" | 15193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15194 s//\1/ 15195 q 15196 } 15197 /^X\(\/\/\)[^/].*/{ 15198 s//\1/ 15199 q 15200 } 15201 /^X\(\/\/\)$/{ 15202 s//\1/ 15203 q 15204 } 15205 /^X\(\/\).*/{ 15206 s//\1/ 15207 q 15208 } 15209 s/.*/./; q'` 15210 test -d "$as_dir" && break 15211 done 15212 test -z "$as_dirs" || eval "mkdir $as_dirs" 15213 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15214 15215 15216} # as_fn_mkdir_p 15217if mkdir -p . 2>/dev/null; then 15218 as_mkdir_p='mkdir -p "$as_dir"' 15219else 15220 test -d ./-p && rmdir ./-p 15221 as_mkdir_p=false 15222fi 15223 15224 15225# as_fn_executable_p FILE 15226# ----------------------- 15227# Test if FILE is an executable regular file. 15228as_fn_executable_p () 15229{ 15230 test -f "$1" && test -x "$1" 15231} # as_fn_executable_p 15232as_test_x='test -x' 15233as_executable_p=as_fn_executable_p 15234 15235# Sed expression to map a string onto a valid CPP name. 15236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15237 15238# Sed expression to map a string onto a valid variable name. 15239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15240 15241 15242exec 6>&1 15243## ----------------------------------- ## 15244## Main body of $CONFIG_STATUS script. ## 15245## ----------------------------------- ## 15246_ASEOF 15247test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15248 15249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15250# Save the log message, to keep $0 and so on meaningful, and to 15251# report actual input values of CONFIG_FILES etc. instead of their 15252# values after options handling. 15253ac_log=" 15254This file was extended by $as_me, which was 15255generated by GNU Autoconf 2.69. Invocation command line was 15256 15257 CONFIG_FILES = $CONFIG_FILES 15258 CONFIG_HEADERS = $CONFIG_HEADERS 15259 CONFIG_LINKS = $CONFIG_LINKS 15260 CONFIG_COMMANDS = $CONFIG_COMMANDS 15261 $ $0 $@ 15262 15263on `(hostname || uname -n) 2>/dev/null | sed 1q` 15264" 15265 15266_ACEOF 15267 15268case $ac_config_files in *" 15269"*) set x $ac_config_files; shift; ac_config_files=$*;; 15270esac 15271 15272case $ac_config_headers in *" 15273"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15274esac 15275 15276 15277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15278# Files that config.status was made for. 15279config_files="$ac_config_files" 15280config_headers="$ac_config_headers" 15281 15282_ACEOF 15283 15284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15285ac_cs_usage="\ 15286\`$as_me' instantiates files and other configuration actions 15287from templates according to the current configuration. Unless the files 15288and actions are specified as TAGs, all are instantiated by default. 15289 15290Usage: $0 [OPTION]... [TAG]... 15291 15292 -h, --help print this help, then exit 15293 -V, --version print version number and configuration settings, then exit 15294 --config print configuration, then exit 15295 -q, --quiet, --silent 15296 do not print progress messages 15297 -d, --debug don't remove temporary files 15298 --recheck update $as_me by reconfiguring in the same conditions 15299 --file=FILE[:TEMPLATE] 15300 instantiate the configuration file FILE 15301 --header=FILE[:TEMPLATE] 15302 instantiate the configuration header FILE 15303 15304Configuration files: 15305$config_files 15306 15307Configuration headers: 15308$config_headers 15309 15310Report bugs to the package provider." 15311 15312_ACEOF 15313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15314ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15315ac_cs_version="\\ 15316config.status 15317configured by $0, generated by GNU Autoconf 2.69, 15318 with options \\"\$ac_cs_config\\" 15319 15320Copyright (C) 2012 Free Software Foundation, Inc. 15321This config.status script is free software; the Free Software Foundation 15322gives unlimited permission to copy, distribute and modify it." 15323 15324ac_pwd='$ac_pwd' 15325srcdir='$srcdir' 15326AWK='$AWK' 15327test -n "\$AWK" || AWK=awk 15328_ACEOF 15329 15330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15331# The default lists apply if the user does not specify any file. 15332ac_need_defaults=: 15333while test $# != 0 15334do 15335 case $1 in 15336 --*=?*) 15337 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15338 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15339 ac_shift=: 15340 ;; 15341 --*=) 15342 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15343 ac_optarg= 15344 ac_shift=: 15345 ;; 15346 *) 15347 ac_option=$1 15348 ac_optarg=$2 15349 ac_shift=shift 15350 ;; 15351 esac 15352 15353 case $ac_option in 15354 # Handling of the options. 15355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15356 ac_cs_recheck=: ;; 15357 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15358 $as_echo "$ac_cs_version"; exit ;; 15359 --config | --confi | --conf | --con | --co | --c ) 15360 $as_echo "$ac_cs_config"; exit ;; 15361 --debug | --debu | --deb | --de | --d | -d ) 15362 debug=: ;; 15363 --file | --fil | --fi | --f ) 15364 $ac_shift 15365 case $ac_optarg in 15366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15367 '') as_fn_error $? "missing file argument" ;; 15368 esac 15369 as_fn_append CONFIG_FILES " '$ac_optarg'" 15370 ac_need_defaults=false;; 15371 --header | --heade | --head | --hea ) 15372 $ac_shift 15373 case $ac_optarg in 15374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15375 esac 15376 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15377 ac_need_defaults=false;; 15378 --he | --h) 15379 # Conflict between --help and --header 15380 as_fn_error $? "ambiguous option: \`$1' 15381Try \`$0 --help' for more information.";; 15382 --help | --hel | -h ) 15383 $as_echo "$ac_cs_usage"; exit ;; 15384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15385 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15386 ac_cs_silent=: ;; 15387 15388 # This is an error. 15389 -*) as_fn_error $? "unrecognized option: \`$1' 15390Try \`$0 --help' for more information." ;; 15391 15392 *) as_fn_append ac_config_targets " $1" 15393 ac_need_defaults=false ;; 15394 15395 esac 15396 shift 15397done 15398 15399ac_configure_extra_args= 15400 15401if $ac_cs_silent; then 15402 exec 6>/dev/null 15403 ac_configure_extra_args="$ac_configure_extra_args --silent" 15404fi 15405 15406_ACEOF 15407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15408if \$ac_cs_recheck; then 15409 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15410 shift 15411 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15412 CONFIG_SHELL='$SHELL' 15413 export CONFIG_SHELL 15414 exec "\$@" 15415fi 15416 15417_ACEOF 15418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15419exec 5>>auto/config.log 15420{ 15421 echo 15422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15423## Running $as_me. ## 15424_ASBOX 15425 $as_echo "$ac_log" 15426} >&5 15427 15428_ACEOF 15429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15430_ACEOF 15431 15432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15433 15434# Handling of arguments. 15435for ac_config_target in $ac_config_targets 15436do 15437 case $ac_config_target in 15438 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 15439 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 15440 15441 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15442 esac 15443done 15444 15445 15446# If the user did not use the arguments to specify the items to instantiate, 15447# then the envvar interface is used. Set only those that are not. 15448# We use the long form for the default assignment because of an extremely 15449# bizarre bug on SunOS 4.1.3. 15450if $ac_need_defaults; then 15451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15453fi 15454 15455# Have a temporary directory for convenience. Make it in the build tree 15456# simply because there is no reason against having it here, and in addition, 15457# creating and moving files from /tmp can sometimes cause problems. 15458# Hook for its removal unless debugging. 15459# Note that there is a small window in which the directory will not be cleaned: 15460# after its creation but before its name has been assigned to `$tmp'. 15461$debug || 15462{ 15463 tmp= ac_tmp= 15464 trap 'exit_status=$? 15465 : "${ac_tmp:=$tmp}" 15466 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15467' 0 15468 trap 'as_fn_exit 1' 1 2 13 15 15469} 15470# Create a (secure) tmp directory for tmp files. 15471 15472{ 15473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15474 test -d "$tmp" 15475} || 15476{ 15477 tmp=./conf$$-$RANDOM 15478 (umask 077 && mkdir "$tmp") 15479} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15480ac_tmp=$tmp 15481 15482# Set up the scripts for CONFIG_FILES section. 15483# No need to generate them if there are no CONFIG_FILES. 15484# This happens for instance with `./config.status config.h'. 15485if test -n "$CONFIG_FILES"; then 15486 15487 15488ac_cr=`echo X | tr X '\015'` 15489# On cygwin, bash can eat \r inside `` if the user requested igncr. 15490# But we know of no other shell where ac_cr would be empty at this 15491# point, so we can use a bashism as a fallback. 15492if test "x$ac_cr" = x; then 15493 eval ac_cr=\$\'\\r\' 15494fi 15495ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15496if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15497 ac_cs_awk_cr='\\r' 15498else 15499 ac_cs_awk_cr=$ac_cr 15500fi 15501 15502echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15503_ACEOF 15504 15505 15506{ 15507 echo "cat >conf$$subs.awk <<_ACEOF" && 15508 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15509 echo "_ACEOF" 15510} >conf$$subs.sh || 15511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15512ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15513ac_delim='%!_!# ' 15514for ac_last_try in false false false false false :; do 15515 . ./conf$$subs.sh || 15516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15517 15518 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15519 if test $ac_delim_n = $ac_delim_num; then 15520 break 15521 elif $ac_last_try; then 15522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15523 else 15524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15525 fi 15526done 15527rm -f conf$$subs.sh 15528 15529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15530cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15531_ACEOF 15532sed -n ' 15533h 15534s/^/S["/; s/!.*/"]=/ 15535p 15536g 15537s/^[^!]*!// 15538:repl 15539t repl 15540s/'"$ac_delim"'$// 15541t delim 15542:nl 15543h 15544s/\(.\{148\}\)..*/\1/ 15545t more1 15546s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15547p 15548n 15549b repl 15550:more1 15551s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15552p 15553g 15554s/.\{148\}// 15555t nl 15556:delim 15557h 15558s/\(.\{148\}\)..*/\1/ 15559t more2 15560s/["\\]/\\&/g; s/^/"/; s/$/"/ 15561p 15562b 15563:more2 15564s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15565p 15566g 15567s/.\{148\}// 15568t delim 15569' <conf$$subs.awk | sed ' 15570/^[^""]/{ 15571 N 15572 s/\n// 15573} 15574' >>$CONFIG_STATUS || ac_write_fail=1 15575rm -f conf$$subs.awk 15576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15577_ACAWK 15578cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15579 for (key in S) S_is_set[key] = 1 15580 FS = "" 15581 15582} 15583{ 15584 line = $ 0 15585 nfields = split(line, field, "@") 15586 substed = 0 15587 len = length(field[1]) 15588 for (i = 2; i < nfields; i++) { 15589 key = field[i] 15590 keylen = length(key) 15591 if (S_is_set[key]) { 15592 value = S[key] 15593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15594 len += length(value) + length(field[++i]) 15595 substed = 1 15596 } else 15597 len += 1 + keylen 15598 } 15599 15600 print line 15601} 15602 15603_ACAWK 15604_ACEOF 15605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15606if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15608else 15609 cat 15610fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15611 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15612_ACEOF 15613 15614# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15615# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15616# trailing colons and then remove the whole line if VPATH becomes empty 15617# (actually we leave an empty line to preserve line numbers). 15618if test "x$srcdir" = x.; then 15619 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15620h 15621s/// 15622s/^/:/ 15623s/[ ]*$/:/ 15624s/:\$(srcdir):/:/g 15625s/:\${srcdir}:/:/g 15626s/:@srcdir@:/:/g 15627s/^:*// 15628s/:*$// 15629x 15630s/\(=[ ]*\).*/\1/ 15631G 15632s/\n// 15633s/^[^=]*=[ ]*$// 15634}' 15635fi 15636 15637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15638fi # test -n "$CONFIG_FILES" 15639 15640# Set up the scripts for CONFIG_HEADERS section. 15641# No need to generate them if there are no CONFIG_HEADERS. 15642# This happens for instance with `./config.status Makefile'. 15643if test -n "$CONFIG_HEADERS"; then 15644cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15645BEGIN { 15646_ACEOF 15647 15648# Transform confdefs.h into an awk script `defines.awk', embedded as 15649# here-document in config.status, that substitutes the proper values into 15650# config.h.in to produce config.h. 15651 15652# Create a delimiter string that does not exist in confdefs.h, to ease 15653# handling of long lines. 15654ac_delim='%!_!# ' 15655for ac_last_try in false false :; do 15656 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15657 if test -z "$ac_tt"; then 15658 break 15659 elif $ac_last_try; then 15660 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15661 else 15662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15663 fi 15664done 15665 15666# For the awk script, D is an array of macro values keyed by name, 15667# likewise P contains macro parameters if any. Preserve backslash 15668# newline sequences. 15669 15670ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15671sed -n ' 15672s/.\{148\}/&'"$ac_delim"'/g 15673t rset 15674:rset 15675s/^[ ]*#[ ]*define[ ][ ]*/ / 15676t def 15677d 15678:def 15679s/\\$// 15680t bsnl 15681s/["\\]/\\&/g 15682s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15683D["\1"]=" \3"/p 15684s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15685d 15686:bsnl 15687s/["\\]/\\&/g 15688s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15689D["\1"]=" \3\\\\\\n"\\/p 15690t cont 15691s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15692t cont 15693d 15694:cont 15695n 15696s/.\{148\}/&'"$ac_delim"'/g 15697t clear 15698:clear 15699s/\\$// 15700t bsnlc 15701s/["\\]/\\&/g; s/^/"/; s/$/"/p 15702d 15703:bsnlc 15704s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15705b cont 15706' <confdefs.h | sed ' 15707s/'"$ac_delim"'/"\\\ 15708"/g' >>$CONFIG_STATUS || ac_write_fail=1 15709 15710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15711 for (key in D) D_is_set[key] = 1 15712 FS = "" 15713} 15714/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15715 line = \$ 0 15716 split(line, arg, " ") 15717 if (arg[1] == "#") { 15718 defundef = arg[2] 15719 mac1 = arg[3] 15720 } else { 15721 defundef = substr(arg[1], 2) 15722 mac1 = arg[2] 15723 } 15724 split(mac1, mac2, "(") #) 15725 macro = mac2[1] 15726 prefix = substr(line, 1, index(line, defundef) - 1) 15727 if (D_is_set[macro]) { 15728 # Preserve the white space surrounding the "#". 15729 print prefix "define", macro P[macro] D[macro] 15730 next 15731 } else { 15732 # Replace #undef with comments. This is necessary, for example, 15733 # in the case of _POSIX_SOURCE, which is predefined and required 15734 # on some systems where configure will not decide to define it. 15735 if (defundef == "undef") { 15736 print "/*", prefix defundef, macro, "*/" 15737 next 15738 } 15739 } 15740} 15741{ print } 15742_ACAWK 15743_ACEOF 15744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15745 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15746fi # test -n "$CONFIG_HEADERS" 15747 15748 15749eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15750shift 15751for ac_tag 15752do 15753 case $ac_tag in 15754 :[FHLC]) ac_mode=$ac_tag; continue;; 15755 esac 15756 case $ac_mode$ac_tag in 15757 :[FHL]*:*);; 15758 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15759 :[FH]-) ac_tag=-:-;; 15760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15761 esac 15762 ac_save_IFS=$IFS 15763 IFS=: 15764 set x $ac_tag 15765 IFS=$ac_save_IFS 15766 shift 15767 ac_file=$1 15768 shift 15769 15770 case $ac_mode in 15771 :L) ac_source=$1;; 15772 :[FH]) 15773 ac_file_inputs= 15774 for ac_f 15775 do 15776 case $ac_f in 15777 -) ac_f="$ac_tmp/stdin";; 15778 *) # Look for the file first in the build tree, then in the source tree 15779 # (if the path is not absolute). The absolute path cannot be DOS-style, 15780 # because $ac_f cannot contain `:'. 15781 test -f "$ac_f" || 15782 case $ac_f in 15783 [\\/$]*) false;; 15784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15785 esac || 15786 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15787 esac 15788 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15789 as_fn_append ac_file_inputs " '$ac_f'" 15790 done 15791 15792 # Let's still pretend it is `configure' which instantiates (i.e., don't 15793 # use $as_me), people would be surprised to read: 15794 # /* config.h. Generated by config.status. */ 15795 configure_input='Generated from '` 15796 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15797 `' by configure.' 15798 if test x"$ac_file" != x-; then 15799 configure_input="$ac_file. $configure_input" 15800 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15801$as_echo "$as_me: creating $ac_file" >&6;} 15802 fi 15803 # Neutralize special characters interpreted by sed in replacement strings. 15804 case $configure_input in #( 15805 *\&* | *\|* | *\\* ) 15806 ac_sed_conf_input=`$as_echo "$configure_input" | 15807 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15808 *) ac_sed_conf_input=$configure_input;; 15809 esac 15810 15811 case $ac_tag in 15812 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15814 esac 15815 ;; 15816 esac 15817 15818 ac_dir=`$as_dirname -- "$ac_file" || 15819$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15820 X"$ac_file" : 'X\(//\)[^/]' \| \ 15821 X"$ac_file" : 'X\(//\)$' \| \ 15822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15823$as_echo X"$ac_file" | 15824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15825 s//\1/ 15826 q 15827 } 15828 /^X\(\/\/\)[^/].*/{ 15829 s//\1/ 15830 q 15831 } 15832 /^X\(\/\/\)$/{ 15833 s//\1/ 15834 q 15835 } 15836 /^X\(\/\).*/{ 15837 s//\1/ 15838 q 15839 } 15840 s/.*/./; q'` 15841 as_dir="$ac_dir"; as_fn_mkdir_p 15842 ac_builddir=. 15843 15844case "$ac_dir" in 15845.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15846*) 15847 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15848 # A ".." for each directory in $ac_dir_suffix. 15849 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15850 case $ac_top_builddir_sub in 15851 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15852 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15853 esac ;; 15854esac 15855ac_abs_top_builddir=$ac_pwd 15856ac_abs_builddir=$ac_pwd$ac_dir_suffix 15857# for backward compatibility: 15858ac_top_builddir=$ac_top_build_prefix 15859 15860case $srcdir in 15861 .) # We are building in place. 15862 ac_srcdir=. 15863 ac_top_srcdir=$ac_top_builddir_sub 15864 ac_abs_top_srcdir=$ac_pwd ;; 15865 [\\/]* | ?:[\\/]* ) # Absolute name. 15866 ac_srcdir=$srcdir$ac_dir_suffix; 15867 ac_top_srcdir=$srcdir 15868 ac_abs_top_srcdir=$srcdir ;; 15869 *) # Relative name. 15870 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15871 ac_top_srcdir=$ac_top_build_prefix$srcdir 15872 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15873esac 15874ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15875 15876 15877 case $ac_mode in 15878 :F) 15879 # 15880 # CONFIG_FILE 15881 # 15882 15883_ACEOF 15884 15885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15886# If the template does not know about datarootdir, expand it. 15887# FIXME: This hack should be removed a few years after 2.60. 15888ac_datarootdir_hack=; ac_datarootdir_seen= 15889ac_sed_dataroot=' 15890/datarootdir/ { 15891 p 15892 q 15893} 15894/@datadir@/p 15895/@docdir@/p 15896/@infodir@/p 15897/@localedir@/p 15898/@mandir@/p' 15899case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15900*datarootdir*) ac_datarootdir_seen=yes;; 15901*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15903$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15904_ACEOF 15905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15906 ac_datarootdir_hack=' 15907 s&@datadir@&$datadir&g 15908 s&@docdir@&$docdir&g 15909 s&@infodir@&$infodir&g 15910 s&@localedir@&$localedir&g 15911 s&@mandir@&$mandir&g 15912 s&\\\${datarootdir}&$datarootdir&g' ;; 15913esac 15914_ACEOF 15915 15916# Neutralize VPATH when `$srcdir' = `.'. 15917# Shell code in configure.ac might set extrasub. 15918# FIXME: do we really want to maintain this feature? 15919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15920ac_sed_extra="$ac_vpsub 15921$extrasub 15922_ACEOF 15923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15924:t 15925/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15926s|@configure_input@|$ac_sed_conf_input|;t t 15927s&@top_builddir@&$ac_top_builddir_sub&;t t 15928s&@top_build_prefix@&$ac_top_build_prefix&;t t 15929s&@srcdir@&$ac_srcdir&;t t 15930s&@abs_srcdir@&$ac_abs_srcdir&;t t 15931s&@top_srcdir@&$ac_top_srcdir&;t t 15932s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15933s&@builddir@&$ac_builddir&;t t 15934s&@abs_builddir@&$ac_abs_builddir&;t t 15935s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15936$ac_datarootdir_hack 15937" 15938eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15939 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15940 15941test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15942 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15943 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15944 "$ac_tmp/out"`; test -z "$ac_out"; } && 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15946which seems to be undefined. Please make sure it is defined" >&5 15947$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15948which seems to be undefined. Please make sure it is defined" >&2;} 15949 15950 rm -f "$ac_tmp/stdin" 15951 case $ac_file in 15952 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15953 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15954 esac \ 15955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15956 ;; 15957 :H) 15958 # 15959 # CONFIG_HEADER 15960 # 15961 if test x"$ac_file" != x-; then 15962 { 15963 $as_echo "/* $configure_input */" \ 15964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15965 } >"$ac_tmp/config.h" \ 15966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15967 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15968 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15969$as_echo "$as_me: $ac_file is unchanged" >&6;} 15970 else 15971 rm -f "$ac_file" 15972 mv "$ac_tmp/config.h" "$ac_file" \ 15973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15974 fi 15975 else 15976 $as_echo "/* $configure_input */" \ 15977 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15978 || as_fn_error $? "could not create -" "$LINENO" 5 15979 fi 15980 ;; 15981 15982 15983 esac 15984 15985done # for ac_tag 15986 15987 15988as_fn_exit 0 15989_ACEOF 15990ac_clean_files=$ac_clean_files_save 15991 15992test $ac_write_fail = 0 || 15993 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15994 15995 15996# configure is writing to config.log, and then calls config.status. 15997# config.status does its own redirection, appending to config.log. 15998# Unfortunately, on DOS this fails, as config.log is still kept open 15999# by configure, so config.status won't be able to write to it; its 16000# output is simply discarded. So we exec the FD to /dev/null, 16001# effectively closing config.log, so it can be properly (re)opened and 16002# appended to by config.status. When coming back to configure, we 16003# need to make the FD available again. 16004if test "$no_create" != yes; then 16005 ac_cs_success=: 16006 ac_config_status_args= 16007 test "$silent" = yes && 16008 ac_config_status_args="$ac_config_status_args --quiet" 16009 exec 5>/dev/null 16010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16011 exec 5>>auto/config.log 16012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16013 # would make configure fail if this is the last instruction. 16014 $ac_cs_success || as_fn_exit 1 16015fi 16016if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16018$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16019fi 16020 16021 16022