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 658CHANNEL_OBJ 659CHANNEL_SRC 660NETBEANS_OBJ 661NETBEANS_SRC 662WORKSHOP_OBJ 663WORKSHOP_SRC 664RUBY_LIBS 665RUBY_CFLAGS 666RUBY_PRO 667RUBY_OBJ 668RUBY_SRC 669vi_cv_path_ruby 670TCL_LIBS 671TCL_CFLAGS 672TCL_PRO 673TCL_OBJ 674TCL_SRC 675vi_cv_path_tcl 676PYTHON3_OBJ 677PYTHON3_SRC 678PYTHON3_CFLAGS 679PYTHON3_LIBS 680PYTHON3_CONFDIR 681vi_cv_path_python3 682PYTHON_OBJ 683PYTHON_SRC 684PYTHON_CFLAGS 685PYTHON_GETPATH_CFLAGS 686PYTHON_LIBS 687PYTHON_CONFDIR 688vi_cv_path_python 689PERL_LIBS 690PERL_CFLAGS 691PERL_PRO 692PERL_OBJ 693PERL_SRC 694shrpenv 695vi_cv_perl_xsubpp 696vi_cv_perllib 697vi_cv_path_perl 698MZSCHEME_MZC 699MZSCHEME_EXTRA 700MZSCHEME_CFLAGS 701MZSCHEME_LIBS 702MZSCHEME_PRO 703MZSCHEME_OBJ 704MZSCHEME_SRC 705vi_cv_path_mzscheme 706LUA_CFLAGS 707LUA_LIBS 708LUA_PRO 709LUA_OBJ 710LUA_SRC 711vi_cv_path_plain_lua 712vi_cv_path_luajit 713vi_cv_path_lua 714compiledby 715dogvimdiff 716dovimdiff 717QUOTESED 718line_break 719VIEWNAME 720EXNAME 721VIMNAME 722OS_EXTRA_OBJ 723OS_EXTRA_SRC 724XCODE_SELECT 725CPP_MM 726CROSS_COMPILING 727STRIP 728AWK 729FGREP 730EGREP 731GREP 732CPP 733OBJEXT 734EXEEXT 735ac_ct_CC 736CPPFLAGS 737LDFLAGS 738CFLAGS 739CC 740SET_MAKE 741target_alias 742host_alias 743build_alias 744LIBS 745ECHO_T 746ECHO_N 747ECHO_C 748DEFS 749mandir 750localedir 751libdir 752psdir 753pdfdir 754dvidir 755htmldir 756infodir 757docdir 758oldincludedir 759includedir 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_config_dir 806enable_python3interp 807with_python3_config_dir 808enable_tclinterp 809with_tclsh 810enable_rubyinterp 811with_ruby_command 812enable_cscope 813enable_workshop 814enable_netbeans 815enable_channel 816enable_multibyte 817enable_hangulinput 818enable_xim 819enable_fontset 820with_x 821enable_gui 822enable_gtk2_check 823enable_gnome_check 824enable_gtk3_check 825enable_motif_check 826enable_athena_check 827enable_nextaw_check 828enable_carbon_check 829enable_gtktest 830with_gnome_includes 831with_gnome_libs 832with_gnome 833enable_icon_cache_update 834enable_desktop_database_update 835with_motif_lib 836with_tlib 837enable_largefile 838enable_acl 839enable_gpm 840enable_sysmouse 841enable_nls 842' 843 ac_precious_vars='build_alias 844host_alias 845target_alias 846CC 847CFLAGS 848LDFLAGS 849LIBS 850CPPFLAGS 851CPP 852XMKMF' 853 854 855# Initialize some variables set by options. 856ac_init_help= 857ac_init_version=false 858ac_unrecognized_opts= 859ac_unrecognized_sep= 860# The variables have the same names as the options, with 861# dashes changed to underlines. 862cache_file=/dev/null 863exec_prefix=NONE 864no_create= 865no_recursion= 866prefix=NONE 867program_prefix=NONE 868program_suffix=NONE 869program_transform_name=s,x,x, 870silent= 871site= 872srcdir= 873verbose= 874x_includes=NONE 875x_libraries=NONE 876 877# Installation directory options. 878# These are left unexpanded so users can "make install exec_prefix=/foo" 879# and all the variables that are supposed to be based on exec_prefix 880# by default will actually change. 881# Use braces instead of parens because sh, perl, etc. also accept them. 882# (The list follows the same order as the GNU Coding Standards.) 883bindir='${exec_prefix}/bin' 884sbindir='${exec_prefix}/sbin' 885libexecdir='${exec_prefix}/libexec' 886datarootdir='${prefix}/share' 887datadir='${datarootdir}' 888sysconfdir='${prefix}/etc' 889sharedstatedir='${prefix}/com' 890localstatedir='${prefix}/var' 891includedir='${prefix}/include' 892oldincludedir='/usr/include' 893docdir='${datarootdir}/doc/${PACKAGE}' 894infodir='${datarootdir}/info' 895htmldir='${docdir}' 896dvidir='${docdir}' 897pdfdir='${docdir}' 898psdir='${docdir}' 899libdir='${exec_prefix}/lib' 900localedir='${datarootdir}/locale' 901mandir='${datarootdir}/man' 902 903ac_prev= 904ac_dashdash= 905for ac_option 906do 907 # If the previous option needs an argument, assign it. 908 if test -n "$ac_prev"; then 909 eval $ac_prev=\$ac_option 910 ac_prev= 911 continue 912 fi 913 914 case $ac_option in 915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 916 *=) ac_optarg= ;; 917 *) ac_optarg=yes ;; 918 esac 919 920 # Accept the important Cygnus configure options, so we can diagnose typos. 921 922 case $ac_dashdash$ac_option in 923 --) 924 ac_dashdash=yes ;; 925 926 -bindir | --bindir | --bindi | --bind | --bin | --bi) 927 ac_prev=bindir ;; 928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 929 bindir=$ac_optarg ;; 930 931 -build | --build | --buil | --bui | --bu) 932 ac_prev=build_alias ;; 933 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 934 build_alias=$ac_optarg ;; 935 936 -cache-file | --cache-file | --cache-fil | --cache-fi \ 937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 938 ac_prev=cache_file ;; 939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 941 cache_file=$ac_optarg ;; 942 943 --config-cache | -C) 944 cache_file=config.cache ;; 945 946 -datadir | --datadir | --datadi | --datad) 947 ac_prev=datadir ;; 948 -datadir=* | --datadir=* | --datadi=* | --datad=*) 949 datadir=$ac_optarg ;; 950 951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 952 | --dataroo | --dataro | --datar) 953 ac_prev=datarootdir ;; 954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 956 datarootdir=$ac_optarg ;; 957 958 -disable-* | --disable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: $ac_useropt" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=no ;; 973 974 -docdir | --docdir | --docdi | --doc | --do) 975 ac_prev=docdir ;; 976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 977 docdir=$ac_optarg ;; 978 979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 980 ac_prev=dvidir ;; 981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 982 dvidir=$ac_optarg ;; 983 984 -enable-* | --enable-*) 985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 as_fn_error $? "invalid feature name: $ac_useropt" 989 ac_useropt_orig=$ac_useropt 990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 991 case $ac_user_opts in 992 *" 993"enable_$ac_useropt" 994"*) ;; 995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 996 ac_unrecognized_sep=', ';; 997 esac 998 eval enable_$ac_useropt=\$ac_optarg ;; 999 1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1002 | --exec | --exe | --ex) 1003 ac_prev=exec_prefix ;; 1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1006 | --exec=* | --exe=* | --ex=*) 1007 exec_prefix=$ac_optarg ;; 1008 1009 -gas | --gas | --ga | --g) 1010 # Obsolete; use --with-gas. 1011 with_gas=yes ;; 1012 1013 -help | --help | --hel | --he | -h) 1014 ac_init_help=long ;; 1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1016 ac_init_help=recursive ;; 1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1018 ac_init_help=short ;; 1019 1020 -host | --host | --hos | --ho) 1021 ac_prev=host_alias ;; 1022 -host=* | --host=* | --hos=* | --ho=*) 1023 host_alias=$ac_optarg ;; 1024 1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1026 ac_prev=htmldir ;; 1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1028 | --ht=*) 1029 htmldir=$ac_optarg ;; 1030 1031 -includedir | --includedir | --includedi | --included | --include \ 1032 | --includ | --inclu | --incl | --inc) 1033 ac_prev=includedir ;; 1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1035 | --includ=* | --inclu=* | --incl=* | --inc=*) 1036 includedir=$ac_optarg ;; 1037 1038 -infodir | --infodir | --infodi | --infod | --info | --inf) 1039 ac_prev=infodir ;; 1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1041 infodir=$ac_optarg ;; 1042 1043 -libdir | --libdir | --libdi | --libd) 1044 ac_prev=libdir ;; 1045 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1046 libdir=$ac_optarg ;; 1047 1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1049 | --libexe | --libex | --libe) 1050 ac_prev=libexecdir ;; 1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1052 | --libexe=* | --libex=* | --libe=*) 1053 libexecdir=$ac_optarg ;; 1054 1055 -localedir | --localedir | --localedi | --localed | --locale) 1056 ac_prev=localedir ;; 1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1058 localedir=$ac_optarg ;; 1059 1060 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1061 | --localstate | --localstat | --localsta | --localst | --locals) 1062 ac_prev=localstatedir ;; 1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1065 localstatedir=$ac_optarg ;; 1066 1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1068 ac_prev=mandir ;; 1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1070 mandir=$ac_optarg ;; 1071 1072 -nfp | --nfp | --nf) 1073 # Obsolete; use --without-fp. 1074 with_fp=no ;; 1075 1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1077 | --no-cr | --no-c | -n) 1078 no_create=yes ;; 1079 1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1082 no_recursion=yes ;; 1083 1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1086 | --oldin | --oldi | --old | --ol | --o) 1087 ac_prev=oldincludedir ;; 1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1091 oldincludedir=$ac_optarg ;; 1092 1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1094 ac_prev=prefix ;; 1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1096 prefix=$ac_optarg ;; 1097 1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1099 | --program-pre | --program-pr | --program-p) 1100 ac_prev=program_prefix ;; 1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1103 program_prefix=$ac_optarg ;; 1104 1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1106 | --program-suf | --program-su | --program-s) 1107 ac_prev=program_suffix ;; 1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1110 program_suffix=$ac_optarg ;; 1111 1112 -program-transform-name | --program-transform-name \ 1113 | --program-transform-nam | --program-transform-na \ 1114 | --program-transform-n | --program-transform- \ 1115 | --program-transform | --program-transfor \ 1116 | --program-transfo | --program-transf \ 1117 | --program-trans | --program-tran \ 1118 | --progr-tra | --program-tr | --program-t) 1119 ac_prev=program_transform_name ;; 1120 -program-transform-name=* | --program-transform-name=* \ 1121 | --program-transform-nam=* | --program-transform-na=* \ 1122 | --program-transform-n=* | --program-transform-=* \ 1123 | --program-transform=* | --program-transfor=* \ 1124 | --program-transfo=* | --program-transf=* \ 1125 | --program-trans=* | --program-tran=* \ 1126 | --progr-tra=* | --program-tr=* | --program-t=*) 1127 program_transform_name=$ac_optarg ;; 1128 1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1130 ac_prev=pdfdir ;; 1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1132 pdfdir=$ac_optarg ;; 1133 1134 -psdir | --psdir | --psdi | --psd | --ps) 1135 ac_prev=psdir ;; 1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1137 psdir=$ac_optarg ;; 1138 1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1140 | -silent | --silent | --silen | --sile | --sil) 1141 silent=yes ;; 1142 1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1144 ac_prev=sbindir ;; 1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1146 | --sbi=* | --sb=*) 1147 sbindir=$ac_optarg ;; 1148 1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1151 | --sharedst | --shareds | --shared | --share | --shar \ 1152 | --sha | --sh) 1153 ac_prev=sharedstatedir ;; 1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1157 | --sha=* | --sh=*) 1158 sharedstatedir=$ac_optarg ;; 1159 1160 -site | --site | --sit) 1161 ac_prev=site ;; 1162 -site=* | --site=* | --sit=*) 1163 site=$ac_optarg ;; 1164 1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1166 ac_prev=srcdir ;; 1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1168 srcdir=$ac_optarg ;; 1169 1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1171 | --syscon | --sysco | --sysc | --sys | --sy) 1172 ac_prev=sysconfdir ;; 1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1175 sysconfdir=$ac_optarg ;; 1176 1177 -target | --target | --targe | --targ | --tar | --ta | --t) 1178 ac_prev=target_alias ;; 1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1180 target_alias=$ac_optarg ;; 1181 1182 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1183 verbose=yes ;; 1184 1185 -version | --version | --versio | --versi | --vers | -V) 1186 ac_init_version=: ;; 1187 1188 -with-* | --with-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: $ac_useropt" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197"with_$ac_useropt" 1198"*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=\$ac_optarg ;; 1203 1204 -without-* | --without-*) 1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1206 # Reject names that are not valid shell variable names. 1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1208 as_fn_error $? "invalid package name: $ac_useropt" 1209 ac_useropt_orig=$ac_useropt 1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1211 case $ac_user_opts in 1212 *" 1213"with_$ac_useropt" 1214"*) ;; 1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1216 ac_unrecognized_sep=', ';; 1217 esac 1218 eval with_$ac_useropt=no ;; 1219 1220 --x) 1221 # Obsolete; use --with-x. 1222 with_x=yes ;; 1223 1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1225 | --x-incl | --x-inc | --x-in | --x-i) 1226 ac_prev=x_includes ;; 1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1229 x_includes=$ac_optarg ;; 1230 1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1233 ac_prev=x_libraries ;; 1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1236 x_libraries=$ac_optarg ;; 1237 1238 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1239Try \`$0 --help' for more information" 1240 ;; 1241 1242 *=*) 1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1244 # Reject names that are not valid shell variable names. 1245 case $ac_envvar in #( 1246 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1248 esac 1249 eval $ac_envvar=\$ac_optarg 1250 export $ac_envvar ;; 1251 1252 *) 1253 # FIXME: should be removed in autoconf 3.0. 1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1258 ;; 1259 1260 esac 1261done 1262 1263if test -n "$ac_prev"; then 1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1265 as_fn_error $? "missing argument to $ac_option" 1266fi 1267 1268if test -n "$ac_unrecognized_opts"; then 1269 case $enable_option_checking in 1270 no) ;; 1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1273 esac 1274fi 1275 1276# Check all directory arguments for consistency. 1277for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1278 datadir sysconfdir sharedstatedir localstatedir includedir \ 1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1280 libdir localedir mandir 1281do 1282 eval ac_val=\$$ac_var 1283 # Remove trailing slashes. 1284 case $ac_val in 1285 */ ) 1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1287 eval $ac_var=\$ac_val;; 1288 esac 1289 # Be sure to have absolute directory names. 1290 case $ac_val in 1291 [\\/$]* | ?:[\\/]* ) continue;; 1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1293 esac 1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1295done 1296 1297# There might be people who depend on the old broken behavior: `$host' 1298# used to hold the argument of --host etc. 1299# FIXME: To remove some day. 1300build=$build_alias 1301host=$host_alias 1302target=$target_alias 1303 1304# FIXME: To remove some day. 1305if test "x$host_alias" != x; then 1306 if test "x$build_alias" = x; then 1307 cross_compiling=maybe 1308 elif test "x$build_alias" != "x$host_alias"; then 1309 cross_compiling=yes 1310 fi 1311fi 1312 1313ac_tool_prefix= 1314test -n "$host_alias" && ac_tool_prefix=$host_alias- 1315 1316test "$silent" = yes && exec 6>/dev/null 1317 1318 1319ac_pwd=`pwd` && test -n "$ac_pwd" && 1320ac_ls_di=`ls -di .` && 1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1322 as_fn_error $? "working directory cannot be determined" 1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1324 as_fn_error $? "pwd does not report name of working directory" 1325 1326 1327# Find the source files, if location was not specified. 1328if test -z "$srcdir"; then 1329 ac_srcdir_defaulted=yes 1330 # Try the directory containing this script, then the parent directory. 1331 ac_confdir=`$as_dirname -- "$as_myself" || 1332$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1333 X"$as_myself" : 'X\(//\)[^/]' \| \ 1334 X"$as_myself" : 'X\(//\)$' \| \ 1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1336$as_echo X"$as_myself" | 1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)[^/].*/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\).*/{ 1350 s//\1/ 1351 q 1352 } 1353 s/.*/./; q'` 1354 srcdir=$ac_confdir 1355 if test ! -r "$srcdir/$ac_unique_file"; then 1356 srcdir=.. 1357 fi 1358else 1359 ac_srcdir_defaulted=no 1360fi 1361if test ! -r "$srcdir/$ac_unique_file"; then 1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1364fi 1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1366ac_abs_confdir=`( 1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1368 pwd)` 1369# When building in place, set srcdir=. 1370if test "$ac_abs_confdir" = "$ac_pwd"; then 1371 srcdir=. 1372fi 1373# Remove unnecessary trailing slashes from srcdir. 1374# Double slashes in file names in object file debugging info 1375# mess up M-x gdb in Emacs. 1376case $srcdir in 1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1378esac 1379for ac_var in $ac_precious_vars; do 1380 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_env_${ac_var}_value=\$${ac_var} 1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1384done 1385 1386# 1387# Report the --help message. 1388# 1389if test "$ac_init_help" = "long"; then 1390 # Omit some internal or obsolete options to make the list less imposing. 1391 # This message is too long to be a string in the A/UX 3.1 sh. 1392 cat <<_ACEOF 1393\`configure' configures this package to adapt to many kinds of systems. 1394 1395Usage: $0 [OPTION]... [VAR=VALUE]... 1396 1397To assign environment variables (e.g., CC, CFLAGS...), specify them as 1398VAR=VALUE. See below for descriptions of some of the useful variables. 1399 1400Defaults for the options are specified in brackets. 1401 1402Configuration: 1403 -h, --help display this help and exit 1404 --help=short display options specific to this package 1405 --help=recursive display the short help of all the included packages 1406 -V, --version display version information and exit 1407 -q, --quiet, --silent do not print \`checking ...' messages 1408 --cache-file=FILE cache test results in FILE [disabled] 1409 -C, --config-cache alias for \`--cache-file=config.cache' 1410 -n, --no-create do not create output files 1411 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1412 1413Installation directories: 1414 --prefix=PREFIX install architecture-independent files in PREFIX 1415 [$ac_default_prefix] 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1417 [PREFIX] 1418 1419By default, \`make install' will install all the files in 1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1421an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1422for instance \`--prefix=\$HOME'. 1423 1424For better control, use the options below. 1425 1426Fine tuning of the installation directories: 1427 --bindir=DIR user executables [EPREFIX/bin] 1428 --sbindir=DIR system admin executables [EPREFIX/sbin] 1429 --libexecdir=DIR program executables [EPREFIX/libexec] 1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1433 --libdir=DIR object code libraries [EPREFIX/lib] 1434 --includedir=DIR C header files [PREFIX/include] 1435 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1438 --infodir=DIR info documentation [DATAROOTDIR/info] 1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1440 --mandir=DIR man documentation [DATAROOTDIR/man] 1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1442 --htmldir=DIR html documentation [DOCDIR] 1443 --dvidir=DIR dvi documentation [DOCDIR] 1444 --pdfdir=DIR pdf documentation [DOCDIR] 1445 --psdir=DIR ps documentation [DOCDIR] 1446_ACEOF 1447 1448 cat <<\_ACEOF 1449 1450X features: 1451 --x-includes=DIR X include files are in DIR 1452 --x-libraries=DIR X library files are in DIR 1453_ACEOF 1454fi 1455 1456if test -n "$ac_init_help"; then 1457 1458 cat <<\_ACEOF 1459 1460Optional Features: 1461 --disable-option-checking ignore unrecognized --enable/--with options 1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1464 --enable-fail-if-missing Fail if dependencies on additional features 1465 specified on the command line are missing. 1466 --disable-darwin Disable Darwin (Mac OS X) support. 1467 --disable-smack Do not check for Smack support. 1468 --disable-selinux Do not check for SELinux support. 1469 --disable-xsmp Disable XSMP session management 1470 --disable-xsmp-interact Disable XSMP interaction 1471 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1472 --enable-mzschemeinterp Include MzScheme interpreter. 1473 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1474 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1475 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1476 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1477 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1478 --enable-cscope Include cscope interface. 1479 --enable-workshop Include Sun Visual Workshop support. 1480 --disable-netbeans Disable NetBeans integration support. 1481 --disable-channel Disable process communication support. 1482 --enable-multibyte Include multibyte editing support. 1483 --enable-hangulinput Include Hangul input support. 1484 --enable-xim Include XIM input support. 1485 --enable-fontset Include X fontset output support. 1486 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1487 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1488 --enable-gnome-check If GTK GUI, check for GNOME default=no 1489 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1490 --enable-motif-check If auto-select GUI, check for Motif default=yes 1491 --enable-athena-check If auto-select GUI, check for Athena default=yes 1492 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1493 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1494 --disable-gtktest Do not try to compile and run a test GTK program 1495 --disable-icon-cache-update update disabled 1496 --disable-desktop-database-update update disabled 1497 --disable-largefile omit support for large files 1498 --disable-acl Don't check for ACL support. 1499 --disable-gpm Don't use gpm (Linux mouse daemon). 1500 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1501 --disable-nls Don't support NLS (gettext()). 1502 1503Optional Packages: 1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1506 --with-mac-arch=ARCH current, intel, ppc or both 1507 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1508 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1509 --without-local-dir do not search /usr/local for local libraries. 1510 --with-vim-name=NAME what to call the Vim executable 1511 --with-ex-name=NAME what to call the Ex executable 1512 --with-view-name=NAME what to call the View executable 1513 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1514 --with-modified-by=NAME name of who modified a release version 1515 --with-features=TYPE tiny, small, normal, big or huge (default: normal) 1516 --with-compiledby=NAME name to show in :version message 1517 --with-lua-prefix=PFX Prefix where Lua is installed. 1518 --with-luajit Link with LuaJIT instead of Lua. 1519 --with-plthome=PLTHOME Use PLTHOME. 1520 --with-python-config-dir=PATH Python's config directory 1521 --with-python3-config-dir=PATH Python's config directory 1522 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1523 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1524 --with-x use the X Window System 1525 --with-gnome-includes=DIR Specify location of GNOME headers 1526 --with-gnome-libs=DIR Specify location of GNOME libs 1527 --with-gnome Specify prefix for GNOME files 1528 --with-motif-lib=STRING Library for Motif 1529 --with-tlib=library terminal library to be used 1530 1531Some influential environment variables: 1532 CC C compiler command 1533 CFLAGS C compiler flags 1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1535 nonstandard directory <lib dir> 1536 LIBS libraries to pass to the linker, e.g. -l<library> 1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1538 you have headers in a nonstandard directory <include dir> 1539 CPP C preprocessor 1540 XMKMF Path to xmkmf, Makefile generator for X Window System 1541 1542Use these variables to override the choices made by `configure' or to help 1543it to find libraries and programs with nonstandard names/locations. 1544 1545Report bugs to the package provider. 1546_ACEOF 1547ac_status=$? 1548fi 1549 1550if test "$ac_init_help" = "recursive"; then 1551 # If there are subdirs, report their specific --help. 1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1553 test -d "$ac_dir" || 1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1555 continue 1556 ac_builddir=. 1557 1558case "$ac_dir" in 1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1560*) 1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1562 # A ".." for each directory in $ac_dir_suffix. 1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1564 case $ac_top_builddir_sub in 1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1567 esac ;; 1568esac 1569ac_abs_top_builddir=$ac_pwd 1570ac_abs_builddir=$ac_pwd$ac_dir_suffix 1571# for backward compatibility: 1572ac_top_builddir=$ac_top_build_prefix 1573 1574case $srcdir in 1575 .) # We are building in place. 1576 ac_srcdir=. 1577 ac_top_srcdir=$ac_top_builddir_sub 1578 ac_abs_top_srcdir=$ac_pwd ;; 1579 [\\/]* | ?:[\\/]* ) # Absolute name. 1580 ac_srcdir=$srcdir$ac_dir_suffix; 1581 ac_top_srcdir=$srcdir 1582 ac_abs_top_srcdir=$srcdir ;; 1583 *) # Relative name. 1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1585 ac_top_srcdir=$ac_top_build_prefix$srcdir 1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1587esac 1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1589 1590 cd "$ac_dir" || { ac_status=$?; continue; } 1591 # Check for guested configure. 1592 if test -f "$ac_srcdir/configure.gnu"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1595 elif test -f "$ac_srcdir/configure"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure" --help=recursive 1598 else 1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1600 fi || ac_status=$? 1601 cd "$ac_pwd" || { ac_status=$?; break; } 1602 done 1603fi 1604 1605test -n "$ac_init_help" && exit $ac_status 1606if $ac_init_version; then 1607 cat <<\_ACEOF 1608configure 1609generated by GNU Autoconf 2.69 1610 1611Copyright (C) 2012 Free Software Foundation, Inc. 1612This configure script is free software; the Free Software Foundation 1613gives unlimited permission to copy, distribute and modify it. 1614_ACEOF 1615 exit 1616fi 1617 1618## ------------------------ ## 1619## Autoconf initialization. ## 1620## ------------------------ ## 1621 1622# ac_fn_c_try_compile LINENO 1623# -------------------------- 1624# Try to compile conftest.$ac_ext, and return whether this succeeded. 1625ac_fn_c_try_compile () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 rm -f conftest.$ac_objext 1629 if { { ac_try="$ac_compile" 1630case "(($ac_try" in 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632 *) ac_try_echo=$ac_try;; 1633esac 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635$as_echo "$ac_try_echo"; } >&5 1636 (eval "$ac_compile") 2>conftest.err 1637 ac_status=$? 1638 if test -s conftest.err; then 1639 grep -v '^ *+' conftest.err >conftest.er1 1640 cat conftest.er1 >&5 1641 mv -f conftest.er1 conftest.err 1642 fi 1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } && { 1645 test -z "$ac_c_werror_flag" || 1646 test ! -s conftest.err 1647 } && test -s conftest.$ac_objext; then : 1648 ac_retval=0 1649else 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_compile 1659 1660# ac_fn_c_try_cpp LINENO 1661# ---------------------- 1662# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_cpp () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 if { { ac_try="$ac_cpp conftest.$ac_ext" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } > conftest.i && { 1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 }; then : 1685 ac_retval=0 1686else 1687 $as_echo "$as_me: failed program was:" >&5 1688sed 's/^/| /' conftest.$ac_ext >&5 1689 1690 ac_retval=1 1691fi 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_cpp 1696 1697# ac_fn_c_try_link LINENO 1698# ----------------------- 1699# Try to link conftest.$ac_ext, and return whether this succeeded. 1700ac_fn_c_try_link () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 rm -f conftest.$ac_objext conftest$ac_exeext 1704 if { { ac_try="$ac_link" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_link") 2>conftest.err 1712 ac_status=$? 1713 if test -s conftest.err; then 1714 grep -v '^ *+' conftest.err >conftest.er1 1715 cat conftest.er1 >&5 1716 mv -f conftest.er1 conftest.err 1717 fi 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; } && { 1720 test -z "$ac_c_werror_flag" || 1721 test ! -s conftest.err 1722 } && test -s conftest$ac_exeext && { 1723 test "$cross_compiling" = yes || 1724 test -x conftest$ac_exeext 1725 }; then : 1726 ac_retval=0 1727else 1728 $as_echo "$as_me: failed program was:" >&5 1729sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=1 1732fi 1733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1735 # interfere with the next link command; also delete a directory that is 1736 # left behind by Apple's compiler. We do this before executing the actions. 1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741} # ac_fn_c_try_link 1742 1743# ac_fn_c_try_run LINENO 1744# ---------------------- 1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1746# that executables *can* be run. 1747ac_fn_c_try_run () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { { ac_try="$ac_link" 1751case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754esac 1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756$as_echo "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>&5 1758 ac_status=$? 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1761 { { case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_try") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; }; }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: program exited with status $ac_status" >&5 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=$ac_status 1778fi 1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_run 1784 1785# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1786# ------------------------------------------------------- 1787# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1788# the include files in INCLUDES and setting the cache variable VAR 1789# accordingly. 1790ac_fn_c_check_header_mongrel () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 if eval \${$3+:} false; then : 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798fi 1799eval ac_res=\$$3 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801$as_echo "$ac_res" >&6; } 1802else 1803 # Is the header compilable? 1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1805$as_echo_n "checking $2 usability... " >&6; } 1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808$4 1809#include <$2> 1810_ACEOF 1811if ac_fn_c_try_compile "$LINENO"; then : 1812 ac_header_compiler=yes 1813else 1814 ac_header_compiler=no 1815fi 1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1818$as_echo "$ac_header_compiler" >&6; } 1819 1820# Is the header present? 1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1822$as_echo_n "checking $2 presence... " >&6; } 1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825#include <$2> 1826_ACEOF 1827if ac_fn_c_try_cpp "$LINENO"; then : 1828 ac_header_preproc=yes 1829else 1830 ac_header_preproc=no 1831fi 1832rm -f conftest.err conftest.i conftest.$ac_ext 1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1834$as_echo "$ac_header_preproc" >&6; } 1835 1836# So? What about this header? 1837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1838 yes:no: ) 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1840$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1843 ;; 1844 no:yes:* ) 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1846$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1848$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1850$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1852$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1855 ;; 1856esac 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1858$as_echo_n "checking for $2... " >&6; } 1859if eval \${$3+:} false; then : 1860 $as_echo_n "(cached) " >&6 1861else 1862 eval "$3=\$ac_header_compiler" 1863fi 1864eval ac_res=\$$3 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1866$as_echo "$ac_res" >&6; } 1867fi 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 1870} # ac_fn_c_check_header_mongrel 1871 1872# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1873# ------------------------------------------------------- 1874# Tests whether HEADER exists and can be compiled using the include files in 1875# INCLUDES, setting the cache variable VAR accordingly. 1876ac_fn_c_check_header_compile () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1880$as_echo_n "checking for $2... " >&6; } 1881if eval \${$3+:} false; then : 1882 $as_echo_n "(cached) " >&6 1883else 1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$4 1887#include <$2> 1888_ACEOF 1889if ac_fn_c_try_compile "$LINENO"; then : 1890 eval "$3=yes" 1891else 1892 eval "$3=no" 1893fi 1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1895fi 1896eval ac_res=\$$3 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1898$as_echo "$ac_res" >&6; } 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1900 1901} # ac_fn_c_check_header_compile 1902 1903# ac_fn_c_check_func LINENO FUNC VAR 1904# ---------------------------------- 1905# Tests whether FUNC exists, setting the cache variable VAR accordingly 1906ac_fn_c_check_func () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1910$as_echo_n "checking for $2... " >&6; } 1911if eval \${$3+:} false; then : 1912 $as_echo_n "(cached) " >&6 1913else 1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915/* end confdefs.h. */ 1916/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1917 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1918#define $2 innocuous_$2 1919 1920/* System header to define __stub macros and hopefully few prototypes, 1921 which can conflict with char $2 (); below. 1922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1923 <limits.h> exists even on freestanding compilers. */ 1924 1925#ifdef __STDC__ 1926# include <limits.h> 1927#else 1928# include <assert.h> 1929#endif 1930 1931#undef $2 1932 1933/* Override any GCC internal prototype to avoid an error. 1934 Use char because int might match the return type of a GCC 1935 builtin and then its argument prototype would still apply. */ 1936#ifdef __cplusplus 1937extern "C" 1938#endif 1939char $2 (); 1940/* The GNU C library defines this for functions which it implements 1941 to always fail with ENOSYS. Some functions are actually named 1942 something starting with __ and the normal name is an alias. */ 1943#if defined __stub_$2 || defined __stub___$2 1944choke me 1945#endif 1946 1947int 1948main () 1949{ 1950return $2 (); 1951 ; 1952 return 0; 1953} 1954_ACEOF 1955if ac_fn_c_try_link "$LINENO"; then : 1956 eval "$3=yes" 1957else 1958 eval "$3=no" 1959fi 1960rm -f core conftest.err conftest.$ac_objext \ 1961 conftest$ac_exeext conftest.$ac_ext 1962fi 1963eval ac_res=\$$3 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1965$as_echo "$ac_res" >&6; } 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 1968} # ac_fn_c_check_func 1969 1970# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1971# ------------------------------------------- 1972# Tests whether TYPE exists after having included INCLUDES, setting cache 1973# variable VAR accordingly. 1974ac_fn_c_check_type () 1975{ 1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978$as_echo_n "checking for $2... " >&6; } 1979if eval \${$3+:} false; then : 1980 $as_echo_n "(cached) " >&6 1981else 1982 eval "$3=no" 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984/* end confdefs.h. */ 1985$4 1986int 1987main () 1988{ 1989if (sizeof ($2)) 1990 return 0; 1991 ; 1992 return 0; 1993} 1994_ACEOF 1995if ac_fn_c_try_compile "$LINENO"; then : 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$4 1999int 2000main () 2001{ 2002if (sizeof (($2))) 2003 return 0; 2004 ; 2005 return 0; 2006} 2007_ACEOF 2008if ac_fn_c_try_compile "$LINENO"; then : 2009 2010else 2011 eval "$3=yes" 2012fi 2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2014fi 2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2016fi 2017eval ac_res=\$$3 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2019$as_echo "$ac_res" >&6; } 2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2021 2022} # ac_fn_c_check_type 2023 2024# ac_fn_c_find_uintX_t LINENO BITS VAR 2025# ------------------------------------ 2026# Finds an unsigned integer type with width BITS, setting cache variable VAR 2027# accordingly. 2028ac_fn_c_find_uintX_t () 2029{ 2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2032$as_echo_n "checking for uint$2_t... " >&6; } 2033if eval \${$3+:} false; then : 2034 $as_echo_n "(cached) " >&6 2035else 2036 eval "$3=no" 2037 # Order is important - never check a type that is potentially smaller 2038 # than half of the expected target width. 2039 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2040 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$ac_includes_default 2044int 2045main () 2046{ 2047static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2048test_array [0] = 0; 2049return test_array [0]; 2050 2051 ; 2052 return 0; 2053} 2054_ACEOF 2055if ac_fn_c_try_compile "$LINENO"; then : 2056 case $ac_type in #( 2057 uint$2_t) : 2058 eval "$3=yes" ;; #( 2059 *) : 2060 eval "$3=\$ac_type" ;; 2061esac 2062fi 2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2064 if eval test \"x\$"$3"\" = x"no"; then : 2065 2066else 2067 break 2068fi 2069 done 2070fi 2071eval ac_res=\$$3 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073$as_echo "$ac_res" >&6; } 2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2075 2076} # ac_fn_c_find_uintX_t 2077 2078# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2079# -------------------------------------------- 2080# Tries to find the compile-time value of EXPR in a program that includes 2081# INCLUDES, setting VAR accordingly. Returns whether the value could be 2082# computed 2083ac_fn_c_compute_int () 2084{ 2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2086 if test "$cross_compiling" = yes; then 2087 # Depending upon the size, compute the lo and hi bounds. 2088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2089/* end confdefs.h. */ 2090$4 2091int 2092main () 2093{ 2094static int test_array [1 - 2 * !(($2) >= 0)]; 2095test_array [0] = 0; 2096return test_array [0]; 2097 2098 ; 2099 return 0; 2100} 2101_ACEOF 2102if ac_fn_c_try_compile "$LINENO"; then : 2103 ac_lo=0 ac_mid=0 2104 while :; do 2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2106/* end confdefs.h. */ 2107$4 2108int 2109main () 2110{ 2111static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2112test_array [0] = 0; 2113return test_array [0]; 2114 2115 ; 2116 return 0; 2117} 2118_ACEOF 2119if ac_fn_c_try_compile "$LINENO"; then : 2120 ac_hi=$ac_mid; break 2121else 2122 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2123 if test $ac_lo -le $ac_mid; then 2124 ac_lo= ac_hi= 2125 break 2126 fi 2127 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2128fi 2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2130 done 2131else 2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2133/* end confdefs.h. */ 2134$4 2135int 2136main () 2137{ 2138static int test_array [1 - 2 * !(($2) < 0)]; 2139test_array [0] = 0; 2140return test_array [0]; 2141 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146if ac_fn_c_try_compile "$LINENO"; then : 2147 ac_hi=-1 ac_mid=-1 2148 while :; do 2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2150/* end confdefs.h. */ 2151$4 2152int 2153main () 2154{ 2155static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2156test_array [0] = 0; 2157return test_array [0]; 2158 2159 ; 2160 return 0; 2161} 2162_ACEOF 2163if ac_fn_c_try_compile "$LINENO"; then : 2164 ac_lo=$ac_mid; break 2165else 2166 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2167 if test $ac_mid -le $ac_hi; then 2168 ac_lo= ac_hi= 2169 break 2170 fi 2171 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2172fi 2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2174 done 2175else 2176 ac_lo= ac_hi= 2177fi 2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2179fi 2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2181# Binary search between lo and hi bounds. 2182while test "x$ac_lo" != "x$ac_hi"; do 2183 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2185/* end confdefs.h. */ 2186$4 2187int 2188main () 2189{ 2190static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2191test_array [0] = 0; 2192return test_array [0]; 2193 2194 ; 2195 return 0; 2196} 2197_ACEOF 2198if ac_fn_c_try_compile "$LINENO"; then : 2199 ac_hi=$ac_mid 2200else 2201 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2202fi 2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204done 2205case $ac_lo in #(( 2206?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2207'') ac_retval=1 ;; 2208esac 2209 else 2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2211/* end confdefs.h. */ 2212$4 2213static long int longval () { return $2; } 2214static unsigned long int ulongval () { return $2; } 2215#include <stdio.h> 2216#include <stdlib.h> 2217int 2218main () 2219{ 2220 2221 FILE *f = fopen ("conftest.val", "w"); 2222 if (! f) 2223 return 1; 2224 if (($2) < 0) 2225 { 2226 long int i = longval (); 2227 if (i != ($2)) 2228 return 1; 2229 fprintf (f, "%ld", i); 2230 } 2231 else 2232 { 2233 unsigned long int i = ulongval (); 2234 if (i != ($2)) 2235 return 1; 2236 fprintf (f, "%lu", i); 2237 } 2238 /* Do not output a trailing newline, as this causes \r\n confusion 2239 on some platforms. */ 2240 return ferror (f) || fclose (f) != 0; 2241 2242 ; 2243 return 0; 2244} 2245_ACEOF 2246if ac_fn_c_try_run "$LINENO"; then : 2247 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2248else 2249 ac_retval=1 2250fi 2251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2252 conftest.$ac_objext conftest.beam conftest.$ac_ext 2253rm -f conftest.val 2254 2255 fi 2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2257 as_fn_set_status $ac_retval 2258 2259} # ac_fn_c_compute_int 2260cat >auto/config.log <<_ACEOF 2261This file contains any messages produced by compilers while 2262running configure, to aid debugging if configure makes a mistake. 2263 2264It was created by $as_me, which was 2265generated by GNU Autoconf 2.69. Invocation command line was 2266 2267 $ $0 $@ 2268 2269_ACEOF 2270exec 5>>auto/config.log 2271{ 2272cat <<_ASUNAME 2273## --------- ## 2274## Platform. ## 2275## --------- ## 2276 2277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2278uname -m = `(uname -m) 2>/dev/null || echo unknown` 2279uname -r = `(uname -r) 2>/dev/null || echo unknown` 2280uname -s = `(uname -s) 2>/dev/null || echo unknown` 2281uname -v = `(uname -v) 2>/dev/null || echo unknown` 2282 2283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2284/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2285 2286/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2287/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2289/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2290/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2291/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2292/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2293 2294_ASUNAME 2295 2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2297for as_dir in $PATH 2298do 2299 IFS=$as_save_IFS 2300 test -z "$as_dir" && as_dir=. 2301 $as_echo "PATH: $as_dir" 2302 done 2303IFS=$as_save_IFS 2304 2305} >&5 2306 2307cat >&5 <<_ACEOF 2308 2309 2310## ----------- ## 2311## Core tests. ## 2312## ----------- ## 2313 2314_ACEOF 2315 2316 2317# Keep a trace of the command line. 2318# Strip out --no-create and --no-recursion so they do not pile up. 2319# Strip out --silent because we don't want to record it for future runs. 2320# Also quote any args containing shell meta-characters. 2321# Make two passes to allow for proper duplicate-argument suppression. 2322ac_configure_args= 2323ac_configure_args0= 2324ac_configure_args1= 2325ac_must_keep_next=false 2326for ac_pass in 1 2 2327do 2328 for ac_arg 2329 do 2330 case $ac_arg in 2331 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2333 | -silent | --silent | --silen | --sile | --sil) 2334 continue ;; 2335 *\'*) 2336 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2337 esac 2338 case $ac_pass in 2339 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2340 2) 2341 as_fn_append ac_configure_args1 " '$ac_arg'" 2342 if test $ac_must_keep_next = true; then 2343 ac_must_keep_next=false # Got value, back to normal. 2344 else 2345 case $ac_arg in 2346 *=* | --config-cache | -C | -disable-* | --disable-* \ 2347 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2348 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2349 | -with-* | --with-* | -without-* | --without-* | --x) 2350 case "$ac_configure_args0 " in 2351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2352 esac 2353 ;; 2354 -* ) ac_must_keep_next=true ;; 2355 esac 2356 fi 2357 as_fn_append ac_configure_args " '$ac_arg'" 2358 ;; 2359 esac 2360 done 2361done 2362{ ac_configure_args0=; unset ac_configure_args0;} 2363{ ac_configure_args1=; unset ac_configure_args1;} 2364 2365# When interrupted or exit'd, cleanup temporary files, and complete 2366# config.log. We remove comments because anyway the quotes in there 2367# would cause problems or look ugly. 2368# WARNING: Use '\'' to represent an apostrophe within the trap. 2369# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2370trap 'exit_status=$? 2371 # Save into config.log some information that might help in debugging. 2372 { 2373 echo 2374 2375 $as_echo "## ---------------- ## 2376## Cache variables. ## 2377## ---------------- ##" 2378 echo 2379 # The following way of writing the cache mishandles newlines in values, 2380( 2381 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2382 eval ac_val=\$$ac_var 2383 case $ac_val in #( 2384 *${as_nl}*) 2385 case $ac_var in #( 2386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2387$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2388 esac 2389 case $ac_var in #( 2390 _ | IFS | as_nl) ;; #( 2391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2392 *) { eval $ac_var=; unset $ac_var;} ;; 2393 esac ;; 2394 esac 2395 done 2396 (set) 2>&1 | 2397 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2398 *${as_nl}ac_space=\ *) 2399 sed -n \ 2400 "s/'\''/'\''\\\\'\'''\''/g; 2401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2402 ;; #( 2403 *) 2404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2405 ;; 2406 esac | 2407 sort 2408) 2409 echo 2410 2411 $as_echo "## ----------------- ## 2412## Output variables. ## 2413## ----------------- ##" 2414 echo 2415 for ac_var in $ac_subst_vars 2416 do 2417 eval ac_val=\$$ac_var 2418 case $ac_val in 2419 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2420 esac 2421 $as_echo "$ac_var='\''$ac_val'\''" 2422 done | sort 2423 echo 2424 2425 if test -n "$ac_subst_files"; then 2426 $as_echo "## ------------------- ## 2427## File substitutions. ## 2428## ------------------- ##" 2429 echo 2430 for ac_var in $ac_subst_files 2431 do 2432 eval ac_val=\$$ac_var 2433 case $ac_val in 2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2435 esac 2436 $as_echo "$ac_var='\''$ac_val'\''" 2437 done | sort 2438 echo 2439 fi 2440 2441 if test -s confdefs.h; then 2442 $as_echo "## ----------- ## 2443## confdefs.h. ## 2444## ----------- ##" 2445 echo 2446 cat confdefs.h 2447 echo 2448 fi 2449 test "$ac_signal" != 0 && 2450 $as_echo "$as_me: caught signal $ac_signal" 2451 $as_echo "$as_me: exit $exit_status" 2452 } >&5 2453 rm -f core *.core core.conftest.* && 2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2455 exit $exit_status 2456' 0 2457for ac_signal in 1 2 13 15; do 2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2459done 2460ac_signal=0 2461 2462# confdefs.h avoids OS command line length limits that DEFS can exceed. 2463rm -f -r conftest* confdefs.h 2464 2465$as_echo "/* confdefs.h */" > confdefs.h 2466 2467# Predefined preprocessor variables. 2468 2469cat >>confdefs.h <<_ACEOF 2470#define PACKAGE_NAME "$PACKAGE_NAME" 2471_ACEOF 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_VERSION "$PACKAGE_VERSION" 2479_ACEOF 2480 2481cat >>confdefs.h <<_ACEOF 2482#define PACKAGE_STRING "$PACKAGE_STRING" 2483_ACEOF 2484 2485cat >>confdefs.h <<_ACEOF 2486#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2487_ACEOF 2488 2489cat >>confdefs.h <<_ACEOF 2490#define PACKAGE_URL "$PACKAGE_URL" 2491_ACEOF 2492 2493 2494# Let the site file select an alternate cache file if it wants to. 2495# Prefer an explicitly selected file to automatically selected ones. 2496ac_site_file1=NONE 2497ac_site_file2=NONE 2498if test -n "$CONFIG_SITE"; then 2499 # We do not want a PATH search for config.site. 2500 case $CONFIG_SITE in #(( 2501 -*) ac_site_file1=./$CONFIG_SITE;; 2502 */*) ac_site_file1=$CONFIG_SITE;; 2503 *) ac_site_file1=./$CONFIG_SITE;; 2504 esac 2505elif test "x$prefix" != xNONE; then 2506 ac_site_file1=$prefix/share/config.site 2507 ac_site_file2=$prefix/etc/config.site 2508else 2509 ac_site_file1=$ac_default_prefix/share/config.site 2510 ac_site_file2=$ac_default_prefix/etc/config.site 2511fi 2512for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2513do 2514 test "x$ac_site_file" = xNONE && continue 2515 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2517$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2518 sed 's/^/| /' "$ac_site_file" >&5 2519 . "$ac_site_file" \ 2520 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2522as_fn_error $? "failed to load site script $ac_site_file 2523See \`config.log' for more details" "$LINENO" 5; } 2524 fi 2525done 2526 2527if test -r "$cache_file"; then 2528 # Some versions of bash will fail to source /dev/null (special files 2529 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2530 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2532$as_echo "$as_me: loading cache $cache_file" >&6;} 2533 case $cache_file in 2534 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2535 *) . "./$cache_file";; 2536 esac 2537 fi 2538else 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2540$as_echo "$as_me: creating cache $cache_file" >&6;} 2541 >$cache_file 2542fi 2543 2544# Check that the precious variables saved in the cache have kept the same 2545# value. 2546ac_cache_corrupted=false 2547for ac_var in $ac_precious_vars; do 2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2549 eval ac_new_set=\$ac_env_${ac_var}_set 2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2551 eval ac_new_val=\$ac_env_${ac_var}_value 2552 case $ac_old_set,$ac_new_set in 2553 set,) 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2555$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2556 ac_cache_corrupted=: ;; 2557 ,set) 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2559$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2560 ac_cache_corrupted=: ;; 2561 ,);; 2562 *) 2563 if test "x$ac_old_val" != "x$ac_new_val"; then 2564 # differences in whitespace do not lead to failure. 2565 ac_old_val_w=`echo x $ac_old_val` 2566 ac_new_val_w=`echo x $ac_new_val` 2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2569$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2570 ac_cache_corrupted=: 2571 else 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2573$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2574 eval $ac_var=\$ac_old_val 2575 fi 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2577$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2579$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2580 fi;; 2581 esac 2582 # Pass precious variables to config.status. 2583 if test "$ac_new_set" = set; then 2584 case $ac_new_val in 2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2586 *) ac_arg=$ac_var=$ac_new_val ;; 2587 esac 2588 case " $ac_configure_args " in 2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2591 esac 2592 fi 2593done 2594if $ac_cache_corrupted; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2598$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2599 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2600fi 2601## -------------------- ## 2602## Main body of script. ## 2603## -------------------- ## 2604 2605ac_ext=c 2606ac_cpp='$CPP $CPPFLAGS' 2607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2609ac_compiler_gnu=$ac_cv_c_compiler_gnu 2610 2611 2612ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2613 2614 2615$as_echo "#define UNIX 1" >>confdefs.h 2616 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2618$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2619set x ${MAKE-make} 2620ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2621if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623else 2624 cat >conftest.make <<\_ACEOF 2625SHELL = /bin/sh 2626all: 2627 @echo '@@@%%%=$(MAKE)=@@@%%%' 2628_ACEOF 2629# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2630case `${MAKE-make} -f conftest.make 2>/dev/null` in 2631 *@@@%%%=?*=@@@%%%*) 2632 eval ac_cv_prog_make_${ac_make}_set=yes;; 2633 *) 2634 eval ac_cv_prog_make_${ac_make}_set=no;; 2635esac 2636rm -f conftest.make 2637fi 2638if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2640$as_echo "yes" >&6; } 2641 SET_MAKE= 2642else 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2644$as_echo "no" >&6; } 2645 SET_MAKE="MAKE=${MAKE-make}" 2646fi 2647 2648 2649ac_ext=c 2650ac_cpp='$CPP $CPPFLAGS' 2651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2653ac_compiler_gnu=$ac_cv_c_compiler_gnu 2654if test -n "$ac_tool_prefix"; then 2655 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2656set dummy ${ac_tool_prefix}gcc; ac_word=$2 2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2658$as_echo_n "checking for $ac_word... " >&6; } 2659if ${ac_cv_prog_CC+:} false; then : 2660 $as_echo_n "(cached) " >&6 2661else 2662 if test -n "$CC"; then 2663 ac_cv_prog_CC="$CC" # Let the user override the test. 2664else 2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666for as_dir in $PATH 2667do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2672 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2674 break 2 2675 fi 2676done 2677 done 2678IFS=$as_save_IFS 2679 2680fi 2681fi 2682CC=$ac_cv_prog_CC 2683if test -n "$CC"; then 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2685$as_echo "$CC" >&6; } 2686else 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2688$as_echo "no" >&6; } 2689fi 2690 2691 2692fi 2693if test -z "$ac_cv_prog_CC"; then 2694 ac_ct_CC=$CC 2695 # Extract the first word of "gcc", so it can be a program name with args. 2696set dummy gcc; ac_word=$2 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2698$as_echo_n "checking for $ac_word... " >&6; } 2699if ${ac_cv_prog_ac_ct_CC+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 if test -n "$ac_ct_CC"; then 2703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2704else 2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2706for as_dir in $PATH 2707do 2708 IFS=$as_save_IFS 2709 test -z "$as_dir" && as_dir=. 2710 for ac_exec_ext in '' $ac_executable_extensions; do 2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2712 ac_cv_prog_ac_ct_CC="gcc" 2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2714 break 2 2715 fi 2716done 2717 done 2718IFS=$as_save_IFS 2719 2720fi 2721fi 2722ac_ct_CC=$ac_cv_prog_ac_ct_CC 2723if test -n "$ac_ct_CC"; then 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2725$as_echo "$ac_ct_CC" >&6; } 2726else 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2728$as_echo "no" >&6; } 2729fi 2730 2731 if test "x$ac_ct_CC" = x; then 2732 CC="" 2733 else 2734 case $cross_compiling:$ac_tool_warned in 2735yes:) 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2738ac_tool_warned=yes ;; 2739esac 2740 CC=$ac_ct_CC 2741 fi 2742else 2743 CC="$ac_cv_prog_CC" 2744fi 2745 2746if test -z "$CC"; then 2747 if test -n "$ac_tool_prefix"; then 2748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2749set dummy ${ac_tool_prefix}cc; ac_word=$2 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2751$as_echo_n "checking for $ac_word... " >&6; } 2752if ${ac_cv_prog_CC+:} false; then : 2753 $as_echo_n "(cached) " >&6 2754else 2755 if test -n "$CC"; then 2756 ac_cv_prog_CC="$CC" # Let the user override the test. 2757else 2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759for as_dir in $PATH 2760do 2761 IFS=$as_save_IFS 2762 test -z "$as_dir" && as_dir=. 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2765 ac_cv_prog_CC="${ac_tool_prefix}cc" 2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 break 2 2768 fi 2769done 2770 done 2771IFS=$as_save_IFS 2772 2773fi 2774fi 2775CC=$ac_cv_prog_CC 2776if test -n "$CC"; then 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2778$as_echo "$CC" >&6; } 2779else 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2781$as_echo "no" >&6; } 2782fi 2783 2784 2785 fi 2786fi 2787if test -z "$CC"; then 2788 # Extract the first word of "cc", so it can be a program name with args. 2789set dummy cc; ac_word=$2 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2791$as_echo_n "checking for $ac_word... " >&6; } 2792if ${ac_cv_prog_CC+:} false; then : 2793 $as_echo_n "(cached) " >&6 2794else 2795 if test -n "$CC"; then 2796 ac_cv_prog_CC="$CC" # Let the user override the test. 2797else 2798 ac_prog_rejected=no 2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2800for as_dir in $PATH 2801do 2802 IFS=$as_save_IFS 2803 test -z "$as_dir" && as_dir=. 2804 for ac_exec_ext in '' $ac_executable_extensions; do 2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2806 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2807 ac_prog_rejected=yes 2808 continue 2809 fi 2810 ac_cv_prog_CC="cc" 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814done 2815 done 2816IFS=$as_save_IFS 2817 2818if test $ac_prog_rejected = yes; then 2819 # We found a bogon in the path, so make sure we never use it. 2820 set dummy $ac_cv_prog_CC 2821 shift 2822 if test $# != 0; then 2823 # We chose a different compiler from the bogus one. 2824 # However, it has the same basename, so the bogon will be chosen 2825 # first if we set CC to just the basename; use the full file name. 2826 shift 2827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2828 fi 2829fi 2830fi 2831fi 2832CC=$ac_cv_prog_CC 2833if test -n "$CC"; then 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2835$as_echo "$CC" >&6; } 2836else 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2838$as_echo "no" >&6; } 2839fi 2840 2841 2842fi 2843if test -z "$CC"; then 2844 if test -n "$ac_tool_prefix"; then 2845 for ac_prog in cl.exe 2846 do 2847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2848set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2850$as_echo_n "checking for $ac_word... " >&6; } 2851if ${ac_cv_prog_CC+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2864 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869 done 2870IFS=$as_save_IFS 2871 2872fi 2873fi 2874CC=$ac_cv_prog_CC 2875if test -n "$CC"; then 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2877$as_echo "$CC" >&6; } 2878else 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2880$as_echo "no" >&6; } 2881fi 2882 2883 2884 test -n "$CC" && break 2885 done 2886fi 2887if test -z "$CC"; then 2888 ac_ct_CC=$CC 2889 for ac_prog in cl.exe 2890do 2891 # Extract the first word of "$ac_prog", so it can be a program name with args. 2892set dummy $ac_prog; ac_word=$2 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894$as_echo_n "checking for $ac_word... " >&6; } 2895if ${ac_cv_prog_ac_ct_CC+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if test -n "$ac_ct_CC"; then 2899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2900else 2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902for as_dir in $PATH 2903do 2904 IFS=$as_save_IFS 2905 test -z "$as_dir" && as_dir=. 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2908 ac_cv_prog_ac_ct_CC="$ac_prog" 2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912done 2913 done 2914IFS=$as_save_IFS 2915 2916fi 2917fi 2918ac_ct_CC=$ac_cv_prog_ac_ct_CC 2919if test -n "$ac_ct_CC"; then 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2921$as_echo "$ac_ct_CC" >&6; } 2922else 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924$as_echo "no" >&6; } 2925fi 2926 2927 2928 test -n "$ac_ct_CC" && break 2929done 2930 2931 if test "x$ac_ct_CC" = x; then 2932 CC="" 2933 else 2934 case $cross_compiling:$ac_tool_warned in 2935yes:) 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2938ac_tool_warned=yes ;; 2939esac 2940 CC=$ac_ct_CC 2941 fi 2942fi 2943 2944fi 2945 2946 2947test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2949as_fn_error $? "no acceptable C compiler found in \$PATH 2950See \`config.log' for more details" "$LINENO" 5; } 2951 2952# Provide some information about the compiler. 2953$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2954set X $ac_compile 2955ac_compiler=$2 2956for ac_option in --version -v -V -qversion; do 2957 { { ac_try="$ac_compiler $ac_option >&5" 2958case "(($ac_try" in 2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2960 *) ac_try_echo=$ac_try;; 2961esac 2962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2963$as_echo "$ac_try_echo"; } >&5 2964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2965 ac_status=$? 2966 if test -s conftest.err; then 2967 sed '10a\ 2968... rest of stderr output deleted ... 2969 10q' conftest.err >conftest.er1 2970 cat conftest.er1 >&5 2971 fi 2972 rm -f conftest.er1 conftest.err 2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2974 test $ac_status = 0; } 2975done 2976 2977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2978/* end confdefs.h. */ 2979 2980int 2981main () 2982{ 2983 2984 ; 2985 return 0; 2986} 2987_ACEOF 2988ac_clean_files_save=$ac_clean_files 2989ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2990# Try to create an executable without -o first, disregard a.out. 2991# It will help us diagnose broken compilers, and finding out an intuition 2992# of exeext. 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2994$as_echo_n "checking whether the C compiler works... " >&6; } 2995ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2996 2997# The possible output files: 2998ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2999 3000ac_rmfiles= 3001for ac_file in $ac_files 3002do 3003 case $ac_file in 3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3005 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3006 esac 3007done 3008rm -f $ac_rmfiles 3009 3010if { { ac_try="$ac_link_default" 3011case "(($ac_try" in 3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3013 *) ac_try_echo=$ac_try;; 3014esac 3015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3016$as_echo "$ac_try_echo"; } >&5 3017 (eval "$ac_link_default") 2>&5 3018 ac_status=$? 3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3020 test $ac_status = 0; }; then : 3021 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3022# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3023# in a Makefile. We should not override ac_cv_exeext if it was cached, 3024# so that the user can short-circuit this test for compilers unknown to 3025# Autoconf. 3026for ac_file in $ac_files '' 3027do 3028 test -f "$ac_file" || continue 3029 case $ac_file in 3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3031 ;; 3032 [ab].out ) 3033 # We found the default executable, but exeext='' is most 3034 # certainly right. 3035 break;; 3036 *.* ) 3037 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3038 then :; else 3039 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3040 fi 3041 # We set ac_cv_exeext here because the later test for it is not 3042 # safe: cross compilers may not add the suffix if given an `-o' 3043 # argument, so we may need to know it at that point already. 3044 # Even if this section looks crufty: it has the advantage of 3045 # actually working. 3046 break;; 3047 * ) 3048 break;; 3049 esac 3050done 3051test "$ac_cv_exeext" = no && ac_cv_exeext= 3052 3053else 3054 ac_file='' 3055fi 3056if test -z "$ac_file"; then : 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3058$as_echo "no" >&6; } 3059$as_echo "$as_me: failed program was:" >&5 3060sed 's/^/| /' conftest.$ac_ext >&5 3061 3062{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3064as_fn_error 77 "C compiler cannot create executables 3065See \`config.log' for more details" "$LINENO" 5; } 3066else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3068$as_echo "yes" >&6; } 3069fi 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3071$as_echo_n "checking for C compiler default output file name... " >&6; } 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3073$as_echo "$ac_file" >&6; } 3074ac_exeext=$ac_cv_exeext 3075 3076rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3077ac_clean_files=$ac_clean_files_save 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3079$as_echo_n "checking for suffix of executables... " >&6; } 3080if { { ac_try="$ac_link" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086$as_echo "$ac_try_echo"; } >&5 3087 (eval "$ac_link") 2>&5 3088 ac_status=$? 3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3090 test $ac_status = 0; }; then : 3091 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3092# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3093# work properly (i.e., refer to `conftest.exe'), while it won't with 3094# `rm'. 3095for ac_file in conftest.exe conftest conftest.*; do 3096 test -f "$ac_file" || continue 3097 case $ac_file in 3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3099 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3100 break;; 3101 * ) break;; 3102 esac 3103done 3104else 3105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3107as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3108See \`config.log' for more details" "$LINENO" 5; } 3109fi 3110rm -f conftest conftest$ac_cv_exeext 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3112$as_echo "$ac_cv_exeext" >&6; } 3113 3114rm -f conftest.$ac_ext 3115EXEEXT=$ac_cv_exeext 3116ac_exeext=$EXEEXT 3117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3118/* end confdefs.h. */ 3119#include <stdio.h> 3120int 3121main () 3122{ 3123FILE *f = fopen ("conftest.out", "w"); 3124 return ferror (f) || fclose (f) != 0; 3125 3126 ; 3127 return 0; 3128} 3129_ACEOF 3130ac_clean_files="$ac_clean_files conftest.out" 3131# Check that the compiler produces executables we can run. If not, either 3132# the compiler is broken, or we cross compile. 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3134$as_echo_n "checking whether we are cross compiling... " >&6; } 3135if test "$cross_compiling" != yes; then 3136 { { ac_try="$ac_link" 3137case "(($ac_try" in 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3139 *) ac_try_echo=$ac_try;; 3140esac 3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3142$as_echo "$ac_try_echo"; } >&5 3143 (eval "$ac_link") 2>&5 3144 ac_status=$? 3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3146 test $ac_status = 0; } 3147 if { ac_try='./conftest$ac_cv_exeext' 3148 { { case "(($ac_try" in 3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150 *) ac_try_echo=$ac_try;; 3151esac 3152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3153$as_echo "$ac_try_echo"; } >&5 3154 (eval "$ac_try") 2>&5 3155 ac_status=$? 3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3157 test $ac_status = 0; }; }; then 3158 cross_compiling=no 3159 else 3160 if test "$cross_compiling" = maybe; then 3161 cross_compiling=yes 3162 else 3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3165as_fn_error $? "cannot run C compiled programs. 3166If you meant to cross compile, use \`--host'. 3167See \`config.log' for more details" "$LINENO" 5; } 3168 fi 3169 fi 3170fi 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3172$as_echo "$cross_compiling" >&6; } 3173 3174rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3175ac_clean_files=$ac_clean_files_save 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3177$as_echo_n "checking for suffix of object files... " >&6; } 3178if ${ac_cv_objext+:} false; then : 3179 $as_echo_n "(cached) " >&6 3180else 3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3182/* end confdefs.h. */ 3183 3184int 3185main () 3186{ 3187 3188 ; 3189 return 0; 3190} 3191_ACEOF 3192rm -f conftest.o conftest.obj 3193if { { ac_try="$ac_compile" 3194case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3199$as_echo "$ac_try_echo"; } >&5 3200 (eval "$ac_compile") 2>&5 3201 ac_status=$? 3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3203 test $ac_status = 0; }; then : 3204 for ac_file in conftest.o conftest.obj conftest.*; do 3205 test -f "$ac_file" || continue; 3206 case $ac_file in 3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3208 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3209 break;; 3210 esac 3211done 3212else 3213 $as_echo "$as_me: failed program was:" >&5 3214sed 's/^/| /' conftest.$ac_ext >&5 3215 3216{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3218as_fn_error $? "cannot compute suffix of object files: cannot compile 3219See \`config.log' for more details" "$LINENO" 5; } 3220fi 3221rm -f conftest.$ac_cv_objext conftest.$ac_ext 3222fi 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3224$as_echo "$ac_cv_objext" >&6; } 3225OBJEXT=$ac_cv_objext 3226ac_objext=$OBJEXT 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3228$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3229if ${ac_cv_c_compiler_gnu+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238#ifndef __GNUC__ 3239 choke me 3240#endif 3241 3242 ; 3243 return 0; 3244} 3245_ACEOF 3246if ac_fn_c_try_compile "$LINENO"; then : 3247 ac_compiler_gnu=yes 3248else 3249 ac_compiler_gnu=no 3250fi 3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3252ac_cv_c_compiler_gnu=$ac_compiler_gnu 3253 3254fi 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3256$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3257if test $ac_compiler_gnu = yes; then 3258 GCC=yes 3259else 3260 GCC= 3261fi 3262ac_test_CFLAGS=${CFLAGS+set} 3263ac_save_CFLAGS=$CFLAGS 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3265$as_echo_n "checking whether $CC accepts -g... " >&6; } 3266if ${ac_cv_prog_cc_g+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 ac_save_c_werror_flag=$ac_c_werror_flag 3270 ac_c_werror_flag=yes 3271 ac_cv_prog_cc_g=no 3272 CFLAGS="-g" 3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3274/* end confdefs.h. */ 3275 3276int 3277main () 3278{ 3279 3280 ; 3281 return 0; 3282} 3283_ACEOF 3284if ac_fn_c_try_compile "$LINENO"; then : 3285 ac_cv_prog_cc_g=yes 3286else 3287 CFLAGS="" 3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294 3295 ; 3296 return 0; 3297} 3298_ACEOF 3299if ac_fn_c_try_compile "$LINENO"; then : 3300 3301else 3302 ac_c_werror_flag=$ac_save_c_werror_flag 3303 CFLAGS="-g" 3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305/* end confdefs.h. */ 3306 3307int 3308main () 3309{ 3310 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315if ac_fn_c_try_compile "$LINENO"; then : 3316 ac_cv_prog_cc_g=yes 3317fi 3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3319fi 3320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3321fi 3322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3323 ac_c_werror_flag=$ac_save_c_werror_flag 3324fi 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3326$as_echo "$ac_cv_prog_cc_g" >&6; } 3327if test "$ac_test_CFLAGS" = set; then 3328 CFLAGS=$ac_save_CFLAGS 3329elif test $ac_cv_prog_cc_g = yes; then 3330 if test "$GCC" = yes; then 3331 CFLAGS="-g -O2" 3332 else 3333 CFLAGS="-g" 3334 fi 3335else 3336 if test "$GCC" = yes; then 3337 CFLAGS="-O2" 3338 else 3339 CFLAGS= 3340 fi 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3343$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3344if ${ac_cv_prog_cc_c89+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346else 3347 ac_cv_prog_cc_c89=no 3348ac_save_CC=$CC 3349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3350/* end confdefs.h. */ 3351#include <stdarg.h> 3352#include <stdio.h> 3353struct stat; 3354/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3355struct buf { int x; }; 3356FILE * (*rcsopen) (struct buf *, struct stat *, int); 3357static char *e (p, i) 3358 char **p; 3359 int i; 3360{ 3361 return p[i]; 3362} 3363static char *f (char * (*g) (char **, int), char **p, ...) 3364{ 3365 char *s; 3366 va_list v; 3367 va_start (v,p); 3368 s = g (p, va_arg (v,int)); 3369 va_end (v); 3370 return s; 3371} 3372 3373/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3374 function prototypes and stuff, but not '\xHH' hex character constants. 3375 These don't provoke an error unfortunately, instead are silently treated 3376 as 'x'. The following induces an error, until -std is added to get 3377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3378 array size at least. It's necessary to write '\x00'==0 to get something 3379 that's true only with -std. */ 3380int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3381 3382/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3383 inside strings and character constants. */ 3384#define FOO(x) 'x' 3385int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3386 3387int test (int i, double x); 3388struct s1 {int (*f) (int a);}; 3389struct s2 {int (*f) (double a);}; 3390int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3391int argc; 3392char **argv; 3393int 3394main () 3395{ 3396return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3397 ; 3398 return 0; 3399} 3400_ACEOF 3401for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3403do 3404 CC="$ac_save_CC $ac_arg" 3405 if ac_fn_c_try_compile "$LINENO"; then : 3406 ac_cv_prog_cc_c89=$ac_arg 3407fi 3408rm -f core conftest.err conftest.$ac_objext 3409 test "x$ac_cv_prog_cc_c89" != "xno" && break 3410done 3411rm -f conftest.$ac_ext 3412CC=$ac_save_CC 3413 3414fi 3415# AC_CACHE_VAL 3416case "x$ac_cv_prog_cc_c89" in 3417 x) 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3419$as_echo "none needed" >&6; } ;; 3420 xno) 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3422$as_echo "unsupported" >&6; } ;; 3423 *) 3424 CC="$CC $ac_cv_prog_cc_c89" 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3426$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3427esac 3428if test "x$ac_cv_prog_cc_c89" != xno; then : 3429 3430fi 3431 3432ac_ext=c 3433ac_cpp='$CPP $CPPFLAGS' 3434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3436ac_compiler_gnu=$ac_cv_c_compiler_gnu 3437 ac_ext=c 3438ac_cpp='$CPP $CPPFLAGS' 3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3441ac_compiler_gnu=$ac_cv_c_compiler_gnu 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3443$as_echo_n "checking how to run the C preprocessor... " >&6; } 3444# On Suns, sometimes $CPP names a directory. 3445if test -n "$CPP" && test -d "$CPP"; then 3446 CPP= 3447fi 3448if test -z "$CPP"; then 3449 if ${ac_cv_prog_CPP+:} false; then : 3450 $as_echo_n "(cached) " >&6 3451else 3452 # Double quotes because CPP needs to be expanded 3453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3454 do 3455 ac_preproc_ok=false 3456for ac_c_preproc_warn_flag in '' yes 3457do 3458 # Use a header file that comes with gcc, so configuring glibc 3459 # with a fresh cross-compiler works. 3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3461 # <limits.h> exists even on freestanding compilers. 3462 # On the NeXT, cc -E runs the code through the compiler's parser, 3463 # not just through cpp. "Syntax error" is here to catch this case. 3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3465/* end confdefs.h. */ 3466#ifdef __STDC__ 3467# include <limits.h> 3468#else 3469# include <assert.h> 3470#endif 3471 Syntax error 3472_ACEOF 3473if ac_fn_c_try_cpp "$LINENO"; then : 3474 3475else 3476 # Broken: fails on valid input. 3477continue 3478fi 3479rm -f conftest.err conftest.i conftest.$ac_ext 3480 3481 # OK, works on sane cases. Now check whether nonexistent headers 3482 # can be detected and how. 3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485#include <ac_nonexistent.h> 3486_ACEOF 3487if ac_fn_c_try_cpp "$LINENO"; then : 3488 # Broken: success on invalid input. 3489continue 3490else 3491 # Passes both tests. 3492ac_preproc_ok=: 3493break 3494fi 3495rm -f conftest.err conftest.i conftest.$ac_ext 3496 3497done 3498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3499rm -f conftest.i conftest.err conftest.$ac_ext 3500if $ac_preproc_ok; then : 3501 break 3502fi 3503 3504 done 3505 ac_cv_prog_CPP=$CPP 3506 3507fi 3508 CPP=$ac_cv_prog_CPP 3509else 3510 ac_cv_prog_CPP=$CPP 3511fi 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3513$as_echo "$CPP" >&6; } 3514ac_preproc_ok=false 3515for ac_c_preproc_warn_flag in '' yes 3516do 3517 # Use a header file that comes with gcc, so configuring glibc 3518 # with a fresh cross-compiler works. 3519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3520 # <limits.h> exists even on freestanding compilers. 3521 # On the NeXT, cc -E runs the code through the compiler's parser, 3522 # not just through cpp. "Syntax error" is here to catch this case. 3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3524/* end confdefs.h. */ 3525#ifdef __STDC__ 3526# include <limits.h> 3527#else 3528# include <assert.h> 3529#endif 3530 Syntax error 3531_ACEOF 3532if ac_fn_c_try_cpp "$LINENO"; then : 3533 3534else 3535 # Broken: fails on valid input. 3536continue 3537fi 3538rm -f conftest.err conftest.i conftest.$ac_ext 3539 3540 # OK, works on sane cases. Now check whether nonexistent headers 3541 # can be detected and how. 3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543/* end confdefs.h. */ 3544#include <ac_nonexistent.h> 3545_ACEOF 3546if ac_fn_c_try_cpp "$LINENO"; then : 3547 # Broken: success on invalid input. 3548continue 3549else 3550 # Passes both tests. 3551ac_preproc_ok=: 3552break 3553fi 3554rm -f conftest.err conftest.i conftest.$ac_ext 3555 3556done 3557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3558rm -f conftest.i conftest.err conftest.$ac_ext 3559if $ac_preproc_ok; then : 3560 3561else 3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3564as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3565See \`config.log' for more details" "$LINENO" 5; } 3566fi 3567 3568ac_ext=c 3569ac_cpp='$CPP $CPPFLAGS' 3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3572ac_compiler_gnu=$ac_cv_c_compiler_gnu 3573 3574 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3576$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3577if ${ac_cv_path_GREP+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 if test -z "$GREP"; then 3581 ac_path_GREP_found=false 3582 # Loop through the user's path and test for each of PROGNAME-LIST 3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3585do 3586 IFS=$as_save_IFS 3587 test -z "$as_dir" && as_dir=. 3588 for ac_prog in grep ggrep; do 3589 for ac_exec_ext in '' $ac_executable_extensions; do 3590 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3591 as_fn_executable_p "$ac_path_GREP" || continue 3592# Check for GNU ac_path_GREP and select it if it is found. 3593 # Check for GNU $ac_path_GREP 3594case `"$ac_path_GREP" --version 2>&1` in 3595*GNU*) 3596 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3597*) 3598 ac_count=0 3599 $as_echo_n 0123456789 >"conftest.in" 3600 while : 3601 do 3602 cat "conftest.in" "conftest.in" >"conftest.tmp" 3603 mv "conftest.tmp" "conftest.in" 3604 cp "conftest.in" "conftest.nl" 3605 $as_echo 'GREP' >> "conftest.nl" 3606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3608 as_fn_arith $ac_count + 1 && ac_count=$as_val 3609 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3610 # Best one so far, save it but keep looking for a better one 3611 ac_cv_path_GREP="$ac_path_GREP" 3612 ac_path_GREP_max=$ac_count 3613 fi 3614 # 10*(2^10) chars as input seems more than enough 3615 test $ac_count -gt 10 && break 3616 done 3617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3618esac 3619 3620 $ac_path_GREP_found && break 3 3621 done 3622 done 3623 done 3624IFS=$as_save_IFS 3625 if test -z "$ac_cv_path_GREP"; then 3626 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3627 fi 3628else 3629 ac_cv_path_GREP=$GREP 3630fi 3631 3632fi 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3634$as_echo "$ac_cv_path_GREP" >&6; } 3635 GREP="$ac_cv_path_GREP" 3636 3637 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3639$as_echo_n "checking for egrep... " >&6; } 3640if ${ac_cv_path_EGREP+:} false; then : 3641 $as_echo_n "(cached) " >&6 3642else 3643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3644 then ac_cv_path_EGREP="$GREP -E" 3645 else 3646 if test -z "$EGREP"; then 3647 ac_path_EGREP_found=false 3648 # Loop through the user's path and test for each of PROGNAME-LIST 3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3650for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3651do 3652 IFS=$as_save_IFS 3653 test -z "$as_dir" && as_dir=. 3654 for ac_prog in egrep; do 3655 for ac_exec_ext in '' $ac_executable_extensions; do 3656 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3657 as_fn_executable_p "$ac_path_EGREP" || continue 3658# Check for GNU ac_path_EGREP and select it if it is found. 3659 # Check for GNU $ac_path_EGREP 3660case `"$ac_path_EGREP" --version 2>&1` in 3661*GNU*) 3662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3663*) 3664 ac_count=0 3665 $as_echo_n 0123456789 >"conftest.in" 3666 while : 3667 do 3668 cat "conftest.in" "conftest.in" >"conftest.tmp" 3669 mv "conftest.tmp" "conftest.in" 3670 cp "conftest.in" "conftest.nl" 3671 $as_echo 'EGREP' >> "conftest.nl" 3672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3674 as_fn_arith $ac_count + 1 && ac_count=$as_val 3675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3676 # Best one so far, save it but keep looking for a better one 3677 ac_cv_path_EGREP="$ac_path_EGREP" 3678 ac_path_EGREP_max=$ac_count 3679 fi 3680 # 10*(2^10) chars as input seems more than enough 3681 test $ac_count -gt 10 && break 3682 done 3683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3684esac 3685 3686 $ac_path_EGREP_found && break 3 3687 done 3688 done 3689 done 3690IFS=$as_save_IFS 3691 if test -z "$ac_cv_path_EGREP"; then 3692 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3693 fi 3694else 3695 ac_cv_path_EGREP=$EGREP 3696fi 3697 3698 fi 3699fi 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3701$as_echo "$ac_cv_path_EGREP" >&6; } 3702 EGREP="$ac_cv_path_EGREP" 3703 3704 3705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3706/* end confdefs.h. */ 3707 3708_ACEOF 3709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3710 $EGREP "" >/dev/null 2>&1; then : 3711 3712fi 3713rm -f conftest* 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3715$as_echo_n "checking for fgrep... " >&6; } 3716if ${ac_cv_path_FGREP+:} false; then : 3717 $as_echo_n "(cached) " >&6 3718else 3719 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3720 then ac_cv_path_FGREP="$GREP -F" 3721 else 3722 if test -z "$FGREP"; then 3723 ac_path_FGREP_found=false 3724 # Loop through the user's path and test for each of PROGNAME-LIST 3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3727do 3728 IFS=$as_save_IFS 3729 test -z "$as_dir" && as_dir=. 3730 for ac_prog in fgrep; do 3731 for ac_exec_ext in '' $ac_executable_extensions; do 3732 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3733 as_fn_executable_p "$ac_path_FGREP" || continue 3734# Check for GNU ac_path_FGREP and select it if it is found. 3735 # Check for GNU $ac_path_FGREP 3736case `"$ac_path_FGREP" --version 2>&1` in 3737*GNU*) 3738 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3739*) 3740 ac_count=0 3741 $as_echo_n 0123456789 >"conftest.in" 3742 while : 3743 do 3744 cat "conftest.in" "conftest.in" >"conftest.tmp" 3745 mv "conftest.tmp" "conftest.in" 3746 cp "conftest.in" "conftest.nl" 3747 $as_echo 'FGREP' >> "conftest.nl" 3748 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3750 as_fn_arith $ac_count + 1 && ac_count=$as_val 3751 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3752 # Best one so far, save it but keep looking for a better one 3753 ac_cv_path_FGREP="$ac_path_FGREP" 3754 ac_path_FGREP_max=$ac_count 3755 fi 3756 # 10*(2^10) chars as input seems more than enough 3757 test $ac_count -gt 10 && break 3758 done 3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3760esac 3761 3762 $ac_path_FGREP_found && break 3 3763 done 3764 done 3765 done 3766IFS=$as_save_IFS 3767 if test -z "$ac_cv_path_FGREP"; then 3768 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3769 fi 3770else 3771 ac_cv_path_FGREP=$FGREP 3772fi 3773 3774 fi 3775fi 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3777$as_echo "$ac_cv_path_FGREP" >&6; } 3778 FGREP="$ac_cv_path_FGREP" 3779 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3781$as_echo_n "checking for library containing strerror... " >&6; } 3782if ${ac_cv_search_strerror+:} false; then : 3783 $as_echo_n "(cached) " >&6 3784else 3785 ac_func_search_save_LIBS=$LIBS 3786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788 3789/* Override any GCC internal prototype to avoid an error. 3790 Use char because int might match the return type of a GCC 3791 builtin and then its argument prototype would still apply. */ 3792#ifdef __cplusplus 3793extern "C" 3794#endif 3795char strerror (); 3796int 3797main () 3798{ 3799return strerror (); 3800 ; 3801 return 0; 3802} 3803_ACEOF 3804for ac_lib in '' cposix; do 3805 if test -z "$ac_lib"; then 3806 ac_res="none required" 3807 else 3808 ac_res=-l$ac_lib 3809 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3810 fi 3811 if ac_fn_c_try_link "$LINENO"; then : 3812 ac_cv_search_strerror=$ac_res 3813fi 3814rm -f core conftest.err conftest.$ac_objext \ 3815 conftest$ac_exeext 3816 if ${ac_cv_search_strerror+:} false; then : 3817 break 3818fi 3819done 3820if ${ac_cv_search_strerror+:} false; then : 3821 3822else 3823 ac_cv_search_strerror=no 3824fi 3825rm conftest.$ac_ext 3826LIBS=$ac_func_search_save_LIBS 3827fi 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3829$as_echo "$ac_cv_search_strerror" >&6; } 3830ac_res=$ac_cv_search_strerror 3831if test "$ac_res" != no; then : 3832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3833 3834fi 3835 for ac_prog in gawk mawk nawk awk 3836do 3837 # Extract the first word of "$ac_prog", so it can be a program name with args. 3838set dummy $ac_prog; ac_word=$2 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3840$as_echo_n "checking for $ac_word... " >&6; } 3841if ${ac_cv_prog_AWK+:} false; then : 3842 $as_echo_n "(cached) " >&6 3843else 3844 if test -n "$AWK"; then 3845 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3846else 3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3848for as_dir in $PATH 3849do 3850 IFS=$as_save_IFS 3851 test -z "$as_dir" && as_dir=. 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3854 ac_cv_prog_AWK="$ac_prog" 3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3856 break 2 3857 fi 3858done 3859 done 3860IFS=$as_save_IFS 3861 3862fi 3863fi 3864AWK=$ac_cv_prog_AWK 3865if test -n "$AWK"; then 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3867$as_echo "$AWK" >&6; } 3868else 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3870$as_echo "no" >&6; } 3871fi 3872 3873 3874 test -n "$AWK" && break 3875done 3876 3877# Extract the first word of "strip", so it can be a program name with args. 3878set dummy strip; ac_word=$2 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3880$as_echo_n "checking for $ac_word... " >&6; } 3881if ${ac_cv_prog_STRIP+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883else 3884 if test -n "$STRIP"; then 3885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3886else 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH 3889do 3890 IFS=$as_save_IFS 3891 test -z "$as_dir" && as_dir=. 3892 for ac_exec_ext in '' $ac_executable_extensions; do 3893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3894 ac_cv_prog_STRIP="strip" 3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3896 break 2 3897 fi 3898done 3899 done 3900IFS=$as_save_IFS 3901 3902 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3903fi 3904fi 3905STRIP=$ac_cv_prog_STRIP 3906if test -n "$STRIP"; then 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3908$as_echo "$STRIP" >&6; } 3909else 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3911$as_echo "no" >&6; } 3912fi 3913 3914 3915 3916 3917 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3919$as_echo_n "checking for ANSI C header files... " >&6; } 3920if ${ac_cv_header_stdc+:} false; then : 3921 $as_echo_n "(cached) " >&6 3922else 3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3924/* end confdefs.h. */ 3925#include <stdlib.h> 3926#include <stdarg.h> 3927#include <string.h> 3928#include <float.h> 3929 3930int 3931main () 3932{ 3933 3934 ; 3935 return 0; 3936} 3937_ACEOF 3938if ac_fn_c_try_compile "$LINENO"; then : 3939 ac_cv_header_stdc=yes 3940else 3941 ac_cv_header_stdc=no 3942fi 3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3944 3945if test $ac_cv_header_stdc = yes; then 3946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3948/* end confdefs.h. */ 3949#include <string.h> 3950 3951_ACEOF 3952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3953 $EGREP "memchr" >/dev/null 2>&1; then : 3954 3955else 3956 ac_cv_header_stdc=no 3957fi 3958rm -f conftest* 3959 3960fi 3961 3962if test $ac_cv_header_stdc = yes; then 3963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966#include <stdlib.h> 3967 3968_ACEOF 3969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3970 $EGREP "free" >/dev/null 2>&1; then : 3971 3972else 3973 ac_cv_header_stdc=no 3974fi 3975rm -f conftest* 3976 3977fi 3978 3979if test $ac_cv_header_stdc = yes; then 3980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3981 if test "$cross_compiling" = yes; then : 3982 : 3983else 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986#include <ctype.h> 3987#include <stdlib.h> 3988#if ((' ' & 0x0FF) == 0x020) 3989# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3990# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3991#else 3992# define ISLOWER(c) \ 3993 (('a' <= (c) && (c) <= 'i') \ 3994 || ('j' <= (c) && (c) <= 'r') \ 3995 || ('s' <= (c) && (c) <= 'z')) 3996# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3997#endif 3998 3999#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4000int 4001main () 4002{ 4003 int i; 4004 for (i = 0; i < 256; i++) 4005 if (XOR (islower (i), ISLOWER (i)) 4006 || toupper (i) != TOUPPER (i)) 4007 return 2; 4008 return 0; 4009} 4010_ACEOF 4011if ac_fn_c_try_run "$LINENO"; then : 4012 4013else 4014 ac_cv_header_stdc=no 4015fi 4016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4017 conftest.$ac_objext conftest.beam conftest.$ac_ext 4018fi 4019 4020fi 4021fi 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4023$as_echo "$ac_cv_header_stdc" >&6; } 4024if test $ac_cv_header_stdc = yes; then 4025 4026$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4027 4028fi 4029 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4031$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4032if ${ac_cv_header_sys_wait_h+:} false; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4036/* end confdefs.h. */ 4037#include <sys/types.h> 4038#include <sys/wait.h> 4039#ifndef WEXITSTATUS 4040# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4041#endif 4042#ifndef WIFEXITED 4043# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4044#endif 4045 4046int 4047main () 4048{ 4049 int s; 4050 wait (&s); 4051 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056if ac_fn_c_try_compile "$LINENO"; then : 4057 ac_cv_header_sys_wait_h=yes 4058else 4059 ac_cv_header_sys_wait_h=no 4060fi 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062fi 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4064$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4065if test $ac_cv_header_sys_wait_h = yes; then 4066 4067$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4068 4069fi 4070 4071 4072 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4074$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4075# Check whether --enable-fail_if_missing was given. 4076if test "${enable_fail_if_missing+set}" = set; then : 4077 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4078else 4079 fail_if_missing="no" 4080fi 4081 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4083$as_echo "$fail_if_missing" >&6; } 4084 4085if test -z "$CFLAGS"; then 4086 CFLAGS="-O" 4087 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4088fi 4089if test "$GCC" = yes; then 4090 gccversion=`$CC -dumpversion` 4091 if test "x$gccversion" = "x"; then 4092 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4093 fi 4094 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4095 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4096 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4097 else 4098 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4099 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4100 CFLAGS="$CFLAGS -fno-strength-reduce" 4101 fi 4102 fi 4103fi 4104 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5 4106$as_echo_n "checking for recent clang version... " >&6; } 4107CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` 4108if test x"$CLANG_VERSION_STRING" != x"" ; then 4109 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4110 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4111 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4112 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4114$as_echo "$CLANG_VERSION" >&6; } 4115 if test "$CLANG_VERSION" -ge 500002075 ; then 4116 CFLAGS=`echo "$CFLAGS" | sed -n -e 's/-fno-strength-reduce/ /p'` 4117 fi 4118else 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4120$as_echo "no" >&6; } 4121fi 4122 4123CROSS_COMPILING= 4124if test "$cross_compiling" = yes; then 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4126$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4127 CROSS_COMPILING=1 4128fi 4129 4130 4131test "$GCC" = yes && CPP_MM=M; 4132 4133if test -f ./toolcheck; then 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4135$as_echo "$as_me: checking for buggy tools..." >&6;} 4136 sh ./toolcheck 1>&6 4137fi 4138 4139OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4140 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4142$as_echo_n "checking for BeOS... " >&6; } 4143case `uname` in 4144 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4145 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4146$as_echo "yes" >&6; };; 4147 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4148$as_echo "no" >&6; };; 4149esac 4150 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4152$as_echo_n "checking for QNX... " >&6; } 4153case `uname` in 4154 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4155 test -z "$with_x" && with_x=no 4156 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4157$as_echo "yes" >&6; };; 4158 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4159$as_echo "no" >&6; };; 4160esac 4161 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4163$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4164if test "`(uname) 2>/dev/null`" = Darwin; then 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4166$as_echo "yes" >&6; } 4167 4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4169$as_echo_n "checking --disable-darwin argument... " >&6; } 4170 # Check whether --enable-darwin was given. 4171if test "${enable_darwin+set}" = set; then : 4172 enableval=$enable_darwin; 4173else 4174 enable_darwin="yes" 4175fi 4176 4177 if test "$enable_darwin" = "yes"; then 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4179$as_echo "no" >&6; } 4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4181$as_echo_n "checking if Darwin files are there... " >&6; } 4182 if test -f os_macosx.m; then 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4184$as_echo "yes" >&6; } 4185 else 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4187$as_echo "no, Darwin support disabled" >&6; } 4188 enable_darwin=no 4189 fi 4190 else 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4192$as_echo "yes, Darwin support excluded" >&6; } 4193 fi 4194 4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4196$as_echo_n "checking --with-mac-arch argument... " >&6; } 4197 4198# Check whether --with-mac-arch was given. 4199if test "${with_mac_arch+set}" = set; then : 4200 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4201$as_echo "$MACARCH" >&6; } 4202else 4203 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4204$as_echo "defaulting to $MACARCH" >&6; } 4205fi 4206 4207 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4209$as_echo_n "checking --with-developer-dir argument... " >&6; } 4210 4211# Check whether --with-developer-dir was given. 4212if test "${with_developer_dir+set}" = set; then : 4213 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4214$as_echo "$DEVELOPER_DIR" >&6; } 4215else 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4217$as_echo "not present" >&6; } 4218fi 4219 4220 4221 if test "x$DEVELOPER_DIR" = "x"; then 4222 # Extract the first word of "xcode-select", so it can be a program name with args. 4223set dummy xcode-select; ac_word=$2 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4225$as_echo_n "checking for $ac_word... " >&6; } 4226if ${ac_cv_path_XCODE_SELECT+:} false; then : 4227 $as_echo_n "(cached) " >&6 4228else 4229 case $XCODE_SELECT in 4230 [\\/]* | ?:[\\/]*) 4231 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4232 ;; 4233 *) 4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4235for as_dir in $PATH 4236do 4237 IFS=$as_save_IFS 4238 test -z "$as_dir" && as_dir=. 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4241 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4243 break 2 4244 fi 4245done 4246 done 4247IFS=$as_save_IFS 4248 4249 ;; 4250esac 4251fi 4252XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4253if test -n "$XCODE_SELECT"; then 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4255$as_echo "$XCODE_SELECT" >&6; } 4256else 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4258$as_echo "no" >&6; } 4259fi 4260 4261 4262 if test "x$XCODE_SELECT" != "x"; then 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4264$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4265 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4267$as_echo "$DEVELOPER_DIR" >&6; } 4268 else 4269 DEVELOPER_DIR=/Developer 4270 fi 4271 fi 4272 4273 if test "x$MACARCH" = "xboth"; then 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4275$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4276 save_cppflags="$CPPFLAGS" 4277 save_cflags="$CFLAGS" 4278 save_ldflags="$LDFLAGS" 4279 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281/* end confdefs.h. */ 4282 4283int 4284main () 4285{ 4286 4287 ; 4288 return 0; 4289} 4290_ACEOF 4291if ac_fn_c_try_link "$LINENO"; then : 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4293$as_echo "found" >&6; } 4294else 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4296$as_echo "not found" >&6; } 4297 CFLAGS="$save_cflags" 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4299$as_echo_n "checking if Intel architecture is supported... " >&6; } 4300 CPPFLAGS="$CPPFLAGS -arch i386" 4301 LDFLAGS="$save_ldflags -arch i386" 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303/* end confdefs.h. */ 4304 4305int 4306main () 4307{ 4308 4309 ; 4310 return 0; 4311} 4312_ACEOF 4313if ac_fn_c_try_link "$LINENO"; then : 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4315$as_echo "yes" >&6; }; MACARCH="intel" 4316else 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4318$as_echo "no" >&6; } 4319 MACARCH="ppc" 4320 CPPFLAGS="$save_cppflags -arch ppc" 4321 LDFLAGS="$save_ldflags -arch ppc" 4322fi 4323rm -f core conftest.err conftest.$ac_objext \ 4324 conftest$ac_exeext conftest.$ac_ext 4325fi 4326rm -f core conftest.err conftest.$ac_objext \ 4327 conftest$ac_exeext conftest.$ac_ext 4328 elif test "x$MACARCH" = "xintel"; then 4329 CPPFLAGS="$CPPFLAGS -arch intel" 4330 LDFLAGS="$LDFLAGS -arch intel" 4331 elif test "x$MACARCH" = "xppc"; then 4332 CPPFLAGS="$CPPFLAGS -arch ppc" 4333 LDFLAGS="$LDFLAGS -arch ppc" 4334 fi 4335 4336 if test "$enable_darwin" = "yes"; then 4337 MACOSX=yes 4338 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4339 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4340 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX" 4341 4342 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4343for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4344 inttypes.h stdint.h unistd.h 4345do : 4346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4347ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4348" 4349if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4350 cat >>confdefs.h <<_ACEOF 4351#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4352_ACEOF 4353 4354fi 4355 4356done 4357 4358 4359ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4360if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4361 CARBON=yes 4362fi 4363 4364 4365 if test "x$CARBON" = "xyes"; then 4366 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 4367 with_x=no 4368 fi 4369 fi 4370 fi 4371 4372 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4373 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4374 fi 4375 4376else 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4378$as_echo "no" >&6; } 4379fi 4380 4381for ac_header in AvailabilityMacros.h 4382do : 4383 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4384if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4385 cat >>confdefs.h <<_ACEOF 4386#define HAVE_AVAILABILITYMACROS_H 1 4387_ACEOF 4388 4389fi 4390 4391done 4392 4393 4394 4395 4396 4397if test "$cross_compiling" = no; then 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4399$as_echo_n "checking --with-local-dir argument... " >&6; } 4400 have_local_include='' 4401 have_local_lib='' 4402 4403# Check whether --with-local-dir was given. 4404if test "${with_local_dir+set}" = set; then : 4405 withval=$with_local_dir; 4406 local_dir="$withval" 4407 case "$withval" in 4408 */*) ;; 4409 no) 4410 # avoid adding local dir to LDFLAGS and CPPFLAGS 4411 have_local_include=yes 4412 have_local_lib=yes 4413 ;; 4414 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4415 esac 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4417$as_echo "$local_dir" >&6; } 4418 4419else 4420 4421 local_dir=/usr/local 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4423$as_echo "Defaulting to $local_dir" >&6; } 4424 4425fi 4426 4427 if test "$GCC" = yes -a "$local_dir" != no; then 4428 echo 'void f(){}' > conftest.c 4429 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4430 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4431 rm -f conftest.c conftest.o 4432 fi 4433 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4434 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4435 if test "$tt" = "$LDFLAGS"; then 4436 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4437 fi 4438 fi 4439 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4440 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4441 if test "$tt" = "$CPPFLAGS"; then 4442 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4443 fi 4444 fi 4445fi 4446 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4448$as_echo_n "checking --with-vim-name argument... " >&6; } 4449 4450# Check whether --with-vim-name was given. 4451if test "${with_vim_name+set}" = set; then : 4452 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4453$as_echo "$VIMNAME" >&6; } 4454else 4455 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4456$as_echo "Defaulting to $VIMNAME" >&6; } 4457fi 4458 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4461$as_echo_n "checking --with-ex-name argument... " >&6; } 4462 4463# Check whether --with-ex-name was given. 4464if test "${with_ex_name+set}" = set; then : 4465 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4466$as_echo "$EXNAME" >&6; } 4467else 4468 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4469$as_echo "Defaulting to ex" >&6; } 4470fi 4471 4472 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4474$as_echo_n "checking --with-view-name argument... " >&6; } 4475 4476# Check whether --with-view-name was given. 4477if test "${with_view_name+set}" = set; then : 4478 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4479$as_echo "$VIEWNAME" >&6; } 4480else 4481 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4482$as_echo "Defaulting to view" >&6; } 4483fi 4484 4485 4486 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4488$as_echo_n "checking --with-global-runtime argument... " >&6; } 4489 4490# Check whether --with-global-runtime was given. 4491if test "${with_global_runtime+set}" = set; then : 4492 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4493$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4494#define RUNTIME_GLOBAL "$withval" 4495_ACEOF 4496 4497else 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4499$as_echo "no" >&6; } 4500fi 4501 4502 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4504$as_echo_n "checking --with-modified-by argument... " >&6; } 4505 4506# Check whether --with-modified-by was given. 4507if test "${with_modified_by+set}" = set; then : 4508 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4509$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4510#define MODIFIED_BY "$withval" 4511_ACEOF 4512 4513else 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4515$as_echo "no" >&6; } 4516fi 4517 4518 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4520$as_echo_n "checking if character set is EBCDIC... " >&6; } 4521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4522/* end confdefs.h. */ 4523 4524int 4525main () 4526{ 4527 /* TryCompile function for CharSet. 4528 Treat any failure as ASCII for compatibility with existing art. 4529 Use compile-time rather than run-time tests for cross-compiler 4530 tolerance. */ 4531#if '0'!=240 4532make an error "Character set is not EBCDIC" 4533#endif 4534 ; 4535 return 0; 4536} 4537_ACEOF 4538if ac_fn_c_try_compile "$LINENO"; then : 4539 # TryCompile action if true 4540cf_cv_ebcdic=yes 4541else 4542 # TryCompile action if false 4543cf_cv_ebcdic=no 4544fi 4545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4546# end of TryCompile ]) 4547# end of CacheVal CvEbcdic 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4549$as_echo "$cf_cv_ebcdic" >&6; } 4550case "$cf_cv_ebcdic" in #(vi 4551 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4552 4553 line_break='"\\n"' 4554 ;; 4555 *) line_break='"\\012"';; 4556esac 4557 4558 4559if test "$cf_cv_ebcdic" = "yes"; then 4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4561$as_echo_n "checking for z/OS Unix... " >&6; } 4562case `uname` in 4563 OS/390) zOSUnix="yes"; 4564 if test "$CC" = "cc"; then 4565 ccm="$_CC_CCMODE" 4566 ccn="CC" 4567 else 4568 if test "$CC" = "c89"; then 4569 ccm="$_CC_C89MODE" 4570 ccn="C89" 4571 else 4572 ccm=1 4573 fi 4574 fi 4575 if test "$ccm" != "1"; then 4576 echo "" 4577 echo "------------------------------------------" 4578 echo " On z/OS Unix, the environment variable" 4579 echo " _CC_${ccn}MODE must be set to \"1\"!" 4580 echo " Do:" 4581 echo " export _CC_${ccn}MODE=1" 4582 echo " and then call configure again." 4583 echo "------------------------------------------" 4584 exit 1 4585 fi 4586 # Set CFLAGS for configure process. 4587 # This will be reset later for config.mk. 4588 # Use haltonmsg to force error for missing H files. 4589 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4590 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4592$as_echo "yes" >&6; } 4593 ;; 4594 *) zOSUnix="no"; 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4596$as_echo "no" >&6; } 4597 ;; 4598esac 4599fi 4600 4601if test "$zOSUnix" = "yes"; then 4602 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4603else 4604 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4605fi 4606 4607 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 4610$as_echo_n "checking --disable-smack argument... " >&6; } 4611# Check whether --enable-smack was given. 4612if test "${enable_smack+set}" = set; then : 4613 enableval=$enable_smack; 4614else 4615 enable_smack="yes" 4616fi 4617 4618if test "$enable_smack" = "yes"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4620$as_echo "no" >&6; } 4621 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 4622if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 4623 true 4624else 4625 enable_smack="no" 4626fi 4627 4628 4629else 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4631$as_echo "yes" >&6; } 4632fi 4633if test "$enable_smack" = "yes"; then 4634 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 4635if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 4636 true 4637else 4638 enable_smack="no" 4639fi 4640 4641 4642fi 4643if test "$enable_smack" = "yes"; then 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 4645$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4647/* end confdefs.h. */ 4648#include <linux/xattr.h> 4649_ACEOF 4650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4651 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4653$as_echo "yes" >&6; } 4654else 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4656$as_echo "no" >&6; }; enable_smack="no" 4657fi 4658rm -f conftest* 4659 4660fi 4661if test "$enable_smack" = "yes"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 4663$as_echo_n "checking for setxattr in -lattr... " >&6; } 4664if ${ac_cv_lib_attr_setxattr+:} false; then : 4665 $as_echo_n "(cached) " >&6 4666else 4667 ac_check_lib_save_LIBS=$LIBS 4668LIBS="-lattr $LIBS" 4669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4670/* end confdefs.h. */ 4671 4672/* Override any GCC internal prototype to avoid an error. 4673 Use char because int might match the return type of a GCC 4674 builtin and then its argument prototype would still apply. */ 4675#ifdef __cplusplus 4676extern "C" 4677#endif 4678char setxattr (); 4679int 4680main () 4681{ 4682return setxattr (); 4683 ; 4684 return 0; 4685} 4686_ACEOF 4687if ac_fn_c_try_link "$LINENO"; then : 4688 ac_cv_lib_attr_setxattr=yes 4689else 4690 ac_cv_lib_attr_setxattr=no 4691fi 4692rm -f core conftest.err conftest.$ac_objext \ 4693 conftest$ac_exeext conftest.$ac_ext 4694LIBS=$ac_check_lib_save_LIBS 4695fi 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 4697$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 4698if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 4699 LIBS="$LIBS -lattr" 4700 found_smack="yes" 4701 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 4702 4703fi 4704 4705fi 4706 4707if test "x$found_smack" = "x"; then 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4709$as_echo_n "checking --disable-selinux argument... " >&6; } 4710 # Check whether --enable-selinux was given. 4711if test "${enable_selinux+set}" = set; then : 4712 enableval=$enable_selinux; 4713else 4714 enable_selinux="yes" 4715fi 4716 4717 if test "$enable_selinux" = "yes"; then 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4719$as_echo "no" >&6; } 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4721$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4722if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 4723 $as_echo_n "(cached) " >&6 4724else 4725 ac_check_lib_save_LIBS=$LIBS 4726LIBS="-lselinux $LIBS" 4727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728/* end confdefs.h. */ 4729 4730/* Override any GCC internal prototype to avoid an error. 4731 Use char because int might match the return type of a GCC 4732 builtin and then its argument prototype would still apply. */ 4733#ifdef __cplusplus 4734extern "C" 4735#endif 4736char is_selinux_enabled (); 4737int 4738main () 4739{ 4740return is_selinux_enabled (); 4741 ; 4742 return 0; 4743} 4744_ACEOF 4745if ac_fn_c_try_link "$LINENO"; then : 4746 ac_cv_lib_selinux_is_selinux_enabled=yes 4747else 4748 ac_cv_lib_selinux_is_selinux_enabled=no 4749fi 4750rm -f core conftest.err conftest.$ac_objext \ 4751 conftest$ac_exeext conftest.$ac_ext 4752LIBS=$ac_check_lib_save_LIBS 4753fi 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4755$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4756if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 4757 LIBS="$LIBS -lselinux" 4758 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4759 4760fi 4761 4762 else 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4764$as_echo "yes" >&6; } 4765 fi 4766fi 4767 4768 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4770$as_echo_n "checking --with-features argument... " >&6; } 4771 4772# Check whether --with-features was given. 4773if test "${with_features+set}" = set; then : 4774 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4775$as_echo "$features" >&6; } 4776else 4777 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 4778$as_echo "Defaulting to huge" >&6; } 4779fi 4780 4781 4782dovimdiff="" 4783dogvimdiff="" 4784case "$features" in 4785 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4786 ;; 4787 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4788 ;; 4789 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4790 dovimdiff="installvimdiff"; 4791 dogvimdiff="installgvimdiff" ;; 4792 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4793 dovimdiff="installvimdiff"; 4794 dogvimdiff="installgvimdiff" ;; 4795 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4796 dovimdiff="installvimdiff"; 4797 dogvimdiff="installgvimdiff" ;; 4798 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4799$as_echo "Sorry, $features is not supported" >&6; } ;; 4800esac 4801 4802 4803 4804 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4806$as_echo_n "checking --with-compiledby argument... " >&6; } 4807 4808# Check whether --with-compiledby was given. 4809if test "${with_compiledby+set}" = set; then : 4810 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4811$as_echo "$withval" >&6; } 4812else 4813 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4814$as_echo "no" >&6; } 4815fi 4816 4817 4818 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4820$as_echo_n "checking --disable-xsmp argument... " >&6; } 4821# Check whether --enable-xsmp was given. 4822if test "${enable_xsmp+set}" = set; then : 4823 enableval=$enable_xsmp; 4824else 4825 enable_xsmp="yes" 4826fi 4827 4828 4829if test "$enable_xsmp" = "yes"; then 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4831$as_echo "no" >&6; } 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4833$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4834 # Check whether --enable-xsmp-interact was given. 4835if test "${enable_xsmp_interact+set}" = set; then : 4836 enableval=$enable_xsmp_interact; 4837else 4838 enable_xsmp_interact="yes" 4839fi 4840 4841 if test "$enable_xsmp_interact" = "yes"; then 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4843$as_echo "no" >&6; } 4844 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4845 4846 else 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4848$as_echo "yes" >&6; } 4849 fi 4850else 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4852$as_echo "yes" >&6; } 4853fi 4854 4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4856$as_echo_n "checking --enable-luainterp argument... " >&6; } 4857# Check whether --enable-luainterp was given. 4858if test "${enable_luainterp+set}" = set; then : 4859 enableval=$enable_luainterp; 4860else 4861 enable_luainterp="no" 4862fi 4863 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4865$as_echo "$enable_luainterp" >&6; } 4866 4867if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4868 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 4869 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 4870 fi 4871 4872 4873 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4875$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4876 4877# Check whether --with-lua_prefix was given. 4878if test "${with_lua_prefix+set}" = set; then : 4879 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4880$as_echo "$with_lua_prefix" >&6; } 4881else 4882 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4883$as_echo "no" >&6; } 4884fi 4885 4886 4887 if test "X$with_lua_prefix" != "X"; then 4888 vi_cv_path_lua_pfx="$with_lua_prefix" 4889 else 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4891$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4892 if test "X$LUA_PREFIX" != "X"; then 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4894$as_echo "\"$LUA_PREFIX\"" >&6; } 4895 vi_cv_path_lua_pfx="$LUA_PREFIX" 4896 else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4898$as_echo "not set, default to /usr" >&6; } 4899 vi_cv_path_lua_pfx="/usr" 4900 fi 4901 fi 4902 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 4904$as_echo_n "checking --with-luajit... " >&6; } 4905 4906# Check whether --with-luajit was given. 4907if test "${with_luajit+set}" = set; then : 4908 withval=$with_luajit; vi_cv_with_luajit="$withval" 4909else 4910 vi_cv_with_luajit="no" 4911fi 4912 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 4914$as_echo "$vi_cv_with_luajit" >&6; } 4915 4916 LUA_INC= 4917 if test "X$vi_cv_path_lua_pfx" != "X"; then 4918 if test "x$vi_cv_with_luajit" != "xno"; then 4919 # Extract the first word of "luajit", so it can be a program name with args. 4920set dummy luajit; ac_word=$2 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4922$as_echo_n "checking for $ac_word... " >&6; } 4923if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 case $vi_cv_path_luajit in 4927 [\\/]* | ?:[\\/]*) 4928 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 4929 ;; 4930 *) 4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4932for as_dir in $PATH 4933do 4934 IFS=$as_save_IFS 4935 test -z "$as_dir" && as_dir=. 4936 for ac_exec_ext in '' $ac_executable_extensions; do 4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4938 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4940 break 2 4941 fi 4942done 4943 done 4944IFS=$as_save_IFS 4945 4946 ;; 4947esac 4948fi 4949vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 4950if test -n "$vi_cv_path_luajit"; then 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 4952$as_echo "$vi_cv_path_luajit" >&6; } 4953else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4955$as_echo "no" >&6; } 4956fi 4957 4958 4959 if test "X$vi_cv_path_luajit" != "X"; then 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 4961$as_echo_n "checking LuaJIT version... " >&6; } 4962if ${vi_cv_version_luajit+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 4966fi 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 4968$as_echo "$vi_cv_version_luajit" >&6; } 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 4970$as_echo_n "checking Lua version of LuaJIT... " >&6; } 4971if ${vi_cv_version_lua_luajit+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 4975fi 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 4977$as_echo "$vi_cv_version_lua_luajit" >&6; } 4978 vi_cv_path_lua="$vi_cv_path_luajit" 4979 vi_cv_version_lua="$vi_cv_version_lua_luajit" 4980 fi 4981 else 4982 # Extract the first word of "lua", so it can be a program name with args. 4983set dummy lua; ac_word=$2 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4985$as_echo_n "checking for $ac_word... " >&6; } 4986if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 4987 $as_echo_n "(cached) " >&6 4988else 4989 case $vi_cv_path_plain_lua in 4990 [\\/]* | ?:[\\/]*) 4991 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 4992 ;; 4993 *) 4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4995for as_dir in $PATH 4996do 4997 IFS=$as_save_IFS 4998 test -z "$as_dir" && as_dir=. 4999 for ac_exec_ext in '' $ac_executable_extensions; do 5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5001 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5003 break 2 5004 fi 5005done 5006 done 5007IFS=$as_save_IFS 5008 5009 ;; 5010esac 5011fi 5012vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5013if test -n "$vi_cv_path_plain_lua"; then 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5015$as_echo "$vi_cv_path_plain_lua" >&6; } 5016else 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5018$as_echo "no" >&6; } 5019fi 5020 5021 5022 if test "X$vi_cv_path_plain_lua" != "X"; then 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5024$as_echo_n "checking Lua version... " >&6; } 5025if ${vi_cv_version_plain_lua+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5029fi 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5031$as_echo "$vi_cv_version_plain_lua" >&6; } 5032 fi 5033 vi_cv_path_lua="$vi_cv_path_plain_lua" 5034 vi_cv_version_lua="$vi_cv_version_plain_lua" 5035 fi 5036 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5037 { $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 5038$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5039 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5041$as_echo "yes" >&6; } 5042 LUA_INC=/luajit-$vi_cv_version_luajit 5043 fi 5044 fi 5045 if test "X$LUA_INC" = "X"; then 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5047$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5048 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5050$as_echo "yes" >&6; } 5051 else 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5053$as_echo "no" >&6; } 5054 { $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 5055$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5056 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5058$as_echo "yes" >&6; } 5059 LUA_INC=/lua$vi_cv_version_lua 5060 else 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5062$as_echo "no" >&6; } 5063 vi_cv_path_lua_pfx= 5064 fi 5065 fi 5066 fi 5067 fi 5068 5069 if test "X$vi_cv_path_lua_pfx" != "X"; then 5070 if test "x$vi_cv_with_luajit" != "xno"; then 5071 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5072 if test "X$multiarch" != "X"; then 5073 lib_multiarch="lib/${multiarch}" 5074 else 5075 lib_multiarch="lib" 5076 fi 5077 if test "X$vi_cv_version_lua" = "X"; then 5078 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5079 else 5080 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5081 fi 5082 else 5083 if test "X$LUA_INC" != "X"; then 5084 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5085 else 5086 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5087 fi 5088 fi 5089 if test "$enable_luainterp" = "dynamic"; then 5090 lua_ok="yes" 5091 else 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5093$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5094 libs_save=$LIBS 5095 LIBS="$LIBS $LUA_LIBS" 5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5097/* end confdefs.h. */ 5098 5099int 5100main () 5101{ 5102 5103 ; 5104 return 0; 5105} 5106_ACEOF 5107if ac_fn_c_try_link "$LINENO"; then : 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5109$as_echo "yes" >&6; }; lua_ok="yes" 5110else 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5112$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5113fi 5114rm -f core conftest.err conftest.$ac_objext \ 5115 conftest$ac_exeext conftest.$ac_ext 5116 LIBS=$libs_save 5117 fi 5118 if test "x$lua_ok" = "xyes"; then 5119 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5120 LUA_SRC="if_lua.c" 5121 LUA_OBJ="objects/if_lua.o" 5122 LUA_PRO="if_lua.pro" 5123 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5124 5125 fi 5126 if test "$enable_luainterp" = "dynamic"; then 5127 if test "x$vi_cv_with_luajit" != "xno"; then 5128 luajit="jit" 5129 fi 5130 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5131 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5132 else 5133 if test "x$MACOSX" = "xyes"; then 5134 ext="dylib" 5135 indexes="" 5136 else 5137 ext="so" 5138 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5139 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5140 if test "X$multiarch" != "X"; then 5141 lib_multiarch="lib/${multiarch}" 5142 fi 5143 fi 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5145$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5146 for subdir in "${lib_multiarch}" lib64 lib; do 5147 if test -z "$subdir"; then 5148 continue 5149 fi 5150 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5151 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5152 for i in $indexes ""; do 5153 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5154 sover2="$i" 5155 break 3 5156 fi 5157 done 5158 done 5159 sover="" 5160 done 5161 if test "X$sover" = "X"; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163$as_echo "no" >&6; } 5164 lua_ok="no" 5165 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5166 else 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5168$as_echo "yes" >&6; } 5169 lua_ok="yes" 5170 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5171 fi 5172 fi 5173 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5174 5175 LUA_LIBS="" 5176 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5177 fi 5178 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5179 test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5180 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5181 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5182 fi 5183 fi 5184 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5185 as_fn_error $? "could not configure lua" "$LINENO" 5 5186 fi 5187 5188 5189 5190 5191 5192fi 5193 5194 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5196$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5197# Check whether --enable-mzschemeinterp was given. 5198if test "${enable_mzschemeinterp+set}" = set; then : 5199 enableval=$enable_mzschemeinterp; 5200else 5201 enable_mzschemeinterp="no" 5202fi 5203 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5205$as_echo "$enable_mzschemeinterp" >&6; } 5206 5207if test "$enable_mzschemeinterp" = "yes"; then 5208 5209 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5211$as_echo_n "checking --with-plthome argument... " >&6; } 5212 5213# Check whether --with-plthome was given. 5214if test "${with_plthome+set}" = set; then : 5215 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5216$as_echo "$with_plthome" >&6; } 5217else 5218 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5219$as_echo "\"no\"" >&6; } 5220fi 5221 5222 5223 if test "X$with_plthome" != "X"; then 5224 vi_cv_path_mzscheme_pfx="$with_plthome" 5225 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5226 else 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5228$as_echo_n "checking PLTHOME environment var... " >&6; } 5229 if test "X$PLTHOME" != "X"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5231$as_echo "\"$PLTHOME\"" >&6; } 5232 vi_cv_path_mzscheme_pfx="$PLTHOME" 5233 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5234 else 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5236$as_echo "not set" >&6; } 5237 # Extract the first word of "mzscheme", so it can be a program name with args. 5238set dummy mzscheme; ac_word=$2 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5240$as_echo_n "checking for $ac_word... " >&6; } 5241if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5242 $as_echo_n "(cached) " >&6 5243else 5244 case $vi_cv_path_mzscheme in 5245 [\\/]* | ?:[\\/]*) 5246 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5247 ;; 5248 *) 5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5250for as_dir in $PATH 5251do 5252 IFS=$as_save_IFS 5253 test -z "$as_dir" && as_dir=. 5254 for ac_exec_ext in '' $ac_executable_extensions; do 5255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5256 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5258 break 2 5259 fi 5260done 5261 done 5262IFS=$as_save_IFS 5263 5264 ;; 5265esac 5266fi 5267vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5268if test -n "$vi_cv_path_mzscheme"; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5270$as_echo "$vi_cv_path_mzscheme" >&6; } 5271else 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5273$as_echo "no" >&6; } 5274fi 5275 5276 5277 5278 if test "X$vi_cv_path_mzscheme" != "X"; then 5279 lsout=`ls -l $vi_cv_path_mzscheme` 5280 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5281 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5282 fi 5283 fi 5284 5285 if test "X$vi_cv_path_mzscheme" != "X"; then 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5287$as_echo_n "checking MzScheme install prefix... " >&6; } 5288if ${vi_cv_path_mzscheme_pfx+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 echo "(display (simplify-path \ 5292 (build-path (call-with-values \ 5293 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5294 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5295 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5296 sed -e 's+/$++'` 5297fi 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5299$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5300 rm -f mzdirs.scm 5301 fi 5302 fi 5303 fi 5304 5305 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5307$as_echo_n "checking for racket include directory... " >&6; } 5308 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5309 if test "X$SCHEME_INC" != "X"; then 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5311$as_echo "${SCHEME_INC}" >&6; } 5312 else 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5314$as_echo "not found" >&6; } 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5316$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5317 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5318 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5320$as_echo "yes" >&6; } 5321 else 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5323$as_echo "no" >&6; } 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5325$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5326 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5328$as_echo "yes" >&6; } 5329 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5330 else 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5332$as_echo "no" >&6; } 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5334$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5335 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5337$as_echo "yes" >&6; } 5338 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5339 else 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5341$as_echo "no" >&6; } 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5343$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5344 if test -f /usr/include/plt/scheme.h; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5346$as_echo "yes" >&6; } 5347 SCHEME_INC=/usr/include/plt 5348 else 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5350$as_echo "no" >&6; } 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5352$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5353 if test -f /usr/include/racket/scheme.h; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5355$as_echo "yes" >&6; } 5356 SCHEME_INC=/usr/include/racket 5357 else 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5359$as_echo "no" >&6; } 5360 vi_cv_path_mzscheme_pfx= 5361 fi 5362 fi 5363 fi 5364 fi 5365 fi 5366 fi 5367 fi 5368 5369 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5370 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5372$as_echo_n "checking for racket lib directory... " >&6; } 5373 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5374 if test "X$SCHEME_LIB" != "X"; then 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5376$as_echo "${SCHEME_LIB}" >&6; } 5377 else 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5379$as_echo "not found" >&6; } 5380 fi 5381 5382 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5383 if test "X$path" != "X"; then 5384 if test "x$MACOSX" = "xyes"; then 5385 MZSCHEME_LIBS="-framework Racket" 5386 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5387 elif test -f "${path}/libmzscheme3m.a"; then 5388 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5389 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5390 elif test -f "${path}/libracket3m.a"; then 5391 MZSCHEME_LIBS="${path}/libracket3m.a" 5392 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5393 elif test -f "${path}/libracket.a"; then 5394 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5395 elif test -f "${path}/libmzscheme.a"; then 5396 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5397 else 5398 if test -f "${path}/libmzscheme3m.so"; then 5399 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5400 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5401 elif test -f "${path}/libracket3m.so"; then 5402 MZSCHEME_LIBS="-L${path} -lracket3m" 5403 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5404 elif test -f "${path}/libracket.so"; then 5405 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5406 else 5407 if test "$path" != "$SCHEME_LIB"; then 5408 continue 5409 fi 5410 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5411 fi 5412 if test "$GCC" = yes; then 5413 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5414 elif test "`(uname) 2>/dev/null`" = SunOS && 5415 uname -r | grep '^5' >/dev/null; then 5416 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5417 fi 5418 fi 5419 fi 5420 if test "X$MZSCHEME_LIBS" != "X"; then 5421 break 5422 fi 5423 done 5424 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5426$as_echo_n "checking if racket requires -pthread... " >&6; } 5427 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5429$as_echo "yes" >&6; } 5430 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5431 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5432 else 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5434$as_echo "no" >&6; } 5435 fi 5436 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5438$as_echo_n "checking for racket config directory... " >&6; } 5439 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5440 if test "X$SCHEME_CONFIGDIR" != "X"; then 5441 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5443$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5444 else 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5446$as_echo "not found" >&6; } 5447 fi 5448 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5450$as_echo_n "checking for racket collects directory... " >&6; } 5451 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))))'` 5452 if test "X$SCHEME_COLLECTS" = "X"; then 5453 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5454 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5455 else 5456 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5457 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5458 else 5459 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5460 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5461 else 5462 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5463 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5464 fi 5465 fi 5466 fi 5467 fi 5468 fi 5469 if test "X$SCHEME_COLLECTS" != "X" ; then 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5471$as_echo "${SCHEME_COLLECTS}" >&6; } 5472 else 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5474$as_echo "not found" >&6; } 5475 fi 5476 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5478$as_echo_n "checking for mzscheme_base.c... " >&6; } 5479 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5480 MZSCHEME_EXTRA="mzscheme_base.c" 5481 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5482 MZSCHEME_MOD="++lib scheme/base" 5483 else 5484 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5485 MZSCHEME_EXTRA="mzscheme_base.c" 5486 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5487 MZSCHEME_MOD="++lib scheme/base" 5488 else 5489 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5490 MZSCHEME_EXTRA="mzscheme_base.c" 5491 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5492 MZSCHEME_MOD="" 5493 fi 5494 fi 5495 fi 5496 if test "X$MZSCHEME_EXTRA" != "X" ; then 5497 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5499$as_echo "needed" >&6; } 5500 else 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5502$as_echo "not needed" >&6; } 5503 fi 5504 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5506$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5507if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 ac_check_lib_save_LIBS=$LIBS 5511LIBS="-lffi $LIBS" 5512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5513/* end confdefs.h. */ 5514 5515/* Override any GCC internal prototype to avoid an error. 5516 Use char because int might match the return type of a GCC 5517 builtin and then its argument prototype would still apply. */ 5518#ifdef __cplusplus 5519extern "C" 5520#endif 5521char ffi_type_void (); 5522int 5523main () 5524{ 5525return ffi_type_void (); 5526 ; 5527 return 0; 5528} 5529_ACEOF 5530if ac_fn_c_try_link "$LINENO"; then : 5531 ac_cv_lib_ffi_ffi_type_void=yes 5532else 5533 ac_cv_lib_ffi_ffi_type_void=no 5534fi 5535rm -f core conftest.err conftest.$ac_objext \ 5536 conftest$ac_exeext conftest.$ac_ext 5537LIBS=$ac_check_lib_save_LIBS 5538fi 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5540$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5541if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5542 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5543fi 5544 5545 5546 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5547 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5548 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5550$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5551 cflags_save=$CFLAGS 5552 libs_save=$LIBS 5553 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5554 LIBS="$LIBS $MZSCHEME_LIBS" 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556/* end confdefs.h. */ 5557 5558int 5559main () 5560{ 5561 5562 ; 5563 return 0; 5564} 5565_ACEOF 5566if ac_fn_c_try_link "$LINENO"; then : 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5568$as_echo "yes" >&6; }; mzs_ok=yes 5569else 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5571$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5572fi 5573rm -f core conftest.err conftest.$ac_objext \ 5574 conftest$ac_exeext conftest.$ac_ext 5575 CFLAGS=$cflags_save 5576 LIBS=$libs_save 5577 if test $mzs_ok = yes; then 5578 MZSCHEME_SRC="if_mzsch.c" 5579 MZSCHEME_OBJ="objects/if_mzsch.o" 5580 MZSCHEME_PRO="if_mzsch.pro" 5581 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5582 5583 else 5584 MZSCHEME_CFLAGS= 5585 MZSCHEME_LIBS= 5586 MZSCHEME_EXTRA= 5587 MZSCHEME_MZC= 5588 fi 5589 fi 5590 5591 5592 5593 5594 5595 5596 5597fi 5598 5599 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5601$as_echo_n "checking --enable-perlinterp argument... " >&6; } 5602# Check whether --enable-perlinterp was given. 5603if test "${enable_perlinterp+set}" = set; then : 5604 enableval=$enable_perlinterp; 5605else 5606 enable_perlinterp="no" 5607fi 5608 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 5610$as_echo "$enable_perlinterp" >&6; } 5611if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 5612 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5613 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 5614 fi 5615 5616 # Extract the first word of "perl", so it can be a program name with args. 5617set dummy perl; ac_word=$2 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5619$as_echo_n "checking for $ac_word... " >&6; } 5620if ${ac_cv_path_vi_cv_path_perl+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 case $vi_cv_path_perl in 5624 [\\/]* | ?:[\\/]*) 5625 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 5626 ;; 5627 *) 5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5629for as_dir in $PATH 5630do 5631 IFS=$as_save_IFS 5632 test -z "$as_dir" && as_dir=. 5633 for ac_exec_ext in '' $ac_executable_extensions; do 5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5635 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5637 break 2 5638 fi 5639done 5640 done 5641IFS=$as_save_IFS 5642 5643 ;; 5644esac 5645fi 5646vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 5647if test -n "$vi_cv_path_perl"; then 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 5649$as_echo "$vi_cv_path_perl" >&6; } 5650else 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5652$as_echo "no" >&6; } 5653fi 5654 5655 5656 if test "X$vi_cv_path_perl" != "X"; then 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 5658$as_echo_n "checking Perl version... " >&6; } 5659 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 5660 eval `$vi_cv_path_perl -V:usethreads` 5661 eval `$vi_cv_path_perl -V:libperl` 5662 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 5663 badthreads=no 5664 else 5665 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 5666 eval `$vi_cv_path_perl -V:use5005threads` 5667 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 5668 badthreads=no 5669 else 5670 badthreads=yes 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 5672$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 5673 fi 5674 else 5675 badthreads=yes 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5677$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5678 fi 5679 fi 5680 if test $badthreads = no; then 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5682$as_echo "OK" >&6; } 5683 eval `$vi_cv_path_perl -V:shrpenv` 5684 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5685 shrpenv="" 5686 fi 5687 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5688 5689 vi_cv_perl_extutils=unknown_perl_extutils_path 5690 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 5691 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 5692 if test -f "$xsubpp_path"; then 5693 vi_cv_perl_xsubpp="$xsubpp_path" 5694 fi 5695 done 5696 5697 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5698 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 5699 -e 's/-fdebug-prefix-map[^ ]*//g'` 5700 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5701 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5702 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5703 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5704 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5705 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5707$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5708 cflags_save=$CFLAGS 5709 libs_save=$LIBS 5710 ldflags_save=$LDFLAGS 5711 CFLAGS="$CFLAGS $perlcppflags" 5712 LIBS="$LIBS $perllibs" 5713 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 5714 LDFLAGS="$perlldflags $LDFLAGS" 5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5716/* end confdefs.h. */ 5717 5718int 5719main () 5720{ 5721 5722 ; 5723 return 0; 5724} 5725_ACEOF 5726if ac_fn_c_try_link "$LINENO"; then : 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5728$as_echo "yes" >&6; }; perl_ok=yes 5729else 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5731$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext \ 5734 conftest$ac_exeext conftest.$ac_ext 5735 CFLAGS=$cflags_save 5736 LIBS=$libs_save 5737 LDFLAGS=$ldflags_save 5738 if test $perl_ok = yes; then 5739 if test "X$perlcppflags" != "X"; then 5740 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` 5741 fi 5742 if test "X$perlldflags" != "X"; then 5743 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 5744 LDFLAGS="$perlldflags $LDFLAGS" 5745 fi 5746 fi 5747 PERL_LIBS=$perllibs 5748 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5749 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5750 PERL_PRO="if_perl.pro if_perlsfio.pro" 5751 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5752 5753 fi 5754 fi 5755 else 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5757$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5758 fi 5759 fi 5760 5761 if test "x$MACOSX" = "xyes"; then 5762 dir=/System/Library/Perl 5763 darwindir=$dir/darwin 5764 if test -d $darwindir; then 5765 PERL=/usr/bin/perl 5766 else 5767 dir=/System/Library/Perl/5.8.1 5768 darwindir=$dir/darwin-thread-multi-2level 5769 if test -d $darwindir; then 5770 PERL=/usr/bin/perl 5771 fi 5772 fi 5773 if test -n "$PERL"; then 5774 PERL_DIR="$dir" 5775 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5776 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5777 PERL_LIBS="-L$darwindir/CORE -lperl" 5778 fi 5779 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5780 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5781 fi 5782 if test "$enable_perlinterp" = "dynamic"; then 5783 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5784 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5785 5786 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5787 fi 5788 fi 5789 5790 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 5791 as_fn_error $? "could not configure perl" "$LINENO" 5 5792 fi 5793fi 5794 5795 5796 5797 5798 5799 5800 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5802$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5803# Check whether --enable-pythoninterp was given. 5804if test "${enable_pythoninterp+set}" = set; then : 5805 enableval=$enable_pythoninterp; 5806else 5807 enable_pythoninterp="no" 5808fi 5809 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5811$as_echo "$enable_pythoninterp" >&6; } 5812if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5813 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5814 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 5815 fi 5816 5817 for ac_prog in python2 python 5818do 5819 # Extract the first word of "$ac_prog", so it can be a program name with args. 5820set dummy $ac_prog; ac_word=$2 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5822$as_echo_n "checking for $ac_word... " >&6; } 5823if ${ac_cv_path_vi_cv_path_python+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 case $vi_cv_path_python in 5827 [\\/]* | ?:[\\/]*) 5828 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5829 ;; 5830 *) 5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5832for as_dir in $PATH 5833do 5834 IFS=$as_save_IFS 5835 test -z "$as_dir" && as_dir=. 5836 for ac_exec_ext in '' $ac_executable_extensions; do 5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5838 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5840 break 2 5841 fi 5842done 5843 done 5844IFS=$as_save_IFS 5845 5846 ;; 5847esac 5848fi 5849vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5850if test -n "$vi_cv_path_python"; then 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5852$as_echo "$vi_cv_path_python" >&6; } 5853else 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5855$as_echo "no" >&6; } 5856fi 5857 5858 5859 test -n "$vi_cv_path_python" && break 5860done 5861 5862 if test "X$vi_cv_path_python" != "X"; then 5863 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5865$as_echo_n "checking Python version... " >&6; } 5866if ${vi_cv_var_python_version+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 vi_cv_var_python_version=` 5870 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5871 5872fi 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5874$as_echo "$vi_cv_var_python_version" >&6; } 5875 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 5877$as_echo_n "checking Python is 2.3 or better... " >&6; } 5878 if ${vi_cv_path_python} -c \ 5879 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 5880 then 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5882$as_echo "yep" >&6; } 5883 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5885$as_echo_n "checking Python's install prefix... " >&6; } 5886if ${vi_cv_path_python_pfx+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 vi_cv_path_python_pfx=` 5890 ${vi_cv_path_python} -c \ 5891 "import sys; print sys.prefix"` 5892fi 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5894$as_echo "$vi_cv_path_python_pfx" >&6; } 5895 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5897$as_echo_n "checking Python's execution prefix... " >&6; } 5898if ${vi_cv_path_python_epfx+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900else 5901 vi_cv_path_python_epfx=` 5902 ${vi_cv_path_python} -c \ 5903 "import sys; print sys.exec_prefix"` 5904fi 5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5906$as_echo "$vi_cv_path_python_epfx" >&6; } 5907 5908 5909 if ${vi_cv_path_pythonpath+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 vi_cv_path_pythonpath=` 5913 unset PYTHONPATH; 5914 ${vi_cv_path_python} -c \ 5915 "import sys, string; print string.join(sys.path,':')"` 5916fi 5917 5918 5919 5920 5921# Check whether --with-python-config-dir was given. 5922if test "${with_python_config_dir+set}" = set; then : 5923 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5924fi 5925 5926 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5928$as_echo_n "checking Python's configuration directory... " >&6; } 5929if ${vi_cv_path_python_conf+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 5933 vi_cv_path_python_conf= 5934 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 5935 if test -d "$d" && test -f "$d/config.c"; then 5936 vi_cv_path_python_conf="$d" 5937 else 5938 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5939 for subdir in lib64 lib share; do 5940 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5941 if test -d "$d" && test -f "$d/config.c"; then 5942 vi_cv_path_python_conf="$d" 5943 fi 5944 done 5945 done 5946 fi 5947 5948fi 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5950$as_echo "$vi_cv_path_python_conf" >&6; } 5951 5952 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5953 5954 if test "X$PYTHON_CONFDIR" = "X"; then 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5956$as_echo "can't find it!" >&6; } 5957 else 5958 5959 if ${vi_cv_path_python_plibs+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961else 5962 5963 pwd=`pwd` 5964 tmp_mkf="$pwd/config-PyMake$$" 5965 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5966__: 5967 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5968 @echo "python_LIBS='$(LIBS)'" 5969 @echo "python_SYSLIBS='$(SYSLIBS)'" 5970 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5971 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 5972 @echo "python_INSTSONAME='$(INSTSONAME)'" 5973 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 5974 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 5975 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 5976eof 5977 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5978 rm -f -- "${tmp_mkf}" 5979 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 5980 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 5981 vi_cv_path_python_plibs="-framework Python" 5982 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 5983 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 5984 fi 5985 else 5986 if test "${vi_cv_var_python_version}" = "1.4"; then 5987 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 5988 else 5989 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 5990 fi 5991 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 5992 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 5993 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 5994 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 5995 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 5996 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 5997 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 5998 fi 5999 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6000 fi 6001 fi 6002 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6003 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6004 fi 6005 6006fi 6007 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6009$as_echo_n "checking Python's dll name... " >&6; } 6010if ${vi_cv_dll_name_python+:} false; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 6014 if test "X$python_DLLLIBRARY" != "X"; then 6015 vi_cv_dll_name_python="$python_DLLLIBRARY" 6016 else 6017 vi_cv_dll_name_python="$python_INSTSONAME" 6018 fi 6019 6020fi 6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6022$as_echo "$vi_cv_dll_name_python" >&6; } 6023 6024 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6025 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6026 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6027 else 6028 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} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6029 fi 6030 PYTHON_SRC="if_python.c" 6031 PYTHON_OBJ="objects/if_python.o" 6032 if test "${vi_cv_var_python_version}" = "1.4"; then 6033 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 6034 fi 6035 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 6036 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6038$as_echo_n "checking if -pthread should be used... " >&6; } 6039 threadsafe_flag= 6040 thread_lib= 6041 if test "`(uname) 2>/dev/null`" != Darwin; then 6042 test "$GCC" = yes && threadsafe_flag="-pthread" 6043 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6044 threadsafe_flag="-D_THREAD_SAFE" 6045 thread_lib="-pthread" 6046 fi 6047 if test "`(uname) 2>/dev/null`" = SunOS; then 6048 threadsafe_flag="-pthreads" 6049 fi 6050 fi 6051 libs_save_old=$LIBS 6052 if test -n "$threadsafe_flag"; then 6053 cflags_save=$CFLAGS 6054 CFLAGS="$CFLAGS $threadsafe_flag" 6055 LIBS="$LIBS $thread_lib" 6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058 6059int 6060main () 6061{ 6062 6063 ; 6064 return 0; 6065} 6066_ACEOF 6067if ac_fn_c_try_link "$LINENO"; then : 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6069$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6070else 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6072$as_echo "no" >&6; }; LIBS=$libs_save_old 6073 6074fi 6075rm -f core conftest.err conftest.$ac_objext \ 6076 conftest$ac_exeext conftest.$ac_ext 6077 CFLAGS=$cflags_save 6078 else 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6080$as_echo "no" >&6; } 6081 fi 6082 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6084$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6085 cflags_save=$CFLAGS 6086 libs_save=$LIBS 6087 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6088 LIBS="$LIBS $PYTHON_LIBS" 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091 6092int 6093main () 6094{ 6095 6096 ; 6097 return 0; 6098} 6099_ACEOF 6100if ac_fn_c_try_link "$LINENO"; then : 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6102$as_echo "yes" >&6; }; python_ok=yes 6103else 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6105$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6106fi 6107rm -f core conftest.err conftest.$ac_objext \ 6108 conftest$ac_exeext conftest.$ac_ext 6109 CFLAGS=$cflags_save 6110 LIBS=$libs_save 6111 if test $python_ok = yes; then 6112 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6113 6114 else 6115 LIBS=$libs_save_old 6116 PYTHON_SRC= 6117 PYTHON_OBJ= 6118 PYTHON_LIBS= 6119 PYTHON_CFLAGS= 6120 fi 6121 fi 6122 else 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6124$as_echo "too old" >&6; } 6125 fi 6126 fi 6127 6128 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6129 as_fn_error $? "could not configure python" "$LINENO" 5 6130 fi 6131fi 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6142$as_echo_n "checking --enable-python3interp argument... " >&6; } 6143# Check whether --enable-python3interp was given. 6144if test "${enable_python3interp+set}" = set; then : 6145 enableval=$enable_python3interp; 6146else 6147 enable_python3interp="no" 6148fi 6149 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6151$as_echo "$enable_python3interp" >&6; } 6152if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6153 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6154 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6155 fi 6156 6157 for ac_prog in python3 python 6158do 6159 # Extract the first word of "$ac_prog", so it can be a program name with args. 6160set dummy $ac_prog; ac_word=$2 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6162$as_echo_n "checking for $ac_word... " >&6; } 6163if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 case $vi_cv_path_python3 in 6167 [\\/]* | ?:[\\/]*) 6168 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6169 ;; 6170 *) 6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6172for as_dir in $PATH 6173do 6174 IFS=$as_save_IFS 6175 test -z "$as_dir" && as_dir=. 6176 for ac_exec_ext in '' $ac_executable_extensions; do 6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6178 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6180 break 2 6181 fi 6182done 6183 done 6184IFS=$as_save_IFS 6185 6186 ;; 6187esac 6188fi 6189vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6190if test -n "$vi_cv_path_python3"; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6192$as_echo "$vi_cv_path_python3" >&6; } 6193else 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6195$as_echo "no" >&6; } 6196fi 6197 6198 6199 test -n "$vi_cv_path_python3" && break 6200done 6201 6202 if test "X$vi_cv_path_python3" != "X"; then 6203 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6205$as_echo_n "checking Python version... " >&6; } 6206if ${vi_cv_var_python3_version+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 vi_cv_var_python3_version=` 6210 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6211 6212fi 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6214$as_echo "$vi_cv_var_python3_version" >&6; } 6215 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6217$as_echo_n "checking Python is 3.0 or better... " >&6; } 6218 if ${vi_cv_path_python3} -c \ 6219 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6220 then 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6222$as_echo "yep" >&6; } 6223 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6225$as_echo_n "checking Python's abiflags... " >&6; } 6226if ${vi_cv_var_python3_abiflags+:} false; then : 6227 $as_echo_n "(cached) " >&6 6228else 6229 6230 vi_cv_var_python3_abiflags= 6231 if ${vi_cv_path_python3} -c \ 6232 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6233 then 6234 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6235 "import sys; print(sys.abiflags)"` 6236 fi 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6239$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6240 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6242$as_echo_n "checking Python's install prefix... " >&6; } 6243if ${vi_cv_path_python3_pfx+:} false; then : 6244 $as_echo_n "(cached) " >&6 6245else 6246 vi_cv_path_python3_pfx=` 6247 ${vi_cv_path_python3} -c \ 6248 "import sys; print(sys.prefix)"` 6249fi 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6251$as_echo "$vi_cv_path_python3_pfx" >&6; } 6252 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6254$as_echo_n "checking Python's execution prefix... " >&6; } 6255if ${vi_cv_path_python3_epfx+:} false; then : 6256 $as_echo_n "(cached) " >&6 6257else 6258 vi_cv_path_python3_epfx=` 6259 ${vi_cv_path_python3} -c \ 6260 "import sys; print(sys.exec_prefix)"` 6261fi 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6263$as_echo "$vi_cv_path_python3_epfx" >&6; } 6264 6265 6266 if ${vi_cv_path_python3path+:} false; then : 6267 $as_echo_n "(cached) " >&6 6268else 6269 vi_cv_path_python3path=` 6270 unset PYTHONPATH; 6271 ${vi_cv_path_python3} -c \ 6272 "import sys, string; print(':'.join(sys.path))"` 6273fi 6274 6275 6276 6277 6278# Check whether --with-python3-config-dir was given. 6279if test "${with_python3_config_dir+set}" = set; then : 6280 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 6281fi 6282 6283 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6285$as_echo_n "checking Python's configuration directory... " >&6; } 6286if ${vi_cv_path_python3_conf+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288else 6289 6290 vi_cv_path_python3_conf= 6291 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6292 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6293 if test -d "$d" && test -f "$d/config.c"; then 6294 vi_cv_path_python3_conf="$d" 6295 else 6296 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6297 for subdir in lib64 lib share; do 6298 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6299 if test -d "$d" && test -f "$d/config.c"; then 6300 vi_cv_path_python3_conf="$d" 6301 fi 6302 done 6303 done 6304 fi 6305 6306fi 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6308$as_echo "$vi_cv_path_python3_conf" >&6; } 6309 6310 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6311 6312 if test "X$PYTHON3_CONFDIR" = "X"; then 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6314$as_echo "can't find it!" >&6; } 6315 else 6316 6317 if ${vi_cv_path_python3_plibs+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 6321 pwd=`pwd` 6322 tmp_mkf="$pwd/config-PyMake$$" 6323 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6324__: 6325 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6326 @echo "python3_LIBS='$(LIBS)'" 6327 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6328 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6329 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6330eof 6331 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6332 rm -f -- "${tmp_mkf}" 6333 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6334 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6335 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6336 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6337 6338fi 6339 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6341$as_echo_n "checking Python3's dll name... " >&6; } 6342if ${vi_cv_dll_name_python3+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 6346 if test "X$python3_DLLLIBRARY" != "X"; then 6347 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6348 else 6349 vi_cv_dll_name_python3="$python3_INSTSONAME" 6350 fi 6351 6352fi 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6354$as_echo "$vi_cv_dll_name_python3" >&6; } 6355 6356 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6357 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6358 PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6359 else 6360 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} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'" 6361 fi 6362 PYTHON3_SRC="if_python3.c" 6363 PYTHON3_OBJ="objects/if_python3.o" 6364 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6366$as_echo_n "checking if -pthread should be used... " >&6; } 6367 threadsafe_flag= 6368 thread_lib= 6369 if test "`(uname) 2>/dev/null`" != Darwin; then 6370 test "$GCC" = yes && threadsafe_flag="-pthread" 6371 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6372 threadsafe_flag="-D_THREAD_SAFE" 6373 thread_lib="-pthread" 6374 fi 6375 if test "`(uname) 2>/dev/null`" = SunOS; then 6376 threadsafe_flag="-pthreads" 6377 fi 6378 fi 6379 libs_save_old=$LIBS 6380 if test -n "$threadsafe_flag"; then 6381 cflags_save=$CFLAGS 6382 CFLAGS="$CFLAGS $threadsafe_flag" 6383 LIBS="$LIBS $thread_lib" 6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6385/* end confdefs.h. */ 6386 6387int 6388main () 6389{ 6390 6391 ; 6392 return 0; 6393} 6394_ACEOF 6395if ac_fn_c_try_link "$LINENO"; then : 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6397$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6398else 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6400$as_echo "no" >&6; }; LIBS=$libs_save_old 6401 6402fi 6403rm -f core conftest.err conftest.$ac_objext \ 6404 conftest$ac_exeext conftest.$ac_ext 6405 CFLAGS=$cflags_save 6406 else 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6408$as_echo "no" >&6; } 6409 fi 6410 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6412$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6413 cflags_save=$CFLAGS 6414 libs_save=$LIBS 6415 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6416 LIBS="$LIBS $PYTHON3_LIBS" 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6418/* end confdefs.h. */ 6419 6420int 6421main () 6422{ 6423 6424 ; 6425 return 0; 6426} 6427_ACEOF 6428if ac_fn_c_try_link "$LINENO"; then : 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6430$as_echo "yes" >&6; }; python3_ok=yes 6431else 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6433$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6434fi 6435rm -f core conftest.err conftest.$ac_objext \ 6436 conftest$ac_exeext conftest.$ac_ext 6437 CFLAGS=$cflags_save 6438 LIBS=$libs_save 6439 if test "$python3_ok" = yes; then 6440 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6441 6442 else 6443 LIBS=$libs_save_old 6444 PYTHON3_SRC= 6445 PYTHON3_OBJ= 6446 PYTHON3_LIBS= 6447 PYTHON3_CFLAGS= 6448 fi 6449 fi 6450 else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6452$as_echo "too old" >&6; } 6453 fi 6454 fi 6455 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6456 as_fn_error $? "could not configure python3" "$LINENO" 5 6457 fi 6458fi 6459 6460 6461 6462 6463 6464 6465 6466if test "$python_ok" = yes && test "$python3_ok" = yes; then 6467 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6468 6469 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6470 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6472$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6473 cflags_save=$CFLAGS 6474 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6475 libs_save=$LIBS 6476 LIBS="-ldl $LIBS" 6477 if test "$cross_compiling" = yes; then : 6478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6480as_fn_error $? "cannot run test program while cross compiling 6481See \`config.log' for more details" "$LINENO" 5; } 6482else 6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484/* end confdefs.h. */ 6485 6486 #include <dlfcn.h> 6487 /* If this program fails, then RTLD_GLOBAL is needed. 6488 * RTLD_GLOBAL will be used and then it is not possible to 6489 * have both python versions enabled in the same vim instance. 6490 * Only the first python version used will be switched on. 6491 */ 6492 6493 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6494 { 6495 int needed = 0; 6496 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6497 if (pylib != 0) 6498 { 6499 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6500 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6501 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6502 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6503 (*pfx)(prefix); 6504 (*init)(); 6505 needed = (*simple)("import termios") == -1; 6506 (*final)(); 6507 dlclose(pylib); 6508 } 6509 return !needed; 6510 } 6511 6512 int main(int argc, char** argv) 6513 { 6514 int not_needed = 0; 6515 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6516 not_needed = 1; 6517 return !not_needed; 6518 } 6519_ACEOF 6520if ac_fn_c_try_run "$LINENO"; then : 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6522$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6523 6524else 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6526$as_echo "no" >&6; } 6527fi 6528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6529 conftest.$ac_objext conftest.beam conftest.$ac_ext 6530fi 6531 6532 6533 CFLAGS=$cflags_save 6534 LIBS=$libs_save 6535 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6537$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6538 cflags_save=$CFLAGS 6539 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6540 libs_save=$LIBS 6541 LIBS="-ldl $LIBS" 6542 if test "$cross_compiling" = yes; then : 6543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6545as_fn_error $? "cannot run test program while cross compiling 6546See \`config.log' for more details" "$LINENO" 5; } 6547else 6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6549/* end confdefs.h. */ 6550 6551 #include <dlfcn.h> 6552 #include <wchar.h> 6553 /* If this program fails, then RTLD_GLOBAL is needed. 6554 * RTLD_GLOBAL will be used and then it is not possible to 6555 * have both python versions enabled in the same vim instance. 6556 * Only the first python version used will be switched on. 6557 */ 6558 6559 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6560 { 6561 int needed = 0; 6562 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6563 if (pylib != 0) 6564 { 6565 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6566 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6567 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6568 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6569 (*pfx)(prefix); 6570 (*init)(); 6571 needed = (*simple)("import termios") == -1; 6572 (*final)(); 6573 dlclose(pylib); 6574 } 6575 return !needed; 6576 } 6577 6578 int main(int argc, char** argv) 6579 { 6580 int not_needed = 0; 6581 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 6582 not_needed = 1; 6583 return !not_needed; 6584 } 6585_ACEOF 6586if ac_fn_c_try_run "$LINENO"; then : 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6588$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 6589 6590else 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6592$as_echo "no" >&6; } 6593fi 6594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6595 conftest.$ac_objext conftest.beam conftest.$ac_ext 6596fi 6597 6598 6599 CFLAGS=$cflags_save 6600 LIBS=$libs_save 6601 6602 PYTHON_SRC="if_python.c" 6603 PYTHON_OBJ="objects/if_python.o" 6604 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6605 PYTHON_LIBS= 6606 PYTHON3_SRC="if_python3.c" 6607 PYTHON3_OBJ="objects/if_python3.o" 6608 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6609 PYTHON3_LIBS= 6610elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 6611 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6612 6613 PYTHON_SRC="if_python.c" 6614 PYTHON_OBJ="objects/if_python.o" 6615 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6616 PYTHON_LIBS= 6617elif test "$python_ok" = yes; then 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 6619$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 6620 cflags_save=$CFLAGS 6621 libs_save=$LIBS 6622 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 6623 LIBS="$LIBS $PYTHON_LIBS" 6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6625/* end confdefs.h. */ 6626 6627int 6628main () 6629{ 6630 6631 ; 6632 return 0; 6633} 6634_ACEOF 6635if ac_fn_c_try_link "$LINENO"; then : 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6637$as_echo "yes" >&6; }; fpie_ok=yes 6638else 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6640$as_echo "no" >&6; }; fpie_ok=no 6641fi 6642rm -f core conftest.err conftest.$ac_objext \ 6643 conftest$ac_exeext conftest.$ac_ext 6644 CFLAGS=$cflags_save 6645 LIBS=$libs_save 6646 if test $fpie_ok = yes; then 6647 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 6648 fi 6649elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 6650 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6651 6652 PYTHON3_SRC="if_python3.c" 6653 PYTHON3_OBJ="objects/if_python3.o" 6654 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6655 PYTHON3_LIBS= 6656elif test "$python3_ok" = yes; then 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 6658$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 6659 cflags_save=$CFLAGS 6660 libs_save=$LIBS 6661 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 6662 LIBS="$LIBS $PYTHON3_LIBS" 6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6664/* end confdefs.h. */ 6665 6666int 6667main () 6668{ 6669 6670 ; 6671 return 0; 6672} 6673_ACEOF 6674if ac_fn_c_try_link "$LINENO"; then : 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6676$as_echo "yes" >&6; }; fpie_ok=yes 6677else 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6679$as_echo "no" >&6; }; fpie_ok=no 6680fi 6681rm -f core conftest.err conftest.$ac_objext \ 6682 conftest$ac_exeext conftest.$ac_ext 6683 CFLAGS=$cflags_save 6684 LIBS=$libs_save 6685 if test $fpie_ok = yes; then 6686 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 6687 fi 6688fi 6689 6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 6691$as_echo_n "checking --enable-tclinterp argument... " >&6; } 6692# Check whether --enable-tclinterp was given. 6693if test "${enable_tclinterp+set}" = set; then : 6694 enableval=$enable_tclinterp; 6695else 6696 enable_tclinterp="no" 6697fi 6698 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 6700$as_echo "$enable_tclinterp" >&6; } 6701 6702if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 6703 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 6705$as_echo_n "checking --with-tclsh argument... " >&6; } 6706 6707# Check whether --with-tclsh was given. 6708if test "${with_tclsh+set}" = set; then : 6709 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 6710$as_echo "$tclsh_name" >&6; } 6711else 6712 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6713$as_echo "no" >&6; } 6714fi 6715 6716 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6717set dummy $tclsh_name; ac_word=$2 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6719$as_echo_n "checking for $ac_word... " >&6; } 6720if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 case $vi_cv_path_tcl in 6724 [\\/]* | ?:[\\/]*) 6725 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6726 ;; 6727 *) 6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6729for as_dir in $PATH 6730do 6731 IFS=$as_save_IFS 6732 test -z "$as_dir" && as_dir=. 6733 for ac_exec_ext in '' $ac_executable_extensions; do 6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6735 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6737 break 2 6738 fi 6739done 6740 done 6741IFS=$as_save_IFS 6742 6743 ;; 6744esac 6745fi 6746vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6747if test -n "$vi_cv_path_tcl"; then 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6749$as_echo "$vi_cv_path_tcl" >&6; } 6750else 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6752$as_echo "no" >&6; } 6753fi 6754 6755 6756 6757 6758 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 6759 tclsh_name="tclsh8.4" 6760 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6761set dummy $tclsh_name; ac_word=$2 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6763$as_echo_n "checking for $ac_word... " >&6; } 6764if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6765 $as_echo_n "(cached) " >&6 6766else 6767 case $vi_cv_path_tcl in 6768 [\\/]* | ?:[\\/]*) 6769 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6770 ;; 6771 *) 6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6779 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787 ;; 6788esac 6789fi 6790vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6791if test -n "$vi_cv_path_tcl"; then 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6793$as_echo "$vi_cv_path_tcl" >&6; } 6794else 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6796$as_echo "no" >&6; } 6797fi 6798 6799 6800 fi 6801 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 6802 tclsh_name="tclsh8.2" 6803 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6804set dummy $tclsh_name; ac_word=$2 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806$as_echo_n "checking for $ac_word... " >&6; } 6807if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 case $vi_cv_path_tcl in 6811 [\\/]* | ?:[\\/]*) 6812 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6813 ;; 6814 *) 6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6816for as_dir in $PATH 6817do 6818 IFS=$as_save_IFS 6819 test -z "$as_dir" && as_dir=. 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6822 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826done 6827 done 6828IFS=$as_save_IFS 6829 6830 ;; 6831esac 6832fi 6833vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6834if test -n "$vi_cv_path_tcl"; then 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6836$as_echo "$vi_cv_path_tcl" >&6; } 6837else 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6839$as_echo "no" >&6; } 6840fi 6841 6842 6843 fi 6844 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 6845 tclsh_name="tclsh8.0" 6846 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6847set dummy $tclsh_name; ac_word=$2 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6849$as_echo_n "checking for $ac_word... " >&6; } 6850if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 case $vi_cv_path_tcl in 6854 [\\/]* | ?:[\\/]*) 6855 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6856 ;; 6857 *) 6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6859for as_dir in $PATH 6860do 6861 IFS=$as_save_IFS 6862 test -z "$as_dir" && as_dir=. 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6865 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6867 break 2 6868 fi 6869done 6870 done 6871IFS=$as_save_IFS 6872 6873 ;; 6874esac 6875fi 6876vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6877if test -n "$vi_cv_path_tcl"; then 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6879$as_echo "$vi_cv_path_tcl" >&6; } 6880else 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6882$as_echo "no" >&6; } 6883fi 6884 6885 6886 fi 6887 if test "X$vi_cv_path_tcl" = "X"; then 6888 tclsh_name="tclsh" 6889 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6890set dummy $tclsh_name; ac_word=$2 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6892$as_echo_n "checking for $ac_word... " >&6; } 6893if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 case $vi_cv_path_tcl in 6897 [\\/]* | ?:[\\/]*) 6898 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6899 ;; 6900 *) 6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6902for as_dir in $PATH 6903do 6904 IFS=$as_save_IFS 6905 test -z "$as_dir" && as_dir=. 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6908 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6910 break 2 6911 fi 6912done 6913 done 6914IFS=$as_save_IFS 6915 6916 ;; 6917esac 6918fi 6919vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6920if test -n "$vi_cv_path_tcl"; then 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6922$as_echo "$vi_cv_path_tcl" >&6; } 6923else 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6925$as_echo "no" >&6; } 6926fi 6927 6928 6929 fi 6930 if test "X$vi_cv_path_tcl" != "X"; then 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 6932$as_echo_n "checking Tcl version... " >&6; } 6933 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 6934 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6936$as_echo "$tclver - OK" >&6; }; 6937 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 -` 6938 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 6939 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6941$as_echo_n "checking for location of Tcl include... " >&6; } 6942 if test "x$MACOSX" != "xyes"; then 6943 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6944 else 6945 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6946 fi 6947 TCL_INC= 6948 for try in $tclinc; do 6949 if test -f "$try/tcl.h"; then 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6951$as_echo "$try/tcl.h" >&6; } 6952 TCL_INC=$try 6953 break 6954 fi 6955 done 6956 if test -z "$TCL_INC"; then 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6958$as_echo "<not found>" >&6; } 6959 SKIP_TCL=YES 6960 fi 6961 if test -z "$SKIP_TCL"; then 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6963$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6964 if test "x$MACOSX" != "xyes"; then 6965 tclcnf=`echo $tclinc | sed s/include/lib/g` 6966 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 6967 else 6968 tclcnf="/System/Library/Frameworks/Tcl.framework" 6969 fi 6970 for try in $tclcnf; do 6971 if test -f "$try/tclConfig.sh"; then 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 6973$as_echo "$try/tclConfig.sh" >&6; } 6974 . "$try/tclConfig.sh" 6975 if test "$enable_tclinterp" = "dynamic"; then 6976 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 6977 else 6978 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 6979 fi 6980 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'` 6981 break 6982 fi 6983 done 6984 if test -z "$TCL_LIBS"; then 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6986$as_echo "<not found>" >&6; } 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 6988$as_echo_n "checking for Tcl library by myself... " >&6; } 6989 tcllib=`echo $tclinc | sed s/include/lib/g` 6990 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 6991 for ext in .so .a ; do 6992 for ver in "" $tclver ; do 6993 for try in $tcllib ; do 6994 trylib=tcl$ver$ext 6995 if test -f "$try/lib$trylib" ; then 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 6997$as_echo "$try/lib$trylib" >&6; } 6998 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 6999 if test "`(uname) 2>/dev/null`" = SunOS && 7000 uname -r | grep '^5' >/dev/null; then 7001 TCL_LIBS="$TCL_LIBS -R $try" 7002 fi 7003 break 3 7004 fi 7005 done 7006 done 7007 done 7008 if test -z "$TCL_LIBS"; then 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7010$as_echo "<not found>" >&6; } 7011 SKIP_TCL=YES 7012 fi 7013 fi 7014 if test -z "$SKIP_TCL"; then 7015 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7016 7017 TCL_SRC=if_tcl.c 7018 TCL_OBJ=objects/if_tcl.o 7019 TCL_PRO=if_tcl.pro 7020 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7021 fi 7022 fi 7023 else 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7025$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7026 fi 7027 fi 7028 if test "$enable_tclinterp" = "dynamic"; then 7029 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7030 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7031 7032 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7033 fi 7034 fi 7035 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7036 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7037 fi 7038fi 7039 7040 7041 7042 7043 7044 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7046$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7047# Check whether --enable-rubyinterp was given. 7048if test "${enable_rubyinterp+set}" = set; then : 7049 enableval=$enable_rubyinterp; 7050else 7051 enable_rubyinterp="no" 7052fi 7053 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7055$as_echo "$enable_rubyinterp" >&6; } 7056if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7057 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7058 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7059 fi 7060 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7062$as_echo_n "checking --with-ruby-command argument... " >&6; } 7063 7064 7065# Check whether --with-ruby-command was given. 7066if test "${with_ruby_command+set}" = set; then : 7067 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7068$as_echo "$RUBY_CMD" >&6; } 7069else 7070 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7071$as_echo "defaulting to $RUBY_CMD" >&6; } 7072fi 7073 7074 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7075set dummy $RUBY_CMD; ac_word=$2 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7077$as_echo_n "checking for $ac_word... " >&6; } 7078if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080else 7081 case $vi_cv_path_ruby in 7082 [\\/]* | ?:[\\/]*) 7083 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7084 ;; 7085 *) 7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087for as_dir in $PATH 7088do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7093 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097done 7098 done 7099IFS=$as_save_IFS 7100 7101 ;; 7102esac 7103fi 7104vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7105if test -n "$vi_cv_path_ruby"; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7107$as_echo "$vi_cv_path_ruby" >&6; } 7108else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110$as_echo "no" >&6; } 7111fi 7112 7113 7114 if test "X$vi_cv_path_ruby" != "X"; then 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7116$as_echo_n "checking Ruby version... " >&6; } 7117 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7119$as_echo "OK" >&6; } 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7121$as_echo_n "checking Ruby rbconfig... " >&6; } 7122 ruby_rbconfig="RbConfig" 7123 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7124 ruby_rbconfig="Config" 7125 fi 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7127$as_echo "$ruby_rbconfig" >&6; } 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7129$as_echo_n "checking Ruby header files... " >&6; } 7130 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7131 if test "X$rubyhdrdir" != "X"; then 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7133$as_echo "$rubyhdrdir" >&6; } 7134 RUBY_CFLAGS="-I$rubyhdrdir" 7135 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7136 if test -d "$rubyarchdir"; then 7137 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7138 fi 7139 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7140 if test "X$rubyversion" = "X"; then 7141 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7142 fi 7143 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7144 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7145 if test "X$rubylibs" != "X"; then 7146 RUBY_LIBS="$rubylibs" 7147 fi 7148 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7149 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7150 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7151 if test -f "$rubylibdir/$librubya"; then 7152 librubyarg="$librubyarg" 7153 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7154 elif test "$librubyarg" = "libruby.a"; then 7155 librubyarg="-lruby" 7156 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7157 fi 7158 7159 if test "X$librubyarg" != "X"; then 7160 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7161 fi 7162 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7163 if test "X$rubyldflags" != "X"; then 7164 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7165 if test "X$rubyldflags" != "X"; then 7166 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7167 LDFLAGS="$rubyldflags $LDFLAGS" 7168 fi 7169 fi 7170 fi 7171 RUBY_SRC="if_ruby.c" 7172 RUBY_OBJ="objects/if_ruby.o" 7173 RUBY_PRO="if_ruby.pro" 7174 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7175 7176 if test "$enable_rubyinterp" = "dynamic"; then 7177 libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7178 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7179 7180 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7181 RUBY_LIBS= 7182 fi 7183 else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7185$as_echo "not found; disabling Ruby" >&6; } 7186 fi 7187 else 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7189$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7190 fi 7191 fi 7192 7193 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7194 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7195 fi 7196fi 7197 7198 7199 7200 7201 7202 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7204$as_echo_n "checking --enable-cscope argument... " >&6; } 7205# Check whether --enable-cscope was given. 7206if test "${enable_cscope+set}" = set; then : 7207 enableval=$enable_cscope; 7208else 7209 enable_cscope="no" 7210fi 7211 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7213$as_echo "$enable_cscope" >&6; } 7214if test "$enable_cscope" = "yes"; then 7215 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7216 7217fi 7218 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7220$as_echo_n "checking --enable-workshop argument... " >&6; } 7221# Check whether --enable-workshop was given. 7222if test "${enable_workshop+set}" = set; then : 7223 enableval=$enable_workshop; 7224else 7225 enable_workshop="no" 7226fi 7227 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7229$as_echo "$enable_workshop" >&6; } 7230if test "$enable_workshop" = "yes"; then 7231 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7232 7233 WORKSHOP_SRC="workshop.c integration.c" 7234 7235 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7236 7237 if test "${enable_gui-xxx}" = xxx; then 7238 enable_gui=motif 7239 fi 7240fi 7241 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7243$as_echo_n "checking --disable-netbeans argument... " >&6; } 7244# Check whether --enable-netbeans was given. 7245if test "${enable_netbeans+set}" = set; then : 7246 enableval=$enable_netbeans; 7247else 7248 enable_netbeans="yes" 7249fi 7250 7251if test "$enable_netbeans" = "yes"; then 7252 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7254$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7255 enable_netbeans="no" 7256 else 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7258$as_echo "no" >&6; } 7259 fi 7260else 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7262$as_echo "yes" >&6; } 7263fi 7264 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7266$as_echo_n "checking --disable-channel argument... " >&6; } 7267# Check whether --enable-channel was given. 7268if test "${enable_channel+set}" = set; then : 7269 enableval=$enable_channel; 7270else 7271 enable_channel="yes" 7272fi 7273 7274if test "$enable_channel" = "yes"; then 7275 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7277$as_echo "cannot use channels with tiny or small features" >&6; } 7278 enable_channel="no" 7279 else 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7281$as_echo "no" >&6; } 7282 fi 7283else 7284 if test "$enable_netbeans" = "yes"; then 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7286$as_echo "yes, netbeans also disabled" >&6; } 7287 enable_netbeans="no" 7288 else 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7290$as_echo "yes" >&6; } 7291 fi 7292fi 7293 7294if test "$enable_channel" = "yes"; then 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7296$as_echo_n "checking for socket in -lsocket... " >&6; } 7297if ${ac_cv_lib_socket_socket+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 ac_check_lib_save_LIBS=$LIBS 7301LIBS="-lsocket $LIBS" 7302cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7303/* end confdefs.h. */ 7304 7305/* Override any GCC internal prototype to avoid an error. 7306 Use char because int might match the return type of a GCC 7307 builtin and then its argument prototype would still apply. */ 7308#ifdef __cplusplus 7309extern "C" 7310#endif 7311char socket (); 7312int 7313main () 7314{ 7315return socket (); 7316 ; 7317 return 0; 7318} 7319_ACEOF 7320if ac_fn_c_try_link "$LINENO"; then : 7321 ac_cv_lib_socket_socket=yes 7322else 7323 ac_cv_lib_socket_socket=no 7324fi 7325rm -f core conftest.err conftest.$ac_objext \ 7326 conftest$ac_exeext conftest.$ac_ext 7327LIBS=$ac_check_lib_save_LIBS 7328fi 7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7330$as_echo "$ac_cv_lib_socket_socket" >&6; } 7331if test "x$ac_cv_lib_socket_socket" = xyes; then : 7332 cat >>confdefs.h <<_ACEOF 7333#define HAVE_LIBSOCKET 1 7334_ACEOF 7335 7336 LIBS="-lsocket $LIBS" 7337 7338fi 7339 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7341$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7342if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 ac_check_lib_save_LIBS=$LIBS 7346LIBS="-lnsl $LIBS" 7347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7348/* end confdefs.h. */ 7349 7350/* Override any GCC internal prototype to avoid an error. 7351 Use char because int might match the return type of a GCC 7352 builtin and then its argument prototype would still apply. */ 7353#ifdef __cplusplus 7354extern "C" 7355#endif 7356char gethostbyname (); 7357int 7358main () 7359{ 7360return gethostbyname (); 7361 ; 7362 return 0; 7363} 7364_ACEOF 7365if ac_fn_c_try_link "$LINENO"; then : 7366 ac_cv_lib_nsl_gethostbyname=yes 7367else 7368 ac_cv_lib_nsl_gethostbyname=no 7369fi 7370rm -f core conftest.err conftest.$ac_objext \ 7371 conftest$ac_exeext conftest.$ac_ext 7372LIBS=$ac_check_lib_save_LIBS 7373fi 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7375$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7376if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7377 cat >>confdefs.h <<_ACEOF 7378#define HAVE_LIBNSL 1 7379_ACEOF 7380 7381 LIBS="-lnsl $LIBS" 7382 7383fi 7384 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7386$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388/* end confdefs.h. */ 7389 7390#include <stdio.h> 7391#include <stdlib.h> 7392#include <stdarg.h> 7393#include <fcntl.h> 7394#include <netdb.h> 7395#include <netinet/in.h> 7396#include <errno.h> 7397#include <sys/types.h> 7398#include <sys/socket.h> 7399 /* Check bitfields */ 7400 struct nbbuf { 7401 unsigned int initDone:1; 7402 ushort signmaplen; 7403 }; 7404 7405int 7406main () 7407{ 7408 7409 /* Check creating a socket. */ 7410 struct sockaddr_in server; 7411 (void)socket(AF_INET, SOCK_STREAM, 0); 7412 (void)htons(100); 7413 (void)gethostbyname("microsoft.com"); 7414 if (errno == ECONNREFUSED) 7415 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7416 7417 ; 7418 return 0; 7419} 7420_ACEOF 7421if ac_fn_c_try_link "$LINENO"; then : 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7423$as_echo "yes" >&6; } 7424else 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7427fi 7428rm -f core conftest.err conftest.$ac_objext \ 7429 conftest$ac_exeext conftest.$ac_ext 7430fi 7431if test "$enable_netbeans" = "yes"; then 7432 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7433 7434 NETBEANS_SRC="netbeans.c" 7435 7436 NETBEANS_OBJ="objects/netbeans.o" 7437 7438fi 7439if test "$enable_channel" = "yes"; then 7440 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7441 7442 CHANNEL_SRC="channel.c" 7443 7444 CHANNEL_OBJ="objects/channel.o" 7445 7446fi 7447 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7449$as_echo_n "checking --enable-multibyte argument... " >&6; } 7450# Check whether --enable-multibyte was given. 7451if test "${enable_multibyte+set}" = set; then : 7452 enableval=$enable_multibyte; 7453else 7454 enable_multibyte="no" 7455fi 7456 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7458$as_echo "$enable_multibyte" >&6; } 7459if test "$enable_multibyte" = "yes"; then 7460 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7461 7462fi 7463 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7465$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7466# Check whether --enable-hangulinput was given. 7467if test "${enable_hangulinput+set}" = set; then : 7468 enableval=$enable_hangulinput; 7469else 7470 enable_hangulinput="no" 7471fi 7472 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7474$as_echo "$enable_hangulinput" >&6; } 7475 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7477$as_echo_n "checking --enable-xim argument... " >&6; } 7478# Check whether --enable-xim was given. 7479if test "${enable_xim+set}" = set; then : 7480 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7481$as_echo "$enable_xim" >&6; } 7482else 7483 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7484$as_echo "defaulting to auto" >&6; } 7485fi 7486 7487 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7489$as_echo_n "checking --enable-fontset argument... " >&6; } 7490# Check whether --enable-fontset was given. 7491if test "${enable_fontset+set}" = set; then : 7492 enableval=$enable_fontset; 7493else 7494 enable_fontset="no" 7495fi 7496 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7498$as_echo "$enable_fontset" >&6; } 7499 7500test -z "$with_x" && with_x=yes 7501test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7502if test "$with_x" = no; then 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7504$as_echo "defaulting to: don't HAVE_X11" >&6; } 7505else 7506 7507 # Extract the first word of "xmkmf", so it can be a program name with args. 7508set dummy xmkmf; ac_word=$2 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510$as_echo_n "checking for $ac_word... " >&6; } 7511if ${ac_cv_path_xmkmfpath+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 case $xmkmfpath in 7515 [\\/]* | ?:[\\/]*) 7516 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 7517 ;; 7518 *) 7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7520for as_dir in $PATH 7521do 7522 IFS=$as_save_IFS 7523 test -z "$as_dir" && as_dir=. 7524 for ac_exec_ext in '' $ac_executable_extensions; do 7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7526 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7528 break 2 7529 fi 7530done 7531 done 7532IFS=$as_save_IFS 7533 7534 ;; 7535esac 7536fi 7537xmkmfpath=$ac_cv_path_xmkmfpath 7538if test -n "$xmkmfpath"; then 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 7540$as_echo "$xmkmfpath" >&6; } 7541else 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7543$as_echo "no" >&6; } 7544fi 7545 7546 7547 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7549$as_echo_n "checking for X... " >&6; } 7550 7551 7552# Check whether --with-x was given. 7553if test "${with_x+set}" = set; then : 7554 withval=$with_x; 7555fi 7556 7557# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7558if test "x$with_x" = xno; then 7559 # The user explicitly disabled X. 7560 have_x=disabled 7561else 7562 case $x_includes,$x_libraries in #( 7563 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7564 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 # One or both of the vars are not set, and there is no cached value. 7568ac_x_includes=no ac_x_libraries=no 7569rm -f -r conftest.dir 7570if mkdir conftest.dir; then 7571 cd conftest.dir 7572 cat >Imakefile <<'_ACEOF' 7573incroot: 7574 @echo incroot='${INCROOT}' 7575usrlibdir: 7576 @echo usrlibdir='${USRLIBDIR}' 7577libdir: 7578 @echo libdir='${LIBDIR}' 7579_ACEOF 7580 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7581 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7582 for ac_var in incroot usrlibdir libdir; do 7583 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7584 done 7585 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7586 for ac_extension in a so sl dylib la dll; do 7587 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7588 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7589 ac_im_usrlibdir=$ac_im_libdir; break 7590 fi 7591 done 7592 # Screen out bogus values from the imake configuration. They are 7593 # bogus both because they are the default anyway, and because 7594 # using them would break gcc on systems where it needs fixed includes. 7595 case $ac_im_incroot in 7596 /usr/include) ac_x_includes= ;; 7597 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7598 esac 7599 case $ac_im_usrlibdir in 7600 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7601 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7602 esac 7603 fi 7604 cd .. 7605 rm -f -r conftest.dir 7606fi 7607 7608# Standard set of common directories for X headers. 7609# Check X11 before X11Rn because it is often a symlink to the current release. 7610ac_x_header_dirs=' 7611/usr/X11/include 7612/usr/X11R7/include 7613/usr/X11R6/include 7614/usr/X11R5/include 7615/usr/X11R4/include 7616 7617/usr/include/X11 7618/usr/include/X11R7 7619/usr/include/X11R6 7620/usr/include/X11R5 7621/usr/include/X11R4 7622 7623/usr/local/X11/include 7624/usr/local/X11R7/include 7625/usr/local/X11R6/include 7626/usr/local/X11R5/include 7627/usr/local/X11R4/include 7628 7629/usr/local/include/X11 7630/usr/local/include/X11R7 7631/usr/local/include/X11R6 7632/usr/local/include/X11R5 7633/usr/local/include/X11R4 7634 7635/usr/X386/include 7636/usr/x386/include 7637/usr/XFree86/include/X11 7638 7639/usr/include 7640/usr/local/include 7641/usr/unsupported/include 7642/usr/athena/include 7643/usr/local/x11r5/include 7644/usr/lpp/Xamples/include 7645 7646/usr/openwin/include 7647/usr/openwin/share/include' 7648 7649if test "$ac_x_includes" = no; then 7650 # Guess where to find include files, by looking for Xlib.h. 7651 # First, try using that file with no special directory specified. 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654#include <X11/Xlib.h> 7655_ACEOF 7656if ac_fn_c_try_cpp "$LINENO"; then : 7657 # We can compile using X headers with no special include directory. 7658ac_x_includes= 7659else 7660 for ac_dir in $ac_x_header_dirs; do 7661 if test -r "$ac_dir/X11/Xlib.h"; then 7662 ac_x_includes=$ac_dir 7663 break 7664 fi 7665done 7666fi 7667rm -f conftest.err conftest.i conftest.$ac_ext 7668fi # $ac_x_includes = no 7669 7670if test "$ac_x_libraries" = no; then 7671 # Check for the libraries. 7672 # See if we find them without any special options. 7673 # Don't add to $LIBS permanently. 7674 ac_save_LIBS=$LIBS 7675 LIBS="-lX11 $LIBS" 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678#include <X11/Xlib.h> 7679int 7680main () 7681{ 7682XrmInitialize () 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_link "$LINENO"; then : 7688 LIBS=$ac_save_LIBS 7689# We can link X programs with no special library path. 7690ac_x_libraries= 7691else 7692 LIBS=$ac_save_LIBS 7693for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7694do 7695 # Don't even attempt the hair of trying to link an X program! 7696 for ac_extension in a so sl dylib la dll; do 7697 if test -r "$ac_dir/libX11.$ac_extension"; then 7698 ac_x_libraries=$ac_dir 7699 break 2 7700 fi 7701 done 7702done 7703fi 7704rm -f core conftest.err conftest.$ac_objext \ 7705 conftest$ac_exeext conftest.$ac_ext 7706fi # $ac_x_libraries = no 7707 7708case $ac_x_includes,$ac_x_libraries in #( 7709 no,* | *,no | *\'*) 7710 # Didn't find X, or a directory has "'" in its name. 7711 ac_cv_have_x="have_x=no";; #( 7712 *) 7713 # Record where we found X for the cache. 7714 ac_cv_have_x="have_x=yes\ 7715 ac_x_includes='$ac_x_includes'\ 7716 ac_x_libraries='$ac_x_libraries'" 7717esac 7718fi 7719;; #( 7720 *) have_x=yes;; 7721 esac 7722 eval "$ac_cv_have_x" 7723fi # $with_x != no 7724 7725if test "$have_x" != yes; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7727$as_echo "$have_x" >&6; } 7728 no_x=yes 7729else 7730 # If each of the values was on the command line, it overrides each guess. 7731 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7732 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7733 # Update the cache value to reflect the command line values. 7734 ac_cv_have_x="have_x=yes\ 7735 ac_x_includes='$x_includes'\ 7736 ac_x_libraries='$x_libraries'" 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7738$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7739fi 7740 7741if test "$no_x" = yes; then 7742 # Not all programs may use this symbol, but it does not hurt to define it. 7743 7744$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 7745 7746 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7747else 7748 if test -n "$x_includes"; then 7749 X_CFLAGS="$X_CFLAGS -I$x_includes" 7750 fi 7751 7752 # It would also be nice to do this for all -L options, not just this one. 7753 if test -n "$x_libraries"; then 7754 X_LIBS="$X_LIBS -L$x_libraries" 7755 # For Solaris; some versions of Sun CC require a space after -R and 7756 # others require no space. Words are not sufficient . . . . 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 7758$as_echo_n "checking whether -R must be followed by a space... " >&6; } 7759 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7760 ac_xsave_c_werror_flag=$ac_c_werror_flag 7761 ac_c_werror_flag=yes 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764 7765int 7766main () 7767{ 7768 7769 ; 7770 return 0; 7771} 7772_ACEOF 7773if ac_fn_c_try_link "$LINENO"; then : 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7775$as_echo "no" >&6; } 7776 X_LIBS="$X_LIBS -R$x_libraries" 7777else 7778 LIBS="$ac_xsave_LIBS -R $x_libraries" 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781 7782int 7783main () 7784{ 7785 7786 ; 7787 return 0; 7788} 7789_ACEOF 7790if ac_fn_c_try_link "$LINENO"; then : 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7792$as_echo "yes" >&6; } 7793 X_LIBS="$X_LIBS -R $x_libraries" 7794else 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 7796$as_echo "neither works" >&6; } 7797fi 7798rm -f core conftest.err conftest.$ac_objext \ 7799 conftest$ac_exeext conftest.$ac_ext 7800fi 7801rm -f core conftest.err conftest.$ac_objext \ 7802 conftest$ac_exeext conftest.$ac_ext 7803 ac_c_werror_flag=$ac_xsave_c_werror_flag 7804 LIBS=$ac_xsave_LIBS 7805 fi 7806 7807 # Check for system-dependent libraries X programs must link with. 7808 # Do this before checking for the system-independent R6 libraries 7809 # (-lICE), since we may need -lsocket or whatever for X linking. 7810 7811 if test "$ISC" = yes; then 7812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7813 else 7814 # Martyn Johnson says this is needed for Ultrix, if the X 7815 # libraries were built with DECnet support. And Karl Berry says 7816 # the Alpha needs dnet_stub (dnet does not exist). 7817 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820 7821/* Override any GCC internal prototype to avoid an error. 7822 Use char because int might match the return type of a GCC 7823 builtin and then its argument prototype would still apply. */ 7824#ifdef __cplusplus 7825extern "C" 7826#endif 7827char XOpenDisplay (); 7828int 7829main () 7830{ 7831return XOpenDisplay (); 7832 ; 7833 return 0; 7834} 7835_ACEOF 7836if ac_fn_c_try_link "$LINENO"; then : 7837 7838else 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 7840$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7841if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 ac_check_lib_save_LIBS=$LIBS 7845LIBS="-ldnet $LIBS" 7846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848 7849/* Override any GCC internal prototype to avoid an error. 7850 Use char because int might match the return type of a GCC 7851 builtin and then its argument prototype would still apply. */ 7852#ifdef __cplusplus 7853extern "C" 7854#endif 7855char dnet_ntoa (); 7856int 7857main () 7858{ 7859return dnet_ntoa (); 7860 ; 7861 return 0; 7862} 7863_ACEOF 7864if ac_fn_c_try_link "$LINENO"; then : 7865 ac_cv_lib_dnet_dnet_ntoa=yes 7866else 7867 ac_cv_lib_dnet_dnet_ntoa=no 7868fi 7869rm -f core conftest.err conftest.$ac_objext \ 7870 conftest$ac_exeext conftest.$ac_ext 7871LIBS=$ac_check_lib_save_LIBS 7872fi 7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7874$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7875if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 7876 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7877fi 7878 7879 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 7881$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 7882if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 ac_check_lib_save_LIBS=$LIBS 7886LIBS="-ldnet_stub $LIBS" 7887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888/* end confdefs.h. */ 7889 7890/* Override any GCC internal prototype to avoid an error. 7891 Use char because int might match the return type of a GCC 7892 builtin and then its argument prototype would still apply. */ 7893#ifdef __cplusplus 7894extern "C" 7895#endif 7896char dnet_ntoa (); 7897int 7898main () 7899{ 7900return dnet_ntoa (); 7901 ; 7902 return 0; 7903} 7904_ACEOF 7905if ac_fn_c_try_link "$LINENO"; then : 7906 ac_cv_lib_dnet_stub_dnet_ntoa=yes 7907else 7908 ac_cv_lib_dnet_stub_dnet_ntoa=no 7909fi 7910rm -f core conftest.err conftest.$ac_objext \ 7911 conftest$ac_exeext conftest.$ac_ext 7912LIBS=$ac_check_lib_save_LIBS 7913fi 7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 7915$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 7916if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 7917 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 7918fi 7919 7920 fi 7921fi 7922rm -f core conftest.err conftest.$ac_objext \ 7923 conftest$ac_exeext conftest.$ac_ext 7924 LIBS="$ac_xsave_LIBS" 7925 7926 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 7927 # to get the SysV transport functions. 7928 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 7929 # needs -lnsl. 7930 # The nsl library prevents programs from opening the X display 7931 # on Irix 5.2, according to T.E. Dickey. 7932 # The functions gethostbyname, getservbyname, and inet_addr are 7933 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 7934 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 7935if test "x$ac_cv_func_gethostbyname" = xyes; then : 7936 7937fi 7938 7939 if test $ac_cv_func_gethostbyname = no; then 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7941$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7942if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7943 $as_echo_n "(cached) " >&6 7944else 7945 ac_check_lib_save_LIBS=$LIBS 7946LIBS="-lnsl $LIBS" 7947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948/* end confdefs.h. */ 7949 7950/* Override any GCC internal prototype to avoid an error. 7951 Use char because int might match the return type of a GCC 7952 builtin and then its argument prototype would still apply. */ 7953#ifdef __cplusplus 7954extern "C" 7955#endif 7956char gethostbyname (); 7957int 7958main () 7959{ 7960return gethostbyname (); 7961 ; 7962 return 0; 7963} 7964_ACEOF 7965if ac_fn_c_try_link "$LINENO"; then : 7966 ac_cv_lib_nsl_gethostbyname=yes 7967else 7968 ac_cv_lib_nsl_gethostbyname=no 7969fi 7970rm -f core conftest.err conftest.$ac_objext \ 7971 conftest$ac_exeext conftest.$ac_ext 7972LIBS=$ac_check_lib_save_LIBS 7973fi 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7975$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7976if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 7978fi 7979 7980 if test $ac_cv_lib_nsl_gethostbyname = no; then 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 7982$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 7983if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 ac_check_lib_save_LIBS=$LIBS 7987LIBS="-lbsd $LIBS" 7988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7989/* end confdefs.h. */ 7990 7991/* Override any GCC internal prototype to avoid an error. 7992 Use char because int might match the return type of a GCC 7993 builtin and then its argument prototype would still apply. */ 7994#ifdef __cplusplus 7995extern "C" 7996#endif 7997char gethostbyname (); 7998int 7999main () 8000{ 8001return gethostbyname (); 8002 ; 8003 return 0; 8004} 8005_ACEOF 8006if ac_fn_c_try_link "$LINENO"; then : 8007 ac_cv_lib_bsd_gethostbyname=yes 8008else 8009 ac_cv_lib_bsd_gethostbyname=no 8010fi 8011rm -f core conftest.err conftest.$ac_objext \ 8012 conftest$ac_exeext conftest.$ac_ext 8013LIBS=$ac_check_lib_save_LIBS 8014fi 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8016$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8017if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8019fi 8020 8021 fi 8022 fi 8023 8024 # [email protected] says without -lsocket, 8025 # socket/setsockopt and other routines are undefined under SCO ODT 8026 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8027 # on later versions), says Simon Leinen: it contains gethostby* 8028 # variants that don't use the name server (or something). -lsocket 8029 # must be given before -lnsl if both are needed. We assume that 8030 # if connect needs -lnsl, so does gethostbyname. 8031 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8032if test "x$ac_cv_func_connect" = xyes; then : 8033 8034fi 8035 8036 if test $ac_cv_func_connect = no; then 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8038$as_echo_n "checking for connect in -lsocket... " >&6; } 8039if ${ac_cv_lib_socket_connect+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 ac_check_lib_save_LIBS=$LIBS 8043LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8045/* end confdefs.h. */ 8046 8047/* Override any GCC internal prototype to avoid an error. 8048 Use char because int might match the return type of a GCC 8049 builtin and then its argument prototype would still apply. */ 8050#ifdef __cplusplus 8051extern "C" 8052#endif 8053char connect (); 8054int 8055main () 8056{ 8057return connect (); 8058 ; 8059 return 0; 8060} 8061_ACEOF 8062if ac_fn_c_try_link "$LINENO"; then : 8063 ac_cv_lib_socket_connect=yes 8064else 8065 ac_cv_lib_socket_connect=no 8066fi 8067rm -f core conftest.err conftest.$ac_objext \ 8068 conftest$ac_exeext conftest.$ac_ext 8069LIBS=$ac_check_lib_save_LIBS 8070fi 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8072$as_echo "$ac_cv_lib_socket_connect" >&6; } 8073if test "x$ac_cv_lib_socket_connect" = xyes; then : 8074 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8075fi 8076 8077 fi 8078 8079 # Guillermo Gomez says -lposix is necessary on A/UX. 8080 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8081if test "x$ac_cv_func_remove" = xyes; then : 8082 8083fi 8084 8085 if test $ac_cv_func_remove = no; then 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8087$as_echo_n "checking for remove in -lposix... " >&6; } 8088if ${ac_cv_lib_posix_remove+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090else 8091 ac_check_lib_save_LIBS=$LIBS 8092LIBS="-lposix $LIBS" 8093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094/* end confdefs.h. */ 8095 8096/* Override any GCC internal prototype to avoid an error. 8097 Use char because int might match the return type of a GCC 8098 builtin and then its argument prototype would still apply. */ 8099#ifdef __cplusplus 8100extern "C" 8101#endif 8102char remove (); 8103int 8104main () 8105{ 8106return remove (); 8107 ; 8108 return 0; 8109} 8110_ACEOF 8111if ac_fn_c_try_link "$LINENO"; then : 8112 ac_cv_lib_posix_remove=yes 8113else 8114 ac_cv_lib_posix_remove=no 8115fi 8116rm -f core conftest.err conftest.$ac_objext \ 8117 conftest$ac_exeext conftest.$ac_ext 8118LIBS=$ac_check_lib_save_LIBS 8119fi 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8121$as_echo "$ac_cv_lib_posix_remove" >&6; } 8122if test "x$ac_cv_lib_posix_remove" = xyes; then : 8123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8124fi 8125 8126 fi 8127 8128 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8129 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8130if test "x$ac_cv_func_shmat" = xyes; then : 8131 8132fi 8133 8134 if test $ac_cv_func_shmat = no; then 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8136$as_echo_n "checking for shmat in -lipc... " >&6; } 8137if ${ac_cv_lib_ipc_shmat+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 ac_check_lib_save_LIBS=$LIBS 8141LIBS="-lipc $LIBS" 8142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8143/* end confdefs.h. */ 8144 8145/* Override any GCC internal prototype to avoid an error. 8146 Use char because int might match the return type of a GCC 8147 builtin and then its argument prototype would still apply. */ 8148#ifdef __cplusplus 8149extern "C" 8150#endif 8151char shmat (); 8152int 8153main () 8154{ 8155return shmat (); 8156 ; 8157 return 0; 8158} 8159_ACEOF 8160if ac_fn_c_try_link "$LINENO"; then : 8161 ac_cv_lib_ipc_shmat=yes 8162else 8163 ac_cv_lib_ipc_shmat=no 8164fi 8165rm -f core conftest.err conftest.$ac_objext \ 8166 conftest$ac_exeext conftest.$ac_ext 8167LIBS=$ac_check_lib_save_LIBS 8168fi 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8170$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8171if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8173fi 8174 8175 fi 8176 fi 8177 8178 # Check for libraries that X11R6 Xt/Xaw programs need. 8179 ac_save_LDFLAGS=$LDFLAGS 8180 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8181 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8182 # check for ICE first), but we must link in the order -lSM -lICE or 8183 # we get undefined symbols. So assume we have SM if we have ICE. 8184 # These have to be linked with before -lX11, unlike the other 8185 # libraries we check for below, so use a different variable. 8186 # John Interrante, Karl Berry 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8188$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8189if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191else 8192 ac_check_lib_save_LIBS=$LIBS 8193LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8195/* end confdefs.h. */ 8196 8197/* Override any GCC internal prototype to avoid an error. 8198 Use char because int might match the return type of a GCC 8199 builtin and then its argument prototype would still apply. */ 8200#ifdef __cplusplus 8201extern "C" 8202#endif 8203char IceConnectionNumber (); 8204int 8205main () 8206{ 8207return IceConnectionNumber (); 8208 ; 8209 return 0; 8210} 8211_ACEOF 8212if ac_fn_c_try_link "$LINENO"; then : 8213 ac_cv_lib_ICE_IceConnectionNumber=yes 8214else 8215 ac_cv_lib_ICE_IceConnectionNumber=no 8216fi 8217rm -f core conftest.err conftest.$ac_objext \ 8218 conftest$ac_exeext conftest.$ac_ext 8219LIBS=$ac_check_lib_save_LIBS 8220fi 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8222$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8223if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8224 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8225fi 8226 8227 LDFLAGS=$ac_save_LDFLAGS 8228 8229fi 8230 8231 8232 if test "$zOSUnix" = "yes"; then 8233 CFLAGS="$CFLAGS -W c,dll" 8234 LDFLAGS="$LDFLAGS -W l,dll" 8235 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8236 fi 8237 8238 8239 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8240 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8242$as_echo "Corrected X libraries to $x_libraries" >&6; } 8243 X_LIBS="$X_LIBS -L$x_libraries" 8244 if test "`(uname) 2>/dev/null`" = SunOS && 8245 uname -r | grep '^5' >/dev/null; then 8246 X_LIBS="$X_LIBS -R $x_libraries" 8247 fi 8248 fi 8249 8250 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8251 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8253$as_echo "Corrected X includes to $x_includes" >&6; } 8254 X_CFLAGS="$X_CFLAGS -I$x_includes" 8255 fi 8256 8257 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8258 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8259 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8260 8261 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8263$as_echo_n "checking if X11 header files can be found... " >&6; } 8264 cflags_save=$CFLAGS 8265 CFLAGS="$CFLAGS $X_CFLAGS" 8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8267/* end confdefs.h. */ 8268#include <X11/Xlib.h> 8269#include <X11/Intrinsic.h> 8270int 8271main () 8272{ 8273 8274 ; 8275 return 0; 8276} 8277_ACEOF 8278if ac_fn_c_try_compile "$LINENO"; then : 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8280$as_echo "yes" >&6; } 8281else 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8283$as_echo "no" >&6; }; no_x=yes 8284fi 8285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8286 CFLAGS=$cflags_save 8287 8288 if test "${no_x-no}" = yes; then 8289 with_x=no 8290 else 8291 $as_echo "#define HAVE_X11 1" >>confdefs.h 8292 8293 X_LIB="-lXt -lX11"; 8294 8295 8296 ac_save_LDFLAGS="$LDFLAGS" 8297 LDFLAGS="-L$x_libraries $LDFLAGS" 8298 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8300$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8301if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 ac_check_lib_save_LIBS=$LIBS 8305LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8306cat 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 _XdmcpAuthDoIt (); 8316int 8317main () 8318{ 8319return _XdmcpAuthDoIt (); 8320 ; 8321 return 0; 8322} 8323_ACEOF 8324if ac_fn_c_try_link "$LINENO"; then : 8325 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8326else 8327 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8328fi 8329rm -f core conftest.err conftest.$ac_objext \ 8330 conftest$ac_exeext conftest.$ac_ext 8331LIBS=$ac_check_lib_save_LIBS 8332fi 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8334$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8335if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8337fi 8338 8339 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8341$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8342if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 ac_check_lib_save_LIBS=$LIBS 8346LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349 8350/* Override any GCC internal prototype to avoid an error. 8351 Use char because int might match the return type of a GCC 8352 builtin and then its argument prototype would still apply. */ 8353#ifdef __cplusplus 8354extern "C" 8355#endif 8356char IceOpenConnection (); 8357int 8358main () 8359{ 8360return IceOpenConnection (); 8361 ; 8362 return 0; 8363} 8364_ACEOF 8365if ac_fn_c_try_link "$LINENO"; then : 8366 ac_cv_lib_ICE_IceOpenConnection=yes 8367else 8368 ac_cv_lib_ICE_IceOpenConnection=no 8369fi 8370rm -f core conftest.err conftest.$ac_objext \ 8371 conftest$ac_exeext conftest.$ac_ext 8372LIBS=$ac_check_lib_save_LIBS 8373fi 8374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8375$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8376if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8378fi 8379 8380 8381 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8383$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8384if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 ac_check_lib_save_LIBS=$LIBS 8388LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390/* end confdefs.h. */ 8391 8392/* Override any GCC internal prototype to avoid an error. 8393 Use char because int might match the return type of a GCC 8394 builtin and then its argument prototype would still apply. */ 8395#ifdef __cplusplus 8396extern "C" 8397#endif 8398char XpmCreatePixmapFromData (); 8399int 8400main () 8401{ 8402return XpmCreatePixmapFromData (); 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407if ac_fn_c_try_link "$LINENO"; then : 8408 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8409else 8410 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8411fi 8412rm -f core conftest.err conftest.$ac_objext \ 8413 conftest$ac_exeext conftest.$ac_ext 8414LIBS=$ac_check_lib_save_LIBS 8415fi 8416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8417$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8418if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8419 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8420fi 8421 8422 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8424$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8425 cflags_save=$CFLAGS 8426 if test "$GCC" = yes; then 8427 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8428 else 8429 CFLAGS="$CFLAGS $X_CFLAGS" 8430 fi 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433#include <X11/Xlib.h> 8434int 8435main () 8436{ 8437 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442if ac_fn_c_try_compile "$LINENO"; then : 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8444$as_echo "no" >&6; } 8445else 8446 CFLAGS="$CFLAGS -Wno-implicit-int" 8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448/* end confdefs.h. */ 8449#include <X11/Xlib.h> 8450int 8451main () 8452{ 8453 8454 ; 8455 return 0; 8456} 8457_ACEOF 8458if ac_fn_c_try_compile "$LINENO"; then : 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8460$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8461else 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8463$as_echo "test failed" >&6; } 8464 8465fi 8466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8467 8468fi 8469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8470 CFLAGS=$cflags_save 8471 8472 LDFLAGS="$ac_save_LDFLAGS" 8473 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8475$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8476 if ${ac_cv_small_wchar_t+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478else 8479 if test "$cross_compiling" = yes; then : 8480 as_fn_error $? "failed to compile test program" "$LINENO" 5 8481else 8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8483/* end confdefs.h. */ 8484 8485#include <X11/Xlib.h> 8486#if STDC_HEADERS 8487# include <stdlib.h> 8488# include <stddef.h> 8489#endif 8490 main() 8491 { 8492 if (sizeof(wchar_t) <= 2) 8493 exit(1); 8494 exit(0); 8495 } 8496_ACEOF 8497if ac_fn_c_try_run "$LINENO"; then : 8498 ac_cv_small_wchar_t="no" 8499else 8500 ac_cv_small_wchar_t="yes" 8501fi 8502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8503 conftest.$ac_objext conftest.beam conftest.$ac_ext 8504fi 8505 8506fi 8507 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8509$as_echo "$ac_cv_small_wchar_t" >&6; } 8510 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8511 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 8512 8513 fi 8514 8515 fi 8516fi 8517 8518test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 8519 8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 8521$as_echo_n "checking --enable-gui argument... " >&6; } 8522# Check whether --enable-gui was given. 8523if test "${enable_gui+set}" = set; then : 8524 enableval=$enable_gui; 8525else 8526 enable_gui="auto" 8527fi 8528 8529 8530enable_gui_canon=`echo "_$enable_gui" | \ 8531 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 8532 8533SKIP_GTK2=YES 8534SKIP_GTK3=YES 8535SKIP_GNOME=YES 8536SKIP_MOTIF=YES 8537SKIP_ATHENA=YES 8538SKIP_NEXTAW=YES 8539SKIP_PHOTON=YES 8540SKIP_CARBON=YES 8541GUITYPE=NONE 8542 8543if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 8544 SKIP_PHOTON= 8545 case "$enable_gui_canon" in 8546 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8547$as_echo "no GUI support" >&6; } 8548 SKIP_PHOTON=YES ;; 8549 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8550$as_echo "yes - automatic GUI support" >&6; } ;; 8551 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 8552$as_echo "auto - automatic GUI support" >&6; } ;; 8553 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 8554$as_echo "Photon GUI support" >&6; } ;; 8555 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8556$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8557 SKIP_PHOTON=YES ;; 8558 esac 8559 8560elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 8561 SKIP_CARBON= 8562 case "$enable_gui_canon" in 8563 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8564$as_echo "no GUI support" >&6; } 8565 SKIP_CARBON=YES ;; 8566 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8567$as_echo "yes - automatic GUI support" >&6; } ;; 8568 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 8569$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 8570 SKIP_CARBON=YES ;; 8571 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 8572$as_echo "Carbon GUI support" >&6; } ;; 8573 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8574$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8575 SKIP_CARBON=YES ;; 8576 esac 8577 8578else 8579 8580 case "$enable_gui_canon" in 8581 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8582$as_echo "no GUI support" >&6; } ;; 8583 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 8584$as_echo "yes/auto - automatic GUI support" >&6; } 8585 SKIP_GTK2= 8586 SKIP_GNOME= 8587 SKIP_MOTIF= 8588 SKIP_ATHENA= 8589 SKIP_NEXTAW= 8590 SKIP_CARBON=;; 8591 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 8592$as_echo "GTK+ 2.x GUI support" >&6; } 8593 SKIP_GTK2=;; 8594 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 8595$as_echo "GNOME 2.x GUI support" >&6; } 8596 SKIP_GNOME= 8597 SKIP_GTK2=;; 8598 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 8599$as_echo "GTK+ 3.x GUI support" >&6; } 8600 SKIP_GTK3=;; 8601 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 8602$as_echo "Motif GUI support" >&6; } 8603 SKIP_MOTIF=;; 8604 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 8605$as_echo "Athena GUI support" >&6; } 8606 SKIP_ATHENA=;; 8607 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 8608$as_echo "neXtaw GUI support" >&6; } 8609 SKIP_NEXTAW=;; 8610 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8611$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 8612 esac 8613 8614fi 8615 8616if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 8617 -a "$enable_gui_canon" != "gnome2"; then 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 8619$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 8620 # Check whether --enable-gtk2-check was given. 8621if test "${enable_gtk2_check+set}" = set; then : 8622 enableval=$enable_gtk2_check; 8623else 8624 enable_gtk2_check="yes" 8625fi 8626 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 8628$as_echo "$enable_gtk2_check" >&6; } 8629 if test "x$enable_gtk2_check" = "xno"; then 8630 SKIP_GTK2=YES 8631 SKIP_GNOME=YES 8632 fi 8633fi 8634 8635if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 8637$as_echo_n "checking whether or not to look for GNOME... " >&6; } 8638 # Check whether --enable-gnome-check was given. 8639if test "${enable_gnome_check+set}" = set; then : 8640 enableval=$enable_gnome_check; 8641else 8642 enable_gnome_check="no" 8643fi 8644 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 8646$as_echo "$enable_gnome_check" >&6; } 8647 if test "x$enable_gnome_check" = "xno"; then 8648 SKIP_GNOME=YES 8649 fi 8650fi 8651 8652if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 8654$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 8655 # Check whether --enable-gtk3-check was given. 8656if test "${enable_gtk3_check+set}" = set; then : 8657 enableval=$enable_gtk3_check; 8658else 8659 enable_gtk3_check="yes" 8660fi 8661 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 8663$as_echo "$enable_gtk3_check" >&6; } 8664 if test "x$enable_gtk3_check" = "xno"; then 8665 SKIP_GTK3=YES 8666 fi 8667fi 8668 8669if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 8671$as_echo_n "checking whether or not to look for Motif... " >&6; } 8672 # Check whether --enable-motif-check was given. 8673if test "${enable_motif_check+set}" = set; then : 8674 enableval=$enable_motif_check; 8675else 8676 enable_motif_check="yes" 8677fi 8678 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 8680$as_echo "$enable_motif_check" >&6; } 8681 if test "x$enable_motif_check" = "xno"; then 8682 SKIP_MOTIF=YES 8683 fi 8684fi 8685 8686if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 8688$as_echo_n "checking whether or not to look for Athena... " >&6; } 8689 # Check whether --enable-athena-check was given. 8690if test "${enable_athena_check+set}" = set; then : 8691 enableval=$enable_athena_check; 8692else 8693 enable_athena_check="yes" 8694fi 8695 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 8697$as_echo "$enable_athena_check" >&6; } 8698 if test "x$enable_athena_check" = "xno"; then 8699 SKIP_ATHENA=YES 8700 fi 8701fi 8702 8703if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 8705$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 8706 # Check whether --enable-nextaw-check was given. 8707if test "${enable_nextaw_check+set}" = set; then : 8708 enableval=$enable_nextaw_check; 8709else 8710 enable_nextaw_check="yes" 8711fi 8712 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 8714$as_echo "$enable_nextaw_check" >&6; }; 8715 if test "x$enable_nextaw_check" = "xno"; then 8716 SKIP_NEXTAW=YES 8717 fi 8718fi 8719 8720if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 8722$as_echo_n "checking whether or not to look for Carbon... " >&6; } 8723 # Check whether --enable-carbon-check was given. 8724if test "${enable_carbon_check+set}" = set; then : 8725 enableval=$enable_carbon_check; 8726else 8727 enable_carbon_check="yes" 8728fi 8729 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 8731$as_echo "$enable_carbon_check" >&6; }; 8732 if test "x$enable_carbon_check" = "xno"; then 8733 SKIP_CARBON=YES 8734 fi 8735fi 8736 8737 8738if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 8740$as_echo_n "checking for Carbon GUI... " >&6; } 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8742$as_echo "yes" >&6; }; 8743 GUITYPE=CARBONGUI 8744 if test "$VIMNAME" = "vim"; then 8745 VIMNAME=Vim 8746 fi 8747 8748 if test "x$MACARCH" = "xboth"; then 8749 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 8750 else 8751 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 8752 fi 8753 8754 if test x$prefix = xNONE; then 8755 prefix=/Applications 8756 fi 8757 8758 datadir='${prefix}/Vim.app/Contents/Resources' 8759 8760 SKIP_GTK2=YES; 8761 SKIP_GNOME=YES; 8762 SKIP_MOTIF=YES; 8763 SKIP_ATHENA=YES; 8764 SKIP_NEXTAW=YES; 8765 SKIP_PHOTON=YES; 8766 SKIP_CARBON=YES 8767fi 8768 8769 8770 8771 8772 8773 8774 8775 8776if test -z "$SKIP_GTK2"; then 8777 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 8779$as_echo_n "checking --disable-gtktest argument... " >&6; } 8780 # Check whether --enable-gtktest was given. 8781if test "${enable_gtktest+set}" = set; then : 8782 enableval=$enable_gtktest; 8783else 8784 enable_gtktest=yes 8785fi 8786 8787 if test "x$enable_gtktest" = "xyes" ; then 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 8789$as_echo "gtk test enabled" >&6; } 8790 else 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 8792$as_echo "gtk test disabled" >&6; } 8793 fi 8794 8795 if test "X$PKG_CONFIG" = "X"; then 8796 # Extract the first word of "pkg-config", so it can be a program name with args. 8797set dummy pkg-config; ac_word=$2 8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8799$as_echo_n "checking for $ac_word... " >&6; } 8800if ${ac_cv_path_PKG_CONFIG+:} false; then : 8801 $as_echo_n "(cached) " >&6 8802else 8803 case $PKG_CONFIG in 8804 [\\/]* | ?:[\\/]*) 8805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8806 ;; 8807 *) 8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8809for as_dir in $PATH 8810do 8811 IFS=$as_save_IFS 8812 test -z "$as_dir" && as_dir=. 8813 for ac_exec_ext in '' $ac_executable_extensions; do 8814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8815 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8817 break 2 8818 fi 8819done 8820 done 8821IFS=$as_save_IFS 8822 8823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8824 ;; 8825esac 8826fi 8827PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8828if test -n "$PKG_CONFIG"; then 8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8830$as_echo "$PKG_CONFIG" >&6; } 8831else 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8833$as_echo "no" >&6; } 8834fi 8835 8836 8837 fi 8838 8839 if test "x$PKG_CONFIG" != "xno"; then 8840 8841 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8842 { 8843 no_gtk="" 8844 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8845 && $PKG_CONFIG --exists gtk+-2.0; then 8846 { 8847 min_gtk_version=2.2.0 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8849$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8850 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8851 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8852 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8853 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8854 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8855 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8856 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8857 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8858 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8859 } 8860 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8861 && $PKG_CONFIG --exists gtk+-3.0; then 8862 { 8863 min_gtk_version=2.2.0 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8865$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8866 8867 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 8868 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 8869 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 8870 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8871 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8872 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8873 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8874 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8875 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8876 } 8877 else 8878 no_gtk=yes 8879 fi 8880 8881 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8882 { 8883 ac_save_CFLAGS="$CFLAGS" 8884 ac_save_LIBS="$LIBS" 8885 CFLAGS="$CFLAGS $GTK_CFLAGS" 8886 LIBS="$LIBS $GTK_LIBS" 8887 8888 rm -f conf.gtktest 8889 if test "$cross_compiling" = yes; then : 8890 echo $ac_n "cross compiling; assumed OK... $ac_c" 8891else 8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8893/* end confdefs.h. */ 8894 8895#include <gtk/gtk.h> 8896#include <stdio.h> 8897#if STDC_HEADERS 8898# include <stdlib.h> 8899# include <stddef.h> 8900#endif 8901 8902int 8903main () 8904{ 8905int major, minor, micro; 8906char *tmp_version; 8907 8908system ("touch conf.gtktest"); 8909 8910/* HP/UX 9 (%@#!) writes to sscanf strings */ 8911tmp_version = g_strdup("$min_gtk_version"); 8912if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 8913 printf("%s, bad version string\n", "$min_gtk_version"); 8914 exit(1); 8915 } 8916 8917if ((gtk_major_version > major) || 8918 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8919 ((gtk_major_version == major) && (gtk_minor_version == minor) && 8920 (gtk_micro_version >= micro))) 8921{ 8922 return 0; 8923} 8924return 1; 8925} 8926 8927_ACEOF 8928if ac_fn_c_try_run "$LINENO"; then : 8929 8930else 8931 no_gtk=yes 8932fi 8933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8934 conftest.$ac_objext conftest.beam conftest.$ac_ext 8935fi 8936 8937 CFLAGS="$ac_save_CFLAGS" 8938 LIBS="$ac_save_LIBS" 8939 } 8940 fi 8941 if test "x$no_gtk" = x ; then 8942 if test "x$enable_gtktest" = "xyes"; then 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8944$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8945 else 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8947$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8948 fi 8949 GUI_LIB_LOC="$GTK_LIBDIR" 8950 GTK_LIBNAME="$GTK_LIBS" 8951 GUI_INC_LOC="$GTK_CFLAGS" 8952 else 8953 { 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8955$as_echo "no" >&6; } 8956 GTK_CFLAGS="" 8957 GTK_LIBS="" 8958 : 8959 } 8960 fi 8961 } 8962 else 8963 GTK_CFLAGS="" 8964 GTK_LIBS="" 8965 : 8966 fi 8967 8968 8969 rm -f conf.gtktest 8970 8971 if test "x$GTK_CFLAGS" != "x"; then 8972 SKIP_GTK3=YES 8973 SKIP_ATHENA=YES 8974 SKIP_NEXTAW=YES 8975 SKIP_MOTIF=YES 8976 GUITYPE=GTK 8977 8978 fi 8979 fi 8980 if test "x$GUITYPE" = "xGTK"; then 8981 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 8982 || test "0$gtk_minor_version" -ge 2; then 8983 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 8984 8985 fi 8986 if test -z "$SKIP_GNOME"; then 8987 { 8988 8989 8990 8991 8992 8993 8994# Check whether --with-gnome-includes was given. 8995if test "${with_gnome_includes+set}" = set; then : 8996 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 8997 8998fi 8999 9000 9001 9002# Check whether --with-gnome-libs was given. 9003if test "${with_gnome_libs+set}" = set; then : 9004 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9005 9006fi 9007 9008 9009 9010# Check whether --with-gnome was given. 9011if test "${with_gnome+set}" = set; then : 9012 withval=$with_gnome; if test x$withval = xyes; then 9013 want_gnome=yes 9014 have_gnome=yes 9015 else 9016 if test "x$withval" = xno; then 9017 want_gnome=no 9018 else 9019 want_gnome=yes 9020 LDFLAGS="$LDFLAGS -L$withval/lib" 9021 CFLAGS="$CFLAGS -I$withval/include" 9022 gnome_prefix=$withval/lib 9023 fi 9024 fi 9025else 9026 want_gnome=yes 9027fi 9028 9029 9030 if test "x$want_gnome" = xyes; then 9031 { 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9033$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9034 if $PKG_CONFIG --exists libgnomeui-2.0; then 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9036$as_echo "yes" >&6; } 9037 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9038 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9039 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9040 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9042$as_echo_n "checking for FreeBSD... " >&6; } 9043 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9045$as_echo "yes" >&6; } 9046 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9047 GNOME_LIBS="$GNOME_LIBS -pthread" 9048 else 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9050$as_echo "no" >&6; } 9051 fi 9052 have_gnome=yes 9053 else 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9055$as_echo "not found" >&6; } 9056 if test "x" = xfail; then 9057 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9058 fi 9059 fi 9060 } 9061 fi 9062 9063 if test "x$have_gnome" = xyes ; then 9064 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9065 9066 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9067 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9068 fi 9069 } 9070 fi 9071 fi 9072fi 9073 9074 9075if test -z "$SKIP_GTK3"; then 9076 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9078$as_echo_n "checking --disable-gtktest argument... " >&6; } 9079 # Check whether --enable-gtktest was given. 9080if test "${enable_gtktest+set}" = set; then : 9081 enableval=$enable_gtktest; 9082else 9083 enable_gtktest=yes 9084fi 9085 9086 if test "x$enable_gtktest" = "xyes" ; then 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9088$as_echo "gtk test enabled" >&6; } 9089 else 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9091$as_echo "gtk test disabled" >&6; } 9092 fi 9093 9094 if test "X$PKG_CONFIG" = "X"; then 9095 # Extract the first word of "pkg-config", so it can be a program name with args. 9096set dummy pkg-config; ac_word=$2 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9098$as_echo_n "checking for $ac_word... " >&6; } 9099if ${ac_cv_path_PKG_CONFIG+:} false; then : 9100 $as_echo_n "(cached) " >&6 9101else 9102 case $PKG_CONFIG in 9103 [\\/]* | ?:[\\/]*) 9104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9105 ;; 9106 *) 9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9108for as_dir in $PATH 9109do 9110 IFS=$as_save_IFS 9111 test -z "$as_dir" && as_dir=. 9112 for ac_exec_ext in '' $ac_executable_extensions; do 9113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9116 break 2 9117 fi 9118done 9119 done 9120IFS=$as_save_IFS 9121 9122 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9123 ;; 9124esac 9125fi 9126PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9127if test -n "$PKG_CONFIG"; then 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9129$as_echo "$PKG_CONFIG" >&6; } 9130else 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9132$as_echo "no" >&6; } 9133fi 9134 9135 9136 fi 9137 9138 if test "x$PKG_CONFIG" != "xno"; then 9139 9140 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9141 { 9142 no_gtk="" 9143 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9144 && $PKG_CONFIG --exists gtk+-2.0; then 9145 { 9146 min_gtk_version=3.0.0 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9148$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9149 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9150 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9151 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9152 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9153 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9154 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9155 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9156 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9157 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9158 } 9159 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9160 && $PKG_CONFIG --exists gtk+-3.0; then 9161 { 9162 min_gtk_version=3.0.0 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9164$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9165 9166 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9167 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9168 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9169 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9170 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9171 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9172 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9173 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9174 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9175 } 9176 else 9177 no_gtk=yes 9178 fi 9179 9180 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9181 { 9182 ac_save_CFLAGS="$CFLAGS" 9183 ac_save_LIBS="$LIBS" 9184 CFLAGS="$CFLAGS $GTK_CFLAGS" 9185 LIBS="$LIBS $GTK_LIBS" 9186 9187 rm -f conf.gtktest 9188 if test "$cross_compiling" = yes; then : 9189 echo $ac_n "cross compiling; assumed OK... $ac_c" 9190else 9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192/* end confdefs.h. */ 9193 9194#include <gtk/gtk.h> 9195#include <stdio.h> 9196#if STDC_HEADERS 9197# include <stdlib.h> 9198# include <stddef.h> 9199#endif 9200 9201int 9202main () 9203{ 9204int major, minor, micro; 9205char *tmp_version; 9206 9207system ("touch conf.gtktest"); 9208 9209/* HP/UX 9 (%@#!) writes to sscanf strings */ 9210tmp_version = g_strdup("$min_gtk_version"); 9211if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9212 printf("%s, bad version string\n", "$min_gtk_version"); 9213 exit(1); 9214 } 9215 9216if ((gtk_major_version > major) || 9217 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9218 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9219 (gtk_micro_version >= micro))) 9220{ 9221 return 0; 9222} 9223return 1; 9224} 9225 9226_ACEOF 9227if ac_fn_c_try_run "$LINENO"; then : 9228 9229else 9230 no_gtk=yes 9231fi 9232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9233 conftest.$ac_objext conftest.beam conftest.$ac_ext 9234fi 9235 9236 CFLAGS="$ac_save_CFLAGS" 9237 LIBS="$ac_save_LIBS" 9238 } 9239 fi 9240 if test "x$no_gtk" = x ; then 9241 if test "x$enable_gtktest" = "xyes"; then 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9243$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9244 else 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9246$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9247 fi 9248 GUI_LIB_LOC="$GTK_LIBDIR" 9249 GTK_LIBNAME="$GTK_LIBS" 9250 GUI_INC_LOC="$GTK_CFLAGS" 9251 else 9252 { 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9254$as_echo "no" >&6; } 9255 GTK_CFLAGS="" 9256 GTK_LIBS="" 9257 : 9258 } 9259 fi 9260 } 9261 else 9262 GTK_CFLAGS="" 9263 GTK_LIBS="" 9264 : 9265 fi 9266 9267 9268 rm -f conf.gtktest 9269 9270 if test "x$GTK_CFLAGS" != "x"; then 9271 SKIP_GTK2=YES 9272 SKIP_GNOME=YES 9273 SKIP_ATHENA=YES 9274 SKIP_NEXTAW=YES 9275 SKIP_MOTIF=YES 9276 GUITYPE=GTK 9277 9278 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 9279 9280 $as_echo "#define USE_GTK3 1" >>confdefs.h 9281 9282 fi 9283 fi 9284fi 9285 9286if test "x$GUITYPE" = "xGTK"; then 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9288$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9289 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9290 if test "x$gdk_pixbuf_version" != x ; then 9291 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9292 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9293 if test "x$gdk_pixbuf_version_minor" != x -a \ 9294 $gdk_pixbuf_version_minor -ge 31 ; then 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9296$as_echo "OK." >&6; } 9297 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9298set dummy glib-compile-resources; ac_word=$2 9299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9300$as_echo_n "checking for $ac_word... " >&6; } 9301if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9302 $as_echo_n "(cached) " >&6 9303else 9304 case $GLIB_COMPILE_RESOURCES in 9305 [\\/]* | ?:[\\/]*) 9306 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9307 ;; 9308 *) 9309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9310for as_dir in $PATH 9311do 9312 IFS=$as_save_IFS 9313 test -z "$as_dir" && as_dir=. 9314 for ac_exec_ext in '' $ac_executable_extensions; do 9315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9316 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9318 break 2 9319 fi 9320done 9321 done 9322IFS=$as_save_IFS 9323 9324 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9325 ;; 9326esac 9327fi 9328GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9329if test -n "$GLIB_COMPILE_RESOURCES"; then 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9331$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9332else 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9334$as_echo "no" >&6; } 9335fi 9336 9337 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9339$as_echo_n "checking glib-compile-resources... " >&6; } 9340 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9341 GLIB_COMPILE_RESOURCES="" 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9343$as_echo "cannot be found in PATH." >&6; } 9344 else 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9346$as_echo "usable." >&6; } 9347 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9348 9349 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9350 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9351 fi 9352 else 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9354$as_echo "not usable." >&6; } 9355 fi 9356 else 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9358$as_echo "cannot obtain from pkg_config." >&6; } 9359 fi 9360 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 9362$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 9363 # Check whether --enable-icon_cache_update was given. 9364if test "${enable_icon_cache_update+set}" = set; then : 9365 enableval=$enable_icon_cache_update; 9366else 9367 enable_icon_cache_update="yes" 9368fi 9369 9370 if test "$enable_icon_cache_update" = "yes"; then 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9372$as_echo "not set" >&6; } 9373 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 9374set dummy gtk-update-icon-cache; ac_word=$2 9375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9376$as_echo_n "checking for $ac_word... " >&6; } 9377if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 9378 $as_echo_n "(cached) " >&6 9379else 9380 case $GTK_UPDATE_ICON_CACHE in 9381 [\\/]* | ?:[\\/]*) 9382 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 9383 ;; 9384 *) 9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9386for as_dir in $PATH 9387do 9388 IFS=$as_save_IFS 9389 test -z "$as_dir" && as_dir=. 9390 for ac_exec_ext in '' $ac_executable_extensions; do 9391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9392 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9394 break 2 9395 fi 9396done 9397 done 9398IFS=$as_save_IFS 9399 9400 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 9401 ;; 9402esac 9403fi 9404GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 9405if test -n "$GTK_UPDATE_ICON_CACHE"; then 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 9407$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 9408else 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9410$as_echo "no" >&6; } 9411fi 9412 9413 9414 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9416$as_echo "not found in PATH." >&6; } 9417 fi 9418 else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9420$as_echo "update disabled" >&6; } 9421 fi 9422 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 9424$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 9425 # Check whether --enable-desktop_database_update was given. 9426if test "${enable_desktop_database_update+set}" = set; then : 9427 enableval=$enable_desktop_database_update; 9428else 9429 enable_desktop_database_update="yes" 9430fi 9431 9432 if test "$enable_desktop_database_update" = "yes"; then 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9434$as_echo "not set" >&6; } 9435 # Extract the first word of "update-desktop-database", so it can be a program name with args. 9436set dummy update-desktop-database; ac_word=$2 9437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9438$as_echo_n "checking for $ac_word... " >&6; } 9439if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 case $UPDATE_DESKTOP_DATABASE in 9443 [\\/]* | ?:[\\/]*) 9444 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 9445 ;; 9446 *) 9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9448for as_dir in $PATH 9449do 9450 IFS=$as_save_IFS 9451 test -z "$as_dir" && as_dir=. 9452 for ac_exec_ext in '' $ac_executable_extensions; do 9453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9454 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9456 break 2 9457 fi 9458done 9459 done 9460IFS=$as_save_IFS 9461 9462 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 9463 ;; 9464esac 9465fi 9466UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 9467if test -n "$UPDATE_DESKTOP_DATABASE"; then 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 9469$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 9470else 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9472$as_echo "no" >&6; } 9473fi 9474 9475 9476 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9478$as_echo "not found in PATH." >&6; } 9479 fi 9480 else 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9482$as_echo "update disabled" >&6; } 9483 fi 9484fi 9485 9486 9487 9488 9489 9490 9491 9492if test -z "$SKIP_MOTIF"; then 9493 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" 9494 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 9495 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 9497$as_echo_n "checking for location of Motif GUI includes... " >&6; } 9498 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 9499 GUI_INC_LOC= 9500 for try in $gui_includes; do 9501 if test -f "$try/Xm/Xm.h"; then 9502 GUI_INC_LOC=$try 9503 fi 9504 done 9505 if test -n "$GUI_INC_LOC"; then 9506 if test "$GUI_INC_LOC" = /usr/include; then 9507 GUI_INC_LOC= 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9509$as_echo "in default path" >&6; } 9510 else 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 9512$as_echo "$GUI_INC_LOC" >&6; } 9513 fi 9514 else 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9516$as_echo "<not found>" >&6; } 9517 SKIP_MOTIF=YES 9518 fi 9519fi 9520 9521 9522if test -z "$SKIP_MOTIF"; then 9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 9524$as_echo_n "checking --with-motif-lib argument... " >&6; } 9525 9526# Check whether --with-motif-lib was given. 9527if test "${with_motif_lib+set}" = set; then : 9528 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 9529fi 9530 9531 9532 if test -n "$MOTIF_LIBNAME"; then 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 9534$as_echo "$MOTIF_LIBNAME" >&6; } 9535 GUI_LIB_LOC= 9536 else 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9538$as_echo "no" >&6; } 9539 9540 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 9541 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 9543$as_echo_n "checking for location of Motif GUI libs... " >&6; } 9544 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" 9545 GUI_LIB_LOC= 9546 for try in $gui_libs; do 9547 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 9548 if test -f "$libtry"; then 9549 GUI_LIB_LOC=$try 9550 fi 9551 done 9552 done 9553 if test -n "$GUI_LIB_LOC"; then 9554 if test "$GUI_LIB_LOC" = /usr/lib \ 9555 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 9556 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 9557 GUI_LIB_LOC= 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9559$as_echo "in default path" >&6; } 9560 else 9561 if test -n "$GUI_LIB_LOC"; then 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 9563$as_echo "$GUI_LIB_LOC" >&6; } 9564 if test "`(uname) 2>/dev/null`" = SunOS && 9565 uname -r | grep '^5' >/dev/null; then 9566 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 9567 fi 9568 fi 9569 fi 9570 MOTIF_LIBNAME=-lXm 9571 else 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9573$as_echo "<not found>" >&6; } 9574 SKIP_MOTIF=YES 9575 fi 9576 fi 9577fi 9578 9579if test -z "$SKIP_MOTIF"; then 9580 SKIP_ATHENA=YES 9581 SKIP_NEXTAW=YES 9582 GUITYPE=MOTIF 9583 9584fi 9585 9586 9587GUI_X_LIBS= 9588 9589if test -z "$SKIP_ATHENA"; then 9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 9591$as_echo_n "checking if Athena header files can be found... " >&6; } 9592 cflags_save=$CFLAGS 9593 CFLAGS="$CFLAGS $X_CFLAGS" 9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9595/* end confdefs.h. */ 9596 9597#include <X11/Intrinsic.h> 9598#include <X11/Xaw/Paned.h> 9599int 9600main () 9601{ 9602 9603 ; 9604 return 0; 9605} 9606_ACEOF 9607if ac_fn_c_try_compile "$LINENO"; then : 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9609$as_echo "yes" >&6; } 9610else 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9612$as_echo "no" >&6; }; SKIP_ATHENA=YES 9613fi 9614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9615 CFLAGS=$cflags_save 9616fi 9617 9618if test -z "$SKIP_ATHENA"; then 9619 GUITYPE=ATHENA 9620fi 9621 9622if test -z "$SKIP_NEXTAW"; then 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 9624$as_echo_n "checking if neXtaw header files can be found... " >&6; } 9625 cflags_save=$CFLAGS 9626 CFLAGS="$CFLAGS $X_CFLAGS" 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629 9630#include <X11/Intrinsic.h> 9631#include <X11/neXtaw/Paned.h> 9632int 9633main () 9634{ 9635 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640if ac_fn_c_try_compile "$LINENO"; then : 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9642$as_echo "yes" >&6; } 9643else 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9645$as_echo "no" >&6; }; SKIP_NEXTAW=YES 9646fi 9647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9648 CFLAGS=$cflags_save 9649fi 9650 9651if test -z "$SKIP_NEXTAW"; then 9652 GUITYPE=NEXTAW 9653fi 9654 9655if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9656 if test -n "$GUI_INC_LOC"; then 9657 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9658 fi 9659 if test -n "$GUI_LIB_LOC"; then 9660 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9661 fi 9662 9663 ldflags_save=$LDFLAGS 9664 LDFLAGS="$X_LIBS $LDFLAGS" 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 9666$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 9667if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 ac_check_lib_save_LIBS=$LIBS 9671LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673/* end confdefs.h. */ 9674 9675/* Override any GCC internal prototype to avoid an error. 9676 Use char because int might match the return type of a GCC 9677 builtin and then its argument prototype would still apply. */ 9678#ifdef __cplusplus 9679extern "C" 9680#endif 9681char XShapeQueryExtension (); 9682int 9683main () 9684{ 9685return XShapeQueryExtension (); 9686 ; 9687 return 0; 9688} 9689_ACEOF 9690if ac_fn_c_try_link "$LINENO"; then : 9691 ac_cv_lib_Xext_XShapeQueryExtension=yes 9692else 9693 ac_cv_lib_Xext_XShapeQueryExtension=no 9694fi 9695rm -f core conftest.err conftest.$ac_objext \ 9696 conftest$ac_exeext conftest.$ac_ext 9697LIBS=$ac_check_lib_save_LIBS 9698fi 9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9700$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 9701if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 9702 GUI_X_LIBS="-lXext" 9703fi 9704 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 9706$as_echo_n "checking for wslen in -lw... " >&6; } 9707if ${ac_cv_lib_w_wslen+:} false; then : 9708 $as_echo_n "(cached) " >&6 9709else 9710 ac_check_lib_save_LIBS=$LIBS 9711LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9713/* end confdefs.h. */ 9714 9715/* Override any GCC internal prototype to avoid an error. 9716 Use char because int might match the return type of a GCC 9717 builtin and then its argument prototype would still apply. */ 9718#ifdef __cplusplus 9719extern "C" 9720#endif 9721char wslen (); 9722int 9723main () 9724{ 9725return wslen (); 9726 ; 9727 return 0; 9728} 9729_ACEOF 9730if ac_fn_c_try_link "$LINENO"; then : 9731 ac_cv_lib_w_wslen=yes 9732else 9733 ac_cv_lib_w_wslen=no 9734fi 9735rm -f core conftest.err conftest.$ac_objext \ 9736 conftest$ac_exeext conftest.$ac_ext 9737LIBS=$ac_check_lib_save_LIBS 9738fi 9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 9740$as_echo "$ac_cv_lib_w_wslen" >&6; } 9741if test "x$ac_cv_lib_w_wslen" = xyes; then : 9742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9743fi 9744 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 9746$as_echo_n "checking for dlsym in -ldl... " >&6; } 9747if ${ac_cv_lib_dl_dlsym+:} false; then : 9748 $as_echo_n "(cached) " >&6 9749else 9750 ac_check_lib_save_LIBS=$LIBS 9751LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753/* end confdefs.h. */ 9754 9755/* Override any GCC internal prototype to avoid an error. 9756 Use char because int might match the return type of a GCC 9757 builtin and then its argument prototype would still apply. */ 9758#ifdef __cplusplus 9759extern "C" 9760#endif 9761char dlsym (); 9762int 9763main () 9764{ 9765return dlsym (); 9766 ; 9767 return 0; 9768} 9769_ACEOF 9770if ac_fn_c_try_link "$LINENO"; then : 9771 ac_cv_lib_dl_dlsym=yes 9772else 9773 ac_cv_lib_dl_dlsym=no 9774fi 9775rm -f core conftest.err conftest.$ac_objext \ 9776 conftest$ac_exeext conftest.$ac_ext 9777LIBS=$ac_check_lib_save_LIBS 9778fi 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 9780$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 9781if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 9782 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9783fi 9784 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 9786$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 9787if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 ac_check_lib_save_LIBS=$LIBS 9791LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794 9795/* Override any GCC internal prototype to avoid an error. 9796 Use char because int might match the return type of a GCC 9797 builtin and then its argument prototype would still apply. */ 9798#ifdef __cplusplus 9799extern "C" 9800#endif 9801char XmuCreateStippledPixmap (); 9802int 9803main () 9804{ 9805return XmuCreateStippledPixmap (); 9806 ; 9807 return 0; 9808} 9809_ACEOF 9810if ac_fn_c_try_link "$LINENO"; then : 9811 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 9812else 9813 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 9814fi 9815rm -f core conftest.err conftest.$ac_objext \ 9816 conftest$ac_exeext conftest.$ac_ext 9817LIBS=$ac_check_lib_save_LIBS 9818fi 9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 9820$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 9821if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 9822 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 9823fi 9824 9825 if test -z "$SKIP_MOTIF"; then 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 9827$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 9828if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 ac_check_lib_save_LIBS=$LIBS 9832LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834/* end confdefs.h. */ 9835 9836/* Override any GCC internal prototype to avoid an error. 9837 Use char because int might match the return type of a GCC 9838 builtin and then its argument prototype would still apply. */ 9839#ifdef __cplusplus 9840extern "C" 9841#endif 9842char XpEndJob (); 9843int 9844main () 9845{ 9846return XpEndJob (); 9847 ; 9848 return 0; 9849} 9850_ACEOF 9851if ac_fn_c_try_link "$LINENO"; then : 9852 ac_cv_lib_Xp_XpEndJob=yes 9853else 9854 ac_cv_lib_Xp_XpEndJob=no 9855fi 9856rm -f core conftest.err conftest.$ac_objext \ 9857 conftest$ac_exeext conftest.$ac_ext 9858LIBS=$ac_check_lib_save_LIBS 9859fi 9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 9861$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 9862if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 9863 GUI_X_LIBS="-lXp $GUI_X_LIBS" 9864fi 9865 9866 fi 9867 LDFLAGS=$ldflags_save 9868 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 9870$as_echo_n "checking for extra X11 defines... " >&6; } 9871 NARROW_PROTO= 9872 rm -fr conftestdir 9873 if mkdir conftestdir; then 9874 cd conftestdir 9875 cat > Imakefile <<'EOF' 9876acfindx: 9877 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 9878EOF 9879 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9880 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9881 fi 9882 cd .. 9883 rm -fr conftestdir 9884 fi 9885 if test -z "$NARROW_PROTO"; then 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9887$as_echo "no" >&6; } 9888 else 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 9890$as_echo "$NARROW_PROTO" >&6; } 9891 fi 9892 9893fi 9894 9895if test "$enable_xsmp" = "yes"; then 9896 cppflags_save=$CPPFLAGS 9897 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9898 for ac_header in X11/SM/SMlib.h 9899do : 9900 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 9901if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 9902 cat >>confdefs.h <<_ACEOF 9903#define HAVE_X11_SM_SMLIB_H 1 9904_ACEOF 9905 9906fi 9907 9908done 9909 9910 CPPFLAGS=$cppflags_save 9911fi 9912 9913 9914if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 9915 cppflags_save=$CPPFLAGS 9916 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9917 for ac_header in X11/xpm.h X11/Sunkeysym.h 9918do : 9919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9920ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9921if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9922 cat >>confdefs.h <<_ACEOF 9923#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9924_ACEOF 9925 9926fi 9927 9928done 9929 9930 9931 if test ! "$enable_xim" = "no"; then 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 9933$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9935/* end confdefs.h. */ 9936#include <X11/Xlib.h> 9937_ACEOF 9938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9939 $EGREP "XIMText" >/dev/null 2>&1; then : 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9941$as_echo "yes" >&6; } 9942else 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 9944$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 9945fi 9946rm -f conftest* 9947 9948 fi 9949 CPPFLAGS=$cppflags_save 9950 9951 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 9952 -a "x$GUITYPE" != "xNONE" ; then 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 9954$as_echo "X GUI selected; xim has been enabled" >&6; } 9955 enable_xim="yes" 9956 fi 9957fi 9958 9959if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9960 cppflags_save=$CPPFLAGS 9961 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 9963$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965/* end confdefs.h. */ 9966 9967#include <X11/Intrinsic.h> 9968#include <X11/Xmu/Editres.h> 9969int 9970main () 9971{ 9972int i; i = 0; 9973 ; 9974 return 0; 9975} 9976_ACEOF 9977if ac_fn_c_try_compile "$LINENO"; then : 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9979$as_echo "yes" >&6; } 9980 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 9981 9982else 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9984$as_echo "no" >&6; } 9985fi 9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9987 CPPFLAGS=$cppflags_save 9988fi 9989 9990if test -z "$SKIP_MOTIF"; then 9991 cppflags_save=$CPPFLAGS 9992 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9993 if test "$zOSUnix" = "yes"; then 9994 xmheader="Xm/Xm.h" 9995 else 9996 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 9997 Xm/UnhighlightT.h Xm/Notebook.h" 9998 fi 9999 for ac_header in $xmheader 10000do : 10001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10003if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10004 cat >>confdefs.h <<_ACEOF 10005#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10006_ACEOF 10007 10008fi 10009 10010done 10011 10012 10013 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10015$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018#include <Xm/XpmP.h> 10019int 10020main () 10021{ 10022XpmAttributes_21 attr; 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027if ac_fn_c_try_compile "$LINENO"; then : 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10029$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10030 10031else 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10033$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10034 10035 10036fi 10037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10038 else 10039 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10040 10041 fi 10042 CPPFLAGS=$cppflags_save 10043fi 10044 10045if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10047$as_echo "no GUI selected; xim has been disabled" >&6; } 10048 enable_xim="no" 10049fi 10050if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10052$as_echo "no GUI selected; fontset has been disabled" >&6; } 10053 enable_fontset="no" 10054fi 10055if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10057$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10058 enable_fontset="no" 10059fi 10060 10061if test -z "$SKIP_PHOTON"; then 10062 GUITYPE=PHOTONGUI 10063fi 10064 10065 10066 10067 10068 10069 10070if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10071 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10072fi 10073 10074if test "$enable_xim" = "yes"; then 10075 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10076 10077fi 10078if test "$enable_fontset" = "yes"; then 10079 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10080 10081fi 10082 10083 10084 10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10086$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10087case `uname` in 10088 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10089$as_echo "yes" >&6; } 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10091$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10092 if test "x$with_x" = "xno" ; then 10093 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10095$as_echo "yes" >&6; } 10096 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10097 10098 else 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10100$as_echo "no - using X11" >&6; } 10101 fi ;; 10102 10103 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10104$as_echo "no" >&6; };; 10105esac 10106 10107if test "$enable_hangulinput" = "yes"; then 10108 if test "x$GUITYPE" = "xNONE"; then 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 10110$as_echo "no GUI selected; hangul input has been disabled" >&6; } 10111 enable_hangulinput=no 10112 else 10113 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 10114 10115 HANGULIN_SRC=hangulin.c 10116 10117 HANGULIN_OBJ=objects/hangulin.o 10118 10119 fi 10120fi 10121 10122 10123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10124$as_echo_n "checking whether toupper is broken... " >&6; } 10125if ${vim_cv_toupper_broken+:} false; then : 10126 $as_echo_n "(cached) " >&6 10127else 10128 10129 if test "$cross_compiling" = yes; then : 10130 10131 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10132 10133else 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136 10137#include "confdefs.h" 10138#include <ctype.h> 10139#if STDC_HEADERS 10140# include <stdlib.h> 10141# include <stddef.h> 10142#endif 10143main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10144 10145_ACEOF 10146if ac_fn_c_try_run "$LINENO"; then : 10147 10148 vim_cv_toupper_broken=yes 10149 10150else 10151 10152 vim_cv_toupper_broken=no 10153 10154fi 10155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10156 conftest.$ac_objext conftest.beam conftest.$ac_ext 10157fi 10158 10159fi 10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10161$as_echo "$vim_cv_toupper_broken" >&6; } 10162 10163if test "x$vim_cv_toupper_broken" = "xyes" ; then 10164 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10165 10166fi 10167 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10169$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10171/* end confdefs.h. */ 10172#include <stdio.h> 10173int 10174main () 10175{ 10176printf("(" __DATE__ " " __TIME__ ")"); 10177 ; 10178 return 0; 10179} 10180_ACEOF 10181if ac_fn_c_try_compile "$LINENO"; then : 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10183$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10184 10185else 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10187$as_echo "no" >&6; } 10188fi 10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10190 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10192$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10194/* end confdefs.h. */ 10195#include <stdio.h> 10196int 10197main () 10198{ 10199int x __attribute__((unused)); 10200 ; 10201 return 0; 10202} 10203_ACEOF 10204if ac_fn_c_try_compile "$LINENO"; then : 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10206$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10207 10208else 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10210$as_echo "no" >&6; } 10211fi 10212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10213 10214ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10215if test "x$ac_cv_header_elf_h" = xyes; then : 10216 HAS_ELF=1 10217fi 10218 10219 10220if test "$HAS_ELF" = 1; then 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10222$as_echo_n "checking for main in -lelf... " >&6; } 10223if ${ac_cv_lib_elf_main+:} false; then : 10224 $as_echo_n "(cached) " >&6 10225else 10226 ac_check_lib_save_LIBS=$LIBS 10227LIBS="-lelf $LIBS" 10228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10229/* end confdefs.h. */ 10230 10231 10232int 10233main () 10234{ 10235return main (); 10236 ; 10237 return 0; 10238} 10239_ACEOF 10240if ac_fn_c_try_link "$LINENO"; then : 10241 ac_cv_lib_elf_main=yes 10242else 10243 ac_cv_lib_elf_main=no 10244fi 10245rm -f core conftest.err conftest.$ac_objext \ 10246 conftest$ac_exeext conftest.$ac_ext 10247LIBS=$ac_check_lib_save_LIBS 10248fi 10249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10250$as_echo "$ac_cv_lib_elf_main" >&6; } 10251if test "x$ac_cv_lib_elf_main" = xyes; then : 10252 cat >>confdefs.h <<_ACEOF 10253#define HAVE_LIBELF 1 10254_ACEOF 10255 10256 LIBS="-lelf $LIBS" 10257 10258fi 10259 10260fi 10261 10262ac_header_dirent=no 10263for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10264 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10266$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10267if eval \${$as_ac_Header+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10271/* end confdefs.h. */ 10272#include <sys/types.h> 10273#include <$ac_hdr> 10274 10275int 10276main () 10277{ 10278if ((DIR *) 0) 10279return 0; 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284if ac_fn_c_try_compile "$LINENO"; then : 10285 eval "$as_ac_Header=yes" 10286else 10287 eval "$as_ac_Header=no" 10288fi 10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10290fi 10291eval ac_res=\$$as_ac_Header 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10293$as_echo "$ac_res" >&6; } 10294if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10295 cat >>confdefs.h <<_ACEOF 10296#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10297_ACEOF 10298 10299ac_header_dirent=$ac_hdr; break 10300fi 10301 10302done 10303# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10304if test $ac_header_dirent = dirent.h; then 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10306$as_echo_n "checking for library containing opendir... " >&6; } 10307if ${ac_cv_search_opendir+:} false; then : 10308 $as_echo_n "(cached) " >&6 10309else 10310 ac_func_search_save_LIBS=$LIBS 10311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10312/* end confdefs.h. */ 10313 10314/* Override any GCC internal prototype to avoid an error. 10315 Use char because int might match the return type of a GCC 10316 builtin and then its argument prototype would still apply. */ 10317#ifdef __cplusplus 10318extern "C" 10319#endif 10320char opendir (); 10321int 10322main () 10323{ 10324return opendir (); 10325 ; 10326 return 0; 10327} 10328_ACEOF 10329for ac_lib in '' dir; do 10330 if test -z "$ac_lib"; then 10331 ac_res="none required" 10332 else 10333 ac_res=-l$ac_lib 10334 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10335 fi 10336 if ac_fn_c_try_link "$LINENO"; then : 10337 ac_cv_search_opendir=$ac_res 10338fi 10339rm -f core conftest.err conftest.$ac_objext \ 10340 conftest$ac_exeext 10341 if ${ac_cv_search_opendir+:} false; then : 10342 break 10343fi 10344done 10345if ${ac_cv_search_opendir+:} false; then : 10346 10347else 10348 ac_cv_search_opendir=no 10349fi 10350rm conftest.$ac_ext 10351LIBS=$ac_func_search_save_LIBS 10352fi 10353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10354$as_echo "$ac_cv_search_opendir" >&6; } 10355ac_res=$ac_cv_search_opendir 10356if test "$ac_res" != no; then : 10357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10358 10359fi 10360 10361else 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10363$as_echo_n "checking for library containing opendir... " >&6; } 10364if ${ac_cv_search_opendir+:} false; then : 10365 $as_echo_n "(cached) " >&6 10366else 10367 ac_func_search_save_LIBS=$LIBS 10368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369/* end confdefs.h. */ 10370 10371/* Override any GCC internal prototype to avoid an error. 10372 Use char because int might match the return type of a GCC 10373 builtin and then its argument prototype would still apply. */ 10374#ifdef __cplusplus 10375extern "C" 10376#endif 10377char opendir (); 10378int 10379main () 10380{ 10381return opendir (); 10382 ; 10383 return 0; 10384} 10385_ACEOF 10386for ac_lib in '' x; do 10387 if test -z "$ac_lib"; then 10388 ac_res="none required" 10389 else 10390 ac_res=-l$ac_lib 10391 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10392 fi 10393 if ac_fn_c_try_link "$LINENO"; then : 10394 ac_cv_search_opendir=$ac_res 10395fi 10396rm -f core conftest.err conftest.$ac_objext \ 10397 conftest$ac_exeext 10398 if ${ac_cv_search_opendir+:} false; then : 10399 break 10400fi 10401done 10402if ${ac_cv_search_opendir+:} false; then : 10403 10404else 10405 ac_cv_search_opendir=no 10406fi 10407rm conftest.$ac_ext 10408LIBS=$ac_func_search_save_LIBS 10409fi 10410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10411$as_echo "$ac_cv_search_opendir" >&6; } 10412ac_res=$ac_cv_search_opendir 10413if test "$ac_res" != no; then : 10414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10415 10416fi 10417 10418fi 10419 10420 10421if test $ac_cv_header_sys_wait_h = no; then 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 10423$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10425/* end confdefs.h. */ 10426#include <sys/wait.h> 10427int 10428main () 10429{ 10430union wait xx, yy; xx = yy 10431 ; 10432 return 0; 10433} 10434_ACEOF 10435if ac_fn_c_try_compile "$LINENO"; then : 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10437$as_echo "yes" >&6; } 10438 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10439 10440 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 10441 10442else 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10444$as_echo "no" >&6; } 10445fi 10446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10447fi 10448 10449for ac_header in stdint.h stdlib.h string.h \ 10450 sys/select.h sys/utsname.h termcap.h fcntl.h \ 10451 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 10452 termio.h iconv.h inttypes.h langinfo.h math.h \ 10453 unistd.h stropts.h errno.h sys/resource.h \ 10454 sys/systeminfo.h locale.h sys/stream.h termios.h \ 10455 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 10456 utime.h sys/param.h libintl.h libgen.h \ 10457 util/debug.h util/msg18n.h frame.h sys/acl.h \ 10458 sys/access.h sys/sysinfo.h wchar.h wctype.h 10459do : 10460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10461ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10463 cat >>confdefs.h <<_ACEOF 10464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10465_ACEOF 10466 10467fi 10468 10469done 10470 10471 10472for ac_header in sys/ptem.h 10473do : 10474 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 10475# include <sys/stream.h> 10476#endif 10477" 10478if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 10479 cat >>confdefs.h <<_ACEOF 10480#define HAVE_SYS_PTEM_H 1 10481_ACEOF 10482 10483fi 10484 10485done 10486 10487 10488for ac_header in sys/sysctl.h 10489do : 10490 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 10491# include <sys/param.h> 10492#endif 10493" 10494if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 10495 cat >>confdefs.h <<_ACEOF 10496#define HAVE_SYS_SYSCTL_H 1 10497_ACEOF 10498 10499fi 10500 10501done 10502 10503 10504 10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 10506$as_echo_n "checking for pthread_np.h... " >&6; } 10507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10508/* end confdefs.h. */ 10509 10510#include <pthread.h> 10511#include <pthread_np.h> 10512int 10513main () 10514{ 10515int i; i = 0; 10516 ; 10517 return 0; 10518} 10519_ACEOF 10520if ac_fn_c_try_compile "$LINENO"; then : 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10522$as_echo "yes" >&6; } 10523 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 10524 10525else 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10527$as_echo "no" >&6; } 10528fi 10529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10530 10531for ac_header in strings.h 10532do : 10533 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 10534if test "x$ac_cv_header_strings_h" = xyes; then : 10535 cat >>confdefs.h <<_ACEOF 10536#define HAVE_STRINGS_H 1 10537_ACEOF 10538 10539fi 10540 10541done 10542 10543if test "x$MACOSX" = "xyes"; then 10544 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10545 10546else 10547 10548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 10549$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 10550cppflags_save=$CPPFLAGS 10551CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10553/* end confdefs.h. */ 10554 10555#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 10556# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 10557 /* but don't do it on AIX 5.1 (Uribarri) */ 10558#endif 10559#ifdef HAVE_XM_XM_H 10560# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 10561#endif 10562#ifdef HAVE_STRING_H 10563# include <string.h> 10564#endif 10565#if defined(HAVE_STRINGS_H) 10566# include <strings.h> 10567#endif 10568 10569int 10570main () 10571{ 10572int i; i = 0; 10573 ; 10574 return 0; 10575} 10576_ACEOF 10577if ac_fn_c_try_compile "$LINENO"; then : 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10579$as_echo "yes" >&6; } 10580else 10581 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10582 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10584$as_echo "no" >&6; } 10585fi 10586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10587CPPFLAGS=$cppflags_save 10588fi 10589 10590if test $ac_cv_c_compiler_gnu = yes; then 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 10592$as_echo_n "checking whether $CC needs -traditional... " >&6; } 10593if ${ac_cv_prog_gcc_traditional+:} false; then : 10594 $as_echo_n "(cached) " >&6 10595else 10596 ac_pattern="Autoconf.*'x'" 10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598/* end confdefs.h. */ 10599#include <sgtty.h> 10600Autoconf TIOCGETP 10601_ACEOF 10602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10603 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10604 ac_cv_prog_gcc_traditional=yes 10605else 10606 ac_cv_prog_gcc_traditional=no 10607fi 10608rm -f conftest* 10609 10610 10611 if test $ac_cv_prog_gcc_traditional = no; then 10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10613/* end confdefs.h. */ 10614#include <termio.h> 10615Autoconf TCGETA 10616_ACEOF 10617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10618 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10619 ac_cv_prog_gcc_traditional=yes 10620fi 10621rm -f conftest* 10622 10623 fi 10624fi 10625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 10626$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 10627 if test $ac_cv_prog_gcc_traditional = yes; then 10628 CC="$CC -traditional" 10629 fi 10630fi 10631 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10633$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10634if ${ac_cv_c_const+:} false; then : 10635 $as_echo_n "(cached) " >&6 10636else 10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10638/* end confdefs.h. */ 10639 10640int 10641main () 10642{ 10643 10644#ifndef __cplusplus 10645 /* Ultrix mips cc rejects this sort of thing. */ 10646 typedef int charset[2]; 10647 const charset cs = { 0, 0 }; 10648 /* SunOS 4.1.1 cc rejects this. */ 10649 char const *const *pcpcc; 10650 char **ppc; 10651 /* NEC SVR4.0.2 mips cc rejects this. */ 10652 struct point {int x, y;}; 10653 static struct point const zero = {0,0}; 10654 /* AIX XL C 1.02.0.0 rejects this. 10655 It does not let you subtract one const X* pointer from another in 10656 an arm of an if-expression whose if-part is not a constant 10657 expression */ 10658 const char *g = "string"; 10659 pcpcc = &g + (g ? g-g : 0); 10660 /* HPUX 7.0 cc rejects these. */ 10661 ++pcpcc; 10662 ppc = (char**) pcpcc; 10663 pcpcc = (char const *const *) ppc; 10664 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10665 char tx; 10666 char *t = &tx; 10667 char const *s = 0 ? (char *) 0 : (char const *) 0; 10668 10669 *t++ = 0; 10670 if (s) return 0; 10671 } 10672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10673 int x[] = {25, 17}; 10674 const int *foo = &x[0]; 10675 ++foo; 10676 } 10677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10678 typedef const int *iptr; 10679 iptr p = 0; 10680 ++p; 10681 } 10682 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10684 struct s { int j; const int *ap[3]; } bx; 10685 struct s *b = &bx; b->j = 5; 10686 } 10687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10688 const int foo = 10; 10689 if (!foo) return 0; 10690 } 10691 return !cs[0] && !zero.x; 10692#endif 10693 10694 ; 10695 return 0; 10696} 10697_ACEOF 10698if ac_fn_c_try_compile "$LINENO"; then : 10699 ac_cv_c_const=yes 10700else 10701 ac_cv_c_const=no 10702fi 10703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10704fi 10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10706$as_echo "$ac_cv_c_const" >&6; } 10707if test $ac_cv_c_const = no; then 10708 10709$as_echo "#define const /**/" >>confdefs.h 10710 10711fi 10712 10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 10714$as_echo_n "checking for working volatile... " >&6; } 10715if ${ac_cv_c_volatile+:} false; then : 10716 $as_echo_n "(cached) " >&6 10717else 10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10719/* end confdefs.h. */ 10720 10721int 10722main () 10723{ 10724 10725volatile int x; 10726int * volatile y = (int *) 0; 10727return !x && !y; 10728 ; 10729 return 0; 10730} 10731_ACEOF 10732if ac_fn_c_try_compile "$LINENO"; then : 10733 ac_cv_c_volatile=yes 10734else 10735 ac_cv_c_volatile=no 10736fi 10737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10738fi 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 10740$as_echo "$ac_cv_c_volatile" >&6; } 10741if test $ac_cv_c_volatile = no; then 10742 10743$as_echo "#define volatile /**/" >>confdefs.h 10744 10745fi 10746 10747ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10748if test "x$ac_cv_type_mode_t" = xyes; then : 10749 10750else 10751 10752cat >>confdefs.h <<_ACEOF 10753#define mode_t int 10754_ACEOF 10755 10756fi 10757 10758ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10759if test "x$ac_cv_type_off_t" = xyes; then : 10760 10761else 10762 10763cat >>confdefs.h <<_ACEOF 10764#define off_t long int 10765_ACEOF 10766 10767fi 10768 10769ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10770if test "x$ac_cv_type_pid_t" = xyes; then : 10771 10772else 10773 10774cat >>confdefs.h <<_ACEOF 10775#define pid_t int 10776_ACEOF 10777 10778fi 10779 10780ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10781if test "x$ac_cv_type_size_t" = xyes; then : 10782 10783else 10784 10785cat >>confdefs.h <<_ACEOF 10786#define size_t unsigned int 10787_ACEOF 10788 10789fi 10790 10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10792$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10793if ${ac_cv_type_uid_t+:} false; then : 10794 $as_echo_n "(cached) " >&6 10795else 10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10797/* end confdefs.h. */ 10798#include <sys/types.h> 10799 10800_ACEOF 10801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10802 $EGREP "uid_t" >/dev/null 2>&1; then : 10803 ac_cv_type_uid_t=yes 10804else 10805 ac_cv_type_uid_t=no 10806fi 10807rm -f conftest* 10808 10809fi 10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10811$as_echo "$ac_cv_type_uid_t" >&6; } 10812if test $ac_cv_type_uid_t = no; then 10813 10814$as_echo "#define uid_t int" >>confdefs.h 10815 10816 10817$as_echo "#define gid_t int" >>confdefs.h 10818 10819fi 10820 10821ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 10822case $ac_cv_c_uint32_t in #( 10823 no|yes) ;; #( 10824 *) 10825 10826$as_echo "#define _UINT32_T 1" >>confdefs.h 10827 10828 10829cat >>confdefs.h <<_ACEOF 10830#define uint32_t $ac_cv_c_uint32_t 10831_ACEOF 10832;; 10833 esac 10834 10835 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 10837$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 10838if ${ac_cv_header_time+:} false; then : 10839 $as_echo_n "(cached) " >&6 10840else 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843#include <sys/types.h> 10844#include <sys/time.h> 10845#include <time.h> 10846 10847int 10848main () 10849{ 10850if ((struct tm *) 0) 10851return 0; 10852 ; 10853 return 0; 10854} 10855_ACEOF 10856if ac_fn_c_try_compile "$LINENO"; then : 10857 ac_cv_header_time=yes 10858else 10859 ac_cv_header_time=no 10860fi 10861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10862fi 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 10864$as_echo "$ac_cv_header_time" >&6; } 10865if test $ac_cv_header_time = yes; then 10866 10867$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 10868 10869fi 10870 10871ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 10872if test "x$ac_cv_type_ino_t" = xyes; then : 10873 10874else 10875 10876cat >>confdefs.h <<_ACEOF 10877#define ino_t long 10878_ACEOF 10879 10880fi 10881 10882ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 10883if test "x$ac_cv_type_dev_t" = xyes; then : 10884 10885else 10886 10887cat >>confdefs.h <<_ACEOF 10888#define dev_t unsigned 10889_ACEOF 10890 10891fi 10892 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10894$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10895if ${ac_cv_c_bigendian+:} false; then : 10896 $as_echo_n "(cached) " >&6 10897else 10898 ac_cv_c_bigendian=unknown 10899 # See if we're dealing with a universal compiler. 10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10901/* end confdefs.h. */ 10902#ifndef __APPLE_CC__ 10903 not a universal capable compiler 10904 #endif 10905 typedef int dummy; 10906 10907_ACEOF 10908if ac_fn_c_try_compile "$LINENO"; then : 10909 10910 # Check for potential -arch flags. It is not universal unless 10911 # there are at least two -arch flags with different values. 10912 ac_arch= 10913 ac_prev= 10914 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10915 if test -n "$ac_prev"; then 10916 case $ac_word in 10917 i?86 | x86_64 | ppc | ppc64) 10918 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10919 ac_arch=$ac_word 10920 else 10921 ac_cv_c_bigendian=universal 10922 break 10923 fi 10924 ;; 10925 esac 10926 ac_prev= 10927 elif test "x$ac_word" = "x-arch"; then 10928 ac_prev=arch 10929 fi 10930 done 10931fi 10932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10933 if test $ac_cv_c_bigendian = unknown; then 10934 # See if sys/param.h defines the BYTE_ORDER macro. 10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10936/* end confdefs.h. */ 10937#include <sys/types.h> 10938 #include <sys/param.h> 10939 10940int 10941main () 10942{ 10943#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10944 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10945 && LITTLE_ENDIAN) 10946 bogus endian macros 10947 #endif 10948 10949 ; 10950 return 0; 10951} 10952_ACEOF 10953if ac_fn_c_try_compile "$LINENO"; then : 10954 # It does; now see whether it defined to BIG_ENDIAN or not. 10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10956/* end confdefs.h. */ 10957#include <sys/types.h> 10958 #include <sys/param.h> 10959 10960int 10961main () 10962{ 10963#if BYTE_ORDER != BIG_ENDIAN 10964 not big endian 10965 #endif 10966 10967 ; 10968 return 0; 10969} 10970_ACEOF 10971if ac_fn_c_try_compile "$LINENO"; then : 10972 ac_cv_c_bigendian=yes 10973else 10974 ac_cv_c_bigendian=no 10975fi 10976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10977fi 10978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10979 fi 10980 if test $ac_cv_c_bigendian = unknown; then 10981 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10983/* end confdefs.h. */ 10984#include <limits.h> 10985 10986int 10987main () 10988{ 10989#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10990 bogus endian macros 10991 #endif 10992 10993 ; 10994 return 0; 10995} 10996_ACEOF 10997if ac_fn_c_try_compile "$LINENO"; then : 10998 # It does; now see whether it defined to _BIG_ENDIAN or not. 10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11000/* end confdefs.h. */ 11001#include <limits.h> 11002 11003int 11004main () 11005{ 11006#ifndef _BIG_ENDIAN 11007 not big endian 11008 #endif 11009 11010 ; 11011 return 0; 11012} 11013_ACEOF 11014if ac_fn_c_try_compile "$LINENO"; then : 11015 ac_cv_c_bigendian=yes 11016else 11017 ac_cv_c_bigendian=no 11018fi 11019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11020fi 11021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11022 fi 11023 if test $ac_cv_c_bigendian = unknown; then 11024 # Compile a test program. 11025 if test "$cross_compiling" = yes; then : 11026 # Try to guess by grepping values from an object file. 11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11028/* end confdefs.h. */ 11029short int ascii_mm[] = 11030 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11031 short int ascii_ii[] = 11032 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11033 int use_ascii (int i) { 11034 return ascii_mm[i] + ascii_ii[i]; 11035 } 11036 short int ebcdic_ii[] = 11037 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11038 short int ebcdic_mm[] = 11039 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11040 int use_ebcdic (int i) { 11041 return ebcdic_mm[i] + ebcdic_ii[i]; 11042 } 11043 extern int foo; 11044 11045int 11046main () 11047{ 11048return use_ascii (foo) == use_ebcdic (foo); 11049 ; 11050 return 0; 11051} 11052_ACEOF 11053if ac_fn_c_try_compile "$LINENO"; then : 11054 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11055 ac_cv_c_bigendian=yes 11056 fi 11057 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11058 if test "$ac_cv_c_bigendian" = unknown; then 11059 ac_cv_c_bigendian=no 11060 else 11061 # finding both strings is unlikely to happen, but who knows? 11062 ac_cv_c_bigendian=unknown 11063 fi 11064 fi 11065fi 11066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11067else 11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11069/* end confdefs.h. */ 11070$ac_includes_default 11071int 11072main () 11073{ 11074 11075 /* Are we little or big endian? From Harbison&Steele. */ 11076 union 11077 { 11078 long int l; 11079 char c[sizeof (long int)]; 11080 } u; 11081 u.l = 1; 11082 return u.c[sizeof (long int) - 1] == 1; 11083 11084 ; 11085 return 0; 11086} 11087_ACEOF 11088if ac_fn_c_try_run "$LINENO"; then : 11089 ac_cv_c_bigendian=no 11090else 11091 ac_cv_c_bigendian=yes 11092fi 11093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11094 conftest.$ac_objext conftest.beam conftest.$ac_ext 11095fi 11096 11097 fi 11098fi 11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11100$as_echo "$ac_cv_c_bigendian" >&6; } 11101 case $ac_cv_c_bigendian in #( 11102 yes) 11103 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11104;; #( 11105 no) 11106 ;; #( 11107 universal) 11108 11109$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11110 11111 ;; #( 11112 *) 11113 as_fn_error $? "unknown endianness 11114 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11115 esac 11116 11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11118$as_echo_n "checking for inline... " >&6; } 11119if ${ac_cv_c_inline+:} false; then : 11120 $as_echo_n "(cached) " >&6 11121else 11122 ac_cv_c_inline=no 11123for ac_kw in inline __inline__ __inline; do 11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11125/* end confdefs.h. */ 11126#ifndef __cplusplus 11127typedef int foo_t; 11128static $ac_kw foo_t static_foo () {return 0; } 11129$ac_kw foo_t foo () {return 0; } 11130#endif 11131 11132_ACEOF 11133if ac_fn_c_try_compile "$LINENO"; then : 11134 ac_cv_c_inline=$ac_kw 11135fi 11136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11137 test "$ac_cv_c_inline" != no && break 11138done 11139 11140fi 11141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11142$as_echo "$ac_cv_c_inline" >&6; } 11143 11144case $ac_cv_c_inline in 11145 inline | yes) ;; 11146 *) 11147 case $ac_cv_c_inline in 11148 no) ac_val=;; 11149 *) ac_val=$ac_cv_c_inline;; 11150 esac 11151 cat >>confdefs.h <<_ACEOF 11152#ifndef __cplusplus 11153#define inline $ac_val 11154#endif 11155_ACEOF 11156 ;; 11157esac 11158 11159 11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11161$as_echo_n "checking for rlim_t... " >&6; } 11162if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11164$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11165else 11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11167/* end confdefs.h. */ 11168 11169#include <sys/types.h> 11170#if STDC_HEADERS 11171# include <stdlib.h> 11172# include <stddef.h> 11173#endif 11174#ifdef HAVE_SYS_RESOURCE_H 11175# include <sys/resource.h> 11176#endif 11177 11178_ACEOF 11179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11180 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11181 ac_cv_type_rlim_t=yes 11182else 11183 ac_cv_type_rlim_t=no 11184fi 11185rm -f conftest* 11186 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11188$as_echo "$ac_cv_type_rlim_t" >&6; } 11189fi 11190if test $ac_cv_type_rlim_t = no; then 11191 cat >> confdefs.h <<\EOF 11192#define rlim_t unsigned long 11193EOF 11194fi 11195 11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11197$as_echo_n "checking for stack_t... " >&6; } 11198if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11200$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11201else 11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11203/* end confdefs.h. */ 11204 11205#include <sys/types.h> 11206#if STDC_HEADERS 11207# include <stdlib.h> 11208# include <stddef.h> 11209#endif 11210#include <signal.h> 11211 11212_ACEOF 11213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11214 $EGREP "stack_t" >/dev/null 2>&1; then : 11215 ac_cv_type_stack_t=yes 11216else 11217 ac_cv_type_stack_t=no 11218fi 11219rm -f conftest* 11220 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11222$as_echo "$ac_cv_type_stack_t" >&6; } 11223fi 11224if test $ac_cv_type_stack_t = no; then 11225 cat >> confdefs.h <<\EOF 11226#define stack_t struct sigaltstack 11227EOF 11228fi 11229 11230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11231$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11233/* end confdefs.h. */ 11234 11235#include <sys/types.h> 11236#if STDC_HEADERS 11237# include <stdlib.h> 11238# include <stddef.h> 11239#endif 11240#include <signal.h> 11241#include "confdefs.h" 11242 11243int 11244main () 11245{ 11246stack_t sigstk; sigstk.ss_base = 0; 11247 ; 11248 return 0; 11249} 11250_ACEOF 11251if ac_fn_c_try_compile "$LINENO"; then : 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11253$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11254 11255else 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11257$as_echo "no" >&6; } 11258fi 11259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11260 11261olibs="$LIBS" 11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11263$as_echo_n "checking --with-tlib argument... " >&6; } 11264 11265# Check whether --with-tlib was given. 11266if test "${with_tlib+set}" = set; then : 11267 withval=$with_tlib; 11268fi 11269 11270if test -n "$with_tlib"; then 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11272$as_echo "$with_tlib" >&6; } 11273 LIBS="$LIBS -l$with_tlib" 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11275$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11277/* end confdefs.h. */ 11278 11279int 11280main () 11281{ 11282 11283 ; 11284 return 0; 11285} 11286_ACEOF 11287if ac_fn_c_try_link "$LINENO"; then : 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11289$as_echo "OK" >&6; } 11290else 11291 as_fn_error $? "FAILED" "$LINENO" 5 11292fi 11293rm -f core conftest.err conftest.$ac_objext \ 11294 conftest$ac_exeext conftest.$ac_ext 11295 olibs="$LIBS" 11296else 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11298$as_echo "empty: automatic terminal library selection" >&6; } 11299 case "`uname -s 2>/dev/null`" in 11300 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11301 *) tlibs="tinfo ncurses termlib termcap curses";; 11302 esac 11303 for libname in $tlibs; do 11304 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11306$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11307if eval \${$as_ac_Lib+:} false; then : 11308 $as_echo_n "(cached) " >&6 11309else 11310 ac_check_lib_save_LIBS=$LIBS 11311LIBS="-l${libname} $LIBS" 11312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11313/* end confdefs.h. */ 11314 11315/* Override any GCC internal prototype to avoid an error. 11316 Use char because int might match the return type of a GCC 11317 builtin and then its argument prototype would still apply. */ 11318#ifdef __cplusplus 11319extern "C" 11320#endif 11321char tgetent (); 11322int 11323main () 11324{ 11325return tgetent (); 11326 ; 11327 return 0; 11328} 11329_ACEOF 11330if ac_fn_c_try_link "$LINENO"; then : 11331 eval "$as_ac_Lib=yes" 11332else 11333 eval "$as_ac_Lib=no" 11334fi 11335rm -f core conftest.err conftest.$ac_objext \ 11336 conftest$ac_exeext conftest.$ac_ext 11337LIBS=$ac_check_lib_save_LIBS 11338fi 11339eval ac_res=\$$as_ac_Lib 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11341$as_echo "$ac_res" >&6; } 11342if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11343 cat >>confdefs.h <<_ACEOF 11344#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 11345_ACEOF 11346 11347 LIBS="-l${libname} $LIBS" 11348 11349fi 11350 11351 if test "x$olibs" != "x$LIBS"; then 11352 if test "$cross_compiling" = yes; then : 11353 res="FAIL" 11354else 11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11356/* end confdefs.h. */ 11357 11358#ifdef HAVE_TERMCAP_H 11359# include <termcap.h> 11360#endif 11361#if STDC_HEADERS 11362# include <stdlib.h> 11363# include <stddef.h> 11364#endif 11365main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 11366_ACEOF 11367if ac_fn_c_try_run "$LINENO"; then : 11368 res="OK" 11369else 11370 res="FAIL" 11371fi 11372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11373 conftest.$ac_objext conftest.beam conftest.$ac_ext 11374fi 11375 11376 if test "$res" = "OK"; then 11377 break 11378 fi 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 11380$as_echo "$libname library is not usable" >&6; } 11381 LIBS="$olibs" 11382 fi 11383 done 11384 if test "x$olibs" = "x$LIBS"; then 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 11386$as_echo "no terminal library found" >&6; } 11387 fi 11388fi 11389 11390if test "x$olibs" = "x$LIBS"; then 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 11392$as_echo_n "checking for tgetent()... " >&6; } 11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11394/* end confdefs.h. */ 11395 11396int 11397main () 11398{ 11399char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 11400 ; 11401 return 0; 11402} 11403_ACEOF 11404if ac_fn_c_try_link "$LINENO"; then : 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11406$as_echo "yes" >&6; } 11407else 11408 as_fn_error $? "NOT FOUND! 11409 You need to install a terminal library; for example ncurses. 11410 Or specify the name of the library with --with-tlib." "$LINENO" 5 11411fi 11412rm -f core conftest.err conftest.$ac_objext \ 11413 conftest$ac_exeext conftest.$ac_ext 11414fi 11415 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 11417$as_echo_n "checking whether we talk terminfo... " >&6; } 11418if ${vim_cv_terminfo+:} false; then : 11419 $as_echo_n "(cached) " >&6 11420else 11421 11422 if test "$cross_compiling" = yes; then : 11423 11424 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 11425 11426else 11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11428/* end confdefs.h. */ 11429 11430#include "confdefs.h" 11431#ifdef HAVE_TERMCAP_H 11432# include <termcap.h> 11433#endif 11434#ifdef HAVE_STRING_H 11435# include <string.h> 11436#endif 11437#if STDC_HEADERS 11438# include <stdlib.h> 11439# include <stddef.h> 11440#endif 11441main() 11442{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 11443 11444_ACEOF 11445if ac_fn_c_try_run "$LINENO"; then : 11446 11447 vim_cv_terminfo=no 11448 11449else 11450 11451 vim_cv_terminfo=yes 11452 11453fi 11454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11455 conftest.$ac_objext conftest.beam conftest.$ac_ext 11456fi 11457 11458 11459fi 11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 11461$as_echo "$vim_cv_terminfo" >&6; } 11462 11463if test "x$vim_cv_terminfo" = "xyes" ; then 11464 $as_echo "#define TERMINFO 1" >>confdefs.h 11465 11466fi 11467 11468if test "x$olibs" != "x$LIBS"; then 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 11470$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 11471if ${vim_cv_tgent+:} false; then : 11472 $as_echo_n "(cached) " >&6 11473else 11474 11475 if test "$cross_compiling" = yes; then : 11476 11477 as_fn_error $? "failed to compile test program." "$LINENO" 5 11478 11479else 11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11481/* end confdefs.h. */ 11482 11483#include "confdefs.h" 11484#ifdef HAVE_TERMCAP_H 11485# include <termcap.h> 11486#endif 11487#if STDC_HEADERS 11488# include <stdlib.h> 11489# include <stddef.h> 11490#endif 11491main() 11492{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 11493 11494_ACEOF 11495if ac_fn_c_try_run "$LINENO"; then : 11496 11497 vim_cv_tgent=zero 11498 11499else 11500 11501 vim_cv_tgent=non-zero 11502 11503fi 11504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11505 conftest.$ac_objext conftest.beam conftest.$ac_ext 11506fi 11507 11508 11509fi 11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 11511$as_echo "$vim_cv_tgent" >&6; } 11512 11513 if test "x$vim_cv_tgent" = "xzero" ; then 11514 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 11515 11516 fi 11517fi 11518 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 11520$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 11521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11522/* end confdefs.h. */ 11523 11524#ifdef HAVE_TERMCAP_H 11525# include <termcap.h> 11526#endif 11527 11528int 11529main () 11530{ 11531ospeed = 20000 11532 ; 11533 return 0; 11534} 11535_ACEOF 11536if ac_fn_c_try_link "$LINENO"; then : 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11538$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 11539 11540else 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11542$as_echo "no" >&6; } 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 11544$as_echo_n "checking whether ospeed can be extern... " >&6; } 11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11546/* end confdefs.h. */ 11547 11548#ifdef HAVE_TERMCAP_H 11549# include <termcap.h> 11550#endif 11551extern short ospeed; 11552 11553int 11554main () 11555{ 11556ospeed = 20000 11557 ; 11558 return 0; 11559} 11560_ACEOF 11561if ac_fn_c_try_link "$LINENO"; then : 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11563$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 11564 11565else 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11567$as_echo "no" >&6; } 11568fi 11569rm -f core conftest.err conftest.$ac_objext \ 11570 conftest$ac_exeext conftest.$ac_ext 11571 11572fi 11573rm -f core conftest.err conftest.$ac_objext \ 11574 conftest$ac_exeext conftest.$ac_ext 11575 11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 11577$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 11578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11579/* end confdefs.h. */ 11580 11581#ifdef HAVE_TERMCAP_H 11582# include <termcap.h> 11583#endif 11584 11585int 11586main () 11587{ 11588if (UP == 0 && BC == 0) PC = 1 11589 ; 11590 return 0; 11591} 11592_ACEOF 11593if ac_fn_c_try_link "$LINENO"; then : 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11595$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 11596 11597else 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11599$as_echo "no" >&6; } 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 11601$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11603/* end confdefs.h. */ 11604 11605#ifdef HAVE_TERMCAP_H 11606# include <termcap.h> 11607#endif 11608extern char *UP, *BC, PC; 11609 11610int 11611main () 11612{ 11613if (UP == 0 && BC == 0) PC = 1 11614 ; 11615 return 0; 11616} 11617_ACEOF 11618if ac_fn_c_try_link "$LINENO"; then : 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11620$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 11621 11622else 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11624$as_echo "no" >&6; } 11625fi 11626rm -f core conftest.err conftest.$ac_objext \ 11627 conftest$ac_exeext conftest.$ac_ext 11628 11629fi 11630rm -f core conftest.err conftest.$ac_objext \ 11631 conftest$ac_exeext conftest.$ac_ext 11632 11633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 11634$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 11635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11636/* end confdefs.h. */ 11637 11638#ifdef HAVE_TERMCAP_H 11639# include <termcap.h> 11640#endif 11641 11642int 11643main () 11644{ 11645extern int xx(); tputs("test", 1, (outfuntype)xx) 11646 ; 11647 return 0; 11648} 11649_ACEOF 11650if ac_fn_c_try_compile "$LINENO"; then : 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11652$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 11653 11654else 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11656$as_echo "no" >&6; } 11657fi 11658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11659 11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 11661$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 11662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11663/* end confdefs.h. */ 11664 11665#include <sys/types.h> 11666#include <sys/time.h> 11667#include <sys/select.h> 11668int 11669main () 11670{ 11671 11672 ; 11673 return 0; 11674} 11675_ACEOF 11676if ac_fn_c_try_compile "$LINENO"; then : 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11678$as_echo "yes" >&6; } 11679 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 11680 11681else 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11683$as_echo "no" >&6; } 11684fi 11685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11686 11687 11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 11689$as_echo_n "checking for /dev/ptc... " >&6; } 11690if test -r /dev/ptc; then 11691 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 11692 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11694$as_echo "yes" >&6; } 11695else 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11697$as_echo "no" >&6; } 11698fi 11699 11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 11701$as_echo_n "checking for SVR4 ptys... " >&6; } 11702if test -c /dev/ptmx ; then 11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11704/* end confdefs.h. */ 11705 11706int 11707main () 11708{ 11709ptsname(0);grantpt(0);unlockpt(0); 11710 ; 11711 return 0; 11712} 11713_ACEOF 11714if ac_fn_c_try_link "$LINENO"; then : 11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11716$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 11717 11718else 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11720$as_echo "no" >&6; } 11721fi 11722rm -f core conftest.err conftest.$ac_objext \ 11723 conftest$ac_exeext conftest.$ac_ext 11724else 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11726$as_echo "no" >&6; } 11727fi 11728 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 11730$as_echo_n "checking for ptyranges... " >&6; } 11731if test -d /dev/ptym ; then 11732 pdir='/dev/ptym' 11733else 11734 pdir='/dev' 11735fi 11736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738#ifdef M_UNIX 11739 yes; 11740#endif 11741 11742_ACEOF 11743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11744 $EGREP "yes" >/dev/null 2>&1; then : 11745 ptys=`echo /dev/ptyp??` 11746else 11747 ptys=`echo $pdir/pty??` 11748fi 11749rm -f conftest* 11750 11751if test "$ptys" != "$pdir/pty??" ; then 11752 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 11753 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 11754 cat >>confdefs.h <<_ACEOF 11755#define PTYRANGE0 "$p0" 11756_ACEOF 11757 11758 cat >>confdefs.h <<_ACEOF 11759#define PTYRANGE1 "$p1" 11760_ACEOF 11761 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 11763$as_echo "$p0 / $p1" >&6; } 11764else 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 11766$as_echo "don't know" >&6; } 11767fi 11768 11769rm -f conftest_grp 11770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 11771$as_echo_n "checking default tty permissions/group... " >&6; } 11772if ${vim_cv_tty_group+:} false; then : 11773 $as_echo_n "(cached) " >&6 11774else 11775 11776 if test "$cross_compiling" = yes; then : 11777 11778 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 11779 11780else 11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11782/* end confdefs.h. */ 11783 11784#include "confdefs.h" 11785#include <sys/types.h> 11786#if STDC_HEADERS 11787# include <stdlib.h> 11788# include <stddef.h> 11789#endif 11790#ifdef HAVE_UNISTD_H 11791#include <unistd.h> 11792#endif 11793#include <sys/stat.h> 11794#include <stdio.h> 11795main() 11796{ 11797 struct stat sb; 11798 char *x,*ttyname(); 11799 int om, m; 11800 FILE *fp; 11801 11802 if (!(x = ttyname(0))) exit(1); 11803 if (stat(x, &sb)) exit(1); 11804 om = sb.st_mode; 11805 if (om & 002) exit(0); 11806 m = system("mesg y"); 11807 if (m == -1 || m == 127) exit(1); 11808 if (stat(x, &sb)) exit(1); 11809 m = sb.st_mode; 11810 if (chmod(x, om)) exit(1); 11811 if (m & 002) exit(0); 11812 if (sb.st_gid == getgid()) exit(1); 11813 if (!(fp=fopen("conftest_grp", "w"))) 11814 exit(1); 11815 fprintf(fp, "%d\n", sb.st_gid); 11816 fclose(fp); 11817 exit(0); 11818} 11819 11820_ACEOF 11821if ac_fn_c_try_run "$LINENO"; then : 11822 11823 if test -f conftest_grp; then 11824 vim_cv_tty_group=`cat conftest_grp` 11825 if test "x$vim_cv_tty_mode" = "x" ; then 11826 vim_cv_tty_mode=0620 11827 fi 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 11829$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 11830 else 11831 vim_cv_tty_group=world 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 11833$as_echo "ptys are world accessible" >&6; } 11834 fi 11835 11836else 11837 11838 vim_cv_tty_group=world 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 11840$as_echo "can't determine - assume ptys are world accessible" >&6; } 11841 11842fi 11843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11844 conftest.$ac_objext conftest.beam conftest.$ac_ext 11845fi 11846 11847 11848fi 11849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 11850$as_echo "$vim_cv_tty_group" >&6; } 11851rm -f conftest_grp 11852 11853if test "x$vim_cv_tty_group" != "xworld" ; then 11854 cat >>confdefs.h <<_ACEOF 11855#define PTYGROUP $vim_cv_tty_group 11856_ACEOF 11857 11858 if test "x$vim_cv_tty_mode" = "x" ; then 11859 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 11860 else 11861 $as_echo "#define PTYMODE 0620" >>confdefs.h 11862 11863 fi 11864fi 11865 11866 11867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11868$as_echo_n "checking return type of signal handlers... " >&6; } 11869if ${ac_cv_type_signal+:} false; then : 11870 $as_echo_n "(cached) " >&6 11871else 11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11873/* end confdefs.h. */ 11874#include <sys/types.h> 11875#include <signal.h> 11876 11877int 11878main () 11879{ 11880return *(signal (0, 0)) (0) == 1; 11881 ; 11882 return 0; 11883} 11884_ACEOF 11885if ac_fn_c_try_compile "$LINENO"; then : 11886 ac_cv_type_signal=int 11887else 11888 ac_cv_type_signal=void 11889fi 11890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11891fi 11892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11893$as_echo "$ac_cv_type_signal" >&6; } 11894 11895cat >>confdefs.h <<_ACEOF 11896#define RETSIGTYPE $ac_cv_type_signal 11897_ACEOF 11898 11899 11900 11901if test $ac_cv_type_signal = void; then 11902 $as_echo "#define SIGRETURN return" >>confdefs.h 11903 11904else 11905 $as_echo "#define SIGRETURN return 0" >>confdefs.h 11906 11907fi 11908 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 11910$as_echo_n "checking for struct sigcontext... " >&6; } 11911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11912/* end confdefs.h. */ 11913 11914#include <signal.h> 11915test_sig() 11916{ 11917 struct sigcontext *scont; 11918 scont = (struct sigcontext *)0; 11919 return 1; 11920} 11921int 11922main () 11923{ 11924 11925 ; 11926 return 0; 11927} 11928_ACEOF 11929if ac_fn_c_try_compile "$LINENO"; then : 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11931$as_echo "yes" >&6; } 11932 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 11933 11934else 11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11936$as_echo "no" >&6; } 11937fi 11938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11939 11940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 11941$as_echo_n "checking getcwd implementation is broken... " >&6; } 11942if ${vim_cv_getcwd_broken+:} false; then : 11943 $as_echo_n "(cached) " >&6 11944else 11945 11946 if test "$cross_compiling" = yes; then : 11947 11948 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 11949 11950else 11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11952/* end confdefs.h. */ 11953 11954#include "confdefs.h" 11955#ifdef HAVE_UNISTD_H 11956#include <unistd.h> 11957#endif 11958char *dagger[] = { "IFS=pwd", 0 }; 11959main() 11960{ 11961 char buffer[500]; 11962 extern char **environ; 11963 environ = dagger; 11964 return getcwd(buffer, 500) ? 0 : 1; 11965} 11966 11967_ACEOF 11968if ac_fn_c_try_run "$LINENO"; then : 11969 11970 vim_cv_getcwd_broken=no 11971 11972else 11973 11974 vim_cv_getcwd_broken=yes 11975 11976fi 11977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11978 conftest.$ac_objext conftest.beam conftest.$ac_ext 11979fi 11980 11981 11982fi 11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 11984$as_echo "$vim_cv_getcwd_broken" >&6; } 11985 11986if test "x$vim_cv_getcwd_broken" = "xyes" ; then 11987 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 11988 11989fi 11990 11991for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ 11992 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 11993 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 11994 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 11995 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 11996 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 11997 usleep utime utimes 11998do : 11999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12001if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12002 cat >>confdefs.h <<_ACEOF 12003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12004_ACEOF 12005 12006fi 12007done 12008 12009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12010$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12011if ${ac_cv_sys_largefile_source+:} false; then : 12012 $as_echo_n "(cached) " >&6 12013else 12014 while :; do 12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12016/* end confdefs.h. */ 12017#include <sys/types.h> /* for off_t */ 12018 #include <stdio.h> 12019int 12020main () 12021{ 12022int (*fp) (FILE *, off_t, int) = fseeko; 12023 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12024 ; 12025 return 0; 12026} 12027_ACEOF 12028if ac_fn_c_try_link "$LINENO"; then : 12029 ac_cv_sys_largefile_source=no; break 12030fi 12031rm -f core conftest.err conftest.$ac_objext \ 12032 conftest$ac_exeext conftest.$ac_ext 12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12034/* end confdefs.h. */ 12035#define _LARGEFILE_SOURCE 1 12036#include <sys/types.h> /* for off_t */ 12037 #include <stdio.h> 12038int 12039main () 12040{ 12041int (*fp) (FILE *, off_t, int) = fseeko; 12042 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12043 ; 12044 return 0; 12045} 12046_ACEOF 12047if ac_fn_c_try_link "$LINENO"; then : 12048 ac_cv_sys_largefile_source=1; break 12049fi 12050rm -f core conftest.err conftest.$ac_objext \ 12051 conftest$ac_exeext conftest.$ac_ext 12052 ac_cv_sys_largefile_source=unknown 12053 break 12054done 12055fi 12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12057$as_echo "$ac_cv_sys_largefile_source" >&6; } 12058case $ac_cv_sys_largefile_source in #( 12059 no | unknown) ;; 12060 *) 12061cat >>confdefs.h <<_ACEOF 12062#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12063_ACEOF 12064;; 12065esac 12066rm -rf conftest* 12067 12068# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12069# in glibc 2.1.3, but that breaks too many other things. 12070# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12071if test $ac_cv_sys_largefile_source != unknown; then 12072 12073$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12074 12075fi 12076 12077 12078# Check whether --enable-largefile was given. 12079if test "${enable_largefile+set}" = set; then : 12080 enableval=$enable_largefile; 12081fi 12082 12083if test "$enable_largefile" != no; then 12084 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12086$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12087if ${ac_cv_sys_largefile_CC+:} false; then : 12088 $as_echo_n "(cached) " >&6 12089else 12090 ac_cv_sys_largefile_CC=no 12091 if test "$GCC" != yes; then 12092 ac_save_CC=$CC 12093 while :; do 12094 # IRIX 6.2 and later do not support large files by default, 12095 # so use the C compiler's -n32 option if that helps. 12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12097/* end confdefs.h. */ 12098#include <sys/types.h> 12099 /* Check that off_t can represent 2**63 - 1 correctly. 12100 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12101 since some C++ compilers masquerading as C compilers 12102 incorrectly reject 9223372036854775807. */ 12103#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12104 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12105 && LARGE_OFF_T % 2147483647 == 1) 12106 ? 1 : -1]; 12107int 12108main () 12109{ 12110 12111 ; 12112 return 0; 12113} 12114_ACEOF 12115 if ac_fn_c_try_compile "$LINENO"; then : 12116 break 12117fi 12118rm -f core conftest.err conftest.$ac_objext 12119 CC="$CC -n32" 12120 if ac_fn_c_try_compile "$LINENO"; then : 12121 ac_cv_sys_largefile_CC=' -n32'; break 12122fi 12123rm -f core conftest.err conftest.$ac_objext 12124 break 12125 done 12126 CC=$ac_save_CC 12127 rm -f conftest.$ac_ext 12128 fi 12129fi 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12131$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12132 if test "$ac_cv_sys_largefile_CC" != no; then 12133 CC=$CC$ac_cv_sys_largefile_CC 12134 fi 12135 12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12137$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12138if ${ac_cv_sys_file_offset_bits+:} false; then : 12139 $as_echo_n "(cached) " >&6 12140else 12141 while :; do 12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12143/* end confdefs.h. */ 12144#include <sys/types.h> 12145 /* Check that off_t can represent 2**63 - 1 correctly. 12146 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12147 since some C++ compilers masquerading as C compilers 12148 incorrectly reject 9223372036854775807. */ 12149#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12151 && LARGE_OFF_T % 2147483647 == 1) 12152 ? 1 : -1]; 12153int 12154main () 12155{ 12156 12157 ; 12158 return 0; 12159} 12160_ACEOF 12161if ac_fn_c_try_compile "$LINENO"; then : 12162 ac_cv_sys_file_offset_bits=no; break 12163fi 12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12166/* end confdefs.h. */ 12167#define _FILE_OFFSET_BITS 64 12168#include <sys/types.h> 12169 /* Check that off_t can represent 2**63 - 1 correctly. 12170 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12171 since some C++ compilers masquerading as C compilers 12172 incorrectly reject 9223372036854775807. */ 12173#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12175 && LARGE_OFF_T % 2147483647 == 1) 12176 ? 1 : -1]; 12177int 12178main () 12179{ 12180 12181 ; 12182 return 0; 12183} 12184_ACEOF 12185if ac_fn_c_try_compile "$LINENO"; then : 12186 ac_cv_sys_file_offset_bits=64; break 12187fi 12188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12189 ac_cv_sys_file_offset_bits=unknown 12190 break 12191done 12192fi 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12194$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12195case $ac_cv_sys_file_offset_bits in #( 12196 no | unknown) ;; 12197 *) 12198cat >>confdefs.h <<_ACEOF 12199#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12200_ACEOF 12201;; 12202esac 12203rm -rf conftest* 12204 if test $ac_cv_sys_file_offset_bits = unknown; then 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12206$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12207if ${ac_cv_sys_large_files+:} false; then : 12208 $as_echo_n "(cached) " >&6 12209else 12210 while :; do 12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12212/* end confdefs.h. */ 12213#include <sys/types.h> 12214 /* Check that off_t can represent 2**63 - 1 correctly. 12215 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12216 since some C++ compilers masquerading as C compilers 12217 incorrectly reject 9223372036854775807. */ 12218#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12220 && LARGE_OFF_T % 2147483647 == 1) 12221 ? 1 : -1]; 12222int 12223main () 12224{ 12225 12226 ; 12227 return 0; 12228} 12229_ACEOF 12230if ac_fn_c_try_compile "$LINENO"; then : 12231 ac_cv_sys_large_files=no; break 12232fi 12233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12235/* end confdefs.h. */ 12236#define _LARGE_FILES 1 12237#include <sys/types.h> 12238 /* Check that off_t can represent 2**63 - 1 correctly. 12239 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12240 since some C++ compilers masquerading as C compilers 12241 incorrectly reject 9223372036854775807. */ 12242#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12243 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12244 && LARGE_OFF_T % 2147483647 == 1) 12245 ? 1 : -1]; 12246int 12247main () 12248{ 12249 12250 ; 12251 return 0; 12252} 12253_ACEOF 12254if ac_fn_c_try_compile "$LINENO"; then : 12255 ac_cv_sys_large_files=1; break 12256fi 12257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12258 ac_cv_sys_large_files=unknown 12259 break 12260done 12261fi 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12263$as_echo "$ac_cv_sys_large_files" >&6; } 12264case $ac_cv_sys_large_files in #( 12265 no | unknown) ;; 12266 *) 12267cat >>confdefs.h <<_ACEOF 12268#define _LARGE_FILES $ac_cv_sys_large_files 12269_ACEOF 12270;; 12271esac 12272rm -rf conftest* 12273 fi 12274 12275 12276fi 12277 12278 12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 12280$as_echo_n "checking for st_blksize... " >&6; } 12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12282/* end confdefs.h. */ 12283#include <sys/types.h> 12284#include <sys/stat.h> 12285int 12286main () 12287{ 12288 struct stat st; 12289 int n; 12290 12291 stat("/", &st); 12292 n = (int)st.st_blksize; 12293 ; 12294 return 0; 12295} 12296_ACEOF 12297if ac_fn_c_try_compile "$LINENO"; then : 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12299$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12300 12301else 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12303$as_echo "no" >&6; } 12304fi 12305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12306 12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 12308$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 12309if ${vim_cv_stat_ignores_slash+:} false; then : 12310 $as_echo_n "(cached) " >&6 12311else 12312 12313 if test "$cross_compiling" = yes; then : 12314 12315 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 12316 12317else 12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12319/* end confdefs.h. */ 12320 12321#include "confdefs.h" 12322#if STDC_HEADERS 12323# include <stdlib.h> 12324# include <stddef.h> 12325#endif 12326#include <sys/types.h> 12327#include <sys/stat.h> 12328main() {struct stat st; exit(stat("configure/", &st) != 0); } 12329 12330_ACEOF 12331if ac_fn_c_try_run "$LINENO"; then : 12332 12333 vim_cv_stat_ignores_slash=yes 12334 12335else 12336 12337 vim_cv_stat_ignores_slash=no 12338 12339fi 12340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12341 conftest.$ac_objext conftest.beam conftest.$ac_ext 12342fi 12343 12344 12345fi 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 12347$as_echo "$vim_cv_stat_ignores_slash" >&6; } 12348 12349if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 12350 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 12351 12352fi 12353 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 12355$as_echo_n "checking for iconv_open()... " >&6; } 12356save_LIBS="$LIBS" 12357LIBS="$LIBS -liconv" 12358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12359/* end confdefs.h. */ 12360 12361#ifdef HAVE_ICONV_H 12362# include <iconv.h> 12363#endif 12364 12365int 12366main () 12367{ 12368iconv_open("fr", "to"); 12369 ; 12370 return 0; 12371} 12372_ACEOF 12373if ac_fn_c_try_link "$LINENO"; then : 12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 12375$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12376 12377else 12378 LIBS="$save_LIBS" 12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12380/* end confdefs.h. */ 12381 12382#ifdef HAVE_ICONV_H 12383# include <iconv.h> 12384#endif 12385 12386int 12387main () 12388{ 12389iconv_open("fr", "to"); 12390 ; 12391 return 0; 12392} 12393_ACEOF 12394if ac_fn_c_try_link "$LINENO"; then : 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12396$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12397 12398else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400$as_echo "no" >&6; } 12401fi 12402rm -f core conftest.err conftest.$ac_objext \ 12403 conftest$ac_exeext conftest.$ac_ext 12404fi 12405rm -f core conftest.err conftest.$ac_objext \ 12406 conftest$ac_exeext conftest.$ac_ext 12407 12408 12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 12410$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 12411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12412/* end confdefs.h. */ 12413 12414#ifdef HAVE_LANGINFO_H 12415# include <langinfo.h> 12416#endif 12417 12418int 12419main () 12420{ 12421char *cs = nl_langinfo(CODESET); 12422 ; 12423 return 0; 12424} 12425_ACEOF 12426if ac_fn_c_try_link "$LINENO"; then : 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12428$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 12429 12430else 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12432$as_echo "no" >&6; } 12433fi 12434rm -f core conftest.err conftest.$ac_objext \ 12435 conftest$ac_exeext conftest.$ac_ext 12436 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 12438$as_echo_n "checking for strtod in -lm... " >&6; } 12439if ${ac_cv_lib_m_strtod+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 ac_check_lib_save_LIBS=$LIBS 12443LIBS="-lm $LIBS" 12444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12445/* end confdefs.h. */ 12446 12447/* Override any GCC internal prototype to avoid an error. 12448 Use char because int might match the return type of a GCC 12449 builtin and then its argument prototype would still apply. */ 12450#ifdef __cplusplus 12451extern "C" 12452#endif 12453char strtod (); 12454int 12455main () 12456{ 12457return strtod (); 12458 ; 12459 return 0; 12460} 12461_ACEOF 12462if ac_fn_c_try_link "$LINENO"; then : 12463 ac_cv_lib_m_strtod=yes 12464else 12465 ac_cv_lib_m_strtod=no 12466fi 12467rm -f core conftest.err conftest.$ac_objext \ 12468 conftest$ac_exeext conftest.$ac_ext 12469LIBS=$ac_check_lib_save_LIBS 12470fi 12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 12472$as_echo "$ac_cv_lib_m_strtod" >&6; } 12473if test "x$ac_cv_lib_m_strtod" = xyes; then : 12474 cat >>confdefs.h <<_ACEOF 12475#define HAVE_LIBM 1 12476_ACEOF 12477 12478 LIBS="-lm $LIBS" 12479 12480fi 12481 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 12483$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 12484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12485/* end confdefs.h. */ 12486 12487#ifdef HAVE_MATH_H 12488# include <math.h> 12489#endif 12490#if STDC_HEADERS 12491# include <stdlib.h> 12492# include <stddef.h> 12493#endif 12494 12495int 12496main () 12497{ 12498char *s; double d; 12499 d = strtod("1.1", &s); 12500 d = fabs(1.11); 12501 d = ceil(1.11); 12502 d = floor(1.11); 12503 d = log10(1.11); 12504 d = pow(1.11, 2.22); 12505 d = sqrt(1.11); 12506 d = sin(1.11); 12507 d = cos(1.11); 12508 d = atan(1.11); 12509 12510 ; 12511 return 0; 12512} 12513_ACEOF 12514if ac_fn_c_try_link "$LINENO"; then : 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12516$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 12517 12518else 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12520$as_echo "no" >&6; } 12521fi 12522rm -f core conftest.err conftest.$ac_objext \ 12523 conftest$ac_exeext conftest.$ac_ext 12524 12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 12526$as_echo_n "checking for isinf()... " >&6; } 12527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12528/* end confdefs.h. */ 12529 12530#ifdef HAVE_MATH_H 12531# include <math.h> 12532#endif 12533#if STDC_HEADERS 12534# include <stdlib.h> 12535# include <stddef.h> 12536#endif 12537 12538int 12539main () 12540{ 12541int r = isinf(1.11); 12542 ; 12543 return 0; 12544} 12545_ACEOF 12546if ac_fn_c_try_link "$LINENO"; then : 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12548$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 12549 12550else 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12552$as_echo "no" >&6; } 12553fi 12554rm -f core conftest.err conftest.$ac_objext \ 12555 conftest$ac_exeext conftest.$ac_ext 12556 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 12558$as_echo_n "checking for isnan()... " >&6; } 12559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12560/* end confdefs.h. */ 12561 12562#ifdef HAVE_MATH_H 12563# include <math.h> 12564#endif 12565#if STDC_HEADERS 12566# include <stdlib.h> 12567# include <stddef.h> 12568#endif 12569 12570int 12571main () 12572{ 12573int r = isnan(1.11); 12574 ; 12575 return 0; 12576} 12577_ACEOF 12578if ac_fn_c_try_link "$LINENO"; then : 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12580$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 12581 12582else 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12584$as_echo "no" >&6; } 12585fi 12586rm -f core conftest.err conftest.$ac_objext \ 12587 conftest$ac_exeext conftest.$ac_ext 12588 12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 12590$as_echo_n "checking --disable-acl argument... " >&6; } 12591# Check whether --enable-acl was given. 12592if test "${enable_acl+set}" = set; then : 12593 enableval=$enable_acl; 12594else 12595 enable_acl="yes" 12596fi 12597 12598if test "$enable_acl" = "yes"; then 12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12600$as_echo "no" >&6; } 12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 12602$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 12603if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 12604 $as_echo_n "(cached) " >&6 12605else 12606 ac_check_lib_save_LIBS=$LIBS 12607LIBS="-lposix1e $LIBS" 12608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12609/* end confdefs.h. */ 12610 12611/* Override any GCC internal prototype to avoid an error. 12612 Use char because int might match the return type of a GCC 12613 builtin and then its argument prototype would still apply. */ 12614#ifdef __cplusplus 12615extern "C" 12616#endif 12617char acl_get_file (); 12618int 12619main () 12620{ 12621return acl_get_file (); 12622 ; 12623 return 0; 12624} 12625_ACEOF 12626if ac_fn_c_try_link "$LINENO"; then : 12627 ac_cv_lib_posix1e_acl_get_file=yes 12628else 12629 ac_cv_lib_posix1e_acl_get_file=no 12630fi 12631rm -f core conftest.err conftest.$ac_objext \ 12632 conftest$ac_exeext conftest.$ac_ext 12633LIBS=$ac_check_lib_save_LIBS 12634fi 12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 12636$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 12637if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 12638 LIBS="$LIBS -lposix1e" 12639else 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 12641$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 12642if ${ac_cv_lib_acl_acl_get_file+:} false; then : 12643 $as_echo_n "(cached) " >&6 12644else 12645 ac_check_lib_save_LIBS=$LIBS 12646LIBS="-lacl $LIBS" 12647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649 12650/* Override any GCC internal prototype to avoid an error. 12651 Use char because int might match the return type of a GCC 12652 builtin and then its argument prototype would still apply. */ 12653#ifdef __cplusplus 12654extern "C" 12655#endif 12656char acl_get_file (); 12657int 12658main () 12659{ 12660return acl_get_file (); 12661 ; 12662 return 0; 12663} 12664_ACEOF 12665if ac_fn_c_try_link "$LINENO"; then : 12666 ac_cv_lib_acl_acl_get_file=yes 12667else 12668 ac_cv_lib_acl_acl_get_file=no 12669fi 12670rm -f core conftest.err conftest.$ac_objext \ 12671 conftest$ac_exeext conftest.$ac_ext 12672LIBS=$ac_check_lib_save_LIBS 12673fi 12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 12675$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 12676if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 12677 LIBS="$LIBS -lacl" 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 12679$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 12680if ${ac_cv_lib_attr_fgetxattr+:} false; then : 12681 $as_echo_n "(cached) " >&6 12682else 12683 ac_check_lib_save_LIBS=$LIBS 12684LIBS="-lattr $LIBS" 12685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12686/* end confdefs.h. */ 12687 12688/* Override any GCC internal prototype to avoid an error. 12689 Use char because int might match the return type of a GCC 12690 builtin and then its argument prototype would still apply. */ 12691#ifdef __cplusplus 12692extern "C" 12693#endif 12694char fgetxattr (); 12695int 12696main () 12697{ 12698return fgetxattr (); 12699 ; 12700 return 0; 12701} 12702_ACEOF 12703if ac_fn_c_try_link "$LINENO"; then : 12704 ac_cv_lib_attr_fgetxattr=yes 12705else 12706 ac_cv_lib_attr_fgetxattr=no 12707fi 12708rm -f core conftest.err conftest.$ac_objext \ 12709 conftest$ac_exeext conftest.$ac_ext 12710LIBS=$ac_check_lib_save_LIBS 12711fi 12712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 12713$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 12714if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 12715 LIBS="$LIBS -lattr" 12716fi 12717 12718fi 12719 12720fi 12721 12722 12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 12724$as_echo_n "checking for POSIX ACL support... " >&6; } 12725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12726/* end confdefs.h. */ 12727 12728#include <sys/types.h> 12729#ifdef HAVE_SYS_ACL_H 12730# include <sys/acl.h> 12731#endif 12732acl_t acl; 12733int 12734main () 12735{ 12736acl = acl_get_file("foo", ACL_TYPE_ACCESS); 12737 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 12738 acl_free(acl); 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743if ac_fn_c_try_link "$LINENO"; then : 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12745$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 12746 12747else 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12749$as_echo "no" >&6; } 12750fi 12751rm -f core conftest.err conftest.$ac_objext \ 12752 conftest$ac_exeext conftest.$ac_ext 12753 12754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 12755$as_echo_n "checking for acl_get in -lsec... " >&6; } 12756if ${ac_cv_lib_sec_acl_get+:} false; then : 12757 $as_echo_n "(cached) " >&6 12758else 12759 ac_check_lib_save_LIBS=$LIBS 12760LIBS="-lsec $LIBS" 12761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12762/* end confdefs.h. */ 12763 12764/* Override any GCC internal prototype to avoid an error. 12765 Use char because int might match the return type of a GCC 12766 builtin and then its argument prototype would still apply. */ 12767#ifdef __cplusplus 12768extern "C" 12769#endif 12770char acl_get (); 12771int 12772main () 12773{ 12774return acl_get (); 12775 ; 12776 return 0; 12777} 12778_ACEOF 12779if ac_fn_c_try_link "$LINENO"; then : 12780 ac_cv_lib_sec_acl_get=yes 12781else 12782 ac_cv_lib_sec_acl_get=no 12783fi 12784rm -f core conftest.err conftest.$ac_objext \ 12785 conftest$ac_exeext conftest.$ac_ext 12786LIBS=$ac_check_lib_save_LIBS 12787fi 12788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 12789$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 12790if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 12791 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 12792 12793else 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 12795$as_echo_n "checking for Solaris ACL support... " >&6; } 12796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798 12799#ifdef HAVE_SYS_ACL_H 12800# include <sys/acl.h> 12801#endif 12802int 12803main () 12804{ 12805acl("foo", GETACLCNT, 0, NULL); 12806 12807 ; 12808 return 0; 12809} 12810_ACEOF 12811if ac_fn_c_try_link "$LINENO"; then : 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12813$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 12814 12815else 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12817$as_echo "no" >&6; } 12818fi 12819rm -f core conftest.err conftest.$ac_objext \ 12820 conftest$ac_exeext conftest.$ac_ext 12821fi 12822 12823 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 12825$as_echo_n "checking for AIX ACL support... " >&6; } 12826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12827/* end confdefs.h. */ 12828 12829#if STDC_HEADERS 12830# include <stdlib.h> 12831# include <stddef.h> 12832#endif 12833#ifdef HAVE_SYS_ACL_H 12834# include <sys/acl.h> 12835#endif 12836#ifdef HAVE_SYS_ACCESS_H 12837# include <sys/access.h> 12838#endif 12839#define _ALL_SOURCE 12840 12841#include <sys/stat.h> 12842 12843int aclsize; 12844struct acl *aclent; 12845int 12846main () 12847{ 12848aclsize = sizeof(struct acl); 12849 aclent = (void *)malloc(aclsize); 12850 statacl("foo", STX_NORMAL, aclent, aclsize); 12851 12852 ; 12853 return 0; 12854} 12855_ACEOF 12856if ac_fn_c_try_link "$LINENO"; then : 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12858$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 12859 12860else 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12862$as_echo "no" >&6; } 12863fi 12864rm -f core conftest.err conftest.$ac_objext \ 12865 conftest$ac_exeext conftest.$ac_ext 12866else 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12868$as_echo "yes" >&6; } 12869fi 12870 12871if test "x$GTK_CFLAGS" != "x"; then 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 12873$as_echo_n "checking for pango_shape_full... " >&6; } 12874 ac_save_CFLAGS="$CFLAGS" 12875 ac_save_LIBS="$LIBS" 12876 CFLAGS="$CFLAGS $GTK_CFLAGS" 12877 LIBS="$LIBS $GTK_LIBS" 12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12879/* end confdefs.h. */ 12880#include <gtk/gtk.h> 12881int 12882main () 12883{ 12884 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 12885 ; 12886 return 0; 12887} 12888_ACEOF 12889if ac_fn_c_try_link "$LINENO"; then : 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12891$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 12892 12893else 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12895$as_echo "no" >&6; } 12896fi 12897rm -f core conftest.err conftest.$ac_objext \ 12898 conftest$ac_exeext conftest.$ac_ext 12899 CFLAGS="$ac_save_CFLAGS" 12900 LIBS="$ac_save_LIBS" 12901fi 12902 12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 12904$as_echo_n "checking --disable-gpm argument... " >&6; } 12905# Check whether --enable-gpm was given. 12906if test "${enable_gpm+set}" = set; then : 12907 enableval=$enable_gpm; 12908else 12909 enable_gpm="yes" 12910fi 12911 12912 12913if test "$enable_gpm" = "yes"; then 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12915$as_echo "no" >&6; } 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 12917$as_echo_n "checking for gpm... " >&6; } 12918if ${vi_cv_have_gpm+:} false; then : 12919 $as_echo_n "(cached) " >&6 12920else 12921 olibs="$LIBS" ; LIBS="-lgpm" 12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12923/* end confdefs.h. */ 12924#include <gpm.h> 12925 #include <linux/keyboard.h> 12926int 12927main () 12928{ 12929Gpm_GetLibVersion(NULL); 12930 ; 12931 return 0; 12932} 12933_ACEOF 12934if ac_fn_c_try_link "$LINENO"; then : 12935 vi_cv_have_gpm=yes 12936else 12937 vi_cv_have_gpm=no 12938fi 12939rm -f core conftest.err conftest.$ac_objext \ 12940 conftest$ac_exeext conftest.$ac_ext 12941 LIBS="$olibs" 12942 12943fi 12944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 12945$as_echo "$vi_cv_have_gpm" >&6; } 12946 if test $vi_cv_have_gpm = yes; then 12947 LIBS="$LIBS -lgpm" 12948 $as_echo "#define HAVE_GPM 1" >>confdefs.h 12949 12950 fi 12951else 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12953$as_echo "yes" >&6; } 12954fi 12955 12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 12957$as_echo_n "checking --disable-sysmouse argument... " >&6; } 12958# Check whether --enable-sysmouse was given. 12959if test "${enable_sysmouse+set}" = set; then : 12960 enableval=$enable_sysmouse; 12961else 12962 enable_sysmouse="yes" 12963fi 12964 12965 12966if test "$enable_sysmouse" = "yes"; then 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12968$as_echo "no" >&6; } 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 12970$as_echo_n "checking for sysmouse... " >&6; } 12971if ${vi_cv_have_sysmouse+:} false; then : 12972 $as_echo_n "(cached) " >&6 12973else 12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12975/* end confdefs.h. */ 12976#include <sys/consio.h> 12977 #include <signal.h> 12978 #include <sys/fbio.h> 12979int 12980main () 12981{ 12982struct mouse_info mouse; 12983 mouse.operation = MOUSE_MODE; 12984 mouse.operation = MOUSE_SHOW; 12985 mouse.u.mode.mode = 0; 12986 mouse.u.mode.signal = SIGUSR2; 12987 ; 12988 return 0; 12989} 12990_ACEOF 12991if ac_fn_c_try_link "$LINENO"; then : 12992 vi_cv_have_sysmouse=yes 12993else 12994 vi_cv_have_sysmouse=no 12995fi 12996rm -f core conftest.err conftest.$ac_objext \ 12997 conftest$ac_exeext conftest.$ac_ext 12998 12999fi 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13001$as_echo "$vi_cv_have_sysmouse" >&6; } 13002 if test $vi_cv_have_sysmouse = yes; then 13003 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13004 13005 fi 13006else 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13008$as_echo "yes" >&6; } 13009fi 13010 13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13012$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13014/* end confdefs.h. */ 13015#if HAVE_FCNTL_H 13016# include <fcntl.h> 13017#endif 13018int 13019main () 13020{ 13021 int flag = FD_CLOEXEC; 13022 ; 13023 return 0; 13024} 13025_ACEOF 13026if ac_fn_c_try_compile "$LINENO"; then : 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13028$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13029 13030else 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13032$as_echo "not usable" >&6; } 13033fi 13034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13035 13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13037$as_echo_n "checking for rename... " >&6; } 13038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13039/* end confdefs.h. */ 13040#include <stdio.h> 13041int 13042main () 13043{ 13044rename("this", "that") 13045 ; 13046 return 0; 13047} 13048_ACEOF 13049if ac_fn_c_try_link "$LINENO"; then : 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13051$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13052 13053else 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13055$as_echo "no" >&6; } 13056fi 13057rm -f core conftest.err conftest.$ac_objext \ 13058 conftest$ac_exeext conftest.$ac_ext 13059 13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13061$as_echo_n "checking for sysctl... " >&6; } 13062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13063/* end confdefs.h. */ 13064#include <sys/types.h> 13065#include <sys/sysctl.h> 13066int 13067main () 13068{ 13069 int mib[2], r; 13070 size_t len; 13071 13072 mib[0] = CTL_HW; 13073 mib[1] = HW_USERMEM; 13074 len = sizeof(r); 13075 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13076 13077 ; 13078 return 0; 13079} 13080_ACEOF 13081if ac_fn_c_try_compile "$LINENO"; then : 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13083$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13084 13085else 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13087$as_echo "not usable" >&6; } 13088fi 13089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13090 13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13092$as_echo_n "checking for sysinfo... " >&6; } 13093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13094/* end confdefs.h. */ 13095#include <sys/types.h> 13096#include <sys/sysinfo.h> 13097int 13098main () 13099{ 13100 struct sysinfo sinfo; 13101 int t; 13102 13103 (void)sysinfo(&sinfo); 13104 t = sinfo.totalram; 13105 13106 ; 13107 return 0; 13108} 13109_ACEOF 13110if ac_fn_c_try_compile "$LINENO"; then : 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13112$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13113 13114else 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13116$as_echo "not usable" >&6; } 13117fi 13118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13119 13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13121$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13123/* end confdefs.h. */ 13124#include <sys/types.h> 13125#include <sys/sysinfo.h> 13126int 13127main () 13128{ 13129 struct sysinfo sinfo; 13130 sinfo.mem_unit = 1; 13131 13132 ; 13133 return 0; 13134} 13135_ACEOF 13136if ac_fn_c_try_compile "$LINENO"; then : 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13138$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13139 13140else 13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13142$as_echo "no" >&6; } 13143fi 13144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13145 13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13147$as_echo_n "checking for sysconf... " >&6; } 13148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13149/* end confdefs.h. */ 13150#include <unistd.h> 13151int 13152main () 13153{ 13154 (void)sysconf(_SC_PAGESIZE); 13155 (void)sysconf(_SC_PHYS_PAGES); 13156 13157 ; 13158 return 0; 13159} 13160_ACEOF 13161if ac_fn_c_try_compile "$LINENO"; then : 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13163$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13164 13165else 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13167$as_echo "not usable" >&6; } 13168fi 13169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13170 13171# The cast to long int works around a bug in the HP C Compiler 13172# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13173# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13174# This bug is HP SR number 8606223364. 13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13176$as_echo_n "checking size of int... " >&6; } 13177if ${ac_cv_sizeof_int+:} false; then : 13178 $as_echo_n "(cached) " >&6 13179else 13180 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13181 13182else 13183 if test "$ac_cv_type_int" = yes; then 13184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13186as_fn_error 77 "cannot compute sizeof (int) 13187See \`config.log' for more details" "$LINENO" 5; } 13188 else 13189 ac_cv_sizeof_int=0 13190 fi 13191fi 13192 13193fi 13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13195$as_echo "$ac_cv_sizeof_int" >&6; } 13196 13197 13198 13199cat >>confdefs.h <<_ACEOF 13200#define SIZEOF_INT $ac_cv_sizeof_int 13201_ACEOF 13202 13203 13204# The cast to long int works around a bug in the HP C Compiler 13205# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13206# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13207# This bug is HP SR number 8606223364. 13208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13209$as_echo_n "checking size of long... " >&6; } 13210if ${ac_cv_sizeof_long+:} false; then : 13211 $as_echo_n "(cached) " >&6 13212else 13213 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13214 13215else 13216 if test "$ac_cv_type_long" = yes; then 13217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13219as_fn_error 77 "cannot compute sizeof (long) 13220See \`config.log' for more details" "$LINENO" 5; } 13221 else 13222 ac_cv_sizeof_long=0 13223 fi 13224fi 13225 13226fi 13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13228$as_echo "$ac_cv_sizeof_long" >&6; } 13229 13230 13231 13232cat >>confdefs.h <<_ACEOF 13233#define SIZEOF_LONG $ac_cv_sizeof_long 13234_ACEOF 13235 13236 13237# The cast to long int works around a bug in the HP C Compiler 13238# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13239# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13240# This bug is HP SR number 8606223364. 13241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13242$as_echo_n "checking size of time_t... " >&6; } 13243if ${ac_cv_sizeof_time_t+:} false; then : 13244 $as_echo_n "(cached) " >&6 13245else 13246 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 13247 13248else 13249 if test "$ac_cv_type_time_t" = yes; then 13250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13252as_fn_error 77 "cannot compute sizeof (time_t) 13253See \`config.log' for more details" "$LINENO" 5; } 13254 else 13255 ac_cv_sizeof_time_t=0 13256 fi 13257fi 13258 13259fi 13260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 13261$as_echo "$ac_cv_sizeof_time_t" >&6; } 13262 13263 13264 13265cat >>confdefs.h <<_ACEOF 13266#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 13267_ACEOF 13268 13269 13270# The cast to long int works around a bug in the HP C Compiler 13271# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13272# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13273# This bug is HP SR number 8606223364. 13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 13275$as_echo_n "checking size of off_t... " >&6; } 13276if ${ac_cv_sizeof_off_t+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278else 13279 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 13280 13281else 13282 if test "$ac_cv_type_off_t" = yes; then 13283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13285as_fn_error 77 "cannot compute sizeof (off_t) 13286See \`config.log' for more details" "$LINENO" 5; } 13287 else 13288 ac_cv_sizeof_off_t=0 13289 fi 13290fi 13291 13292fi 13293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 13294$as_echo "$ac_cv_sizeof_off_t" >&6; } 13295 13296 13297 13298cat >>confdefs.h <<_ACEOF 13299#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13300_ACEOF 13301 13302 13303 13304cat >>confdefs.h <<_ACEOF 13305#define VIM_SIZEOF_INT $ac_cv_sizeof_int 13306_ACEOF 13307 13308cat >>confdefs.h <<_ACEOF 13309#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 13310_ACEOF 13311 13312 13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 13314$as_echo_n "checking uint32_t is 32 bits... " >&6; } 13315if test "$cross_compiling" = yes; then : 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 13317$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 13318else 13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13320/* end confdefs.h. */ 13321 13322#ifdef HAVE_STDINT_H 13323# include <stdint.h> 13324#endif 13325#ifdef HAVE_INTTYPES_H 13326# include <inttypes.h> 13327#endif 13328main() { 13329 uint32_t nr1 = (uint32_t)-1; 13330 uint32_t nr2 = (uint32_t)0xffffffffUL; 13331 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 13332 exit(0); 13333} 13334_ACEOF 13335if ac_fn_c_try_run "$LINENO"; then : 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13337$as_echo "ok" >&6; } 13338else 13339 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 13340fi 13341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13342 conftest.$ac_objext conftest.beam conftest.$ac_ext 13343fi 13344 13345 13346 13347bcopy_test_prog=' 13348#include "confdefs.h" 13349#ifdef HAVE_STRING_H 13350# include <string.h> 13351#endif 13352#if STDC_HEADERS 13353# include <stdlib.h> 13354# include <stddef.h> 13355#endif 13356main() { 13357 char buf[10]; 13358 strcpy(buf, "abcdefghi"); 13359 mch_memmove(buf, buf + 2, 3); 13360 if (strncmp(buf, "ababcf", 6)) 13361 exit(1); 13362 strcpy(buf, "abcdefghi"); 13363 mch_memmove(buf + 2, buf, 3); 13364 if (strncmp(buf, "cdedef", 6)) 13365 exit(1); 13366 exit(0); /* libc version works properly. */ 13367}' 13368 13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 13370$as_echo_n "checking whether memmove handles overlaps... " >&6; } 13371if ${vim_cv_memmove_handles_overlap+:} false; then : 13372 $as_echo_n "(cached) " >&6 13373else 13374 13375 if test "$cross_compiling" = yes; then : 13376 13377 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 13378 13379else 13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13381/* end confdefs.h. */ 13382#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 13383_ACEOF 13384if ac_fn_c_try_run "$LINENO"; then : 13385 13386 vim_cv_memmove_handles_overlap=yes 13387 13388else 13389 13390 vim_cv_memmove_handles_overlap=no 13391 13392fi 13393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13394 conftest.$ac_objext conftest.beam conftest.$ac_ext 13395fi 13396 13397 13398fi 13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 13400$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 13401 13402if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 13403 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 13404 13405else 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 13407$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 13408if ${vim_cv_bcopy_handles_overlap+:} false; then : 13409 $as_echo_n "(cached) " >&6 13410else 13411 13412 if test "$cross_compiling" = yes; then : 13413 13414 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 13415 13416else 13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13418/* end confdefs.h. */ 13419#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 13420_ACEOF 13421if ac_fn_c_try_run "$LINENO"; then : 13422 13423 vim_cv_bcopy_handles_overlap=yes 13424 13425else 13426 13427 vim_cv_bcopy_handles_overlap=no 13428 13429fi 13430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13431 conftest.$ac_objext conftest.beam conftest.$ac_ext 13432fi 13433 13434 13435fi 13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 13437$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 13438 13439 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 13440 $as_echo "#define USEBCOPY 1" >>confdefs.h 13441 13442 else 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 13444$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 13445if ${vim_cv_memcpy_handles_overlap+:} false; then : 13446 $as_echo_n "(cached) " >&6 13447else 13448 13449 if test "$cross_compiling" = yes; then : 13450 13451 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 13452 13453else 13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13455/* end confdefs.h. */ 13456#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 13457_ACEOF 13458if ac_fn_c_try_run "$LINENO"; then : 13459 13460 vim_cv_memcpy_handles_overlap=yes 13461 13462else 13463 13464 vim_cv_memcpy_handles_overlap=no 13465 13466fi 13467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13468 conftest.$ac_objext conftest.beam conftest.$ac_ext 13469fi 13470 13471 13472fi 13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 13474$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 13475 13476 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 13477 $as_echo "#define USEMEMCPY 1" >>confdefs.h 13478 13479 fi 13480 fi 13481fi 13482 13483 13484if test "x$with_x" = "xyes"; then 13485 cflags_save=$CFLAGS 13486 libs_save=$LIBS 13487 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 13488 CFLAGS="$CFLAGS $X_CFLAGS" 13489 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 13491$as_echo_n "checking whether X_LOCALE needed... " >&6; } 13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13493/* end confdefs.h. */ 13494#include <X11/Xlocale.h> 13495int 13496main () 13497{ 13498 13499 ; 13500 return 0; 13501} 13502_ACEOF 13503if ac_fn_c_try_compile "$LINENO"; then : 13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505/* end confdefs.h. */ 13506 13507/* Override any GCC internal prototype to avoid an error. 13508 Use char because int might match the return type of a GCC 13509 builtin and then its argument prototype would still apply. */ 13510#ifdef __cplusplus 13511extern "C" 13512#endif 13513char _Xsetlocale (); 13514int 13515main () 13516{ 13517return _Xsetlocale (); 13518 ; 13519 return 0; 13520} 13521_ACEOF 13522if ac_fn_c_try_link "$LINENO"; then : 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13524$as_echo "yes" >&6; } 13525 $as_echo "#define X_LOCALE 1" >>confdefs.h 13526 13527else 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13529$as_echo "no" >&6; } 13530fi 13531rm -f core conftest.err conftest.$ac_objext \ 13532 conftest$ac_exeext conftest.$ac_ext 13533else 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13535$as_echo "no" >&6; } 13536fi 13537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13538 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 13540$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542/* end confdefs.h. */ 13543 13544/* Override any GCC internal prototype to avoid an error. 13545 Use char because int might match the return type of a GCC 13546 builtin and then its argument prototype would still apply. */ 13547#ifdef __cplusplus 13548extern "C" 13549#endif 13550char Xutf8SetWMProperties (); 13551int 13552main () 13553{ 13554return Xutf8SetWMProperties (); 13555 ; 13556 return 0; 13557} 13558_ACEOF 13559if ac_fn_c_try_link "$LINENO"; then : 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13561$as_echo "yes" >&6; } 13562 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 13563 13564else 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13566$as_echo "no" >&6; } 13567fi 13568rm -f core conftest.err conftest.$ac_objext \ 13569 conftest$ac_exeext conftest.$ac_ext 13570 13571 CFLAGS=$cflags_save 13572 LIBS=$libs_save 13573fi 13574 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 13576$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 13577if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 13578 $as_echo_n "(cached) " >&6 13579else 13580 ac_check_lib_save_LIBS=$LIBS 13581LIBS="-lxpg4 $LIBS" 13582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583/* end confdefs.h. */ 13584 13585/* Override any GCC internal prototype to avoid an error. 13586 Use char because int might match the return type of a GCC 13587 builtin and then its argument prototype would still apply. */ 13588#ifdef __cplusplus 13589extern "C" 13590#endif 13591char _xpg4_setrunelocale (); 13592int 13593main () 13594{ 13595return _xpg4_setrunelocale (); 13596 ; 13597 return 0; 13598} 13599_ACEOF 13600if ac_fn_c_try_link "$LINENO"; then : 13601 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 13602else 13603 ac_cv_lib_xpg4__xpg4_setrunelocale=no 13604fi 13605rm -f core conftest.err conftest.$ac_objext \ 13606 conftest$ac_exeext conftest.$ac_ext 13607LIBS=$ac_check_lib_save_LIBS 13608fi 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 13610$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 13611if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 13612 LIBS="$LIBS -lxpg4" 13613fi 13614 13615 13616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 13617$as_echo_n "checking how to create tags... " >&6; } 13618test -f tags && mv tags tags.save 13619if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13620 TAGPRG="ctags -I INIT+ --fields=+S" 13621elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13622 TAGPRG="exctags -I INIT+ --fields=+S" 13623elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13624 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 13625else 13626 TAGPRG="ctags" 13627 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 13628 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 13629 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 13630 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 13631 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 13632 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 13633 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 13634fi 13635test -f tags.save && mv tags.save tags 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 13637$as_echo "$TAGPRG" >&6; } 13638 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 13640$as_echo_n "checking how to run man with a section nr... " >&6; } 13641MANDEF="man" 13642(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 13643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 13644$as_echo "$MANDEF" >&6; } 13645if test "$MANDEF" = "man -s"; then 13646 $as_echo "#define USEMAN_S 1" >>confdefs.h 13647 13648fi 13649 13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 13651$as_echo_n "checking --disable-nls argument... " >&6; } 13652# Check whether --enable-nls was given. 13653if test "${enable_nls+set}" = set; then : 13654 enableval=$enable_nls; 13655else 13656 enable_nls="yes" 13657fi 13658 13659 13660if test "$enable_nls" = "yes"; then 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13662$as_echo "no" >&6; } 13663 13664 INSTALL_LANGS=install-languages 13665 13666 INSTALL_TOOL_LANGS=install-tool-languages 13667 13668 13669 # Extract the first word of "msgfmt", so it can be a program name with args. 13670set dummy msgfmt; ac_word=$2 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13672$as_echo_n "checking for $ac_word... " >&6; } 13673if ${ac_cv_prog_MSGFMT+:} false; then : 13674 $as_echo_n "(cached) " >&6 13675else 13676 if test -n "$MSGFMT"; then 13677 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 13678else 13679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13680for as_dir in $PATH 13681do 13682 IFS=$as_save_IFS 13683 test -z "$as_dir" && as_dir=. 13684 for ac_exec_ext in '' $ac_executable_extensions; do 13685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13686 ac_cv_prog_MSGFMT="msgfmt" 13687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13688 break 2 13689 fi 13690done 13691 done 13692IFS=$as_save_IFS 13693 13694fi 13695fi 13696MSGFMT=$ac_cv_prog_MSGFMT 13697if test -n "$MSGFMT"; then 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13699$as_echo "$MSGFMT" >&6; } 13700else 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13702$as_echo "no" >&6; } 13703fi 13704 13705 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 13707$as_echo_n "checking for NLS... " >&6; } 13708 if test -f po/Makefile; then 13709 have_gettext="no" 13710 if test -n "$MSGFMT"; then 13711 olibs=$LIBS 13712 LIBS="" 13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13714/* end confdefs.h. */ 13715#include <libintl.h> 13716int 13717main () 13718{ 13719gettext("Test"); 13720 ; 13721 return 0; 13722} 13723_ACEOF 13724if ac_fn_c_try_link "$LINENO"; then : 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 13726$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 13727else 13728 LIBS="-lintl" 13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13730/* end confdefs.h. */ 13731#include <libintl.h> 13732int 13733main () 13734{ 13735gettext("Test"); 13736 ; 13737 return 0; 13738} 13739_ACEOF 13740if ac_fn_c_try_link "$LINENO"; then : 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 13742$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 13743 LIBS="$olibs -lintl" 13744else 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 13746$as_echo "gettext() doesn't work" >&6; }; 13747 LIBS=$olibs 13748fi 13749rm -f core conftest.err conftest.$ac_objext \ 13750 conftest$ac_exeext conftest.$ac_ext 13751fi 13752rm -f core conftest.err conftest.$ac_objext \ 13753 conftest$ac_exeext conftest.$ac_ext 13754 else 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 13756$as_echo "msgfmt not found - disabled" >&6; }; 13757 fi 13758 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 13759 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13760 13761 MAKEMO=yes 13762 13763 for ac_func in bind_textdomain_codeset 13764do : 13765 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13766if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 13767 cat >>confdefs.h <<_ACEOF 13768#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13769_ACEOF 13770 13771fi 13772done 13773 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 13775$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13777/* end confdefs.h. */ 13778#include <libintl.h> 13779 extern int _nl_msg_cat_cntr; 13780int 13781main () 13782{ 13783++_nl_msg_cat_cntr; 13784 ; 13785 return 0; 13786} 13787_ACEOF 13788if ac_fn_c_try_link "$LINENO"; then : 13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13790$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 13791 13792else 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13794$as_echo "no" >&6; } 13795fi 13796rm -f core conftest.err conftest.$ac_objext \ 13797 conftest$ac_exeext conftest.$ac_ext 13798 fi 13799 else 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 13801$as_echo "no \"po/Makefile\" - disabled" >&6; }; 13802 fi 13803else 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13805$as_echo "yes" >&6; } 13806fi 13807 13808ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13809if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13810 DLL=dlfcn.h 13811else 13812 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 13813if test "x$ac_cv_header_dl_h" = xyes; then : 13814 DLL=dl.h 13815fi 13816 13817 13818fi 13819 13820 13821if test x${DLL} = xdlfcn.h; then 13822 13823$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 13824 13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 13826$as_echo_n "checking for dlopen()... " >&6; } 13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13828/* end confdefs.h. */ 13829 13830int 13831main () 13832{ 13833 13834 extern void* dlopen(); 13835 dlopen(); 13836 13837 ; 13838 return 0; 13839} 13840_ACEOF 13841if ac_fn_c_try_link "$LINENO"; then : 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13843$as_echo "yes" >&6; }; 13844 13845$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13846 13847else 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13849$as_echo "no" >&6; }; 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 13851$as_echo_n "checking for dlopen() in -ldl... " >&6; } 13852 olibs=$LIBS 13853 LIBS="$LIBS -ldl" 13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13855/* end confdefs.h. */ 13856 13857int 13858main () 13859{ 13860 13861 extern void* dlopen(); 13862 dlopen(); 13863 13864 ; 13865 return 0; 13866} 13867_ACEOF 13868if ac_fn_c_try_link "$LINENO"; then : 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13870$as_echo "yes" >&6; }; 13871 13872$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13873 13874else 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13876$as_echo "no" >&6; }; 13877 LIBS=$olibs 13878fi 13879rm -f core conftest.err conftest.$ac_objext \ 13880 conftest$ac_exeext conftest.$ac_ext 13881fi 13882rm -f core conftest.err conftest.$ac_objext \ 13883 conftest$ac_exeext conftest.$ac_ext 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 13885$as_echo_n "checking for dlsym()... " >&6; } 13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13887/* end confdefs.h. */ 13888 13889int 13890main () 13891{ 13892 13893 extern void* dlsym(); 13894 dlsym(); 13895 13896 ; 13897 return 0; 13898} 13899_ACEOF 13900if ac_fn_c_try_link "$LINENO"; then : 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13902$as_echo "yes" >&6; }; 13903 13904$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13905 13906else 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13908$as_echo "no" >&6; }; 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 13910$as_echo_n "checking for dlsym() in -ldl... " >&6; } 13911 olibs=$LIBS 13912 LIBS="$LIBS -ldl" 13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914/* end confdefs.h. */ 13915 13916int 13917main () 13918{ 13919 13920 extern void* dlsym(); 13921 dlsym(); 13922 13923 ; 13924 return 0; 13925} 13926_ACEOF 13927if ac_fn_c_try_link "$LINENO"; then : 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13929$as_echo "yes" >&6; }; 13930 13931$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13932 13933else 13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13935$as_echo "no" >&6; }; 13936 LIBS=$olibs 13937fi 13938rm -f core conftest.err conftest.$ac_objext \ 13939 conftest$ac_exeext conftest.$ac_ext 13940fi 13941rm -f core conftest.err conftest.$ac_objext \ 13942 conftest$ac_exeext conftest.$ac_ext 13943elif test x${DLL} = xdl.h; then 13944 13945$as_echo "#define HAVE_DL_H 1" >>confdefs.h 13946 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 13948$as_echo_n "checking for shl_load()... " >&6; } 13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13950/* end confdefs.h. */ 13951 13952int 13953main () 13954{ 13955 13956 extern void* shl_load(); 13957 shl_load(); 13958 13959 ; 13960 return 0; 13961} 13962_ACEOF 13963if ac_fn_c_try_link "$LINENO"; then : 13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13965$as_echo "yes" >&6; }; 13966 13967$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13968 13969else 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13971$as_echo "no" >&6; }; 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 13973$as_echo_n "checking for shl_load() in -ldld... " >&6; } 13974 olibs=$LIBS 13975 LIBS="$LIBS -ldld" 13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13977/* end confdefs.h. */ 13978 13979int 13980main () 13981{ 13982 13983 extern void* shl_load(); 13984 shl_load(); 13985 13986 ; 13987 return 0; 13988} 13989_ACEOF 13990if ac_fn_c_try_link "$LINENO"; then : 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13992$as_echo "yes" >&6; }; 13993 13994$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13995 13996else 13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13998$as_echo "no" >&6; }; 13999 LIBS=$olibs 14000fi 14001rm -f core conftest.err conftest.$ac_objext \ 14002 conftest$ac_exeext conftest.$ac_ext 14003fi 14004rm -f core conftest.err conftest.$ac_objext \ 14005 conftest$ac_exeext conftest.$ac_ext 14006fi 14007for ac_header in setjmp.h 14008do : 14009 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14010if test "x$ac_cv_header_setjmp_h" = xyes; then : 14011 cat >>confdefs.h <<_ACEOF 14012#define HAVE_SETJMP_H 1 14013_ACEOF 14014 14015fi 14016 14017done 14018 14019 14020if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 14021 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14022 LIBS=`echo $LIBS | sed s/-ldl//` 14023 PERL_LIBS="$PERL_LIBS -ldl" 14024 fi 14025fi 14026 14027if test "x$MACOSX" = "xyes"; then 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5 14029$as_echo_n "checking whether we need -framework Cocoa... " >&6; } 14030 if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then 14031 LIBS=$"$LIBS -framework Cocoa" 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14033$as_echo "yes" >&6; } 14034 else 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14036$as_echo "no" >&6; } 14037 fi 14038 if test "x$features" = "xtiny"; then 14039 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14040 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14041 fi 14042fi 14043if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14044 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14045fi 14046 14047DEPEND_CFLAGS_FILTER= 14048if test "$GCC" = yes; then 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14050$as_echo_n "checking for GCC 3 or later... " >&6; } 14051 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 14052 if test "$gccmajor" -gt "2"; then 14053 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14055$as_echo "yes" >&6; } 14056 else 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14058$as_echo "no" >&6; } 14059 fi 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14061$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14062 if test "$gccmajor" -gt "3"; then 14063 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/'` 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14065$as_echo "yes" >&6; } 14066 else 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14068$as_echo "no" >&6; } 14069 fi 14070fi 14071 14072 14073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14074$as_echo_n "checking linker --as-needed support... " >&6; } 14075LINK_AS_NEEDED= 14076# Check if linker supports --as-needed and --no-as-needed options 14077if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14078 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14079 LINK_AS_NEEDED=yes 14080fi 14081if test "$LINK_AS_NEEDED" = yes; then 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14083$as_echo "yes" >&6; } 14084else 14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14086$as_echo "no" >&6; } 14087fi 14088 14089 14090# IBM z/OS reset CFLAGS for config.mk 14091if test "$zOSUnix" = "yes"; then 14092 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14093fi 14094 14095ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14096 14097cat >confcache <<\_ACEOF 14098# This file is a shell script that caches the results of configure 14099# tests run on this system so they can be shared between configure 14100# scripts and configure runs, see configure's option --config-cache. 14101# It is not useful on other systems. If it contains results you don't 14102# want to keep, you may remove or edit it. 14103# 14104# config.status only pays attention to the cache file if you give it 14105# the --recheck option to rerun configure. 14106# 14107# `ac_cv_env_foo' variables (set or unset) will be overridden when 14108# loading this file, other *unset* `ac_cv_foo' will be assigned the 14109# following values. 14110 14111_ACEOF 14112 14113# The following way of writing the cache mishandles newlines in values, 14114# but we know of no workaround that is simple, portable, and efficient. 14115# So, we kill variables containing newlines. 14116# Ultrix sh set writes to stderr and can't be redirected directly, 14117# and sets the high bit in the cache file unless we assign to the vars. 14118( 14119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14120 eval ac_val=\$$ac_var 14121 case $ac_val in #( 14122 *${as_nl}*) 14123 case $ac_var in #( 14124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14126 esac 14127 case $ac_var in #( 14128 _ | IFS | as_nl) ;; #( 14129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14130 *) { eval $ac_var=; unset $ac_var;} ;; 14131 esac ;; 14132 esac 14133 done 14134 14135 (set) 2>&1 | 14136 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14137 *${as_nl}ac_space=\ *) 14138 # `set' does not quote correctly, so add quotes: double-quote 14139 # substitution turns \\\\ into \\, and sed turns \\ into \. 14140 sed -n \ 14141 "s/'/'\\\\''/g; 14142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14143 ;; #( 14144 *) 14145 # `set' quotes correctly as required by POSIX, so do not add quotes. 14146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14147 ;; 14148 esac | 14149 sort 14150) | 14151 sed ' 14152 /^ac_cv_env_/b end 14153 t clear 14154 :clear 14155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14156 t end 14157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14158 :end' >>confcache 14159if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14160 if test -w "$cache_file"; then 14161 if test "x$cache_file" != "x/dev/null"; then 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14163$as_echo "$as_me: updating cache $cache_file" >&6;} 14164 if test ! -f "$cache_file" || test -h "$cache_file"; then 14165 cat confcache >"$cache_file" 14166 else 14167 case $cache_file in #( 14168 */* | ?:*) 14169 mv -f confcache "$cache_file"$$ && 14170 mv -f "$cache_file"$$ "$cache_file" ;; #( 14171 *) 14172 mv -f confcache "$cache_file" ;; 14173 esac 14174 fi 14175 fi 14176 else 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14178$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14179 fi 14180fi 14181rm -f confcache 14182 14183test "x$prefix" = xNONE && prefix=$ac_default_prefix 14184# Let make expand exec_prefix. 14185test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14186 14187DEFS=-DHAVE_CONFIG_H 14188 14189ac_libobjs= 14190ac_ltlibobjs= 14191U= 14192for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14193 # 1. Remove the extension, and $U if already installed. 14194 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14195 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14196 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14197 # will be set to the directory where LIBOBJS objects are built. 14198 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14199 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14200done 14201LIBOBJS=$ac_libobjs 14202 14203LTLIBOBJS=$ac_ltlibobjs 14204 14205 14206 14207 14208: "${CONFIG_STATUS=./config.status}" 14209ac_write_fail=0 14210ac_clean_files_save=$ac_clean_files 14211ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14212{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14213$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14214as_write_fail=0 14215cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14216#! $SHELL 14217# Generated by $as_me. 14218# Run this file to recreate the current configuration. 14219# Compiler output produced by configure, useful for debugging 14220# configure, is in config.log if it exists. 14221 14222debug=false 14223ac_cs_recheck=false 14224ac_cs_silent=false 14225 14226SHELL=\${CONFIG_SHELL-$SHELL} 14227export SHELL 14228_ASEOF 14229cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14230## -------------------- ## 14231## M4sh Initialization. ## 14232## -------------------- ## 14233 14234# Be more Bourne compatible 14235DUALCASE=1; export DUALCASE # for MKS sh 14236if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14237 emulate sh 14238 NULLCMD=: 14239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14240 # is contrary to our usage. Disable this feature. 14241 alias -g '${1+"$@"}'='"$@"' 14242 setopt NO_GLOB_SUBST 14243else 14244 case `(set -o) 2>/dev/null` in #( 14245 *posix*) : 14246 set -o posix ;; #( 14247 *) : 14248 ;; 14249esac 14250fi 14251 14252 14253as_nl=' 14254' 14255export as_nl 14256# Printing a long string crashes Solaris 7 /usr/bin/printf. 14257as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14258as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14259as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14260# Prefer a ksh shell builtin over an external printf program on Solaris, 14261# but without wasting forks for bash or zsh. 14262if test -z "$BASH_VERSION$ZSH_VERSION" \ 14263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14264 as_echo='print -r --' 14265 as_echo_n='print -rn --' 14266elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14267 as_echo='printf %s\n' 14268 as_echo_n='printf %s' 14269else 14270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14271 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14272 as_echo_n='/usr/ucb/echo -n' 14273 else 14274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14275 as_echo_n_body='eval 14276 arg=$1; 14277 case $arg in #( 14278 *"$as_nl"*) 14279 expr "X$arg" : "X\\(.*\\)$as_nl"; 14280 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14281 esac; 14282 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14283 ' 14284 export as_echo_n_body 14285 as_echo_n='sh -c $as_echo_n_body as_echo' 14286 fi 14287 export as_echo_body 14288 as_echo='sh -c $as_echo_body as_echo' 14289fi 14290 14291# The user is always right. 14292if test "${PATH_SEPARATOR+set}" != set; then 14293 PATH_SEPARATOR=: 14294 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14295 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14296 PATH_SEPARATOR=';' 14297 } 14298fi 14299 14300 14301# IFS 14302# We need space, tab and new line, in precisely that order. Quoting is 14303# there to prevent editors from complaining about space-tab. 14304# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14305# splitting by setting IFS to empty value.) 14306IFS=" "" $as_nl" 14307 14308# Find who we are. Look in the path if we contain no directory separator. 14309as_myself= 14310case $0 in #(( 14311 *[\\/]* ) as_myself=$0 ;; 14312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14313for as_dir in $PATH 14314do 14315 IFS=$as_save_IFS 14316 test -z "$as_dir" && as_dir=. 14317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14318 done 14319IFS=$as_save_IFS 14320 14321 ;; 14322esac 14323# We did not find ourselves, most probably we were run as `sh COMMAND' 14324# in which case we are not to be found in the path. 14325if test "x$as_myself" = x; then 14326 as_myself=$0 14327fi 14328if test ! -f "$as_myself"; then 14329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14330 exit 1 14331fi 14332 14333# Unset variables that we do not need and which cause bugs (e.g. in 14334# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14335# suppresses any "Segmentation fault" message there. '((' could 14336# trigger a bug in pdksh 5.2.14. 14337for as_var in BASH_ENV ENV MAIL MAILPATH 14338do eval test x\${$as_var+set} = xset \ 14339 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14340done 14341PS1='$ ' 14342PS2='> ' 14343PS4='+ ' 14344 14345# NLS nuisances. 14346LC_ALL=C 14347export LC_ALL 14348LANGUAGE=C 14349export LANGUAGE 14350 14351# CDPATH. 14352(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14353 14354 14355# as_fn_error STATUS ERROR [LINENO LOG_FD] 14356# ---------------------------------------- 14357# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14358# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14359# script with STATUS, using 1 if that was 0. 14360as_fn_error () 14361{ 14362 as_status=$1; test $as_status -eq 0 && as_status=1 14363 if test "$4"; then 14364 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14366 fi 14367 $as_echo "$as_me: error: $2" >&2 14368 as_fn_exit $as_status 14369} # as_fn_error 14370 14371 14372# as_fn_set_status STATUS 14373# ----------------------- 14374# Set $? to STATUS, without forking. 14375as_fn_set_status () 14376{ 14377 return $1 14378} # as_fn_set_status 14379 14380# as_fn_exit STATUS 14381# ----------------- 14382# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14383as_fn_exit () 14384{ 14385 set +e 14386 as_fn_set_status $1 14387 exit $1 14388} # as_fn_exit 14389 14390# as_fn_unset VAR 14391# --------------- 14392# Portably unset VAR. 14393as_fn_unset () 14394{ 14395 { eval $1=; unset $1;} 14396} 14397as_unset=as_fn_unset 14398# as_fn_append VAR VALUE 14399# ---------------------- 14400# Append the text in VALUE to the end of the definition contained in VAR. Take 14401# advantage of any shell optimizations that allow amortized linear growth over 14402# repeated appends, instead of the typical quadratic growth present in naive 14403# implementations. 14404if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14405 eval 'as_fn_append () 14406 { 14407 eval $1+=\$2 14408 }' 14409else 14410 as_fn_append () 14411 { 14412 eval $1=\$$1\$2 14413 } 14414fi # as_fn_append 14415 14416# as_fn_arith ARG... 14417# ------------------ 14418# Perform arithmetic evaluation on the ARGs, and store the result in the 14419# global $as_val. Take advantage of shells that can avoid forks. The arguments 14420# must be portable across $(()) and expr. 14421if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14422 eval 'as_fn_arith () 14423 { 14424 as_val=$(( $* )) 14425 }' 14426else 14427 as_fn_arith () 14428 { 14429 as_val=`expr "$@" || test $? -eq 1` 14430 } 14431fi # as_fn_arith 14432 14433 14434if expr a : '\(a\)' >/dev/null 2>&1 && 14435 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14436 as_expr=expr 14437else 14438 as_expr=false 14439fi 14440 14441if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14442 as_basename=basename 14443else 14444 as_basename=false 14445fi 14446 14447if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14448 as_dirname=dirname 14449else 14450 as_dirname=false 14451fi 14452 14453as_me=`$as_basename -- "$0" || 14454$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14455 X"$0" : 'X\(//\)$' \| \ 14456 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14457$as_echo X/"$0" | 14458 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14459 s//\1/ 14460 q 14461 } 14462 /^X\/\(\/\/\)$/{ 14463 s//\1/ 14464 q 14465 } 14466 /^X\/\(\/\).*/{ 14467 s//\1/ 14468 q 14469 } 14470 s/.*/./; q'` 14471 14472# Avoid depending upon Character Ranges. 14473as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14475as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14476as_cr_digits='0123456789' 14477as_cr_alnum=$as_cr_Letters$as_cr_digits 14478 14479ECHO_C= ECHO_N= ECHO_T= 14480case `echo -n x` in #((((( 14481-n*) 14482 case `echo 'xy\c'` in 14483 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14484 xy) ECHO_C='\c';; 14485 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14486 ECHO_T=' ';; 14487 esac;; 14488*) 14489 ECHO_N='-n';; 14490esac 14491 14492rm -f conf$$ conf$$.exe conf$$.file 14493if test -d conf$$.dir; then 14494 rm -f conf$$.dir/conf$$.file 14495else 14496 rm -f conf$$.dir 14497 mkdir conf$$.dir 2>/dev/null 14498fi 14499if (echo >conf$$.file) 2>/dev/null; then 14500 if ln -s conf$$.file conf$$ 2>/dev/null; then 14501 as_ln_s='ln -s' 14502 # ... but there are two gotchas: 14503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14505 # In both cases, we have to default to `cp -pR'. 14506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14507 as_ln_s='cp -pR' 14508 elif ln conf$$.file conf$$ 2>/dev/null; then 14509 as_ln_s=ln 14510 else 14511 as_ln_s='cp -pR' 14512 fi 14513else 14514 as_ln_s='cp -pR' 14515fi 14516rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14517rmdir conf$$.dir 2>/dev/null 14518 14519 14520# as_fn_mkdir_p 14521# ------------- 14522# Create "$as_dir" as a directory, including parents if necessary. 14523as_fn_mkdir_p () 14524{ 14525 14526 case $as_dir in #( 14527 -*) as_dir=./$as_dir;; 14528 esac 14529 test -d "$as_dir" || eval $as_mkdir_p || { 14530 as_dirs= 14531 while :; do 14532 case $as_dir in #( 14533 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14534 *) as_qdir=$as_dir;; 14535 esac 14536 as_dirs="'$as_qdir' $as_dirs" 14537 as_dir=`$as_dirname -- "$as_dir" || 14538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14539 X"$as_dir" : 'X\(//\)[^/]' \| \ 14540 X"$as_dir" : 'X\(//\)$' \| \ 14541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14542$as_echo X"$as_dir" | 14543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14544 s//\1/ 14545 q 14546 } 14547 /^X\(\/\/\)[^/].*/{ 14548 s//\1/ 14549 q 14550 } 14551 /^X\(\/\/\)$/{ 14552 s//\1/ 14553 q 14554 } 14555 /^X\(\/\).*/{ 14556 s//\1/ 14557 q 14558 } 14559 s/.*/./; q'` 14560 test -d "$as_dir" && break 14561 done 14562 test -z "$as_dirs" || eval "mkdir $as_dirs" 14563 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14564 14565 14566} # as_fn_mkdir_p 14567if mkdir -p . 2>/dev/null; then 14568 as_mkdir_p='mkdir -p "$as_dir"' 14569else 14570 test -d ./-p && rmdir ./-p 14571 as_mkdir_p=false 14572fi 14573 14574 14575# as_fn_executable_p FILE 14576# ----------------------- 14577# Test if FILE is an executable regular file. 14578as_fn_executable_p () 14579{ 14580 test -f "$1" && test -x "$1" 14581} # as_fn_executable_p 14582as_test_x='test -x' 14583as_executable_p=as_fn_executable_p 14584 14585# Sed expression to map a string onto a valid CPP name. 14586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14587 14588# Sed expression to map a string onto a valid variable name. 14589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14590 14591 14592exec 6>&1 14593## ----------------------------------- ## 14594## Main body of $CONFIG_STATUS script. ## 14595## ----------------------------------- ## 14596_ASEOF 14597test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14598 14599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14600# Save the log message, to keep $0 and so on meaningful, and to 14601# report actual input values of CONFIG_FILES etc. instead of their 14602# values after options handling. 14603ac_log=" 14604This file was extended by $as_me, which was 14605generated by GNU Autoconf 2.69. Invocation command line was 14606 14607 CONFIG_FILES = $CONFIG_FILES 14608 CONFIG_HEADERS = $CONFIG_HEADERS 14609 CONFIG_LINKS = $CONFIG_LINKS 14610 CONFIG_COMMANDS = $CONFIG_COMMANDS 14611 $ $0 $@ 14612 14613on `(hostname || uname -n) 2>/dev/null | sed 1q` 14614" 14615 14616_ACEOF 14617 14618case $ac_config_files in *" 14619"*) set x $ac_config_files; shift; ac_config_files=$*;; 14620esac 14621 14622case $ac_config_headers in *" 14623"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14624esac 14625 14626 14627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14628# Files that config.status was made for. 14629config_files="$ac_config_files" 14630config_headers="$ac_config_headers" 14631 14632_ACEOF 14633 14634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14635ac_cs_usage="\ 14636\`$as_me' instantiates files and other configuration actions 14637from templates according to the current configuration. Unless the files 14638and actions are specified as TAGs, all are instantiated by default. 14639 14640Usage: $0 [OPTION]... [TAG]... 14641 14642 -h, --help print this help, then exit 14643 -V, --version print version number and configuration settings, then exit 14644 --config print configuration, then exit 14645 -q, --quiet, --silent 14646 do not print progress messages 14647 -d, --debug don't remove temporary files 14648 --recheck update $as_me by reconfiguring in the same conditions 14649 --file=FILE[:TEMPLATE] 14650 instantiate the configuration file FILE 14651 --header=FILE[:TEMPLATE] 14652 instantiate the configuration header FILE 14653 14654Configuration files: 14655$config_files 14656 14657Configuration headers: 14658$config_headers 14659 14660Report bugs to the package provider." 14661 14662_ACEOF 14663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14664ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14665ac_cs_version="\\ 14666config.status 14667configured by $0, generated by GNU Autoconf 2.69, 14668 with options \\"\$ac_cs_config\\" 14669 14670Copyright (C) 2012 Free Software Foundation, Inc. 14671This config.status script is free software; the Free Software Foundation 14672gives unlimited permission to copy, distribute and modify it." 14673 14674ac_pwd='$ac_pwd' 14675srcdir='$srcdir' 14676AWK='$AWK' 14677test -n "\$AWK" || AWK=awk 14678_ACEOF 14679 14680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14681# The default lists apply if the user does not specify any file. 14682ac_need_defaults=: 14683while test $# != 0 14684do 14685 case $1 in 14686 --*=?*) 14687 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14688 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14689 ac_shift=: 14690 ;; 14691 --*=) 14692 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14693 ac_optarg= 14694 ac_shift=: 14695 ;; 14696 *) 14697 ac_option=$1 14698 ac_optarg=$2 14699 ac_shift=shift 14700 ;; 14701 esac 14702 14703 case $ac_option in 14704 # Handling of the options. 14705 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14706 ac_cs_recheck=: ;; 14707 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14708 $as_echo "$ac_cs_version"; exit ;; 14709 --config | --confi | --conf | --con | --co | --c ) 14710 $as_echo "$ac_cs_config"; exit ;; 14711 --debug | --debu | --deb | --de | --d | -d ) 14712 debug=: ;; 14713 --file | --fil | --fi | --f ) 14714 $ac_shift 14715 case $ac_optarg in 14716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14717 '') as_fn_error $? "missing file argument" ;; 14718 esac 14719 as_fn_append CONFIG_FILES " '$ac_optarg'" 14720 ac_need_defaults=false;; 14721 --header | --heade | --head | --hea ) 14722 $ac_shift 14723 case $ac_optarg in 14724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14725 esac 14726 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14727 ac_need_defaults=false;; 14728 --he | --h) 14729 # Conflict between --help and --header 14730 as_fn_error $? "ambiguous option: \`$1' 14731Try \`$0 --help' for more information.";; 14732 --help | --hel | -h ) 14733 $as_echo "$ac_cs_usage"; exit ;; 14734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14735 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14736 ac_cs_silent=: ;; 14737 14738 # This is an error. 14739 -*) as_fn_error $? "unrecognized option: \`$1' 14740Try \`$0 --help' for more information." ;; 14741 14742 *) as_fn_append ac_config_targets " $1" 14743 ac_need_defaults=false ;; 14744 14745 esac 14746 shift 14747done 14748 14749ac_configure_extra_args= 14750 14751if $ac_cs_silent; then 14752 exec 6>/dev/null 14753 ac_configure_extra_args="$ac_configure_extra_args --silent" 14754fi 14755 14756_ACEOF 14757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14758if \$ac_cs_recheck; then 14759 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14760 shift 14761 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14762 CONFIG_SHELL='$SHELL' 14763 export CONFIG_SHELL 14764 exec "\$@" 14765fi 14766 14767_ACEOF 14768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14769exec 5>>auto/config.log 14770{ 14771 echo 14772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14773## Running $as_me. ## 14774_ASBOX 14775 $as_echo "$ac_log" 14776} >&5 14777 14778_ACEOF 14779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14780_ACEOF 14781 14782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14783 14784# Handling of arguments. 14785for ac_config_target in $ac_config_targets 14786do 14787 case $ac_config_target in 14788 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 14789 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 14790 14791 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14792 esac 14793done 14794 14795 14796# If the user did not use the arguments to specify the items to instantiate, 14797# then the envvar interface is used. Set only those that are not. 14798# We use the long form for the default assignment because of an extremely 14799# bizarre bug on SunOS 4.1.3. 14800if $ac_need_defaults; then 14801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14803fi 14804 14805# Have a temporary directory for convenience. Make it in the build tree 14806# simply because there is no reason against having it here, and in addition, 14807# creating and moving files from /tmp can sometimes cause problems. 14808# Hook for its removal unless debugging. 14809# Note that there is a small window in which the directory will not be cleaned: 14810# after its creation but before its name has been assigned to `$tmp'. 14811$debug || 14812{ 14813 tmp= ac_tmp= 14814 trap 'exit_status=$? 14815 : "${ac_tmp:=$tmp}" 14816 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14817' 0 14818 trap 'as_fn_exit 1' 1 2 13 15 14819} 14820# Create a (secure) tmp directory for tmp files. 14821 14822{ 14823 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14824 test -d "$tmp" 14825} || 14826{ 14827 tmp=./conf$$-$RANDOM 14828 (umask 077 && mkdir "$tmp") 14829} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14830ac_tmp=$tmp 14831 14832# Set up the scripts for CONFIG_FILES section. 14833# No need to generate them if there are no CONFIG_FILES. 14834# This happens for instance with `./config.status config.h'. 14835if test -n "$CONFIG_FILES"; then 14836 14837 14838ac_cr=`echo X | tr X '\015'` 14839# On cygwin, bash can eat \r inside `` if the user requested igncr. 14840# But we know of no other shell where ac_cr would be empty at this 14841# point, so we can use a bashism as a fallback. 14842if test "x$ac_cr" = x; then 14843 eval ac_cr=\$\'\\r\' 14844fi 14845ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14846if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14847 ac_cs_awk_cr='\\r' 14848else 14849 ac_cs_awk_cr=$ac_cr 14850fi 14851 14852echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14853_ACEOF 14854 14855 14856{ 14857 echo "cat >conf$$subs.awk <<_ACEOF" && 14858 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14859 echo "_ACEOF" 14860} >conf$$subs.sh || 14861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14862ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14863ac_delim='%!_!# ' 14864for ac_last_try in false false false false false :; do 14865 . ./conf$$subs.sh || 14866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14867 14868 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14869 if test $ac_delim_n = $ac_delim_num; then 14870 break 14871 elif $ac_last_try; then 14872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14873 else 14874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14875 fi 14876done 14877rm -f conf$$subs.sh 14878 14879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14880cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14881_ACEOF 14882sed -n ' 14883h 14884s/^/S["/; s/!.*/"]=/ 14885p 14886g 14887s/^[^!]*!// 14888:repl 14889t repl 14890s/'"$ac_delim"'$// 14891t delim 14892:nl 14893h 14894s/\(.\{148\}\)..*/\1/ 14895t more1 14896s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14897p 14898n 14899b repl 14900:more1 14901s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14902p 14903g 14904s/.\{148\}// 14905t nl 14906:delim 14907h 14908s/\(.\{148\}\)..*/\1/ 14909t more2 14910s/["\\]/\\&/g; s/^/"/; s/$/"/ 14911p 14912b 14913:more2 14914s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14915p 14916g 14917s/.\{148\}// 14918t delim 14919' <conf$$subs.awk | sed ' 14920/^[^""]/{ 14921 N 14922 s/\n// 14923} 14924' >>$CONFIG_STATUS || ac_write_fail=1 14925rm -f conf$$subs.awk 14926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14927_ACAWK 14928cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14929 for (key in S) S_is_set[key] = 1 14930 FS = "" 14931 14932} 14933{ 14934 line = $ 0 14935 nfields = split(line, field, "@") 14936 substed = 0 14937 len = length(field[1]) 14938 for (i = 2; i < nfields; i++) { 14939 key = field[i] 14940 keylen = length(key) 14941 if (S_is_set[key]) { 14942 value = S[key] 14943 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14944 len += length(value) + length(field[++i]) 14945 substed = 1 14946 } else 14947 len += 1 + keylen 14948 } 14949 14950 print line 14951} 14952 14953_ACAWK 14954_ACEOF 14955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14956if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14957 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14958else 14959 cat 14960fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14961 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14962_ACEOF 14963 14964# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14965# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14966# trailing colons and then remove the whole line if VPATH becomes empty 14967# (actually we leave an empty line to preserve line numbers). 14968if test "x$srcdir" = x.; then 14969 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14970h 14971s/// 14972s/^/:/ 14973s/[ ]*$/:/ 14974s/:\$(srcdir):/:/g 14975s/:\${srcdir}:/:/g 14976s/:@srcdir@:/:/g 14977s/^:*// 14978s/:*$// 14979x 14980s/\(=[ ]*\).*/\1/ 14981G 14982s/\n// 14983s/^[^=]*=[ ]*$// 14984}' 14985fi 14986 14987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14988fi # test -n "$CONFIG_FILES" 14989 14990# Set up the scripts for CONFIG_HEADERS section. 14991# No need to generate them if there are no CONFIG_HEADERS. 14992# This happens for instance with `./config.status Makefile'. 14993if test -n "$CONFIG_HEADERS"; then 14994cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14995BEGIN { 14996_ACEOF 14997 14998# Transform confdefs.h into an awk script `defines.awk', embedded as 14999# here-document in config.status, that substitutes the proper values into 15000# config.h.in to produce config.h. 15001 15002# Create a delimiter string that does not exist in confdefs.h, to ease 15003# handling of long lines. 15004ac_delim='%!_!# ' 15005for ac_last_try in false false :; do 15006 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15007 if test -z "$ac_tt"; then 15008 break 15009 elif $ac_last_try; then 15010 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15011 else 15012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15013 fi 15014done 15015 15016# For the awk script, D is an array of macro values keyed by name, 15017# likewise P contains macro parameters if any. Preserve backslash 15018# newline sequences. 15019 15020ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15021sed -n ' 15022s/.\{148\}/&'"$ac_delim"'/g 15023t rset 15024:rset 15025s/^[ ]*#[ ]*define[ ][ ]*/ / 15026t def 15027d 15028:def 15029s/\\$// 15030t bsnl 15031s/["\\]/\\&/g 15032s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15033D["\1"]=" \3"/p 15034s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15035d 15036:bsnl 15037s/["\\]/\\&/g 15038s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15039D["\1"]=" \3\\\\\\n"\\/p 15040t cont 15041s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15042t cont 15043d 15044:cont 15045n 15046s/.\{148\}/&'"$ac_delim"'/g 15047t clear 15048:clear 15049s/\\$// 15050t bsnlc 15051s/["\\]/\\&/g; s/^/"/; s/$/"/p 15052d 15053:bsnlc 15054s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15055b cont 15056' <confdefs.h | sed ' 15057s/'"$ac_delim"'/"\\\ 15058"/g' >>$CONFIG_STATUS || ac_write_fail=1 15059 15060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15061 for (key in D) D_is_set[key] = 1 15062 FS = "" 15063} 15064/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15065 line = \$ 0 15066 split(line, arg, " ") 15067 if (arg[1] == "#") { 15068 defundef = arg[2] 15069 mac1 = arg[3] 15070 } else { 15071 defundef = substr(arg[1], 2) 15072 mac1 = arg[2] 15073 } 15074 split(mac1, mac2, "(") #) 15075 macro = mac2[1] 15076 prefix = substr(line, 1, index(line, defundef) - 1) 15077 if (D_is_set[macro]) { 15078 # Preserve the white space surrounding the "#". 15079 print prefix "define", macro P[macro] D[macro] 15080 next 15081 } else { 15082 # Replace #undef with comments. This is necessary, for example, 15083 # in the case of _POSIX_SOURCE, which is predefined and required 15084 # on some systems where configure will not decide to define it. 15085 if (defundef == "undef") { 15086 print "/*", prefix defundef, macro, "*/" 15087 next 15088 } 15089 } 15090} 15091{ print } 15092_ACAWK 15093_ACEOF 15094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15095 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15096fi # test -n "$CONFIG_HEADERS" 15097 15098 15099eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15100shift 15101for ac_tag 15102do 15103 case $ac_tag in 15104 :[FHLC]) ac_mode=$ac_tag; continue;; 15105 esac 15106 case $ac_mode$ac_tag in 15107 :[FHL]*:*);; 15108 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15109 :[FH]-) ac_tag=-:-;; 15110 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15111 esac 15112 ac_save_IFS=$IFS 15113 IFS=: 15114 set x $ac_tag 15115 IFS=$ac_save_IFS 15116 shift 15117 ac_file=$1 15118 shift 15119 15120 case $ac_mode in 15121 :L) ac_source=$1;; 15122 :[FH]) 15123 ac_file_inputs= 15124 for ac_f 15125 do 15126 case $ac_f in 15127 -) ac_f="$ac_tmp/stdin";; 15128 *) # Look for the file first in the build tree, then in the source tree 15129 # (if the path is not absolute). The absolute path cannot be DOS-style, 15130 # because $ac_f cannot contain `:'. 15131 test -f "$ac_f" || 15132 case $ac_f in 15133 [\\/$]*) false;; 15134 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15135 esac || 15136 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15137 esac 15138 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15139 as_fn_append ac_file_inputs " '$ac_f'" 15140 done 15141 15142 # Let's still pretend it is `configure' which instantiates (i.e., don't 15143 # use $as_me), people would be surprised to read: 15144 # /* config.h. Generated by config.status. */ 15145 configure_input='Generated from '` 15146 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15147 `' by configure.' 15148 if test x"$ac_file" != x-; then 15149 configure_input="$ac_file. $configure_input" 15150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15151$as_echo "$as_me: creating $ac_file" >&6;} 15152 fi 15153 # Neutralize special characters interpreted by sed in replacement strings. 15154 case $configure_input in #( 15155 *\&* | *\|* | *\\* ) 15156 ac_sed_conf_input=`$as_echo "$configure_input" | 15157 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15158 *) ac_sed_conf_input=$configure_input;; 15159 esac 15160 15161 case $ac_tag in 15162 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15164 esac 15165 ;; 15166 esac 15167 15168 ac_dir=`$as_dirname -- "$ac_file" || 15169$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15170 X"$ac_file" : 'X\(//\)[^/]' \| \ 15171 X"$ac_file" : 'X\(//\)$' \| \ 15172 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15173$as_echo X"$ac_file" | 15174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15175 s//\1/ 15176 q 15177 } 15178 /^X\(\/\/\)[^/].*/{ 15179 s//\1/ 15180 q 15181 } 15182 /^X\(\/\/\)$/{ 15183 s//\1/ 15184 q 15185 } 15186 /^X\(\/\).*/{ 15187 s//\1/ 15188 q 15189 } 15190 s/.*/./; q'` 15191 as_dir="$ac_dir"; as_fn_mkdir_p 15192 ac_builddir=. 15193 15194case "$ac_dir" in 15195.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15196*) 15197 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15198 # A ".." for each directory in $ac_dir_suffix. 15199 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15200 case $ac_top_builddir_sub in 15201 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15202 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15203 esac ;; 15204esac 15205ac_abs_top_builddir=$ac_pwd 15206ac_abs_builddir=$ac_pwd$ac_dir_suffix 15207# for backward compatibility: 15208ac_top_builddir=$ac_top_build_prefix 15209 15210case $srcdir in 15211 .) # We are building in place. 15212 ac_srcdir=. 15213 ac_top_srcdir=$ac_top_builddir_sub 15214 ac_abs_top_srcdir=$ac_pwd ;; 15215 [\\/]* | ?:[\\/]* ) # Absolute name. 15216 ac_srcdir=$srcdir$ac_dir_suffix; 15217 ac_top_srcdir=$srcdir 15218 ac_abs_top_srcdir=$srcdir ;; 15219 *) # Relative name. 15220 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15221 ac_top_srcdir=$ac_top_build_prefix$srcdir 15222 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15223esac 15224ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15225 15226 15227 case $ac_mode in 15228 :F) 15229 # 15230 # CONFIG_FILE 15231 # 15232 15233_ACEOF 15234 15235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15236# If the template does not know about datarootdir, expand it. 15237# FIXME: This hack should be removed a few years after 2.60. 15238ac_datarootdir_hack=; ac_datarootdir_seen= 15239ac_sed_dataroot=' 15240/datarootdir/ { 15241 p 15242 q 15243} 15244/@datadir@/p 15245/@docdir@/p 15246/@infodir@/p 15247/@localedir@/p 15248/@mandir@/p' 15249case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15250*datarootdir*) ac_datarootdir_seen=yes;; 15251*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15253$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15254_ACEOF 15255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15256 ac_datarootdir_hack=' 15257 s&@datadir@&$datadir&g 15258 s&@docdir@&$docdir&g 15259 s&@infodir@&$infodir&g 15260 s&@localedir@&$localedir&g 15261 s&@mandir@&$mandir&g 15262 s&\\\${datarootdir}&$datarootdir&g' ;; 15263esac 15264_ACEOF 15265 15266# Neutralize VPATH when `$srcdir' = `.'. 15267# Shell code in configure.ac might set extrasub. 15268# FIXME: do we really want to maintain this feature? 15269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15270ac_sed_extra="$ac_vpsub 15271$extrasub 15272_ACEOF 15273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15274:t 15275/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15276s|@configure_input@|$ac_sed_conf_input|;t t 15277s&@top_builddir@&$ac_top_builddir_sub&;t t 15278s&@top_build_prefix@&$ac_top_build_prefix&;t t 15279s&@srcdir@&$ac_srcdir&;t t 15280s&@abs_srcdir@&$ac_abs_srcdir&;t t 15281s&@top_srcdir@&$ac_top_srcdir&;t t 15282s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15283s&@builddir@&$ac_builddir&;t t 15284s&@abs_builddir@&$ac_abs_builddir&;t t 15285s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15286$ac_datarootdir_hack 15287" 15288eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15289 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15290 15291test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15292 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15293 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15294 "$ac_tmp/out"`; test -z "$ac_out"; } && 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15296which seems to be undefined. Please make sure it is defined" >&5 15297$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15298which seems to be undefined. Please make sure it is defined" >&2;} 15299 15300 rm -f "$ac_tmp/stdin" 15301 case $ac_file in 15302 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15303 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15304 esac \ 15305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15306 ;; 15307 :H) 15308 # 15309 # CONFIG_HEADER 15310 # 15311 if test x"$ac_file" != x-; then 15312 { 15313 $as_echo "/* $configure_input */" \ 15314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15315 } >"$ac_tmp/config.h" \ 15316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15317 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15319$as_echo "$as_me: $ac_file is unchanged" >&6;} 15320 else 15321 rm -f "$ac_file" 15322 mv "$ac_tmp/config.h" "$ac_file" \ 15323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15324 fi 15325 else 15326 $as_echo "/* $configure_input */" \ 15327 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15328 || as_fn_error $? "could not create -" "$LINENO" 5 15329 fi 15330 ;; 15331 15332 15333 esac 15334 15335done # for ac_tag 15336 15337 15338as_fn_exit 0 15339_ACEOF 15340ac_clean_files=$ac_clean_files_save 15341 15342test $ac_write_fail = 0 || 15343 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15344 15345 15346# configure is writing to config.log, and then calls config.status. 15347# config.status does its own redirection, appending to config.log. 15348# Unfortunately, on DOS this fails, as config.log is still kept open 15349# by configure, so config.status won't be able to write to it; its 15350# output is simply discarded. So we exec the FD to /dev/null, 15351# effectively closing config.log, so it can be properly (re)opened and 15352# appended to by config.status. When coming back to configure, we 15353# need to make the FD available again. 15354if test "$no_create" != yes; then 15355 ac_cs_success=: 15356 ac_config_status_args= 15357 test "$silent" = yes && 15358 ac_config_status_args="$ac_config_status_args --quiet" 15359 exec 5>/dev/null 15360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15361 exec 5>>auto/config.log 15362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15363 # would make configure fail if this is the last instruction. 15364 $ac_cs_success || as_fn_exit 1 15365fi 15366if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15368$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15369fi 15370 15371 15372