1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="vim.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624LINK_AS_NEEDED 625DEPEND_CFLAGS_FILTER 626MAKEMO 627MSGFMT 628INSTALL_TOOL_LANGS 629INSTALL_LANGS 630TAGPRG 631HANGULIN_OBJ 632HANGULIN_SRC 633GUI_X_LIBS 634GUITYPE 635GUI_LIB_LOC 636GUI_INC_LOC 637NARROW_PROTO 638MOTIF_LIBNAME 639GRESOURCE_OBJ 640GRESOURCE_SRC 641UPDATE_DESKTOP_DATABASE 642GTK_UPDATE_ICON_CACHE 643GLIB_COMPILE_RESOURCES 644GNOME_INCLUDEDIR 645GNOME_LIBDIR 646GNOME_LIBS 647GTK_LIBNAME 648GTK_LIBS 649GTK_CFLAGS 650PKG_CONFIG 651X_LIB 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657xmkmfpath 658TERM_OBJ 659TERM_SRC 660CHANNEL_OBJ 661CHANNEL_SRC 662NETBEANS_OBJ 663NETBEANS_SRC 664WORKSHOP_OBJ 665WORKSHOP_SRC 666RUBY_LIBS 667RUBY_CFLAGS 668RUBY_PRO 669RUBY_OBJ 670RUBY_SRC 671vi_cv_path_ruby 672TCL_LIBS 673TCL_CFLAGS 674TCL_PRO 675TCL_OBJ 676TCL_SRC 677vi_cv_path_tcl 678PYTHON3_OBJ 679PYTHON3_SRC 680PYTHON3_CFLAGS 681PYTHON3_LIBS 682PYTHON3_CONFDIR 683vi_cv_path_python3 684PYTHON_OBJ 685PYTHON_SRC 686PYTHON_CFLAGS 687PYTHON_GETPATH_CFLAGS 688PYTHON_LIBS 689PYTHON_CONFDIR 690vi_cv_path_python 691PERL_LIBS 692PERL_CFLAGS 693PERL_PRO 694PERL_OBJ 695PERL_SRC 696shrpenv 697vi_cv_perl_xsubpp 698vi_cv_perllib 699vi_cv_path_perl 700MZSCHEME_MZC 701MZSCHEME_EXTRA 702MZSCHEME_CFLAGS 703MZSCHEME_LIBS 704MZSCHEME_PRO 705MZSCHEME_OBJ 706MZSCHEME_SRC 707vi_cv_path_mzscheme 708LUA_CFLAGS 709LUA_LIBS 710LUA_PRO 711LUA_OBJ 712LUA_SRC 713vi_cv_path_plain_lua 714vi_cv_path_luajit 715vi_cv_path_lua 716compiledby 717dogvimdiff 718dovimdiff 719QUOTESED 720line_break 721VIEWNAME 722EXNAME 723VIMNAME 724OS_EXTRA_OBJ 725OS_EXTRA_SRC 726XCODE_SELECT 727CPP_MM 728CROSS_COMPILING 729STRIP 730AWK 731FGREP 732EGREP 733GREP 734CPP 735OBJEXT 736EXEEXT 737ac_ct_CC 738CPPFLAGS 739LDFLAGS 740CFLAGS 741CC 742SET_MAKE 743target_alias 744host_alias 745build_alias 746LIBS 747ECHO_T 748ECHO_N 749ECHO_C 750DEFS 751mandir 752localedir 753libdir 754psdir 755pdfdir 756dvidir 757htmldir 758infodir 759docdir 760oldincludedir 761includedir 762runstatedir 763localstatedir 764sharedstatedir 765sysconfdir 766datadir 767datarootdir 768libexecdir 769sbindir 770bindir 771program_transform_name 772prefix 773exec_prefix 774PACKAGE_URL 775PACKAGE_BUGREPORT 776PACKAGE_STRING 777PACKAGE_VERSION 778PACKAGE_TARNAME 779PACKAGE_NAME 780PATH_SEPARATOR 781SHELL' 782ac_subst_files='' 783ac_user_opts=' 784enable_option_checking 785enable_fail_if_missing 786enable_darwin 787with_mac_arch 788with_developer_dir 789with_local_dir 790with_vim_name 791with_ex_name 792with_view_name 793with_global_runtime 794with_modified_by 795enable_smack 796enable_selinux 797with_features 798with_compiledby 799enable_xsmp 800enable_xsmp_interact 801enable_luainterp 802with_lua_prefix 803with_luajit 804enable_mzschemeinterp 805with_plthome 806enable_perlinterp 807enable_pythoninterp 808with_python_config_dir 809enable_python3interp 810with_python3_config_dir 811enable_tclinterp 812with_tclsh 813enable_rubyinterp 814with_ruby_command 815enable_cscope 816enable_workshop 817enable_netbeans 818enable_channel 819enable_terminal 820enable_autoservername 821enable_multibyte 822enable_hangulinput 823enable_xim 824enable_fontset 825with_x 826enable_gui 827enable_gtk2_check 828enable_gnome_check 829enable_gtk3_check 830enable_motif_check 831enable_athena_check 832enable_nextaw_check 833enable_carbon_check 834enable_gtktest 835with_gnome_includes 836with_gnome_libs 837with_gnome 838enable_icon_cache_update 839enable_desktop_database_update 840with_motif_lib 841with_tlib 842enable_largefile 843enable_acl 844enable_gpm 845enable_sysmouse 846enable_nls 847' 848 ac_precious_vars='build_alias 849host_alias 850target_alias 851CC 852CFLAGS 853LDFLAGS 854LIBS 855CPPFLAGS 856CPP 857XMKMF' 858 859 860# Initialize some variables set by options. 861ac_init_help= 862ac_init_version=false 863ac_unrecognized_opts= 864ac_unrecognized_sep= 865# The variables have the same names as the options, with 866# dashes changed to underlines. 867cache_file=/dev/null 868exec_prefix=NONE 869no_create= 870no_recursion= 871prefix=NONE 872program_prefix=NONE 873program_suffix=NONE 874program_transform_name=s,x,x, 875silent= 876site= 877srcdir= 878verbose= 879x_includes=NONE 880x_libraries=NONE 881 882# Installation directory options. 883# These are left unexpanded so users can "make install exec_prefix=/foo" 884# and all the variables that are supposed to be based on exec_prefix 885# by default will actually change. 886# Use braces instead of parens because sh, perl, etc. also accept them. 887# (The list follows the same order as the GNU Coding Standards.) 888bindir='${exec_prefix}/bin' 889sbindir='${exec_prefix}/sbin' 890libexecdir='${exec_prefix}/libexec' 891datarootdir='${prefix}/share' 892datadir='${datarootdir}' 893sysconfdir='${prefix}/etc' 894sharedstatedir='${prefix}/com' 895localstatedir='${prefix}/var' 896runstatedir='${localstatedir}/run' 897includedir='${prefix}/include' 898oldincludedir='/usr/include' 899docdir='${datarootdir}/doc/${PACKAGE}' 900infodir='${datarootdir}/info' 901htmldir='${docdir}' 902dvidir='${docdir}' 903pdfdir='${docdir}' 904psdir='${docdir}' 905libdir='${exec_prefix}/lib' 906localedir='${datarootdir}/locale' 907mandir='${datarootdir}/man' 908 909ac_prev= 910ac_dashdash= 911for ac_option 912do 913 # If the previous option needs an argument, assign it. 914 if test -n "$ac_prev"; then 915 eval $ac_prev=\$ac_option 916 ac_prev= 917 continue 918 fi 919 920 case $ac_option in 921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 922 *=) ac_optarg= ;; 923 *) ac_optarg=yes ;; 924 esac 925 926 # Accept the important Cygnus configure options, so we can diagnose typos. 927 928 case $ac_dashdash$ac_option in 929 --) 930 ac_dashdash=yes ;; 931 932 -bindir | --bindir | --bindi | --bind | --bin | --bi) 933 ac_prev=bindir ;; 934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 935 bindir=$ac_optarg ;; 936 937 -build | --build | --buil | --bui | --bu) 938 ac_prev=build_alias ;; 939 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 940 build_alias=$ac_optarg ;; 941 942 -cache-file | --cache-file | --cache-fil | --cache-fi \ 943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 944 ac_prev=cache_file ;; 945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 947 cache_file=$ac_optarg ;; 948 949 --config-cache | -C) 950 cache_file=config.cache ;; 951 952 -datadir | --datadir | --datadi | --datad) 953 ac_prev=datadir ;; 954 -datadir=* | --datadir=* | --datadi=* | --datad=*) 955 datadir=$ac_optarg ;; 956 957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 958 | --dataroo | --dataro | --datar) 959 ac_prev=datarootdir ;; 960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 962 datarootdir=$ac_optarg ;; 963 964 -disable-* | --disable-*) 965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 966 # Reject names that are not valid shell variable names. 967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 968 as_fn_error $? "invalid feature name: $ac_useropt" 969 ac_useropt_orig=$ac_useropt 970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 971 case $ac_user_opts in 972 *" 973"enable_$ac_useropt" 974"*) ;; 975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 976 ac_unrecognized_sep=', ';; 977 esac 978 eval enable_$ac_useropt=no ;; 979 980 -docdir | --docdir | --docdi | --doc | --do) 981 ac_prev=docdir ;; 982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 983 docdir=$ac_optarg ;; 984 985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 986 ac_prev=dvidir ;; 987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 988 dvidir=$ac_optarg ;; 989 990 -enable-* | --enable-*) 991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 992 # Reject names that are not valid shell variable names. 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 994 as_fn_error $? "invalid feature name: $ac_useropt" 995 ac_useropt_orig=$ac_useropt 996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 997 case $ac_user_opts in 998 *" 999"enable_$ac_useropt" 1000"*) ;; 1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1002 ac_unrecognized_sep=', ';; 1003 esac 1004 eval enable_$ac_useropt=\$ac_optarg ;; 1005 1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1008 | --exec | --exe | --ex) 1009 ac_prev=exec_prefix ;; 1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1012 | --exec=* | --exe=* | --ex=*) 1013 exec_prefix=$ac_optarg ;; 1014 1015 -gas | --gas | --ga | --g) 1016 # Obsolete; use --with-gas. 1017 with_gas=yes ;; 1018 1019 -help | --help | --hel | --he | -h) 1020 ac_init_help=long ;; 1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1022 ac_init_help=recursive ;; 1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1024 ac_init_help=short ;; 1025 1026 -host | --host | --hos | --ho) 1027 ac_prev=host_alias ;; 1028 -host=* | --host=* | --hos=* | --ho=*) 1029 host_alias=$ac_optarg ;; 1030 1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1032 ac_prev=htmldir ;; 1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1034 | --ht=*) 1035 htmldir=$ac_optarg ;; 1036 1037 -includedir | --includedir | --includedi | --included | --include \ 1038 | --includ | --inclu | --incl | --inc) 1039 ac_prev=includedir ;; 1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1041 | --includ=* | --inclu=* | --incl=* | --inc=*) 1042 includedir=$ac_optarg ;; 1043 1044 -infodir | --infodir | --infodi | --infod | --info | --inf) 1045 ac_prev=infodir ;; 1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1047 infodir=$ac_optarg ;; 1048 1049 -libdir | --libdir | --libdi | --libd) 1050 ac_prev=libdir ;; 1051 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1052 libdir=$ac_optarg ;; 1053 1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1055 | --libexe | --libex | --libe) 1056 ac_prev=libexecdir ;; 1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1058 | --libexe=* | --libex=* | --libe=*) 1059 libexecdir=$ac_optarg ;; 1060 1061 -localedir | --localedir | --localedi | --localed | --locale) 1062 ac_prev=localedir ;; 1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1064 localedir=$ac_optarg ;; 1065 1066 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1067 | --localstate | --localstat | --localsta | --localst | --locals) 1068 ac_prev=localstatedir ;; 1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1071 localstatedir=$ac_optarg ;; 1072 1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1074 ac_prev=mandir ;; 1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1076 mandir=$ac_optarg ;; 1077 1078 -nfp | --nfp | --nf) 1079 # Obsolete; use --without-fp. 1080 with_fp=no ;; 1081 1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1083 | --no-cr | --no-c | -n) 1084 no_create=yes ;; 1085 1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1088 no_recursion=yes ;; 1089 1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1092 | --oldin | --oldi | --old | --ol | --o) 1093 ac_prev=oldincludedir ;; 1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1097 oldincludedir=$ac_optarg ;; 1098 1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1100 ac_prev=prefix ;; 1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1102 prefix=$ac_optarg ;; 1103 1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1105 | --program-pre | --program-pr | --program-p) 1106 ac_prev=program_prefix ;; 1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1109 program_prefix=$ac_optarg ;; 1110 1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1112 | --program-suf | --program-su | --program-s) 1113 ac_prev=program_suffix ;; 1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1116 program_suffix=$ac_optarg ;; 1117 1118 -program-transform-name | --program-transform-name \ 1119 | --program-transform-nam | --program-transform-na \ 1120 | --program-transform-n | --program-transform- \ 1121 | --program-transform | --program-transfor \ 1122 | --program-transfo | --program-transf \ 1123 | --program-trans | --program-tran \ 1124 | --progr-tra | --program-tr | --program-t) 1125 ac_prev=program_transform_name ;; 1126 -program-transform-name=* | --program-transform-name=* \ 1127 | --program-transform-nam=* | --program-transform-na=* \ 1128 | --program-transform-n=* | --program-transform-=* \ 1129 | --program-transform=* | --program-transfor=* \ 1130 | --program-transfo=* | --program-transf=* \ 1131 | --program-trans=* | --program-tran=* \ 1132 | --progr-tra=* | --program-tr=* | --program-t=*) 1133 program_transform_name=$ac_optarg ;; 1134 1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1136 ac_prev=pdfdir ;; 1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1138 pdfdir=$ac_optarg ;; 1139 1140 -psdir | --psdir | --psdi | --psd | --ps) 1141 ac_prev=psdir ;; 1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1143 psdir=$ac_optarg ;; 1144 1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1146 | -silent | --silent | --silen | --sile | --sil) 1147 silent=yes ;; 1148 1149 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1150 | --runstate | --runstat | --runsta | --runst | --runs \ 1151 | --run | --ru | --r) 1152 ac_prev=runstatedir ;; 1153 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1154 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1155 | --run=* | --ru=* | --r=*) 1156 runstatedir=$ac_optarg ;; 1157 1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1159 ac_prev=sbindir ;; 1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1161 | --sbi=* | --sb=*) 1162 sbindir=$ac_optarg ;; 1163 1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1166 | --sharedst | --shareds | --shared | --share | --shar \ 1167 | --sha | --sh) 1168 ac_prev=sharedstatedir ;; 1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1172 | --sha=* | --sh=*) 1173 sharedstatedir=$ac_optarg ;; 1174 1175 -site | --site | --sit) 1176 ac_prev=site ;; 1177 -site=* | --site=* | --sit=*) 1178 site=$ac_optarg ;; 1179 1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1181 ac_prev=srcdir ;; 1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1183 srcdir=$ac_optarg ;; 1184 1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1186 | --syscon | --sysco | --sysc | --sys | --sy) 1187 ac_prev=sysconfdir ;; 1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1190 sysconfdir=$ac_optarg ;; 1191 1192 -target | --target | --targe | --targ | --tar | --ta | --t) 1193 ac_prev=target_alias ;; 1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1195 target_alias=$ac_optarg ;; 1196 1197 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1198 verbose=yes ;; 1199 1200 -version | --version | --versio | --versi | --vers | -V) 1201 ac_init_version=: ;; 1202 1203 -with-* | --with-*) 1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1205 # Reject names that are not valid shell variable names. 1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1207 as_fn_error $? "invalid package name: $ac_useropt" 1208 ac_useropt_orig=$ac_useropt 1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1210 case $ac_user_opts in 1211 *" 1212"with_$ac_useropt" 1213"*) ;; 1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1215 ac_unrecognized_sep=', ';; 1216 esac 1217 eval with_$ac_useropt=\$ac_optarg ;; 1218 1219 -without-* | --without-*) 1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1221 # Reject names that are not valid shell variable names. 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1223 as_fn_error $? "invalid package name: $ac_useropt" 1224 ac_useropt_orig=$ac_useropt 1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1226 case $ac_user_opts in 1227 *" 1228"with_$ac_useropt" 1229"*) ;; 1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1231 ac_unrecognized_sep=', ';; 1232 esac 1233 eval with_$ac_useropt=no ;; 1234 1235 --x) 1236 # Obsolete; use --with-x. 1237 with_x=yes ;; 1238 1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1240 | --x-incl | --x-inc | --x-in | --x-i) 1241 ac_prev=x_includes ;; 1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1244 x_includes=$ac_optarg ;; 1245 1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1248 ac_prev=x_libraries ;; 1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1251 x_libraries=$ac_optarg ;; 1252 1253 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1254Try \`$0 --help' for more information" 1255 ;; 1256 1257 *=*) 1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1259 # Reject names that are not valid shell variable names. 1260 case $ac_envvar in #( 1261 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1262 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1263 esac 1264 eval $ac_envvar=\$ac_optarg 1265 export $ac_envvar ;; 1266 1267 *) 1268 # FIXME: should be removed in autoconf 3.0. 1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1273 ;; 1274 1275 esac 1276done 1277 1278if test -n "$ac_prev"; then 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1280 as_fn_error $? "missing argument to $ac_option" 1281fi 1282 1283if test -n "$ac_unrecognized_opts"; then 1284 case $enable_option_checking in 1285 no) ;; 1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1288 esac 1289fi 1290 1291# Check all directory arguments for consistency. 1292for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1293 datadir sysconfdir sharedstatedir localstatedir includedir \ 1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1295 libdir localedir mandir runstatedir 1296do 1297 eval ac_val=\$$ac_var 1298 # Remove trailing slashes. 1299 case $ac_val in 1300 */ ) 1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1302 eval $ac_var=\$ac_val;; 1303 esac 1304 # Be sure to have absolute directory names. 1305 case $ac_val in 1306 [\\/$]* | ?:[\\/]* ) continue;; 1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1308 esac 1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1310done 1311 1312# There might be people who depend on the old broken behavior: `$host' 1313# used to hold the argument of --host etc. 1314# FIXME: To remove some day. 1315build=$build_alias 1316host=$host_alias 1317target=$target_alias 1318 1319# FIXME: To remove some day. 1320if test "x$host_alias" != x; then 1321 if test "x$build_alias" = x; then 1322 cross_compiling=maybe 1323 elif test "x$build_alias" != "x$host_alias"; then 1324 cross_compiling=yes 1325 fi 1326fi 1327 1328ac_tool_prefix= 1329test -n "$host_alias" && ac_tool_prefix=$host_alias- 1330 1331test "$silent" = yes && exec 6>/dev/null 1332 1333 1334ac_pwd=`pwd` && test -n "$ac_pwd" && 1335ac_ls_di=`ls -di .` && 1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1337 as_fn_error $? "working directory cannot be determined" 1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1339 as_fn_error $? "pwd does not report name of working directory" 1340 1341 1342# Find the source files, if location was not specified. 1343if test -z "$srcdir"; then 1344 ac_srcdir_defaulted=yes 1345 # Try the directory containing this script, then the parent directory. 1346 ac_confdir=`$as_dirname -- "$as_myself" || 1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1348 X"$as_myself" : 'X\(//\)[^/]' \| \ 1349 X"$as_myself" : 'X\(//\)$' \| \ 1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1351$as_echo X"$as_myself" | 1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)[^/].*/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)$/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\).*/{ 1365 s//\1/ 1366 q 1367 } 1368 s/.*/./; q'` 1369 srcdir=$ac_confdir 1370 if test ! -r "$srcdir/$ac_unique_file"; then 1371 srcdir=.. 1372 fi 1373else 1374 ac_srcdir_defaulted=no 1375fi 1376if test ! -r "$srcdir/$ac_unique_file"; then 1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1379fi 1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1381ac_abs_confdir=`( 1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1383 pwd)` 1384# When building in place, set srcdir=. 1385if test "$ac_abs_confdir" = "$ac_pwd"; then 1386 srcdir=. 1387fi 1388# Remove unnecessary trailing slashes from srcdir. 1389# Double slashes in file names in object file debugging info 1390# mess up M-x gdb in Emacs. 1391case $srcdir in 1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1393esac 1394for ac_var in $ac_precious_vars; do 1395 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_env_${ac_var}_value=\$${ac_var} 1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1399done 1400 1401# 1402# Report the --help message. 1403# 1404if test "$ac_init_help" = "long"; then 1405 # Omit some internal or obsolete options to make the list less imposing. 1406 # This message is too long to be a string in the A/UX 3.1 sh. 1407 cat <<_ACEOF 1408\`configure' configures this package to adapt to many kinds of systems. 1409 1410Usage: $0 [OPTION]... [VAR=VALUE]... 1411 1412To assign environment variables (e.g., CC, CFLAGS...), specify them as 1413VAR=VALUE. See below for descriptions of some of the useful variables. 1414 1415Defaults for the options are specified in brackets. 1416 1417Configuration: 1418 -h, --help display this help and exit 1419 --help=short display options specific to this package 1420 --help=recursive display the short help of all the included packages 1421 -V, --version display version information and exit 1422 -q, --quiet, --silent do not print \`checking ...' messages 1423 --cache-file=FILE cache test results in FILE [disabled] 1424 -C, --config-cache alias for \`--cache-file=config.cache' 1425 -n, --no-create do not create output files 1426 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1427 1428Installation directories: 1429 --prefix=PREFIX install architecture-independent files in PREFIX 1430 [$ac_default_prefix] 1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1432 [PREFIX] 1433 1434By default, \`make install' will install all the files in 1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1436an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1437for instance \`--prefix=\$HOME'. 1438 1439For better control, use the options below. 1440 1441Fine tuning of the installation directories: 1442 --bindir=DIR user executables [EPREFIX/bin] 1443 --sbindir=DIR system admin executables [EPREFIX/sbin] 1444 --libexecdir=DIR program executables [EPREFIX/libexec] 1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1448 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1449 --libdir=DIR object code libraries [EPREFIX/lib] 1450 --includedir=DIR C header files [PREFIX/include] 1451 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1454 --infodir=DIR info documentation [DATAROOTDIR/info] 1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1456 --mandir=DIR man documentation [DATAROOTDIR/man] 1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466X features: 1467 --x-includes=DIR X include files are in DIR 1468 --x-libraries=DIR X library files are in DIR 1469_ACEOF 1470fi 1471 1472if test -n "$ac_init_help"; then 1473 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-fail-if-missing Fail if dependencies on additional features 1481 specified on the command line are missing. 1482 --disable-darwin Disable Darwin (Mac OS X) support. 1483 --disable-smack Do not check for Smack support. 1484 --disable-selinux Do not check for SELinux support. 1485 --disable-xsmp Disable XSMP session management 1486 --disable-xsmp-interact Disable XSMP interaction 1487 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1488 --enable-mzschemeinterp Include MzScheme interpreter. 1489 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1490 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1491 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1492 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1493 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1494 --enable-cscope Include cscope interface. 1495 --enable-workshop Include Sun Visual Workshop support. 1496 --disable-netbeans Disable NetBeans integration support. 1497 --disable-channel Disable process communication support. 1498 --enable-terminal Enable terminal emulation support. 1499 --enable-autoservername Automatically define servername at vim startup. 1500 --enable-multibyte Include multibyte editing support. 1501 --enable-hangulinput Include Hangul input support. 1502 --enable-xim Include XIM input support. 1503 --enable-fontset Include X fontset output support. 1504 --enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1505 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1506 --enable-gnome-check If GTK GUI, check for GNOME default=no 1507 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1508 --enable-motif-check If auto-select GUI, check for Motif default=yes 1509 --enable-athena-check If auto-select GUI, check for Athena default=yes 1510 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1511 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1512 --disable-gtktest Do not try to compile and run a test GTK program 1513 --disable-icon-cache-update update disabled 1514 --disable-desktop-database-update update disabled 1515 --disable-largefile omit support for large files 1516 --disable-acl No check for ACL support. 1517 --disable-gpm Don't use gpm (Linux mouse daemon). 1518 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1519 --disable-nls Don't support NLS (gettext()). 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-mac-arch=ARCH current, intel, ppc or both 1525 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1526 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1527 --without-local-dir do not search /usr/local for local libraries. 1528 --with-vim-name=NAME what to call the Vim executable 1529 --with-ex-name=NAME what to call the Ex executable 1530 --with-view-name=NAME what to call the View executable 1531 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1532 --with-modified-by=NAME name of who modified a release version 1533 --with-features=TYPE tiny, small, normal, big or huge (default: huge) 1534 --with-compiledby=NAME name to show in :version message 1535 --with-lua-prefix=PFX Prefix where Lua is installed. 1536 --with-luajit Link with LuaJIT instead of Lua. 1537 --with-plthome=PLTHOME Use PLTHOME. 1538 --with-python-config-dir=PATH Python's config directory 1539 --with-python3-config-dir=PATH Python's config directory 1540 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1541 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1542 --with-x use the X Window System 1543 --with-gnome-includes=DIR Specify location of GNOME headers 1544 --with-gnome-libs=DIR Specify location of GNOME libs 1545 --with-gnome Specify prefix for GNOME files 1546 --with-motif-lib=STRING Library for Motif 1547 --with-tlib=library terminal library to be used 1548 1549Some influential environment variables: 1550 CC C compiler command 1551 CFLAGS C compiler flags 1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1553 nonstandard directory <lib dir> 1554 LIBS libraries to pass to the linker, e.g. -l<library> 1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1556 you have headers in a nonstandard directory <include dir> 1557 CPP C preprocessor 1558 XMKMF Path to xmkmf, Makefile generator for X Window System 1559 1560Use these variables to override the choices made by `configure' or to help 1561it to find libraries and programs with nonstandard names/locations. 1562 1563Report bugs to the package provider. 1564_ACEOF 1565ac_status=$? 1566fi 1567 1568if test "$ac_init_help" = "recursive"; then 1569 # If there are subdirs, report their specific --help. 1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1571 test -d "$ac_dir" || 1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1573 continue 1574 ac_builddir=. 1575 1576case "$ac_dir" in 1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578*) 1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1580 # A ".." for each directory in $ac_dir_suffix. 1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1582 case $ac_top_builddir_sub in 1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1585 esac ;; 1586esac 1587ac_abs_top_builddir=$ac_pwd 1588ac_abs_builddir=$ac_pwd$ac_dir_suffix 1589# for backward compatibility: 1590ac_top_builddir=$ac_top_build_prefix 1591 1592case $srcdir in 1593 .) # We are building in place. 1594 ac_srcdir=. 1595 ac_top_srcdir=$ac_top_builddir_sub 1596 ac_abs_top_srcdir=$ac_pwd ;; 1597 [\\/]* | ?:[\\/]* ) # Absolute name. 1598 ac_srcdir=$srcdir$ac_dir_suffix; 1599 ac_top_srcdir=$srcdir 1600 ac_abs_top_srcdir=$srcdir ;; 1601 *) # Relative name. 1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1603 ac_top_srcdir=$ac_top_build_prefix$srcdir 1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1605esac 1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1607 1608 cd "$ac_dir" || { ac_status=$?; continue; } 1609 # Check for guested configure. 1610 if test -f "$ac_srcdir/configure.gnu"; then 1611 echo && 1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1613 elif test -f "$ac_srcdir/configure"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure" --help=recursive 1616 else 1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1618 fi || ac_status=$? 1619 cd "$ac_pwd" || { ac_status=$?; break; } 1620 done 1621fi 1622 1623test -n "$ac_init_help" && exit $ac_status 1624if $ac_init_version; then 1625 cat <<\_ACEOF 1626configure 1627generated by GNU Autoconf 2.69 1628 1629Copyright (C) 2012 Free Software Foundation, Inc. 1630This configure script is free software; the Free Software Foundation 1631gives unlimited permission to copy, distribute and modify it. 1632_ACEOF 1633 exit 1634fi 1635 1636## ------------------------ ## 1637## Autoconf initialization. ## 1638## ------------------------ ## 1639 1640# ac_fn_c_try_compile LINENO 1641# -------------------------- 1642# Try to compile conftest.$ac_ext, and return whether this succeeded. 1643ac_fn_c_try_compile () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 rm -f conftest.$ac_objext 1647 if { { ac_try="$ac_compile" 1648case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_compile") 2>conftest.err 1655 ac_status=$? 1656 if test -s conftest.err; then 1657 grep -v '^ *+' conftest.err >conftest.er1 1658 cat conftest.er1 >&5 1659 mv -f conftest.er1 conftest.err 1660 fi 1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; } && { 1663 test -z "$ac_c_werror_flag" || 1664 test ! -s conftest.err 1665 } && test -s conftest.$ac_objext; then : 1666 ac_retval=0 1667else 1668 $as_echo "$as_me: failed program was:" >&5 1669sed 's/^/| /' conftest.$ac_ext >&5 1670 1671 ac_retval=1 1672fi 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 as_fn_set_status $ac_retval 1675 1676} # ac_fn_c_try_compile 1677 1678# ac_fn_c_try_cpp LINENO 1679# ---------------------- 1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_cpp () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_cpp conftest.$ac_ext" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } > conftest.i && { 1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_cpp 1714 1715# ac_fn_c_try_link LINENO 1716# ----------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_c_try_link () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 rm -f conftest.$ac_objext conftest$ac_exeext 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { 1738 test -z "$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 } && test -s conftest$ac_exeext && { 1741 test "$cross_compiling" = yes || 1742 test -x conftest$ac_exeext 1743 }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1753 # interfere with the next link command; also delete a directory that is 1754 # left behind by Apple's compiler. We do this before executing the actions. 1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1757 as_fn_set_status $ac_retval 1758 1759} # ac_fn_c_try_link 1760 1761# ac_fn_c_try_run LINENO 1762# ---------------------- 1763# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1764# that executables *can* be run. 1765ac_fn_c_try_run () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 if { { ac_try="$ac_link" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_link") 2>&5 1776 ac_status=$? 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1779 { { case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_try") 2>&5 1786 ac_status=$? 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; }; }; then : 1789 ac_retval=0 1790else 1791 $as_echo "$as_me: program exited with status $ac_status" >&5 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=$ac_status 1796fi 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_run 1802 1803# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1804# ------------------------------------------------------- 1805# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1806# the include files in INCLUDES and setting the cache variable VAR 1807# accordingly. 1808ac_fn_c_check_header_mongrel () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 if eval \${$3+:} false; then : 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1813$as_echo_n "checking for $2... " >&6; } 1814if eval \${$3+:} false; then : 1815 $as_echo_n "(cached) " >&6 1816fi 1817eval ac_res=\$$3 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1819$as_echo "$ac_res" >&6; } 1820else 1821 # Is the header compilable? 1822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1823$as_echo_n "checking $2 usability... " >&6; } 1824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825/* end confdefs.h. */ 1826$4 1827#include <$2> 1828_ACEOF 1829if ac_fn_c_try_compile "$LINENO"; then : 1830 ac_header_compiler=yes 1831else 1832 ac_header_compiler=no 1833fi 1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1836$as_echo "$ac_header_compiler" >&6; } 1837 1838# Is the header present? 1839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1840$as_echo_n "checking $2 presence... " >&6; } 1841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843#include <$2> 1844_ACEOF 1845if ac_fn_c_try_cpp "$LINENO"; then : 1846 ac_header_preproc=yes 1847else 1848 ac_header_preproc=no 1849fi 1850rm -f conftest.err conftest.i conftest.$ac_ext 1851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1852$as_echo "$ac_header_preproc" >&6; } 1853 1854# So? What about this header? 1855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1856 yes:no: ) 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1858$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1860$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1861 ;; 1862 no:yes:* ) 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1864$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1866$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1868$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1870$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1872$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1873 ;; 1874esac 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1876$as_echo_n "checking for $2... " >&6; } 1877if eval \${$3+:} false; then : 1878 $as_echo_n "(cached) " >&6 1879else 1880 eval "$3=\$ac_header_compiler" 1881fi 1882eval ac_res=\$$3 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1884$as_echo "$ac_res" >&6; } 1885fi 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 1888} # ac_fn_c_check_header_mongrel 1889 1890# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1891# ------------------------------------------------------- 1892# Tests whether HEADER exists and can be compiled using the include files in 1893# INCLUDES, setting the cache variable VAR accordingly. 1894ac_fn_c_check_header_compile () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1898$as_echo_n "checking for $2... " >&6; } 1899if eval \${$3+:} false; then : 1900 $as_echo_n "(cached) " >&6 1901else 1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$4 1905#include <$2> 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 eval "$3=yes" 1909else 1910 eval "$3=no" 1911fi 1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1913fi 1914eval ac_res=\$$3 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1916$as_echo "$ac_res" >&6; } 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1918 1919} # ac_fn_c_check_header_compile 1920 1921# ac_fn_c_check_func LINENO FUNC VAR 1922# ---------------------------------- 1923# Tests whether FUNC exists, setting the cache variable VAR accordingly 1924ac_fn_c_check_func () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1928$as_echo_n "checking for $2... " >&6; } 1929if eval \${$3+:} false; then : 1930 $as_echo_n "(cached) " >&6 1931else 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1936#define $2 innocuous_$2 1937 1938/* System header to define __stub macros and hopefully few prototypes, 1939 which can conflict with char $2 (); below. 1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1941 <limits.h> exists even on freestanding compilers. */ 1942 1943#ifdef __STDC__ 1944# include <limits.h> 1945#else 1946# include <assert.h> 1947#endif 1948 1949#undef $2 1950 1951/* Override any GCC internal prototype to avoid an error. 1952 Use char because int might match the return type of a GCC 1953 builtin and then its argument prototype would still apply. */ 1954#ifdef __cplusplus 1955extern "C" 1956#endif 1957char $2 (); 1958/* The GNU C library defines this for functions which it implements 1959 to always fail with ENOSYS. Some functions are actually named 1960 something starting with __ and the normal name is an alias. */ 1961#if defined __stub_$2 || defined __stub___$2 1962choke me 1963#endif 1964 1965int 1966main () 1967{ 1968return $2 (); 1969 ; 1970 return 0; 1971} 1972_ACEOF 1973if ac_fn_c_try_link "$LINENO"; then : 1974 eval "$3=yes" 1975else 1976 eval "$3=no" 1977fi 1978rm -f core conftest.err conftest.$ac_objext \ 1979 conftest$ac_exeext conftest.$ac_ext 1980fi 1981eval ac_res=\$$3 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983$as_echo "$ac_res" >&6; } 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 1986} # ac_fn_c_check_func 1987 1988# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1989# ------------------------------------------- 1990# Tests whether TYPE exists after having included INCLUDES, setting cache 1991# variable VAR accordingly. 1992ac_fn_c_check_type () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1996$as_echo_n "checking for $2... " >&6; } 1997if eval \${$3+:} false; then : 1998 $as_echo_n "(cached) " >&6 1999else 2000 eval "$3=no" 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004int 2005main () 2006{ 2007if (sizeof ($2)) 2008 return 0; 2009 ; 2010 return 0; 2011} 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017int 2018main () 2019{ 2020if (sizeof (($2))) 2021 return 0; 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_compile "$LINENO"; then : 2027 2028else 2029 eval "$3=yes" 2030fi 2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2032fi 2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2034fi 2035eval ac_res=\$$3 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2037$as_echo "$ac_res" >&6; } 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2039 2040} # ac_fn_c_check_type 2041 2042# ac_fn_c_find_uintX_t LINENO BITS VAR 2043# ------------------------------------ 2044# Finds an unsigned integer type with width BITS, setting cache variable VAR 2045# accordingly. 2046ac_fn_c_find_uintX_t () 2047{ 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2050$as_echo_n "checking for uint$2_t... " >&6; } 2051if eval \${$3+:} false; then : 2052 $as_echo_n "(cached) " >&6 2053else 2054 eval "$3=no" 2055 # Order is important - never check a type that is potentially smaller 2056 # than half of the expected target width. 2057 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2058 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061$ac_includes_default 2062int 2063main () 2064{ 2065static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2066test_array [0] = 0; 2067return test_array [0]; 2068 2069 ; 2070 return 0; 2071} 2072_ACEOF 2073if ac_fn_c_try_compile "$LINENO"; then : 2074 case $ac_type in #( 2075 uint$2_t) : 2076 eval "$3=yes" ;; #( 2077 *) : 2078 eval "$3=\$ac_type" ;; 2079esac 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082 if eval test \"x\$"$3"\" = x"no"; then : 2083 2084else 2085 break 2086fi 2087 done 2088fi 2089eval ac_res=\$$3 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2091$as_echo "$ac_res" >&6; } 2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2093 2094} # ac_fn_c_find_uintX_t 2095 2096# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2097# -------------------------------------------- 2098# Tries to find the compile-time value of EXPR in a program that includes 2099# INCLUDES, setting VAR accordingly. Returns whether the value could be 2100# computed 2101ac_fn_c_compute_int () 2102{ 2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2104 if test "$cross_compiling" = yes; then 2105 # Depending upon the size, compute the lo and hi bounds. 2106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$4 2109int 2110main () 2111{ 2112static int test_array [1 - 2 * !(($2) >= 0)]; 2113test_array [0] = 0; 2114return test_array [0]; 2115 2116 ; 2117 return 0; 2118} 2119_ACEOF 2120if ac_fn_c_try_compile "$LINENO"; then : 2121 ac_lo=0 ac_mid=0 2122 while :; do 2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2124/* end confdefs.h. */ 2125$4 2126int 2127main () 2128{ 2129static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2130test_array [0] = 0; 2131return test_array [0]; 2132 2133 ; 2134 return 0; 2135} 2136_ACEOF 2137if ac_fn_c_try_compile "$LINENO"; then : 2138 ac_hi=$ac_mid; break 2139else 2140 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2141 if test $ac_lo -le $ac_mid; then 2142 ac_lo= ac_hi= 2143 break 2144 fi 2145 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2146fi 2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2148 done 2149else 2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2151/* end confdefs.h. */ 2152$4 2153int 2154main () 2155{ 2156static int test_array [1 - 2 * !(($2) < 0)]; 2157test_array [0] = 0; 2158return test_array [0]; 2159 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 ac_hi=-1 ac_mid=-1 2166 while :; do 2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168/* end confdefs.h. */ 2169$4 2170int 2171main () 2172{ 2173static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2174test_array [0] = 0; 2175return test_array [0]; 2176 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181if ac_fn_c_try_compile "$LINENO"; then : 2182 ac_lo=$ac_mid; break 2183else 2184 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2185 if test $ac_mid -le $ac_hi; then 2186 ac_lo= ac_hi= 2187 break 2188 fi 2189 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2190fi 2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2192 done 2193else 2194 ac_lo= ac_hi= 2195fi 2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2197fi 2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2199# Binary search between lo and hi bounds. 2200while test "x$ac_lo" != "x$ac_hi"; do 2201 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203/* end confdefs.h. */ 2204$4 2205int 2206main () 2207{ 2208static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2209test_array [0] = 0; 2210return test_array [0]; 2211 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO"; then : 2217 ac_hi=$ac_mid 2218else 2219 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2220fi 2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2222done 2223case $ac_lo in #(( 2224?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2225'') ac_retval=1 ;; 2226esac 2227 else 2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2229/* end confdefs.h. */ 2230$4 2231static long int longval () { return $2; } 2232static unsigned long int ulongval () { return $2; } 2233#include <stdio.h> 2234#include <stdlib.h> 2235int 2236main () 2237{ 2238 2239 FILE *f = fopen ("conftest.val", "w"); 2240 if (! f) 2241 return 1; 2242 if (($2) < 0) 2243 { 2244 long int i = longval (); 2245 if (i != ($2)) 2246 return 1; 2247 fprintf (f, "%ld", i); 2248 } 2249 else 2250 { 2251 unsigned long int i = ulongval (); 2252 if (i != ($2)) 2253 return 1; 2254 fprintf (f, "%lu", i); 2255 } 2256 /* Do not output a trailing newline, as this causes \r\n confusion 2257 on some platforms. */ 2258 return ferror (f) || fclose (f) != 0; 2259 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264if ac_fn_c_try_run "$LINENO"; then : 2265 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2266else 2267 ac_retval=1 2268fi 2269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2270 conftest.$ac_objext conftest.beam conftest.$ac_ext 2271rm -f conftest.val 2272 2273 fi 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2275 as_fn_set_status $ac_retval 2276 2277} # ac_fn_c_compute_int 2278cat >auto/config.log <<_ACEOF 2279This file contains any messages produced by compilers while 2280running configure, to aid debugging if configure makes a mistake. 2281 2282It was created by $as_me, which was 2283generated by GNU Autoconf 2.69. Invocation command line was 2284 2285 $ $0 $@ 2286 2287_ACEOF 2288exec 5>>auto/config.log 2289{ 2290cat <<_ASUNAME 2291## --------- ## 2292## Platform. ## 2293## --------- ## 2294 2295hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2296uname -m = `(uname -m) 2>/dev/null || echo unknown` 2297uname -r = `(uname -r) 2>/dev/null || echo unknown` 2298uname -s = `(uname -s) 2>/dev/null || echo unknown` 2299uname -v = `(uname -v) 2>/dev/null || echo unknown` 2300 2301/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2302/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2303 2304/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2305/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2306/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2307/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2308/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2309/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2310/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2311 2312_ASUNAME 2313 2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2315for as_dir in $PATH 2316do 2317 IFS=$as_save_IFS 2318 test -z "$as_dir" && as_dir=. 2319 $as_echo "PATH: $as_dir" 2320 done 2321IFS=$as_save_IFS 2322 2323} >&5 2324 2325cat >&5 <<_ACEOF 2326 2327 2328## ----------- ## 2329## Core tests. ## 2330## ----------- ## 2331 2332_ACEOF 2333 2334 2335# Keep a trace of the command line. 2336# Strip out --no-create and --no-recursion so they do not pile up. 2337# Strip out --silent because we don't want to record it for future runs. 2338# Also quote any args containing shell meta-characters. 2339# Make two passes to allow for proper duplicate-argument suppression. 2340ac_configure_args= 2341ac_configure_args0= 2342ac_configure_args1= 2343ac_must_keep_next=false 2344for ac_pass in 1 2 2345do 2346 for ac_arg 2347 do 2348 case $ac_arg in 2349 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2351 | -silent | --silent | --silen | --sile | --sil) 2352 continue ;; 2353 *\'*) 2354 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2355 esac 2356 case $ac_pass in 2357 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2358 2) 2359 as_fn_append ac_configure_args1 " '$ac_arg'" 2360 if test $ac_must_keep_next = true; then 2361 ac_must_keep_next=false # Got value, back to normal. 2362 else 2363 case $ac_arg in 2364 *=* | --config-cache | -C | -disable-* | --disable-* \ 2365 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2366 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2367 | -with-* | --with-* | -without-* | --without-* | --x) 2368 case "$ac_configure_args0 " in 2369 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2370 esac 2371 ;; 2372 -* ) ac_must_keep_next=true ;; 2373 esac 2374 fi 2375 as_fn_append ac_configure_args " '$ac_arg'" 2376 ;; 2377 esac 2378 done 2379done 2380{ ac_configure_args0=; unset ac_configure_args0;} 2381{ ac_configure_args1=; unset ac_configure_args1;} 2382 2383# When interrupted or exit'd, cleanup temporary files, and complete 2384# config.log. We remove comments because anyway the quotes in there 2385# would cause problems or look ugly. 2386# WARNING: Use '\'' to represent an apostrophe within the trap. 2387# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2388trap 'exit_status=$? 2389 # Save into config.log some information that might help in debugging. 2390 { 2391 echo 2392 2393 $as_echo "## ---------------- ## 2394## Cache variables. ## 2395## ---------------- ##" 2396 echo 2397 # The following way of writing the cache mishandles newlines in values, 2398( 2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2400 eval ac_val=\$$ac_var 2401 case $ac_val in #( 2402 *${as_nl}*) 2403 case $ac_var in #( 2404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2405$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2406 esac 2407 case $ac_var in #( 2408 _ | IFS | as_nl) ;; #( 2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2410 *) { eval $ac_var=; unset $ac_var;} ;; 2411 esac ;; 2412 esac 2413 done 2414 (set) 2>&1 | 2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2416 *${as_nl}ac_space=\ *) 2417 sed -n \ 2418 "s/'\''/'\''\\\\'\'''\''/g; 2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2420 ;; #( 2421 *) 2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2423 ;; 2424 esac | 2425 sort 2426) 2427 echo 2428 2429 $as_echo "## ----------------- ## 2430## Output variables. ## 2431## ----------------- ##" 2432 echo 2433 for ac_var in $ac_subst_vars 2434 do 2435 eval ac_val=\$$ac_var 2436 case $ac_val in 2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2438 esac 2439 $as_echo "$ac_var='\''$ac_val'\''" 2440 done | sort 2441 echo 2442 2443 if test -n "$ac_subst_files"; then 2444 $as_echo "## ------------------- ## 2445## File substitutions. ## 2446## ------------------- ##" 2447 echo 2448 for ac_var in $ac_subst_files 2449 do 2450 eval ac_val=\$$ac_var 2451 case $ac_val in 2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2453 esac 2454 $as_echo "$ac_var='\''$ac_val'\''" 2455 done | sort 2456 echo 2457 fi 2458 2459 if test -s confdefs.h; then 2460 $as_echo "## ----------- ## 2461## confdefs.h. ## 2462## ----------- ##" 2463 echo 2464 cat confdefs.h 2465 echo 2466 fi 2467 test "$ac_signal" != 0 && 2468 $as_echo "$as_me: caught signal $ac_signal" 2469 $as_echo "$as_me: exit $exit_status" 2470 } >&5 2471 rm -f core *.core core.conftest.* && 2472 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2473 exit $exit_status 2474' 0 2475for ac_signal in 1 2 13 15; do 2476 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2477done 2478ac_signal=0 2479 2480# confdefs.h avoids OS command line length limits that DEFS can exceed. 2481rm -f -r conftest* confdefs.h 2482 2483$as_echo "/* confdefs.h */" > confdefs.h 2484 2485# Predefined preprocessor variables. 2486 2487cat >>confdefs.h <<_ACEOF 2488#define PACKAGE_NAME "$PACKAGE_NAME" 2489_ACEOF 2490 2491cat >>confdefs.h <<_ACEOF 2492#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2493_ACEOF 2494 2495cat >>confdefs.h <<_ACEOF 2496#define PACKAGE_VERSION "$PACKAGE_VERSION" 2497_ACEOF 2498 2499cat >>confdefs.h <<_ACEOF 2500#define PACKAGE_STRING "$PACKAGE_STRING" 2501_ACEOF 2502 2503cat >>confdefs.h <<_ACEOF 2504#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2505_ACEOF 2506 2507cat >>confdefs.h <<_ACEOF 2508#define PACKAGE_URL "$PACKAGE_URL" 2509_ACEOF 2510 2511 2512# Let the site file select an alternate cache file if it wants to. 2513# Prefer an explicitly selected file to automatically selected ones. 2514ac_site_file1=NONE 2515ac_site_file2=NONE 2516if test -n "$CONFIG_SITE"; then 2517 # We do not want a PATH search for config.site. 2518 case $CONFIG_SITE in #(( 2519 -*) ac_site_file1=./$CONFIG_SITE;; 2520 */*) ac_site_file1=$CONFIG_SITE;; 2521 *) ac_site_file1=./$CONFIG_SITE;; 2522 esac 2523elif test "x$prefix" != xNONE; then 2524 ac_site_file1=$prefix/share/config.site 2525 ac_site_file2=$prefix/etc/config.site 2526else 2527 ac_site_file1=$ac_default_prefix/share/config.site 2528 ac_site_file2=$ac_default_prefix/etc/config.site 2529fi 2530for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2531do 2532 test "x$ac_site_file" = xNONE && continue 2533 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2535$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2536 sed 's/^/| /' "$ac_site_file" >&5 2537 . "$ac_site_file" \ 2538 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2540as_fn_error $? "failed to load site script $ac_site_file 2541See \`config.log' for more details" "$LINENO" 5; } 2542 fi 2543done 2544 2545if test -r "$cache_file"; then 2546 # Some versions of bash will fail to source /dev/null (special files 2547 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2548 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2550$as_echo "$as_me: loading cache $cache_file" >&6;} 2551 case $cache_file in 2552 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2553 *) . "./$cache_file";; 2554 esac 2555 fi 2556else 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2558$as_echo "$as_me: creating cache $cache_file" >&6;} 2559 >$cache_file 2560fi 2561 2562# Check that the precious variables saved in the cache have kept the same 2563# value. 2564ac_cache_corrupted=false 2565for ac_var in $ac_precious_vars; do 2566 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2567 eval ac_new_set=\$ac_env_${ac_var}_set 2568 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2569 eval ac_new_val=\$ac_env_${ac_var}_value 2570 case $ac_old_set,$ac_new_set in 2571 set,) 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2573$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2574 ac_cache_corrupted=: ;; 2575 ,set) 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2577$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2578 ac_cache_corrupted=: ;; 2579 ,);; 2580 *) 2581 if test "x$ac_old_val" != "x$ac_new_val"; then 2582 # differences in whitespace do not lead to failure. 2583 ac_old_val_w=`echo x $ac_old_val` 2584 ac_new_val_w=`echo x $ac_new_val` 2585 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2587$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2588 ac_cache_corrupted=: 2589 else 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2591$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2592 eval $ac_var=\$ac_old_val 2593 fi 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2595$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2597$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2598 fi;; 2599 esac 2600 # Pass precious variables to config.status. 2601 if test "$ac_new_set" = set; then 2602 case $ac_new_val in 2603 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2604 *) ac_arg=$ac_var=$ac_new_val ;; 2605 esac 2606 case " $ac_configure_args " in 2607 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2608 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2609 esac 2610 fi 2611done 2612if $ac_cache_corrupted; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2616$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2617 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2618fi 2619## -------------------- ## 2620## Main body of script. ## 2621## -------------------- ## 2622 2623ac_ext=c 2624ac_cpp='$CPP $CPPFLAGS' 2625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2627ac_compiler_gnu=$ac_cv_c_compiler_gnu 2628 2629 2630ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2631 2632 2633$as_echo "#define UNIX 1" >>confdefs.h 2634 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2636$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2637set x ${MAKE-make} 2638ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2639if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2640 $as_echo_n "(cached) " >&6 2641else 2642 cat >conftest.make <<\_ACEOF 2643SHELL = /bin/sh 2644all: 2645 @echo '@@@%%%=$(MAKE)=@@@%%%' 2646_ACEOF 2647# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2648case `${MAKE-make} -f conftest.make 2>/dev/null` in 2649 *@@@%%%=?*=@@@%%%*) 2650 eval ac_cv_prog_make_${ac_make}_set=yes;; 2651 *) 2652 eval ac_cv_prog_make_${ac_make}_set=no;; 2653esac 2654rm -f conftest.make 2655fi 2656if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2658$as_echo "yes" >&6; } 2659 SET_MAKE= 2660else 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2662$as_echo "no" >&6; } 2663 SET_MAKE="MAKE=${MAKE-make}" 2664fi 2665 2666 2667ac_ext=c 2668ac_cpp='$CPP $CPPFLAGS' 2669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2671ac_compiler_gnu=$ac_cv_c_compiler_gnu 2672if test -n "$ac_tool_prefix"; then 2673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2674set dummy ${ac_tool_prefix}gcc; ac_word=$2 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2676$as_echo_n "checking for $ac_word... " >&6; } 2677if ${ac_cv_prog_CC+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 if test -n "$CC"; then 2681 ac_cv_prog_CC="$CC" # Let the user override the test. 2682else 2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2684for as_dir in $PATH 2685do 2686 IFS=$as_save_IFS 2687 test -z "$as_dir" && as_dir=. 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2690 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2692 break 2 2693 fi 2694done 2695 done 2696IFS=$as_save_IFS 2697 2698fi 2699fi 2700CC=$ac_cv_prog_CC 2701if test -n "$CC"; then 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2703$as_echo "$CC" >&6; } 2704else 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2706$as_echo "no" >&6; } 2707fi 2708 2709 2710fi 2711if test -z "$ac_cv_prog_CC"; then 2712 ac_ct_CC=$CC 2713 # Extract the first word of "gcc", so it can be a program name with args. 2714set dummy gcc; ac_word=$2 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2716$as_echo_n "checking for $ac_word... " >&6; } 2717if ${ac_cv_prog_ac_ct_CC+:} false; then : 2718 $as_echo_n "(cached) " >&6 2719else 2720 if test -n "$ac_ct_CC"; then 2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2730 ac_cv_prog_ac_ct_CC="gcc" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740ac_ct_CC=$ac_cv_prog_ac_ct_CC 2741if test -n "$ac_ct_CC"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2743$as_echo "$ac_ct_CC" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 if test "x$ac_ct_CC" = x; then 2750 CC="" 2751 else 2752 case $cross_compiling:$ac_tool_warned in 2753yes:) 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2756ac_tool_warned=yes ;; 2757esac 2758 CC=$ac_ct_CC 2759 fi 2760else 2761 CC="$ac_cv_prog_CC" 2762fi 2763 2764if test -z "$CC"; then 2765 if test -n "$ac_tool_prefix"; then 2766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2767set dummy ${ac_tool_prefix}cc; ac_word=$2 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2769$as_echo_n "checking for $ac_word... " >&6; } 2770if ${ac_cv_prog_CC+:} false; then : 2771 $as_echo_n "(cached) " >&6 2772else 2773 if test -n "$CC"; then 2774 ac_cv_prog_CC="$CC" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 test -z "$as_dir" && as_dir=. 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_CC="${ac_tool_prefix}cc" 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793CC=$ac_cv_prog_CC 2794if test -n "$CC"; then 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2796$as_echo "$CC" >&6; } 2797else 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799$as_echo "no" >&6; } 2800fi 2801 2802 2803 fi 2804fi 2805if test -z "$CC"; then 2806 # Extract the first word of "cc", so it can be a program name with args. 2807set dummy cc; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if ${ac_cv_prog_CC+:} false; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816 ac_prog_rejected=no 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2825 ac_prog_rejected=yes 2826 continue 2827 fi 2828 ac_cv_prog_CC="cc" 2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2830 break 2 2831 fi 2832done 2833 done 2834IFS=$as_save_IFS 2835 2836if test $ac_prog_rejected = yes; then 2837 # We found a bogon in the path, so make sure we never use it. 2838 set dummy $ac_cv_prog_CC 2839 shift 2840 if test $# != 0; then 2841 # We chose a different compiler from the bogus one. 2842 # However, it has the same basename, so the bogon will be chosen 2843 # first if we set CC to just the basename; use the full file name. 2844 shift 2845 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2846 fi 2847fi 2848fi 2849fi 2850CC=$ac_cv_prog_CC 2851if test -n "$CC"; then 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2853$as_echo "$CC" >&6; } 2854else 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2856$as_echo "no" >&6; } 2857fi 2858 2859 2860fi 2861if test -z "$CC"; then 2862 if test -n "$ac_tool_prefix"; then 2863 for ac_prog in cl.exe 2864 do 2865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2866set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2868$as_echo_n "checking for $ac_word... " >&6; } 2869if ${ac_cv_prog_CC+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871else 2872 if test -n "$CC"; then 2873 ac_cv_prog_CC="$CC" # Let the user override the test. 2874else 2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2876for as_dir in $PATH 2877do 2878 IFS=$as_save_IFS 2879 test -z "$as_dir" && as_dir=. 2880 for ac_exec_ext in '' $ac_executable_extensions; do 2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2884 break 2 2885 fi 2886done 2887 done 2888IFS=$as_save_IFS 2889 2890fi 2891fi 2892CC=$ac_cv_prog_CC 2893if test -n "$CC"; then 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2895$as_echo "$CC" >&6; } 2896else 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898$as_echo "no" >&6; } 2899fi 2900 2901 2902 test -n "$CC" && break 2903 done 2904fi 2905if test -z "$CC"; then 2906 ac_ct_CC=$CC 2907 for ac_prog in cl.exe 2908do 2909 # Extract the first word of "$ac_prog", so it can be a program name with args. 2910set dummy $ac_prog; ac_word=$2 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2912$as_echo_n "checking for $ac_word... " >&6; } 2913if ${ac_cv_prog_ac_ct_CC+:} false; then : 2914 $as_echo_n "(cached) " >&6 2915else 2916 if test -n "$ac_ct_CC"; then 2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2918else 2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2920for as_dir in $PATH 2921do 2922 IFS=$as_save_IFS 2923 test -z "$as_dir" && as_dir=. 2924 for ac_exec_ext in '' $ac_executable_extensions; do 2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2926 ac_cv_prog_ac_ct_CC="$ac_prog" 2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2928 break 2 2929 fi 2930done 2931 done 2932IFS=$as_save_IFS 2933 2934fi 2935fi 2936ac_ct_CC=$ac_cv_prog_ac_ct_CC 2937if test -n "$ac_ct_CC"; then 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2939$as_echo "$ac_ct_CC" >&6; } 2940else 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2942$as_echo "no" >&6; } 2943fi 2944 2945 2946 test -n "$ac_ct_CC" && break 2947done 2948 2949 if test "x$ac_ct_CC" = x; then 2950 CC="" 2951 else 2952 case $cross_compiling:$ac_tool_warned in 2953yes:) 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2956ac_tool_warned=yes ;; 2957esac 2958 CC=$ac_ct_CC 2959 fi 2960fi 2961 2962fi 2963 2964 2965test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2967as_fn_error $? "no acceptable C compiler found in \$PATH 2968See \`config.log' for more details" "$LINENO" 5; } 2969 2970# Provide some information about the compiler. 2971$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2972set X $ac_compile 2973ac_compiler=$2 2974for ac_option in --version -v -V -qversion; do 2975 { { ac_try="$ac_compiler $ac_option >&5" 2976case "(($ac_try" in 2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2978 *) ac_try_echo=$ac_try;; 2979esac 2980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2981$as_echo "$ac_try_echo"; } >&5 2982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2983 ac_status=$? 2984 if test -s conftest.err; then 2985 sed '10a\ 2986... rest of stderr output deleted ... 2987 10q' conftest.err >conftest.er1 2988 cat conftest.er1 >&5 2989 fi 2990 rm -f conftest.er1 conftest.err 2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2992 test $ac_status = 0; } 2993done 2994 2995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2996/* end confdefs.h. */ 2997 2998int 2999main () 3000{ 3001 3002 ; 3003 return 0; 3004} 3005_ACEOF 3006ac_clean_files_save=$ac_clean_files 3007ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3008# Try to create an executable without -o first, disregard a.out. 3009# It will help us diagnose broken compilers, and finding out an intuition 3010# of exeext. 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3012$as_echo_n "checking whether the C compiler works... " >&6; } 3013ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3014 3015# The possible output files: 3016ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3017 3018ac_rmfiles= 3019for ac_file in $ac_files 3020do 3021 case $ac_file in 3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3023 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3024 esac 3025done 3026rm -f $ac_rmfiles 3027 3028if { { ac_try="$ac_link_default" 3029case "(($ac_try" in 3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3031 *) ac_try_echo=$ac_try;; 3032esac 3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3034$as_echo "$ac_try_echo"; } >&5 3035 (eval "$ac_link_default") 2>&5 3036 ac_status=$? 3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3038 test $ac_status = 0; }; then : 3039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3040# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3041# in a Makefile. We should not override ac_cv_exeext if it was cached, 3042# so that the user can short-circuit this test for compilers unknown to 3043# Autoconf. 3044for ac_file in $ac_files '' 3045do 3046 test -f "$ac_file" || continue 3047 case $ac_file in 3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3049 ;; 3050 [ab].out ) 3051 # We found the default executable, but exeext='' is most 3052 # certainly right. 3053 break;; 3054 *.* ) 3055 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3056 then :; else 3057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3058 fi 3059 # We set ac_cv_exeext here because the later test for it is not 3060 # safe: cross compilers may not add the suffix if given an `-o' 3061 # argument, so we may need to know it at that point already. 3062 # Even if this section looks crufty: it has the advantage of 3063 # actually working. 3064 break;; 3065 * ) 3066 break;; 3067 esac 3068done 3069test "$ac_cv_exeext" = no && ac_cv_exeext= 3070 3071else 3072 ac_file='' 3073fi 3074if test -z "$ac_file"; then : 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076$as_echo "no" >&6; } 3077$as_echo "$as_me: failed program was:" >&5 3078sed 's/^/| /' conftest.$ac_ext >&5 3079 3080{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3082as_fn_error 77 "C compiler cannot create executables 3083See \`config.log' for more details" "$LINENO" 5; } 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3086$as_echo "yes" >&6; } 3087fi 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3089$as_echo_n "checking for C compiler default output file name... " >&6; } 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3091$as_echo "$ac_file" >&6; } 3092ac_exeext=$ac_cv_exeext 3093 3094rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3095ac_clean_files=$ac_clean_files_save 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3097$as_echo_n "checking for suffix of executables... " >&6; } 3098if { { ac_try="$ac_link" 3099case "(($ac_try" in 3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3101 *) ac_try_echo=$ac_try;; 3102esac 3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3104$as_echo "$ac_try_echo"; } >&5 3105 (eval "$ac_link") 2>&5 3106 ac_status=$? 3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3108 test $ac_status = 0; }; then : 3109 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3110# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3111# work properly (i.e., refer to `conftest.exe'), while it won't with 3112# `rm'. 3113for ac_file in conftest.exe conftest conftest.*; do 3114 test -f "$ac_file" || continue 3115 case $ac_file in 3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3118 break;; 3119 * ) break;; 3120 esac 3121done 3122else 3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3125as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3126See \`config.log' for more details" "$LINENO" 5; } 3127fi 3128rm -f conftest conftest$ac_cv_exeext 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3130$as_echo "$ac_cv_exeext" >&6; } 3131 3132rm -f conftest.$ac_ext 3133EXEEXT=$ac_cv_exeext 3134ac_exeext=$EXEEXT 3135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3136/* end confdefs.h. */ 3137#include <stdio.h> 3138int 3139main () 3140{ 3141FILE *f = fopen ("conftest.out", "w"); 3142 return ferror (f) || fclose (f) != 0; 3143 3144 ; 3145 return 0; 3146} 3147_ACEOF 3148ac_clean_files="$ac_clean_files conftest.out" 3149# Check that the compiler produces executables we can run. If not, either 3150# the compiler is broken, or we cross compile. 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3152$as_echo_n "checking whether we are cross compiling... " >&6; } 3153if test "$cross_compiling" != yes; then 3154 { { ac_try="$ac_link" 3155case "(($ac_try" in 3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3157 *) ac_try_echo=$ac_try;; 3158esac 3159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3160$as_echo "$ac_try_echo"; } >&5 3161 (eval "$ac_link") 2>&5 3162 ac_status=$? 3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3164 test $ac_status = 0; } 3165 if { ac_try='./conftest$ac_cv_exeext' 3166 { { case "(($ac_try" in 3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3168 *) ac_try_echo=$ac_try;; 3169esac 3170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3171$as_echo "$ac_try_echo"; } >&5 3172 (eval "$ac_try") 2>&5 3173 ac_status=$? 3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3175 test $ac_status = 0; }; }; then 3176 cross_compiling=no 3177 else 3178 if test "$cross_compiling" = maybe; then 3179 cross_compiling=yes 3180 else 3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3183as_fn_error $? "cannot run C compiled programs. 3184If you meant to cross compile, use \`--host'. 3185See \`config.log' for more details" "$LINENO" 5; } 3186 fi 3187 fi 3188fi 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3190$as_echo "$cross_compiling" >&6; } 3191 3192rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3193ac_clean_files=$ac_clean_files_save 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3195$as_echo_n "checking for suffix of object files... " >&6; } 3196if ${ac_cv_objext+:} false; then : 3197 $as_echo_n "(cached) " >&6 3198else 3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3200/* end confdefs.h. */ 3201 3202int 3203main () 3204{ 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210rm -f conftest.o conftest.obj 3211if { { ac_try="$ac_compile" 3212case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3217$as_echo "$ac_try_echo"; } >&5 3218 (eval "$ac_compile") 2>&5 3219 ac_status=$? 3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3221 test $ac_status = 0; }; then : 3222 for ac_file in conftest.o conftest.obj conftest.*; do 3223 test -f "$ac_file" || continue; 3224 case $ac_file in 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3227 break;; 3228 esac 3229done 3230else 3231 $as_echo "$as_me: failed program was:" >&5 3232sed 's/^/| /' conftest.$ac_ext >&5 3233 3234{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3236as_fn_error $? "cannot compute suffix of object files: cannot compile 3237See \`config.log' for more details" "$LINENO" 5; } 3238fi 3239rm -f conftest.$ac_cv_objext conftest.$ac_ext 3240fi 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3242$as_echo "$ac_cv_objext" >&6; } 3243OBJEXT=$ac_cv_objext 3244ac_objext=$OBJEXT 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3246$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3247if ${ac_cv_c_compiler_gnu+:} false; then : 3248 $as_echo_n "(cached) " >&6 3249else 3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3251/* end confdefs.h. */ 3252 3253int 3254main () 3255{ 3256#ifndef __GNUC__ 3257 choke me 3258#endif 3259 3260 ; 3261 return 0; 3262} 3263_ACEOF 3264if ac_fn_c_try_compile "$LINENO"; then : 3265 ac_compiler_gnu=yes 3266else 3267 ac_compiler_gnu=no 3268fi 3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3270ac_cv_c_compiler_gnu=$ac_compiler_gnu 3271 3272fi 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3274$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3275if test $ac_compiler_gnu = yes; then 3276 GCC=yes 3277else 3278 GCC= 3279fi 3280ac_test_CFLAGS=${CFLAGS+set} 3281ac_save_CFLAGS=$CFLAGS 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3283$as_echo_n "checking whether $CC accepts -g... " >&6; } 3284if ${ac_cv_prog_cc_g+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286else 3287 ac_save_c_werror_flag=$ac_c_werror_flag 3288 ac_c_werror_flag=yes 3289 ac_cv_prog_cc_g=no 3290 CFLAGS="-g" 3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3292/* end confdefs.h. */ 3293 3294int 3295main () 3296{ 3297 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302if ac_fn_c_try_compile "$LINENO"; then : 3303 ac_cv_prog_cc_g=yes 3304else 3305 CFLAGS="" 3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3307/* end confdefs.h. */ 3308 3309int 3310main () 3311{ 3312 3313 ; 3314 return 0; 3315} 3316_ACEOF 3317if ac_fn_c_try_compile "$LINENO"; then : 3318 3319else 3320 ac_c_werror_flag=$ac_save_c_werror_flag 3321 CFLAGS="-g" 3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3323/* end confdefs.h. */ 3324 3325int 3326main () 3327{ 3328 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333if ac_fn_c_try_compile "$LINENO"; then : 3334 ac_cv_prog_cc_g=yes 3335fi 3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3337fi 3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3339fi 3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3341 ac_c_werror_flag=$ac_save_c_werror_flag 3342fi 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3344$as_echo "$ac_cv_prog_cc_g" >&6; } 3345if test "$ac_test_CFLAGS" = set; then 3346 CFLAGS=$ac_save_CFLAGS 3347elif test $ac_cv_prog_cc_g = yes; then 3348 if test "$GCC" = yes; then 3349 CFLAGS="-g -O2" 3350 else 3351 CFLAGS="-g" 3352 fi 3353else 3354 if test "$GCC" = yes; then 3355 CFLAGS="-O2" 3356 else 3357 CFLAGS= 3358 fi 3359fi 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3361$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3362if ${ac_cv_prog_cc_c89+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 ac_cv_prog_cc_c89=no 3366ac_save_CC=$CC 3367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368/* end confdefs.h. */ 3369#include <stdarg.h> 3370#include <stdio.h> 3371struct stat; 3372/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3373struct buf { int x; }; 3374FILE * (*rcsopen) (struct buf *, struct stat *, int); 3375static char *e (p, i) 3376 char **p; 3377 int i; 3378{ 3379 return p[i]; 3380} 3381static char *f (char * (*g) (char **, int), char **p, ...) 3382{ 3383 char *s; 3384 va_list v; 3385 va_start (v,p); 3386 s = g (p, va_arg (v,int)); 3387 va_end (v); 3388 return s; 3389} 3390 3391/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3392 function prototypes and stuff, but not '\xHH' hex character constants. 3393 These don't provoke an error unfortunately, instead are silently treated 3394 as 'x'. The following induces an error, until -std is added to get 3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3396 array size at least. It's necessary to write '\x00'==0 to get something 3397 that's true only with -std. */ 3398int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3399 3400/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3401 inside strings and character constants. */ 3402#define FOO(x) 'x' 3403int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3404 3405int test (int i, double x); 3406struct s1 {int (*f) (int a);}; 3407struct s2 {int (*f) (double a);}; 3408int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3409int argc; 3410char **argv; 3411int 3412main () 3413{ 3414return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3415 ; 3416 return 0; 3417} 3418_ACEOF 3419for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3421do 3422 CC="$ac_save_CC $ac_arg" 3423 if ac_fn_c_try_compile "$LINENO"; then : 3424 ac_cv_prog_cc_c89=$ac_arg 3425fi 3426rm -f core conftest.err conftest.$ac_objext 3427 test "x$ac_cv_prog_cc_c89" != "xno" && break 3428done 3429rm -f conftest.$ac_ext 3430CC=$ac_save_CC 3431 3432fi 3433# AC_CACHE_VAL 3434case "x$ac_cv_prog_cc_c89" in 3435 x) 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3437$as_echo "none needed" >&6; } ;; 3438 xno) 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3440$as_echo "unsupported" >&6; } ;; 3441 *) 3442 CC="$CC $ac_cv_prog_cc_c89" 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3444$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3445esac 3446if test "x$ac_cv_prog_cc_c89" != xno; then : 3447 3448fi 3449 3450ac_ext=c 3451ac_cpp='$CPP $CPPFLAGS' 3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3454ac_compiler_gnu=$ac_cv_c_compiler_gnu 3455 ac_ext=c 3456ac_cpp='$CPP $CPPFLAGS' 3457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3459ac_compiler_gnu=$ac_cv_c_compiler_gnu 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3461$as_echo_n "checking how to run the C preprocessor... " >&6; } 3462# On Suns, sometimes $CPP names a directory. 3463if test -n "$CPP" && test -d "$CPP"; then 3464 CPP= 3465fi 3466if test -z "$CPP"; then 3467 if ${ac_cv_prog_CPP+:} false; then : 3468 $as_echo_n "(cached) " >&6 3469else 3470 # Double quotes because CPP needs to be expanded 3471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3472 do 3473 ac_preproc_ok=false 3474for ac_c_preproc_warn_flag in '' yes 3475do 3476 # Use a header file that comes with gcc, so configuring glibc 3477 # with a fresh cross-compiler works. 3478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3479 # <limits.h> exists even on freestanding compilers. 3480 # On the NeXT, cc -E runs the code through the compiler's parser, 3481 # not just through cpp. "Syntax error" is here to catch this case. 3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483/* end confdefs.h. */ 3484#ifdef __STDC__ 3485# include <limits.h> 3486#else 3487# include <assert.h> 3488#endif 3489 Syntax error 3490_ACEOF 3491if ac_fn_c_try_cpp "$LINENO"; then : 3492 3493else 3494 # Broken: fails on valid input. 3495continue 3496fi 3497rm -f conftest.err conftest.i conftest.$ac_ext 3498 3499 # OK, works on sane cases. Now check whether nonexistent headers 3500 # can be detected and how. 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503#include <ac_nonexistent.h> 3504_ACEOF 3505if ac_fn_c_try_cpp "$LINENO"; then : 3506 # Broken: success on invalid input. 3507continue 3508else 3509 # Passes both tests. 3510ac_preproc_ok=: 3511break 3512fi 3513rm -f conftest.err conftest.i conftest.$ac_ext 3514 3515done 3516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3517rm -f conftest.i conftest.err conftest.$ac_ext 3518if $ac_preproc_ok; then : 3519 break 3520fi 3521 3522 done 3523 ac_cv_prog_CPP=$CPP 3524 3525fi 3526 CPP=$ac_cv_prog_CPP 3527else 3528 ac_cv_prog_CPP=$CPP 3529fi 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3531$as_echo "$CPP" >&6; } 3532ac_preproc_ok=false 3533for ac_c_preproc_warn_flag in '' yes 3534do 3535 # Use a header file that comes with gcc, so configuring glibc 3536 # with a fresh cross-compiler works. 3537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3538 # <limits.h> exists even on freestanding compilers. 3539 # On the NeXT, cc -E runs the code through the compiler's parser, 3540 # not just through cpp. "Syntax error" is here to catch this case. 3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543#ifdef __STDC__ 3544# include <limits.h> 3545#else 3546# include <assert.h> 3547#endif 3548 Syntax error 3549_ACEOF 3550if ac_fn_c_try_cpp "$LINENO"; then : 3551 3552else 3553 # Broken: fails on valid input. 3554continue 3555fi 3556rm -f conftest.err conftest.i conftest.$ac_ext 3557 3558 # OK, works on sane cases. Now check whether nonexistent headers 3559 # can be detected and how. 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562#include <ac_nonexistent.h> 3563_ACEOF 3564if ac_fn_c_try_cpp "$LINENO"; then : 3565 # Broken: success on invalid input. 3566continue 3567else 3568 # Passes both tests. 3569ac_preproc_ok=: 3570break 3571fi 3572rm -f conftest.err conftest.i conftest.$ac_ext 3573 3574done 3575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3576rm -f conftest.i conftest.err conftest.$ac_ext 3577if $ac_preproc_ok; then : 3578 3579else 3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3582as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3583See \`config.log' for more details" "$LINENO" 5; } 3584fi 3585 3586ac_ext=c 3587ac_cpp='$CPP $CPPFLAGS' 3588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3590ac_compiler_gnu=$ac_cv_c_compiler_gnu 3591 3592 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3594$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3595if ${ac_cv_path_GREP+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 if test -z "$GREP"; then 3599 ac_path_GREP_found=false 3600 # Loop through the user's path and test for each of PROGNAME-LIST 3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3603do 3604 IFS=$as_save_IFS 3605 test -z "$as_dir" && as_dir=. 3606 for ac_prog in grep ggrep; do 3607 for ac_exec_ext in '' $ac_executable_extensions; do 3608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3609 as_fn_executable_p "$ac_path_GREP" || continue 3610# Check for GNU ac_path_GREP and select it if it is found. 3611 # Check for GNU $ac_path_GREP 3612case `"$ac_path_GREP" --version 2>&1` in 3613*GNU*) 3614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3615*) 3616 ac_count=0 3617 $as_echo_n 0123456789 >"conftest.in" 3618 while : 3619 do 3620 cat "conftest.in" "conftest.in" >"conftest.tmp" 3621 mv "conftest.tmp" "conftest.in" 3622 cp "conftest.in" "conftest.nl" 3623 $as_echo 'GREP' >> "conftest.nl" 3624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3626 as_fn_arith $ac_count + 1 && ac_count=$as_val 3627 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3628 # Best one so far, save it but keep looking for a better one 3629 ac_cv_path_GREP="$ac_path_GREP" 3630 ac_path_GREP_max=$ac_count 3631 fi 3632 # 10*(2^10) chars as input seems more than enough 3633 test $ac_count -gt 10 && break 3634 done 3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3636esac 3637 3638 $ac_path_GREP_found && break 3 3639 done 3640 done 3641 done 3642IFS=$as_save_IFS 3643 if test -z "$ac_cv_path_GREP"; then 3644 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3645 fi 3646else 3647 ac_cv_path_GREP=$GREP 3648fi 3649 3650fi 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3652$as_echo "$ac_cv_path_GREP" >&6; } 3653 GREP="$ac_cv_path_GREP" 3654 3655 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3657$as_echo_n "checking for egrep... " >&6; } 3658if ${ac_cv_path_EGREP+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3662 then ac_cv_path_EGREP="$GREP -E" 3663 else 3664 if test -z "$EGREP"; then 3665 ac_path_EGREP_found=false 3666 # Loop through the user's path and test for each of PROGNAME-LIST 3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 for ac_prog in egrep; do 3673 for ac_exec_ext in '' $ac_executable_extensions; do 3674 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3675 as_fn_executable_p "$ac_path_EGREP" || continue 3676# Check for GNU ac_path_EGREP and select it if it is found. 3677 # Check for GNU $ac_path_EGREP 3678case `"$ac_path_EGREP" --version 2>&1` in 3679*GNU*) 3680 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3681*) 3682 ac_count=0 3683 $as_echo_n 0123456789 >"conftest.in" 3684 while : 3685 do 3686 cat "conftest.in" "conftest.in" >"conftest.tmp" 3687 mv "conftest.tmp" "conftest.in" 3688 cp "conftest.in" "conftest.nl" 3689 $as_echo 'EGREP' >> "conftest.nl" 3690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3692 as_fn_arith $ac_count + 1 && ac_count=$as_val 3693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3694 # Best one so far, save it but keep looking for a better one 3695 ac_cv_path_EGREP="$ac_path_EGREP" 3696 ac_path_EGREP_max=$ac_count 3697 fi 3698 # 10*(2^10) chars as input seems more than enough 3699 test $ac_count -gt 10 && break 3700 done 3701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3702esac 3703 3704 $ac_path_EGREP_found && break 3 3705 done 3706 done 3707 done 3708IFS=$as_save_IFS 3709 if test -z "$ac_cv_path_EGREP"; then 3710 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3711 fi 3712else 3713 ac_cv_path_EGREP=$EGREP 3714fi 3715 3716 fi 3717fi 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3719$as_echo "$ac_cv_path_EGREP" >&6; } 3720 EGREP="$ac_cv_path_EGREP" 3721 3722 3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726_ACEOF 3727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3728 $EGREP "" >/dev/null 2>&1; then : 3729 3730fi 3731rm -f conftest* 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3733$as_echo_n "checking for fgrep... " >&6; } 3734if ${ac_cv_path_FGREP+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3738 then ac_cv_path_FGREP="$GREP -F" 3739 else 3740 if test -z "$FGREP"; then 3741 ac_path_FGREP_found=false 3742 # Loop through the user's path and test for each of PROGNAME-LIST 3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3744for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3745do 3746 IFS=$as_save_IFS 3747 test -z "$as_dir" && as_dir=. 3748 for ac_prog in fgrep; do 3749 for ac_exec_ext in '' $ac_executable_extensions; do 3750 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3751 as_fn_executable_p "$ac_path_FGREP" || continue 3752# Check for GNU ac_path_FGREP and select it if it is found. 3753 # Check for GNU $ac_path_FGREP 3754case `"$ac_path_FGREP" --version 2>&1` in 3755*GNU*) 3756 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3757*) 3758 ac_count=0 3759 $as_echo_n 0123456789 >"conftest.in" 3760 while : 3761 do 3762 cat "conftest.in" "conftest.in" >"conftest.tmp" 3763 mv "conftest.tmp" "conftest.in" 3764 cp "conftest.in" "conftest.nl" 3765 $as_echo 'FGREP' >> "conftest.nl" 3766 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3768 as_fn_arith $ac_count + 1 && ac_count=$as_val 3769 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3770 # Best one so far, save it but keep looking for a better one 3771 ac_cv_path_FGREP="$ac_path_FGREP" 3772 ac_path_FGREP_max=$ac_count 3773 fi 3774 # 10*(2^10) chars as input seems more than enough 3775 test $ac_count -gt 10 && break 3776 done 3777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3778esac 3779 3780 $ac_path_FGREP_found && break 3 3781 done 3782 done 3783 done 3784IFS=$as_save_IFS 3785 if test -z "$ac_cv_path_FGREP"; then 3786 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3787 fi 3788else 3789 ac_cv_path_FGREP=$FGREP 3790fi 3791 3792 fi 3793fi 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3795$as_echo "$ac_cv_path_FGREP" >&6; } 3796 FGREP="$ac_cv_path_FGREP" 3797 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3799$as_echo_n "checking for library containing strerror... " >&6; } 3800if ${ac_cv_search_strerror+:} false; then : 3801 $as_echo_n "(cached) " >&6 3802else 3803 ac_func_search_save_LIBS=$LIBS 3804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806 3807/* Override any GCC internal prototype to avoid an error. 3808 Use char because int might match the return type of a GCC 3809 builtin and then its argument prototype would still apply. */ 3810#ifdef __cplusplus 3811extern "C" 3812#endif 3813char strerror (); 3814int 3815main () 3816{ 3817return strerror (); 3818 ; 3819 return 0; 3820} 3821_ACEOF 3822for ac_lib in '' cposix; do 3823 if test -z "$ac_lib"; then 3824 ac_res="none required" 3825 else 3826 ac_res=-l$ac_lib 3827 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3828 fi 3829 if ac_fn_c_try_link "$LINENO"; then : 3830 ac_cv_search_strerror=$ac_res 3831fi 3832rm -f core conftest.err conftest.$ac_objext \ 3833 conftest$ac_exeext 3834 if ${ac_cv_search_strerror+:} false; then : 3835 break 3836fi 3837done 3838if ${ac_cv_search_strerror+:} false; then : 3839 3840else 3841 ac_cv_search_strerror=no 3842fi 3843rm conftest.$ac_ext 3844LIBS=$ac_func_search_save_LIBS 3845fi 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3847$as_echo "$ac_cv_search_strerror" >&6; } 3848ac_res=$ac_cv_search_strerror 3849if test "$ac_res" != no; then : 3850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3851 3852fi 3853 for ac_prog in gawk mawk nawk awk 3854do 3855 # Extract the first word of "$ac_prog", so it can be a program name with args. 3856set dummy $ac_prog; ac_word=$2 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3858$as_echo_n "checking for $ac_word... " >&6; } 3859if ${ac_cv_prog_AWK+:} false; then : 3860 $as_echo_n "(cached) " >&6 3861else 3862 if test -n "$AWK"; then 3863 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3864else 3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3866for as_dir in $PATH 3867do 3868 IFS=$as_save_IFS 3869 test -z "$as_dir" && as_dir=. 3870 for ac_exec_ext in '' $ac_executable_extensions; do 3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3872 ac_cv_prog_AWK="$ac_prog" 3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3874 break 2 3875 fi 3876done 3877 done 3878IFS=$as_save_IFS 3879 3880fi 3881fi 3882AWK=$ac_cv_prog_AWK 3883if test -n "$AWK"; then 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3885$as_echo "$AWK" >&6; } 3886else 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3888$as_echo "no" >&6; } 3889fi 3890 3891 3892 test -n "$AWK" && break 3893done 3894 3895# Extract the first word of "strip", so it can be a program name with args. 3896set dummy strip; ac_word=$2 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3898$as_echo_n "checking for $ac_word... " >&6; } 3899if ${ac_cv_prog_STRIP+:} false; then : 3900 $as_echo_n "(cached) " >&6 3901else 3902 if test -n "$STRIP"; then 3903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3904else 3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3906for as_dir in $PATH 3907do 3908 IFS=$as_save_IFS 3909 test -z "$as_dir" && as_dir=. 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3912 ac_cv_prog_STRIP="strip" 3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3914 break 2 3915 fi 3916done 3917 done 3918IFS=$as_save_IFS 3919 3920 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3921fi 3922fi 3923STRIP=$ac_cv_prog_STRIP 3924if test -n "$STRIP"; then 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3926$as_echo "$STRIP" >&6; } 3927else 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3929$as_echo "no" >&6; } 3930fi 3931 3932 3933 3934 3935 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3937$as_echo_n "checking for ANSI C header files... " >&6; } 3938if ${ac_cv_header_stdc+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3942/* end confdefs.h. */ 3943#include <stdlib.h> 3944#include <stdarg.h> 3945#include <string.h> 3946#include <float.h> 3947 3948int 3949main () 3950{ 3951 3952 ; 3953 return 0; 3954} 3955_ACEOF 3956if ac_fn_c_try_compile "$LINENO"; then : 3957 ac_cv_header_stdc=yes 3958else 3959 ac_cv_header_stdc=no 3960fi 3961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3962 3963if test $ac_cv_header_stdc = yes; then 3964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967#include <string.h> 3968 3969_ACEOF 3970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3971 $EGREP "memchr" >/dev/null 2>&1; then : 3972 3973else 3974 ac_cv_header_stdc=no 3975fi 3976rm -f conftest* 3977 3978fi 3979 3980if test $ac_cv_header_stdc = yes; then 3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984#include <stdlib.h> 3985 3986_ACEOF 3987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3988 $EGREP "free" >/dev/null 2>&1; then : 3989 3990else 3991 ac_cv_header_stdc=no 3992fi 3993rm -f conftest* 3994 3995fi 3996 3997if test $ac_cv_header_stdc = yes; then 3998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3999 if test "$cross_compiling" = yes; then : 4000 : 4001else 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4003/* end confdefs.h. */ 4004#include <ctype.h> 4005#include <stdlib.h> 4006#if ((' ' & 0x0FF) == 0x020) 4007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4009#else 4010# define ISLOWER(c) \ 4011 (('a' <= (c) && (c) <= 'i') \ 4012 || ('j' <= (c) && (c) <= 'r') \ 4013 || ('s' <= (c) && (c) <= 'z')) 4014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4015#endif 4016 4017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4018int 4019main () 4020{ 4021 int i; 4022 for (i = 0; i < 256; i++) 4023 if (XOR (islower (i), ISLOWER (i)) 4024 || toupper (i) != TOUPPER (i)) 4025 return 2; 4026 return 0; 4027} 4028_ACEOF 4029if ac_fn_c_try_run "$LINENO"; then : 4030 4031else 4032 ac_cv_header_stdc=no 4033fi 4034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4035 conftest.$ac_objext conftest.beam conftest.$ac_ext 4036fi 4037 4038fi 4039fi 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4041$as_echo "$ac_cv_header_stdc" >&6; } 4042if test $ac_cv_header_stdc = yes; then 4043 4044$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4045 4046fi 4047 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4049$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4050if ${ac_cv_header_sys_wait_h+:} false; then : 4051 $as_echo_n "(cached) " >&6 4052else 4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054/* end confdefs.h. */ 4055#include <sys/types.h> 4056#include <sys/wait.h> 4057#ifndef WEXITSTATUS 4058# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4059#endif 4060#ifndef WIFEXITED 4061# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4062#endif 4063 4064int 4065main () 4066{ 4067 int s; 4068 wait (&s); 4069 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4070 ; 4071 return 0; 4072} 4073_ACEOF 4074if ac_fn_c_try_compile "$LINENO"; then : 4075 ac_cv_header_sys_wait_h=yes 4076else 4077 ac_cv_header_sys_wait_h=no 4078fi 4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4080fi 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4082$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4083if test $ac_cv_header_sys_wait_h = yes; then 4084 4085$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4086 4087fi 4088 4089 4090 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4092$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4093# Check whether --enable-fail_if_missing was given. 4094if test "${enable_fail_if_missing+set}" = set; then : 4095 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4096else 4097 fail_if_missing="no" 4098fi 4099 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4101$as_echo "$fail_if_missing" >&6; } 4102 4103if test -z "$CFLAGS"; then 4104 CFLAGS="-O" 4105 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4106fi 4107if test "$GCC" = yes; then 4108 gccversion=`$CC -dumpversion` 4109 if test "x$gccversion" = "x"; then 4110 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4111 fi 4112 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4113 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4114 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4115 else 4116 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4117 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4118 CFLAGS="$CFLAGS -fno-strength-reduce" 4119 fi 4120 fi 4121fi 4122 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4124$as_echo_n "checking for clang version... " >&6; } 4125CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'` 4126if test x"$CLANG_VERSION_STRING" != x"" ; then 4127 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4128 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4129 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4130 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4132$as_echo "$CLANG_VERSION" >&6; } 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4134$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4135 if test "$CLANG_VERSION" -ge 500002075 ; then 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4137$as_echo "no" >&6; } 4138 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4139 else 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4141$as_echo "yes" >&6; } 4142 fi 4143else 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4145$as_echo "N/A" >&6; } 4146fi 4147 4148CROSS_COMPILING= 4149if test "$cross_compiling" = yes; then 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4151$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4152 CROSS_COMPILING=1 4153fi 4154 4155 4156test "$GCC" = yes && CPP_MM=M; 4157 4158if test -f ./toolcheck; then 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4160$as_echo "$as_me: checking for buggy tools..." >&6;} 4161 sh ./toolcheck 1>&6 4162fi 4163 4164OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4165 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4167$as_echo_n "checking for BeOS... " >&6; } 4168case `uname` in 4169 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4170 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4171$as_echo "yes" >&6; };; 4172 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4173$as_echo "no" >&6; };; 4174esac 4175 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4177$as_echo_n "checking for QNX... " >&6; } 4178case `uname` in 4179 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4180 test -z "$with_x" && with_x=no 4181 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4182$as_echo "yes" >&6; };; 4183 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4184$as_echo "no" >&6; };; 4185esac 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4188$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4189if test "`(uname) 2>/dev/null`" = Darwin; then 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4191$as_echo "yes" >&6; } 4192 MACOS_X=yes 4193 CPPFLAGS="$CPPFLAGS -DMACOS_X" 4194 4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4196$as_echo_n "checking --disable-darwin argument... " >&6; } 4197 # Check whether --enable-darwin was given. 4198if test "${enable_darwin+set}" = set; then : 4199 enableval=$enable_darwin; 4200else 4201 enable_darwin="yes" 4202fi 4203 4204 if test "$enable_darwin" = "yes"; then 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4206$as_echo "no" >&6; } 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4208$as_echo_n "checking if Darwin files are there... " >&6; } 4209 if test -f os_macosx.m; then 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4211$as_echo "yes" >&6; } 4212 else 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4214$as_echo "no, Darwin support disabled" >&6; } 4215 enable_darwin=no 4216 fi 4217 else 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4219$as_echo "yes, Darwin support excluded" >&6; } 4220 fi 4221 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4223$as_echo_n "checking --with-mac-arch argument... " >&6; } 4224 4225# Check whether --with-mac-arch was given. 4226if test "${with_mac_arch+set}" = set; then : 4227 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4228$as_echo "$MACARCH" >&6; } 4229else 4230 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4231$as_echo "defaulting to $MACARCH" >&6; } 4232fi 4233 4234 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4236$as_echo_n "checking --with-developer-dir argument... " >&6; } 4237 4238# Check whether --with-developer-dir was given. 4239if test "${with_developer_dir+set}" = set; then : 4240 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4241$as_echo "$DEVELOPER_DIR" >&6; } 4242else 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4244$as_echo "not present" >&6; } 4245fi 4246 4247 4248 if test "x$DEVELOPER_DIR" = "x"; then 4249 # Extract the first word of "xcode-select", so it can be a program name with args. 4250set dummy xcode-select; ac_word=$2 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4252$as_echo_n "checking for $ac_word... " >&6; } 4253if ${ac_cv_path_XCODE_SELECT+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 case $XCODE_SELECT in 4257 [\\/]* | ?:[\\/]*) 4258 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4259 ;; 4260 *) 4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4262for as_dir in $PATH 4263do 4264 IFS=$as_save_IFS 4265 test -z "$as_dir" && as_dir=. 4266 for ac_exec_ext in '' $ac_executable_extensions; do 4267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4268 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4270 break 2 4271 fi 4272done 4273 done 4274IFS=$as_save_IFS 4275 4276 ;; 4277esac 4278fi 4279XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4280if test -n "$XCODE_SELECT"; then 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4282$as_echo "$XCODE_SELECT" >&6; } 4283else 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4285$as_echo "no" >&6; } 4286fi 4287 4288 4289 if test "x$XCODE_SELECT" != "x"; then 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4291$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4292 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4294$as_echo "$DEVELOPER_DIR" >&6; } 4295 else 4296 DEVELOPER_DIR=/Developer 4297 fi 4298 fi 4299 4300 if test "x$MACARCH" = "xboth"; then 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4302$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4303 save_cppflags="$CPPFLAGS" 4304 save_cflags="$CFLAGS" 4305 save_ldflags="$LDFLAGS" 4306 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309 4310int 4311main () 4312{ 4313 4314 ; 4315 return 0; 4316} 4317_ACEOF 4318if ac_fn_c_try_link "$LINENO"; then : 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4320$as_echo "found" >&6; } 4321else 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4323$as_echo "not found" >&6; } 4324 CFLAGS="$save_cflags" 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4326$as_echo_n "checking if Intel architecture is supported... " >&6; } 4327 CPPFLAGS="$CPPFLAGS -arch i386" 4328 LDFLAGS="$save_ldflags -arch i386" 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331 4332int 4333main () 4334{ 4335 4336 ; 4337 return 0; 4338} 4339_ACEOF 4340if ac_fn_c_try_link "$LINENO"; then : 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4342$as_echo "yes" >&6; }; MACARCH="intel" 4343else 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4345$as_echo "no" >&6; } 4346 MACARCH="ppc" 4347 CPPFLAGS="$save_cppflags -arch ppc" 4348 LDFLAGS="$save_ldflags -arch ppc" 4349fi 4350rm -f core conftest.err conftest.$ac_objext \ 4351 conftest$ac_exeext conftest.$ac_ext 4352fi 4353rm -f core conftest.err conftest.$ac_objext \ 4354 conftest$ac_exeext conftest.$ac_ext 4355 elif test "x$MACARCH" = "xintel"; then 4356 CPPFLAGS="$CPPFLAGS -arch intel" 4357 LDFLAGS="$LDFLAGS -arch intel" 4358 elif test "x$MACARCH" = "xppc"; then 4359 CPPFLAGS="$CPPFLAGS -arch ppc" 4360 LDFLAGS="$LDFLAGS -arch ppc" 4361 fi 4362 4363 if test "$enable_darwin" = "yes"; then 4364 MACOS_X_DARWIN=yes 4365 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4366 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4367 CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN" 4368 4369 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4370for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4371 inttypes.h stdint.h unistd.h 4372do : 4373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4374ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4375" 4376if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4377 cat >>confdefs.h <<_ACEOF 4378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4379_ACEOF 4380 4381fi 4382 4383done 4384 4385 4386ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4387if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4388 CARBON=yes 4389fi 4390 4391 4392 if test "x$CARBON" = "xyes"; then 4393 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 4394 with_x=no 4395 fi 4396 fi 4397 fi 4398 4399 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4400 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4401 fi 4402 4403else 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4405$as_echo "no" >&6; } 4406fi 4407 4408for ac_header in AvailabilityMacros.h 4409do : 4410 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4411if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4412 cat >>confdefs.h <<_ACEOF 4413#define HAVE_AVAILABILITYMACROS_H 1 4414_ACEOF 4415 4416fi 4417 4418done 4419 4420 4421 4422 4423 4424if test "$cross_compiling" = no; then 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4426$as_echo_n "checking --with-local-dir argument... " >&6; } 4427 have_local_include='' 4428 have_local_lib='' 4429 4430# Check whether --with-local-dir was given. 4431if test "${with_local_dir+set}" = set; then : 4432 withval=$with_local_dir; 4433 local_dir="$withval" 4434 case "$withval" in 4435 */*) ;; 4436 no) 4437 # avoid adding local dir to LDFLAGS and CPPFLAGS 4438 have_local_include=yes 4439 have_local_lib=yes 4440 ;; 4441 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4442 esac 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4444$as_echo "$local_dir" >&6; } 4445 4446else 4447 4448 local_dir=/usr/local 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4450$as_echo "Defaulting to $local_dir" >&6; } 4451 4452fi 4453 4454 if test "$GCC" = yes -a "$local_dir" != no; then 4455 echo 'void f(){}' > conftest.c 4456 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4457 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4458 rm -f conftest.c conftest.o 4459 fi 4460 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4461 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4462 if test "$tt" = "$LDFLAGS"; then 4463 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4464 fi 4465 fi 4466 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4467 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4468 if test "$tt" = "$CPPFLAGS"; then 4469 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4470 fi 4471 fi 4472fi 4473 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4475$as_echo_n "checking --with-vim-name argument... " >&6; } 4476 4477# Check whether --with-vim-name was given. 4478if test "${with_vim_name+set}" = set; then : 4479 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4480$as_echo "$VIMNAME" >&6; } 4481else 4482 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4483$as_echo "Defaulting to $VIMNAME" >&6; } 4484fi 4485 4486 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4488$as_echo_n "checking --with-ex-name argument... " >&6; } 4489 4490# Check whether --with-ex-name was given. 4491if test "${with_ex_name+set}" = set; then : 4492 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4493$as_echo "$EXNAME" >&6; } 4494else 4495 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4496$as_echo "Defaulting to ex" >&6; } 4497fi 4498 4499 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4501$as_echo_n "checking --with-view-name argument... " >&6; } 4502 4503# Check whether --with-view-name was given. 4504if test "${with_view_name+set}" = set; then : 4505 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4506$as_echo "$VIEWNAME" >&6; } 4507else 4508 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4509$as_echo "Defaulting to view" >&6; } 4510fi 4511 4512 4513 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4515$as_echo_n "checking --with-global-runtime argument... " >&6; } 4516 4517# Check whether --with-global-runtime was given. 4518if test "${with_global_runtime+set}" = set; then : 4519 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4520$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4521#define RUNTIME_GLOBAL "$withval" 4522_ACEOF 4523 4524else 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4526$as_echo "no" >&6; } 4527fi 4528 4529 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4531$as_echo_n "checking --with-modified-by argument... " >&6; } 4532 4533# Check whether --with-modified-by was given. 4534if test "${with_modified_by+set}" = set; then : 4535 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4536$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4537#define MODIFIED_BY "$withval" 4538_ACEOF 4539 4540else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4542$as_echo "no" >&6; } 4543fi 4544 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4547$as_echo_n "checking if character set is EBCDIC... " >&6; } 4548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4549/* end confdefs.h. */ 4550 4551int 4552main () 4553{ 4554 /* TryCompile function for CharSet. 4555 Treat any failure as ASCII for compatibility with existing art. 4556 Use compile-time rather than run-time tests for cross-compiler 4557 tolerance. */ 4558#if '0'!=240 4559make an error "Character set is not EBCDIC" 4560#endif 4561 ; 4562 return 0; 4563} 4564_ACEOF 4565if ac_fn_c_try_compile "$LINENO"; then : 4566 # TryCompile action if true 4567cf_cv_ebcdic=yes 4568else 4569 # TryCompile action if false 4570cf_cv_ebcdic=no 4571fi 4572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4573# end of TryCompile ]) 4574# end of CacheVal CvEbcdic 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4576$as_echo "$cf_cv_ebcdic" >&6; } 4577case "$cf_cv_ebcdic" in #(vi 4578 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4579 4580 line_break='"\\n"' 4581 ;; 4582 *) line_break='"\\012"';; 4583esac 4584 4585 4586if test "$cf_cv_ebcdic" = "yes"; then 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4588$as_echo_n "checking for z/OS Unix... " >&6; } 4589case `uname` in 4590 OS/390) zOSUnix="yes"; 4591 if test "$CC" = "cc"; then 4592 ccm="$_CC_CCMODE" 4593 ccn="CC" 4594 else 4595 if test "$CC" = "c89"; then 4596 ccm="$_CC_C89MODE" 4597 ccn="C89" 4598 else 4599 ccm=1 4600 fi 4601 fi 4602 if test "$ccm" != "1"; then 4603 echo "" 4604 echo "------------------------------------------" 4605 echo " On z/OS Unix, the environment variable" 4606 echo " _CC_${ccn}MODE must be set to \"1\"!" 4607 echo " Do:" 4608 echo " export _CC_${ccn}MODE=1" 4609 echo " and then call configure again." 4610 echo "------------------------------------------" 4611 exit 1 4612 fi 4613 # Set CFLAGS for configure process. 4614 # This will be reset later for config.mk. 4615 # Use haltonmsg to force error for missing H files. 4616 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4617 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4619$as_echo "yes" >&6; } 4620 ;; 4621 *) zOSUnix="no"; 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623$as_echo "no" >&6; } 4624 ;; 4625esac 4626fi 4627 4628if test "$zOSUnix" = "yes"; then 4629 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4630else 4631 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4632fi 4633 4634 4635 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 4637$as_echo_n "checking --disable-smack argument... " >&6; } 4638# Check whether --enable-smack was given. 4639if test "${enable_smack+set}" = set; then : 4640 enableval=$enable_smack; 4641else 4642 enable_smack="yes" 4643fi 4644 4645if test "$enable_smack" = "yes"; then 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 4649if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 4650 true 4651else 4652 enable_smack="no" 4653fi 4654 4655 4656else 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4658$as_echo "yes" >&6; } 4659fi 4660if test "$enable_smack" = "yes"; then 4661 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 4662if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 4663 true 4664else 4665 enable_smack="no" 4666fi 4667 4668 4669fi 4670if test "$enable_smack" = "yes"; then 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 4672$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4674/* end confdefs.h. */ 4675#include <linux/xattr.h> 4676_ACEOF 4677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4678 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4680$as_echo "yes" >&6; } 4681else 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4683$as_echo "no" >&6; }; enable_smack="no" 4684fi 4685rm -f conftest* 4686 4687fi 4688if test "$enable_smack" = "yes"; then 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 4690$as_echo_n "checking for setxattr in -lattr... " >&6; } 4691if ${ac_cv_lib_attr_setxattr+:} false; then : 4692 $as_echo_n "(cached) " >&6 4693else 4694 ac_check_lib_save_LIBS=$LIBS 4695LIBS="-lattr $LIBS" 4696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4697/* end confdefs.h. */ 4698 4699/* Override any GCC internal prototype to avoid an error. 4700 Use char because int might match the return type of a GCC 4701 builtin and then its argument prototype would still apply. */ 4702#ifdef __cplusplus 4703extern "C" 4704#endif 4705char setxattr (); 4706int 4707main () 4708{ 4709return setxattr (); 4710 ; 4711 return 0; 4712} 4713_ACEOF 4714if ac_fn_c_try_link "$LINENO"; then : 4715 ac_cv_lib_attr_setxattr=yes 4716else 4717 ac_cv_lib_attr_setxattr=no 4718fi 4719rm -f core conftest.err conftest.$ac_objext \ 4720 conftest$ac_exeext conftest.$ac_ext 4721LIBS=$ac_check_lib_save_LIBS 4722fi 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 4724$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 4725if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 4726 LIBS="$LIBS -lattr" 4727 found_smack="yes" 4728 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 4729 4730fi 4731 4732fi 4733 4734if test "x$found_smack" = "x"; then 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4736$as_echo_n "checking --disable-selinux argument... " >&6; } 4737 # Check whether --enable-selinux was given. 4738if test "${enable_selinux+set}" = set; then : 4739 enableval=$enable_selinux; 4740else 4741 enable_selinux="yes" 4742fi 4743 4744 if test "$enable_selinux" = "yes"; then 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746$as_echo "no" >&6; } 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4748$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4749if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 ac_check_lib_save_LIBS=$LIBS 4753LIBS="-lselinux $LIBS" 4754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4755/* end confdefs.h. */ 4756 4757/* Override any GCC internal prototype to avoid an error. 4758 Use char because int might match the return type of a GCC 4759 builtin and then its argument prototype would still apply. */ 4760#ifdef __cplusplus 4761extern "C" 4762#endif 4763char is_selinux_enabled (); 4764int 4765main () 4766{ 4767return is_selinux_enabled (); 4768 ; 4769 return 0; 4770} 4771_ACEOF 4772if ac_fn_c_try_link "$LINENO"; then : 4773 ac_cv_lib_selinux_is_selinux_enabled=yes 4774else 4775 ac_cv_lib_selinux_is_selinux_enabled=no 4776fi 4777rm -f core conftest.err conftest.$ac_objext \ 4778 conftest$ac_exeext conftest.$ac_ext 4779LIBS=$ac_check_lib_save_LIBS 4780fi 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4782$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4783if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 4784 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 4785if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : 4786 LIBS="$LIBS -lselinux" 4787 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4788 4789fi 4790 4791 4792fi 4793 4794 else 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4796$as_echo "yes" >&6; } 4797 fi 4798fi 4799 4800 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4802$as_echo_n "checking --with-features argument... " >&6; } 4803 4804# Check whether --with-features was given. 4805if test "${with_features+set}" = set; then : 4806 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4807$as_echo "$features" >&6; } 4808else 4809 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 4810$as_echo "Defaulting to huge" >&6; } 4811fi 4812 4813 4814dovimdiff="" 4815dogvimdiff="" 4816case "$features" in 4817 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4818 ;; 4819 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4820 ;; 4821 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4822 dovimdiff="installvimdiff"; 4823 dogvimdiff="installgvimdiff" ;; 4824 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4825 dovimdiff="installvimdiff"; 4826 dogvimdiff="installgvimdiff" ;; 4827 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4828 dovimdiff="installvimdiff"; 4829 dogvimdiff="installgvimdiff" ;; 4830 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4831$as_echo "Sorry, $features is not supported" >&6; } ;; 4832esac 4833 4834 4835 4836 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4838$as_echo_n "checking --with-compiledby argument... " >&6; } 4839 4840# Check whether --with-compiledby was given. 4841if test "${with_compiledby+set}" = set; then : 4842 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4843$as_echo "$withval" >&6; } 4844else 4845 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846$as_echo "no" >&6; } 4847fi 4848 4849 4850 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4852$as_echo_n "checking --disable-xsmp argument... " >&6; } 4853# Check whether --enable-xsmp was given. 4854if test "${enable_xsmp+set}" = set; then : 4855 enableval=$enable_xsmp; 4856else 4857 enable_xsmp="yes" 4858fi 4859 4860 4861if test "$enable_xsmp" = "yes"; then 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4863$as_echo "no" >&6; } 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4865$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4866 # Check whether --enable-xsmp-interact was given. 4867if test "${enable_xsmp_interact+set}" = set; then : 4868 enableval=$enable_xsmp_interact; 4869else 4870 enable_xsmp_interact="yes" 4871fi 4872 4873 if test "$enable_xsmp_interact" = "yes"; then 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4875$as_echo "no" >&6; } 4876 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4877 4878 else 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4880$as_echo "yes" >&6; } 4881 fi 4882else 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4884$as_echo "yes" >&6; } 4885fi 4886 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4888$as_echo_n "checking --enable-luainterp argument... " >&6; } 4889# Check whether --enable-luainterp was given. 4890if test "${enable_luainterp+set}" = set; then : 4891 enableval=$enable_luainterp; 4892else 4893 enable_luainterp="no" 4894fi 4895 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4897$as_echo "$enable_luainterp" >&6; } 4898 4899if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4900 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 4901 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 4902 fi 4903 4904 4905 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4907$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4908 4909# Check whether --with-lua_prefix was given. 4910if test "${with_lua_prefix+set}" = set; then : 4911 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4912$as_echo "$with_lua_prefix" >&6; } 4913else 4914 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4915$as_echo "no" >&6; } 4916fi 4917 4918 4919 if test "X$with_lua_prefix" != "X"; then 4920 vi_cv_path_lua_pfx="$with_lua_prefix" 4921 else 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4923$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4924 if test "X$LUA_PREFIX" != "X"; then 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4926$as_echo "\"$LUA_PREFIX\"" >&6; } 4927 vi_cv_path_lua_pfx="$LUA_PREFIX" 4928 else 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4930$as_echo "not set, default to /usr" >&6; } 4931 vi_cv_path_lua_pfx="/usr" 4932 fi 4933 fi 4934 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 4936$as_echo_n "checking --with-luajit... " >&6; } 4937 4938# Check whether --with-luajit was given. 4939if test "${with_luajit+set}" = set; then : 4940 withval=$with_luajit; vi_cv_with_luajit="$withval" 4941else 4942 vi_cv_with_luajit="no" 4943fi 4944 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 4946$as_echo "$vi_cv_with_luajit" >&6; } 4947 4948 LUA_INC= 4949 if test "X$vi_cv_path_lua_pfx" != "X"; then 4950 if test "x$vi_cv_with_luajit" != "xno"; then 4951 # Extract the first word of "luajit", so it can be a program name with args. 4952set dummy luajit; ac_word=$2 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4954$as_echo_n "checking for $ac_word... " >&6; } 4955if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 4956 $as_echo_n "(cached) " >&6 4957else 4958 case $vi_cv_path_luajit in 4959 [\\/]* | ?:[\\/]*) 4960 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 4961 ;; 4962 *) 4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4964for as_dir in $PATH 4965do 4966 IFS=$as_save_IFS 4967 test -z "$as_dir" && as_dir=. 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4970 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4972 break 2 4973 fi 4974done 4975 done 4976IFS=$as_save_IFS 4977 4978 ;; 4979esac 4980fi 4981vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 4982if test -n "$vi_cv_path_luajit"; then 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 4984$as_echo "$vi_cv_path_luajit" >&6; } 4985else 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4987$as_echo "no" >&6; } 4988fi 4989 4990 4991 if test "X$vi_cv_path_luajit" != "X"; then 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 4993$as_echo_n "checking LuaJIT version... " >&6; } 4994if ${vi_cv_version_luajit+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 4998fi 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 5000$as_echo "$vi_cv_version_luajit" >&6; } 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 5002$as_echo_n "checking Lua version of LuaJIT... " >&6; } 5003if ${vi_cv_version_lua_luajit+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 5007fi 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 5009$as_echo "$vi_cv_version_lua_luajit" >&6; } 5010 vi_cv_path_lua="$vi_cv_path_luajit" 5011 vi_cv_version_lua="$vi_cv_version_lua_luajit" 5012 fi 5013 else 5014 # Extract the first word of "lua", so it can be a program name with args. 5015set dummy lua; ac_word=$2 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5017$as_echo_n "checking for $ac_word... " >&6; } 5018if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5019 $as_echo_n "(cached) " >&6 5020else 5021 case $vi_cv_path_plain_lua in 5022 [\\/]* | ?:[\\/]*) 5023 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5024 ;; 5025 *) 5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5027for as_dir in $PATH 5028do 5029 IFS=$as_save_IFS 5030 test -z "$as_dir" && as_dir=. 5031 for ac_exec_ext in '' $ac_executable_extensions; do 5032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5033 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5035 break 2 5036 fi 5037done 5038 done 5039IFS=$as_save_IFS 5040 5041 ;; 5042esac 5043fi 5044vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5045if test -n "$vi_cv_path_plain_lua"; then 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5047$as_echo "$vi_cv_path_plain_lua" >&6; } 5048else 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5050$as_echo "no" >&6; } 5051fi 5052 5053 5054 if test "X$vi_cv_path_plain_lua" != "X"; then 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5056$as_echo_n "checking Lua version... " >&6; } 5057if ${vi_cv_version_plain_lua+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5061fi 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5063$as_echo "$vi_cv_version_plain_lua" >&6; } 5064 fi 5065 vi_cv_path_lua="$vi_cv_path_plain_lua" 5066 vi_cv_version_lua="$vi_cv_version_plain_lua" 5067 fi 5068 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5069 { $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 5070$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5071 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5073$as_echo "yes" >&6; } 5074 LUA_INC=/luajit-$vi_cv_version_luajit 5075 fi 5076 fi 5077 if test "X$LUA_INC" = "X"; then 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5079$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5080 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5082$as_echo "yes" >&6; } 5083 else 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5085$as_echo "no" >&6; } 5086 { $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 5087$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5088 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5090$as_echo "yes" >&6; } 5091 LUA_INC=/lua$vi_cv_version_lua 5092 else 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5094$as_echo "no" >&6; } 5095 vi_cv_path_lua_pfx= 5096 fi 5097 fi 5098 fi 5099 fi 5100 5101 if test "X$vi_cv_path_lua_pfx" != "X"; then 5102 if test "x$vi_cv_with_luajit" != "xno"; then 5103 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5104 if test "X$multiarch" != "X"; then 5105 lib_multiarch="lib/${multiarch}" 5106 else 5107 lib_multiarch="lib" 5108 fi 5109 if test "X$vi_cv_version_lua" = "X"; then 5110 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5111 else 5112 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5113 fi 5114 else 5115 if test "X$LUA_INC" != "X"; then 5116 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5117 else 5118 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5119 fi 5120 fi 5121 if test "$enable_luainterp" = "dynamic"; then 5122 lua_ok="yes" 5123 else 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5125$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5126 libs_save=$LIBS 5127 LIBS="$LIBS $LUA_LIBS" 5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5129/* end confdefs.h. */ 5130 5131int 5132main () 5133{ 5134 5135 ; 5136 return 0; 5137} 5138_ACEOF 5139if ac_fn_c_try_link "$LINENO"; then : 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5141$as_echo "yes" >&6; }; lua_ok="yes" 5142else 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5144$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5145fi 5146rm -f core conftest.err conftest.$ac_objext \ 5147 conftest$ac_exeext conftest.$ac_ext 5148 LIBS=$libs_save 5149 fi 5150 if test "x$lua_ok" = "xyes"; then 5151 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5152 LUA_SRC="if_lua.c" 5153 LUA_OBJ="objects/if_lua.o" 5154 LUA_PRO="if_lua.pro" 5155 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5156 5157 fi 5158 if test "$enable_luainterp" = "dynamic"; then 5159 if test "x$vi_cv_with_luajit" != "xno"; then 5160 luajit="jit" 5161 fi 5162 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5163 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5164 else 5165 if test "x$MACOS_X" = "xyes"; then 5166 ext="dylib" 5167 indexes="" 5168 else 5169 ext="so" 5170 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5171 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5172 if test "X$multiarch" != "X"; then 5173 lib_multiarch="lib/${multiarch}" 5174 fi 5175 fi 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5177$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5178 for subdir in "${lib_multiarch}" lib64 lib; do 5179 if test -z "$subdir"; then 5180 continue 5181 fi 5182 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5183 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5184 for i in $indexes ""; do 5185 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5186 sover2="$i" 5187 break 3 5188 fi 5189 done 5190 done 5191 sover="" 5192 done 5193 if test "X$sover" = "X"; then 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5195$as_echo "no" >&6; } 5196 lua_ok="no" 5197 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5198 else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5200$as_echo "yes" >&6; } 5201 lua_ok="yes" 5202 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5203 fi 5204 fi 5205 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5206 5207 LUA_LIBS="" 5208 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5209 fi 5210 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5211 test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5212 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5213 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5214 fi 5215 fi 5216 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5217 as_fn_error $? "could not configure lua" "$LINENO" 5 5218 fi 5219 5220 5221 5222 5223 5224fi 5225 5226 5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5228$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5229# Check whether --enable-mzschemeinterp was given. 5230if test "${enable_mzschemeinterp+set}" = set; then : 5231 enableval=$enable_mzschemeinterp; 5232else 5233 enable_mzschemeinterp="no" 5234fi 5235 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5237$as_echo "$enable_mzschemeinterp" >&6; } 5238 5239if test "$enable_mzschemeinterp" = "yes"; then 5240 5241 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5243$as_echo_n "checking --with-plthome argument... " >&6; } 5244 5245# Check whether --with-plthome was given. 5246if test "${with_plthome+set}" = set; then : 5247 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5248$as_echo "$with_plthome" >&6; } 5249else 5250 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5251$as_echo "\"no\"" >&6; } 5252fi 5253 5254 5255 if test "X$with_plthome" != "X"; then 5256 vi_cv_path_mzscheme_pfx="$with_plthome" 5257 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5258 else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5260$as_echo_n "checking PLTHOME environment var... " >&6; } 5261 if test "X$PLTHOME" != "X"; then 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5263$as_echo "\"$PLTHOME\"" >&6; } 5264 vi_cv_path_mzscheme_pfx="$PLTHOME" 5265 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5266 else 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5268$as_echo "not set" >&6; } 5269 # Extract the first word of "mzscheme", so it can be a program name with args. 5270set dummy mzscheme; ac_word=$2 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5272$as_echo_n "checking for $ac_word... " >&6; } 5273if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 case $vi_cv_path_mzscheme in 5277 [\\/]* | ?:[\\/]*) 5278 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5279 ;; 5280 *) 5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5282for as_dir in $PATH 5283do 5284 IFS=$as_save_IFS 5285 test -z "$as_dir" && as_dir=. 5286 for ac_exec_ext in '' $ac_executable_extensions; do 5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5288 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5290 break 2 5291 fi 5292done 5293 done 5294IFS=$as_save_IFS 5295 5296 ;; 5297esac 5298fi 5299vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5300if test -n "$vi_cv_path_mzscheme"; then 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5302$as_echo "$vi_cv_path_mzscheme" >&6; } 5303else 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5305$as_echo "no" >&6; } 5306fi 5307 5308 5309 5310 if test "X$vi_cv_path_mzscheme" != "X"; then 5311 lsout=`ls -l $vi_cv_path_mzscheme` 5312 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5313 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5314 fi 5315 fi 5316 5317 if test "X$vi_cv_path_mzscheme" != "X"; then 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5319$as_echo_n "checking MzScheme install prefix... " >&6; } 5320if ${vi_cv_path_mzscheme_pfx+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 echo "(display (simplify-path \ 5324 (build-path (call-with-values \ 5325 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5326 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5327 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5328 sed -e 's+/$++'` 5329fi 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5331$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5332 rm -f mzdirs.scm 5333 fi 5334 fi 5335 fi 5336 5337 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5339$as_echo_n "checking for racket include directory... " >&6; } 5340 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5341 if test "X$SCHEME_INC" != "X"; then 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5343$as_echo "${SCHEME_INC}" >&6; } 5344 else 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5346$as_echo "not found" >&6; } 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5348$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5349 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5350 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5352$as_echo "yes" >&6; } 5353 else 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5355$as_echo "no" >&6; } 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5357$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5358 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5360$as_echo "yes" >&6; } 5361 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5362 else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5364$as_echo "no" >&6; } 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5366$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5367 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5369$as_echo "yes" >&6; } 5370 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5371 else 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5373$as_echo "no" >&6; } 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5375$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5376 if test -f /usr/include/plt/scheme.h; then 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5378$as_echo "yes" >&6; } 5379 SCHEME_INC=/usr/include/plt 5380 else 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5382$as_echo "no" >&6; } 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5384$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5385 if test -f /usr/include/racket/scheme.h; then 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5387$as_echo "yes" >&6; } 5388 SCHEME_INC=/usr/include/racket 5389 else 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5391$as_echo "no" >&6; } 5392 vi_cv_path_mzscheme_pfx= 5393 fi 5394 fi 5395 fi 5396 fi 5397 fi 5398 fi 5399 fi 5400 5401 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5402 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5404$as_echo_n "checking for racket lib directory... " >&6; } 5405 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5406 if test "X$SCHEME_LIB" != "X"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5408$as_echo "${SCHEME_LIB}" >&6; } 5409 else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5411$as_echo "not found" >&6; } 5412 fi 5413 5414 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5415 if test "X$path" != "X"; then 5416 if test "x$MACOS_X" = "xyes"; then 5417 MZSCHEME_LIBS="-framework Racket" 5418 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5419 elif test -f "${path}/libmzscheme3m.a"; then 5420 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5421 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5422 elif test -f "${path}/libracket3m.a"; then 5423 MZSCHEME_LIBS="${path}/libracket3m.a" 5424 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5425 elif test -f "${path}/libracket.a"; then 5426 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5427 elif test -f "${path}/libmzscheme.a"; then 5428 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5429 else 5430 if test -f "${path}/libmzscheme3m.so"; then 5431 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5432 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5433 elif test -f "${path}/libracket3m.so"; then 5434 MZSCHEME_LIBS="-L${path} -lracket3m" 5435 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5436 elif test -f "${path}/libracket.so"; then 5437 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5438 else 5439 if test "$path" != "$SCHEME_LIB"; then 5440 continue 5441 fi 5442 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5443 fi 5444 if test "$GCC" = yes; then 5445 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5446 elif test "`(uname) 2>/dev/null`" = SunOS && 5447 uname -r | grep '^5' >/dev/null; then 5448 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5449 fi 5450 fi 5451 fi 5452 if test "X$MZSCHEME_LIBS" != "X"; then 5453 break 5454 fi 5455 done 5456 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5458$as_echo_n "checking if racket requires -pthread... " >&6; } 5459 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5461$as_echo "yes" >&6; } 5462 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5463 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5464 else 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5466$as_echo "no" >&6; } 5467 fi 5468 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5470$as_echo_n "checking for racket config directory... " >&6; } 5471 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5472 if test "X$SCHEME_CONFIGDIR" != "X"; then 5473 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5475$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5476 else 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5478$as_echo "not found" >&6; } 5479 fi 5480 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5482$as_echo_n "checking for racket collects directory... " >&6; } 5483 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))))'` 5484 if test "X$SCHEME_COLLECTS" = "X"; then 5485 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5486 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5487 else 5488 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5489 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5490 else 5491 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5492 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5493 else 5494 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5495 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5496 fi 5497 fi 5498 fi 5499 fi 5500 fi 5501 if test "X$SCHEME_COLLECTS" != "X" ; then 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5503$as_echo "${SCHEME_COLLECTS}" >&6; } 5504 else 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5506$as_echo "not found" >&6; } 5507 fi 5508 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5510$as_echo_n "checking for mzscheme_base.c... " >&6; } 5511 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5512 MZSCHEME_EXTRA="mzscheme_base.c" 5513 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5514 MZSCHEME_MOD="++lib scheme/base" 5515 else 5516 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5517 MZSCHEME_EXTRA="mzscheme_base.c" 5518 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5519 MZSCHEME_MOD="++lib scheme/base" 5520 else 5521 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5522 MZSCHEME_EXTRA="mzscheme_base.c" 5523 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5524 MZSCHEME_MOD="" 5525 fi 5526 fi 5527 fi 5528 if test "X$MZSCHEME_EXTRA" != "X" ; then 5529 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5531$as_echo "needed" >&6; } 5532 else 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5534$as_echo "not needed" >&6; } 5535 fi 5536 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5538$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5539if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 ac_check_lib_save_LIBS=$LIBS 5543LIBS="-lffi $LIBS" 5544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5545/* end confdefs.h. */ 5546 5547/* Override any GCC internal prototype to avoid an error. 5548 Use char because int might match the return type of a GCC 5549 builtin and then its argument prototype would still apply. */ 5550#ifdef __cplusplus 5551extern "C" 5552#endif 5553char ffi_type_void (); 5554int 5555main () 5556{ 5557return ffi_type_void (); 5558 ; 5559 return 0; 5560} 5561_ACEOF 5562if ac_fn_c_try_link "$LINENO"; then : 5563 ac_cv_lib_ffi_ffi_type_void=yes 5564else 5565 ac_cv_lib_ffi_ffi_type_void=no 5566fi 5567rm -f core conftest.err conftest.$ac_objext \ 5568 conftest$ac_exeext conftest.$ac_ext 5569LIBS=$ac_check_lib_save_LIBS 5570fi 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5572$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5573if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5574 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5575fi 5576 5577 5578 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5579 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5580 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5582$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5583 cflags_save=$CFLAGS 5584 libs_save=$LIBS 5585 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5586 LIBS="$LIBS $MZSCHEME_LIBS" 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589 5590int 5591main () 5592{ 5593 5594 ; 5595 return 0; 5596} 5597_ACEOF 5598if ac_fn_c_try_link "$LINENO"; then : 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5600$as_echo "yes" >&6; }; mzs_ok=yes 5601else 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5603$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5604fi 5605rm -f core conftest.err conftest.$ac_objext \ 5606 conftest$ac_exeext conftest.$ac_ext 5607 CFLAGS=$cflags_save 5608 LIBS=$libs_save 5609 if test $mzs_ok = yes; then 5610 MZSCHEME_SRC="if_mzsch.c" 5611 MZSCHEME_OBJ="objects/if_mzsch.o" 5612 MZSCHEME_PRO="if_mzsch.pro" 5613 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5614 5615 else 5616 MZSCHEME_CFLAGS= 5617 MZSCHEME_LIBS= 5618 MZSCHEME_EXTRA= 5619 MZSCHEME_MZC= 5620 fi 5621 fi 5622 5623 5624 5625 5626 5627 5628 5629fi 5630 5631 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5633$as_echo_n "checking --enable-perlinterp argument... " >&6; } 5634# Check whether --enable-perlinterp was given. 5635if test "${enable_perlinterp+set}" = set; then : 5636 enableval=$enable_perlinterp; 5637else 5638 enable_perlinterp="no" 5639fi 5640 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 5642$as_echo "$enable_perlinterp" >&6; } 5643if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 5644 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5645 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 5646 fi 5647 5648 # Extract the first word of "perl", so it can be a program name with args. 5649set dummy perl; ac_word=$2 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5651$as_echo_n "checking for $ac_word... " >&6; } 5652if ${ac_cv_path_vi_cv_path_perl+:} false; then : 5653 $as_echo_n "(cached) " >&6 5654else 5655 case $vi_cv_path_perl in 5656 [\\/]* | ?:[\\/]*) 5657 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 5658 ;; 5659 *) 5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5661for as_dir in $PATH 5662do 5663 IFS=$as_save_IFS 5664 test -z "$as_dir" && as_dir=. 5665 for ac_exec_ext in '' $ac_executable_extensions; do 5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5667 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5669 break 2 5670 fi 5671done 5672 done 5673IFS=$as_save_IFS 5674 5675 ;; 5676esac 5677fi 5678vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 5679if test -n "$vi_cv_path_perl"; then 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 5681$as_echo "$vi_cv_path_perl" >&6; } 5682else 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5684$as_echo "no" >&6; } 5685fi 5686 5687 5688 if test "X$vi_cv_path_perl" != "X"; then 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 5690$as_echo_n "checking Perl version... " >&6; } 5691 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 5692 eval `$vi_cv_path_perl -V:usethreads` 5693 eval `$vi_cv_path_perl -V:libperl` 5694 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 5695 badthreads=no 5696 else 5697 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 5698 eval `$vi_cv_path_perl -V:use5005threads` 5699 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 5700 badthreads=no 5701 else 5702 badthreads=yes 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 5704$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 5705 fi 5706 else 5707 badthreads=yes 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5709$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5710 fi 5711 fi 5712 if test $badthreads = no; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5714$as_echo "OK" >&6; } 5715 eval `$vi_cv_path_perl -V:shrpenv` 5716 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5717 shrpenv="" 5718 fi 5719 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5720 5721 vi_cv_perl_extutils=unknown_perl_extutils_path 5722 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 5723 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 5724 if test -f "$xsubpp_path"; then 5725 vi_cv_perl_xsubpp="$xsubpp_path" 5726 fi 5727 done 5728 5729 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5730 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 5731 -e 's/-fdebug-prefix-map[^ ]*//g' \ 5732 -e 's/-pipe //' \ 5733 -e 's/-W[^ ]*//g' \ 5734 -e 's/-D_FORTIFY_SOURCE=.//g'` 5735 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5736 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5737 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5738 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5739 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5740 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5742$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5743 cflags_save=$CFLAGS 5744 libs_save=$LIBS 5745 ldflags_save=$LDFLAGS 5746 CFLAGS="$CFLAGS $perlcppflags" 5747 LIBS="$LIBS $perllibs" 5748 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 5749 LDFLAGS="$perlldflags $LDFLAGS" 5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5751/* end confdefs.h. */ 5752 5753int 5754main () 5755{ 5756 5757 ; 5758 return 0; 5759} 5760_ACEOF 5761if ac_fn_c_try_link "$LINENO"; then : 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5763$as_echo "yes" >&6; }; perl_ok=yes 5764else 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5766$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5767fi 5768rm -f core conftest.err conftest.$ac_objext \ 5769 conftest$ac_exeext conftest.$ac_ext 5770 CFLAGS=$cflags_save 5771 LIBS=$libs_save 5772 LDFLAGS=$ldflags_save 5773 if test $perl_ok = yes; then 5774 if test "X$perlcppflags" != "X"; then 5775 PERL_CFLAGS=$perlcppflags 5776 fi 5777 if test "X$perlldflags" != "X"; then 5778 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 5779 LDFLAGS="$perlldflags $LDFLAGS" 5780 fi 5781 fi 5782 PERL_LIBS=$perllibs 5783 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5784 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5785 PERL_PRO="if_perl.pro if_perlsfio.pro" 5786 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5787 5788 fi 5789 fi 5790 else 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5792$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5793 fi 5794 fi 5795 5796 if test "x$MACOS_X" = "xyes"; then 5797 dir=/System/Library/Perl 5798 darwindir=$dir/darwin 5799 if test -d $darwindir; then 5800 PERL=/usr/bin/perl 5801 else 5802 dir=/System/Library/Perl/5.8.1 5803 darwindir=$dir/darwin-thread-multi-2level 5804 if test -d $darwindir; then 5805 PERL=/usr/bin/perl 5806 fi 5807 fi 5808 if test -n "$PERL"; then 5809 PERL_DIR="$dir" 5810 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5811 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5812 PERL_LIBS="-L$darwindir/CORE -lperl" 5813 fi 5814 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5815 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5816 fi 5817 if test "$enable_perlinterp" = "dynamic"; then 5818 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5819 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5820 5821 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5822 fi 5823 fi 5824 5825 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 5826 as_fn_error $? "could not configure perl" "$LINENO" 5 5827 fi 5828fi 5829 5830 5831 5832 5833 5834 5835 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5837$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5838# Check whether --enable-pythoninterp was given. 5839if test "${enable_pythoninterp+set}" = set; then : 5840 enableval=$enable_pythoninterp; 5841else 5842 enable_pythoninterp="no" 5843fi 5844 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5846$as_echo "$enable_pythoninterp" >&6; } 5847if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5848 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5849 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 5850 fi 5851 5852 for ac_prog in python2 python 5853do 5854 # Extract the first word of "$ac_prog", so it can be a program name with args. 5855set dummy $ac_prog; ac_word=$2 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5857$as_echo_n "checking for $ac_word... " >&6; } 5858if ${ac_cv_path_vi_cv_path_python+:} false; then : 5859 $as_echo_n "(cached) " >&6 5860else 5861 case $vi_cv_path_python in 5862 [\\/]* | ?:[\\/]*) 5863 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5864 ;; 5865 *) 5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5867for as_dir in $PATH 5868do 5869 IFS=$as_save_IFS 5870 test -z "$as_dir" && as_dir=. 5871 for ac_exec_ext in '' $ac_executable_extensions; do 5872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5873 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5875 break 2 5876 fi 5877done 5878 done 5879IFS=$as_save_IFS 5880 5881 ;; 5882esac 5883fi 5884vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5885if test -n "$vi_cv_path_python"; then 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5887$as_echo "$vi_cv_path_python" >&6; } 5888else 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5890$as_echo "no" >&6; } 5891fi 5892 5893 5894 test -n "$vi_cv_path_python" && break 5895done 5896 5897 if test "X$vi_cv_path_python" != "X"; then 5898 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5900$as_echo_n "checking Python version... " >&6; } 5901if ${vi_cv_var_python_version+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 vi_cv_var_python_version=` 5905 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5906 5907fi 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5909$as_echo "$vi_cv_var_python_version" >&6; } 5910 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 5912$as_echo_n "checking Python is 2.3 or better... " >&6; } 5913 if ${vi_cv_path_python} -c \ 5914 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 5915 then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5917$as_echo "yep" >&6; } 5918 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5920$as_echo_n "checking Python's install prefix... " >&6; } 5921if ${vi_cv_path_python_pfx+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 vi_cv_path_python_pfx=` 5925 ${vi_cv_path_python} -c \ 5926 "import sys; print sys.prefix"` 5927fi 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5929$as_echo "$vi_cv_path_python_pfx" >&6; } 5930 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5932$as_echo_n "checking Python's execution prefix... " >&6; } 5933if ${vi_cv_path_python_epfx+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 vi_cv_path_python_epfx=` 5937 ${vi_cv_path_python} -c \ 5938 "import sys; print sys.exec_prefix"` 5939fi 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5941$as_echo "$vi_cv_path_python_epfx" >&6; } 5942 5943 5944 if ${vi_cv_path_pythonpath+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946else 5947 vi_cv_path_pythonpath=` 5948 unset PYTHONPATH; 5949 ${vi_cv_path_python} -c \ 5950 "import sys, string; print string.join(sys.path,':')"` 5951fi 5952 5953 5954 5955 5956# Check whether --with-python-config-dir was given. 5957if test "${with_python_config_dir+set}" = set; then : 5958 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5959fi 5960 5961 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5963$as_echo_n "checking Python's configuration directory... " >&6; } 5964if ${vi_cv_path_python_conf+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 5968 vi_cv_path_python_conf= 5969 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 5970 if test -d "$d" && test -f "$d/config.c"; then 5971 vi_cv_path_python_conf="$d" 5972 else 5973 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5974 for subdir in lib64 lib share; do 5975 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5976 if test -d "$d" && test -f "$d/config.c"; then 5977 vi_cv_path_python_conf="$d" 5978 fi 5979 done 5980 done 5981 fi 5982 5983fi 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5985$as_echo "$vi_cv_path_python_conf" >&6; } 5986 5987 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5988 5989 if test "X$PYTHON_CONFDIR" = "X"; then 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5991$as_echo "can't find it!" >&6; } 5992 else 5993 5994 if ${vi_cv_path_python_plibs+:} false; then : 5995 $as_echo_n "(cached) " >&6 5996else 5997 5998 pwd=`pwd` 5999 tmp_mkf="$pwd/config-PyMake$$" 6000 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6001__: 6002 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 6003 @echo "python_LIBS='$(LIBS)'" 6004 @echo "python_SYSLIBS='$(SYSLIBS)'" 6005 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 6006 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 6007 @echo "python_INSTSONAME='$(INSTSONAME)'" 6008 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 6009 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 6010 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 6011eof 6012 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6013 rm -f -- "${tmp_mkf}" 6014 if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 6015 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6016 vi_cv_path_python_plibs="-framework Python" 6017 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6018 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6019 fi 6020 else 6021 if test "${vi_cv_var_python_version}" = "1.4"; then 6022 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 6023 else 6024 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6025 fi 6026 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6027 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6028 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6029 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6030 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6031 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6032 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6033 fi 6034 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6035 fi 6036 fi 6037 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6038 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6039 fi 6040 6041fi 6042 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6044$as_echo_n "checking Python's dll name... " >&6; } 6045if ${vi_cv_dll_name_python+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047else 6048 6049 if test "X$python_DLLLIBRARY" != "X"; then 6050 vi_cv_dll_name_python="$python_DLLLIBRARY" 6051 else 6052 vi_cv_dll_name_python="$python_INSTSONAME" 6053 fi 6054 6055fi 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6057$as_echo "$vi_cv_dll_name_python" >&6; } 6058 6059 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6060 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6061 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6062 else 6063 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}\"'" 6064 fi 6065 PYTHON_SRC="if_python.c" 6066 PYTHON_OBJ="objects/if_python.o" 6067 if test "${vi_cv_var_python_version}" = "1.4"; then 6068 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 6069 fi 6070 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 6071 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6073$as_echo_n "checking if -pthread should be used... " >&6; } 6074 threadsafe_flag= 6075 thread_lib= 6076 if test "`(uname) 2>/dev/null`" != Darwin; then 6077 test "$GCC" = yes && threadsafe_flag="-pthread" 6078 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6079 threadsafe_flag="-D_THREAD_SAFE" 6080 thread_lib="-pthread" 6081 fi 6082 if test "`(uname) 2>/dev/null`" = SunOS; then 6083 threadsafe_flag="-pthreads" 6084 fi 6085 fi 6086 libs_save_old=$LIBS 6087 if test -n "$threadsafe_flag"; then 6088 cflags_save=$CFLAGS 6089 CFLAGS="$CFLAGS $threadsafe_flag" 6090 LIBS="$LIBS $thread_lib" 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093 6094int 6095main () 6096{ 6097 6098 ; 6099 return 0; 6100} 6101_ACEOF 6102if ac_fn_c_try_link "$LINENO"; then : 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6104$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6105else 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6107$as_echo "no" >&6; }; LIBS=$libs_save_old 6108 6109fi 6110rm -f core conftest.err conftest.$ac_objext \ 6111 conftest$ac_exeext conftest.$ac_ext 6112 CFLAGS=$cflags_save 6113 else 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6115$as_echo "no" >&6; } 6116 fi 6117 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6119$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6120 cflags_save=$CFLAGS 6121 libs_save=$LIBS 6122 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6123 LIBS="$LIBS $PYTHON_LIBS" 6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6125/* end confdefs.h. */ 6126 6127int 6128main () 6129{ 6130 6131 ; 6132 return 0; 6133} 6134_ACEOF 6135if ac_fn_c_try_link "$LINENO"; then : 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6137$as_echo "yes" >&6; }; python_ok=yes 6138else 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6140$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext \ 6143 conftest$ac_exeext conftest.$ac_ext 6144 CFLAGS=$cflags_save 6145 LIBS=$libs_save 6146 if test $python_ok = yes; then 6147 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6148 6149 else 6150 LIBS=$libs_save_old 6151 PYTHON_SRC= 6152 PYTHON_OBJ= 6153 PYTHON_LIBS= 6154 PYTHON_CFLAGS= 6155 fi 6156 fi 6157 else 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6159$as_echo "too old" >&6; } 6160 fi 6161 fi 6162 6163 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6164 as_fn_error $? "could not configure python" "$LINENO" 5 6165 fi 6166fi 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6177$as_echo_n "checking --enable-python3interp argument... " >&6; } 6178# Check whether --enable-python3interp was given. 6179if test "${enable_python3interp+set}" = set; then : 6180 enableval=$enable_python3interp; 6181else 6182 enable_python3interp="no" 6183fi 6184 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6186$as_echo "$enable_python3interp" >&6; } 6187if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6188 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6189 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6190 fi 6191 6192 for ac_prog in python3 python 6193do 6194 # Extract the first word of "$ac_prog", so it can be a program name with args. 6195set dummy $ac_prog; ac_word=$2 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6197$as_echo_n "checking for $ac_word... " >&6; } 6198if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200else 6201 case $vi_cv_path_python3 in 6202 [\\/]* | ?:[\\/]*) 6203 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6204 ;; 6205 *) 6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6207for as_dir in $PATH 6208do 6209 IFS=$as_save_IFS 6210 test -z "$as_dir" && as_dir=. 6211 for ac_exec_ext in '' $ac_executable_extensions; do 6212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6213 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6215 break 2 6216 fi 6217done 6218 done 6219IFS=$as_save_IFS 6220 6221 ;; 6222esac 6223fi 6224vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6225if test -n "$vi_cv_path_python3"; then 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6227$as_echo "$vi_cv_path_python3" >&6; } 6228else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230$as_echo "no" >&6; } 6231fi 6232 6233 6234 test -n "$vi_cv_path_python3" && break 6235done 6236 6237 if test "X$vi_cv_path_python3" != "X"; then 6238 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6240$as_echo_n "checking Python version... " >&6; } 6241if ${vi_cv_var_python3_version+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 vi_cv_var_python3_version=` 6245 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6246 6247fi 6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6249$as_echo "$vi_cv_var_python3_version" >&6; } 6250 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6252$as_echo_n "checking Python is 3.0 or better... " >&6; } 6253 if ${vi_cv_path_python3} -c \ 6254 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6255 then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6257$as_echo "yep" >&6; } 6258 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6260$as_echo_n "checking Python's abiflags... " >&6; } 6261if ${vi_cv_var_python3_abiflags+:} false; then : 6262 $as_echo_n "(cached) " >&6 6263else 6264 6265 vi_cv_var_python3_abiflags= 6266 if ${vi_cv_path_python3} -c \ 6267 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6268 then 6269 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6270 "import sys; print(sys.abiflags)"` 6271 fi 6272fi 6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6274$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6275 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6277$as_echo_n "checking Python's install prefix... " >&6; } 6278if ${vi_cv_path_python3_pfx+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 vi_cv_path_python3_pfx=` 6282 ${vi_cv_path_python3} -c \ 6283 "import sys; print(sys.prefix)"` 6284fi 6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6286$as_echo "$vi_cv_path_python3_pfx" >&6; } 6287 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6289$as_echo_n "checking Python's execution prefix... " >&6; } 6290if ${vi_cv_path_python3_epfx+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 vi_cv_path_python3_epfx=` 6294 ${vi_cv_path_python3} -c \ 6295 "import sys; print(sys.exec_prefix)"` 6296fi 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6298$as_echo "$vi_cv_path_python3_epfx" >&6; } 6299 6300 6301 if ${vi_cv_path_python3path+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 vi_cv_path_python3path=` 6305 unset PYTHONPATH; 6306 ${vi_cv_path_python3} -c \ 6307 "import sys, string; print(':'.join(sys.path))"` 6308fi 6309 6310 6311 6312 6313# Check whether --with-python3-config-dir was given. 6314if test "${with_python3_config_dir+set}" = set; then : 6315 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 6316fi 6317 6318 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6320$as_echo_n "checking Python's configuration directory... " >&6; } 6321if ${vi_cv_path_python3_conf+:} false; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 6325 vi_cv_path_python3_conf= 6326 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6327 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6328 if test -d "$d" && test -f "$d/config.c"; then 6329 vi_cv_path_python3_conf="$d" 6330 else 6331 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6332 for subdir in lib64 lib share; do 6333 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6334 if test -d "$d" && test -f "$d/config.c"; then 6335 vi_cv_path_python3_conf="$d" 6336 fi 6337 done 6338 done 6339 fi 6340 6341fi 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6343$as_echo "$vi_cv_path_python3_conf" >&6; } 6344 6345 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6346 6347 if test "X$PYTHON3_CONFDIR" = "X"; then 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6349$as_echo "can't find it!" >&6; } 6350 else 6351 6352 if ${vi_cv_path_python3_plibs+:} false; then : 6353 $as_echo_n "(cached) " >&6 6354else 6355 6356 pwd=`pwd` 6357 tmp_mkf="$pwd/config-PyMake$$" 6358 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6359__: 6360 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6361 @echo "python3_LIBS='$(LIBS)'" 6362 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6363 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6364 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6365eof 6366 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6367 rm -f -- "${tmp_mkf}" 6368 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6369 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6370 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6371 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6372 6373fi 6374 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6376$as_echo_n "checking Python3's dll name... " >&6; } 6377if ${vi_cv_dll_name_python3+:} false; then : 6378 $as_echo_n "(cached) " >&6 6379else 6380 6381 if test "X$python3_DLLLIBRARY" != "X"; then 6382 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6383 else 6384 vi_cv_dll_name_python3="$python3_INSTSONAME" 6385 fi 6386 6387fi 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6389$as_echo "$vi_cv_dll_name_python3" >&6; } 6390 6391 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6392 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6393 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}\"'" 6394 else 6395 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}\"'" 6396 fi 6397 PYTHON3_SRC="if_python3.c" 6398 PYTHON3_OBJ="objects/if_python3.o" 6399 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6401$as_echo_n "checking if -pthread should be used... " >&6; } 6402 threadsafe_flag= 6403 thread_lib= 6404 if test "`(uname) 2>/dev/null`" != Darwin; then 6405 test "$GCC" = yes && threadsafe_flag="-pthread" 6406 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6407 threadsafe_flag="-D_THREAD_SAFE" 6408 thread_lib="-pthread" 6409 fi 6410 if test "`(uname) 2>/dev/null`" = SunOS; then 6411 threadsafe_flag="-pthreads" 6412 fi 6413 fi 6414 libs_save_old=$LIBS 6415 if test -n "$threadsafe_flag"; then 6416 cflags_save=$CFLAGS 6417 CFLAGS="$CFLAGS $threadsafe_flag" 6418 LIBS="$LIBS $thread_lib" 6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6420/* end confdefs.h. */ 6421 6422int 6423main () 6424{ 6425 6426 ; 6427 return 0; 6428} 6429_ACEOF 6430if ac_fn_c_try_link "$LINENO"; then : 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6432$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6433else 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6435$as_echo "no" >&6; }; LIBS=$libs_save_old 6436 6437fi 6438rm -f core conftest.err conftest.$ac_objext \ 6439 conftest$ac_exeext conftest.$ac_ext 6440 CFLAGS=$cflags_save 6441 else 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6443$as_echo "no" >&6; } 6444 fi 6445 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6447$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6448 cflags_save=$CFLAGS 6449 libs_save=$LIBS 6450 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6451 LIBS="$LIBS $PYTHON3_LIBS" 6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6453/* end confdefs.h. */ 6454 6455int 6456main () 6457{ 6458 6459 ; 6460 return 0; 6461} 6462_ACEOF 6463if ac_fn_c_try_link "$LINENO"; then : 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6465$as_echo "yes" >&6; }; python3_ok=yes 6466else 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6468$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6469fi 6470rm -f core conftest.err conftest.$ac_objext \ 6471 conftest$ac_exeext conftest.$ac_ext 6472 CFLAGS=$cflags_save 6473 LIBS=$libs_save 6474 if test "$python3_ok" = yes; then 6475 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6476 6477 else 6478 LIBS=$libs_save_old 6479 PYTHON3_SRC= 6480 PYTHON3_OBJ= 6481 PYTHON3_LIBS= 6482 PYTHON3_CFLAGS= 6483 fi 6484 fi 6485 else 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6487$as_echo "too old" >&6; } 6488 fi 6489 fi 6490 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6491 as_fn_error $? "could not configure python3" "$LINENO" 5 6492 fi 6493fi 6494 6495 6496 6497 6498 6499 6500 6501if test "$python_ok" = yes && test "$python3_ok" = yes; then 6502 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6503 6504 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6505 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6507$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6508 cflags_save=$CFLAGS 6509 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6510 libs_save=$LIBS 6511 LIBS="-ldl $LIBS" 6512 if test "$cross_compiling" = yes; then : 6513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6515as_fn_error $? "cannot run test program while cross compiling 6516See \`config.log' for more details" "$LINENO" 5; } 6517else 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519/* end confdefs.h. */ 6520 6521 #include <dlfcn.h> 6522 /* If this program fails, then RTLD_GLOBAL is needed. 6523 * RTLD_GLOBAL will be used and then it is not possible to 6524 * have both python versions enabled in the same vim instance. 6525 * Only the first python version used will be switched on. 6526 */ 6527 6528 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6529 { 6530 int needed = 0; 6531 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6532 if (pylib != 0) 6533 { 6534 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6535 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6536 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6537 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6538 (*pfx)(prefix); 6539 (*init)(); 6540 needed = (*simple)("import termios") == -1; 6541 (*final)(); 6542 dlclose(pylib); 6543 } 6544 return !needed; 6545 } 6546 6547 int main(int argc, char** argv) 6548 { 6549 int not_needed = 0; 6550 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6551 not_needed = 1; 6552 return !not_needed; 6553 } 6554_ACEOF 6555if ac_fn_c_try_run "$LINENO"; then : 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6557$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6558 6559else 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6561$as_echo "no" >&6; } 6562fi 6563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6564 conftest.$ac_objext conftest.beam conftest.$ac_ext 6565fi 6566 6567 6568 CFLAGS=$cflags_save 6569 LIBS=$libs_save 6570 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6572$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6573 cflags_save=$CFLAGS 6574 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6575 libs_save=$LIBS 6576 LIBS="-ldl $LIBS" 6577 if test "$cross_compiling" = yes; then : 6578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6580as_fn_error $? "cannot run test program while cross compiling 6581See \`config.log' for more details" "$LINENO" 5; } 6582else 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585 6586 #include <dlfcn.h> 6587 #include <wchar.h> 6588 /* If this program fails, then RTLD_GLOBAL is needed. 6589 * RTLD_GLOBAL will be used and then it is not possible to 6590 * have both python versions enabled in the same vim instance. 6591 * Only the first python version used will be switched on. 6592 */ 6593 6594 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6595 { 6596 int needed = 0; 6597 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6598 if (pylib != 0) 6599 { 6600 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6601 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6602 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6603 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6604 (*pfx)(prefix); 6605 (*init)(); 6606 needed = (*simple)("import termios") == -1; 6607 (*final)(); 6608 dlclose(pylib); 6609 } 6610 return !needed; 6611 } 6612 6613 int main(int argc, char** argv) 6614 { 6615 int not_needed = 0; 6616 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 6617 not_needed = 1; 6618 return !not_needed; 6619 } 6620_ACEOF 6621if ac_fn_c_try_run "$LINENO"; then : 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6623$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 6624 6625else 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6627$as_echo "no" >&6; } 6628fi 6629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6630 conftest.$ac_objext conftest.beam conftest.$ac_ext 6631fi 6632 6633 6634 CFLAGS=$cflags_save 6635 LIBS=$libs_save 6636 6637 PYTHON_SRC="if_python.c" 6638 PYTHON_OBJ="objects/if_python.o" 6639 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6640 PYTHON_LIBS= 6641 PYTHON3_SRC="if_python3.c" 6642 PYTHON3_OBJ="objects/if_python3.o" 6643 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6644 PYTHON3_LIBS= 6645elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 6646 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6647 6648 PYTHON_SRC="if_python.c" 6649 PYTHON_OBJ="objects/if_python.o" 6650 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6651 PYTHON_LIBS= 6652elif test "$python_ok" = yes; then 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 6654$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 6655 cflags_save=$CFLAGS 6656 libs_save=$LIBS 6657 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 6658 LIBS="$LIBS $PYTHON_LIBS" 6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6660/* end confdefs.h. */ 6661 6662int 6663main () 6664{ 6665 6666 ; 6667 return 0; 6668} 6669_ACEOF 6670if ac_fn_c_try_link "$LINENO"; then : 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6672$as_echo "yes" >&6; }; fpie_ok=yes 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6675$as_echo "no" >&6; }; fpie_ok=no 6676fi 6677rm -f core conftest.err conftest.$ac_objext \ 6678 conftest$ac_exeext conftest.$ac_ext 6679 CFLAGS=$cflags_save 6680 LIBS=$libs_save 6681 if test $fpie_ok = yes; then 6682 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 6683 fi 6684elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 6685 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6686 6687 PYTHON3_SRC="if_python3.c" 6688 PYTHON3_OBJ="objects/if_python3.o" 6689 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6690 PYTHON3_LIBS= 6691elif test "$python3_ok" = yes; then 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 6693$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 6694 cflags_save=$CFLAGS 6695 libs_save=$LIBS 6696 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 6697 LIBS="$LIBS $PYTHON3_LIBS" 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699/* end confdefs.h. */ 6700 6701int 6702main () 6703{ 6704 6705 ; 6706 return 0; 6707} 6708_ACEOF 6709if ac_fn_c_try_link "$LINENO"; then : 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6711$as_echo "yes" >&6; }; fpie_ok=yes 6712else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714$as_echo "no" >&6; }; fpie_ok=no 6715fi 6716rm -f core conftest.err conftest.$ac_objext \ 6717 conftest$ac_exeext conftest.$ac_ext 6718 CFLAGS=$cflags_save 6719 LIBS=$libs_save 6720 if test $fpie_ok = yes; then 6721 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 6722 fi 6723fi 6724 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 6726$as_echo_n "checking --enable-tclinterp argument... " >&6; } 6727# Check whether --enable-tclinterp was given. 6728if test "${enable_tclinterp+set}" = set; then : 6729 enableval=$enable_tclinterp; 6730else 6731 enable_tclinterp="no" 6732fi 6733 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 6735$as_echo "$enable_tclinterp" >&6; } 6736 6737if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 6738 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 6740$as_echo_n "checking --with-tclsh argument... " >&6; } 6741 6742# Check whether --with-tclsh was given. 6743if test "${with_tclsh+set}" = set; then : 6744 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 6745$as_echo "$tclsh_name" >&6; } 6746else 6747 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748$as_echo "no" >&6; } 6749fi 6750 6751 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6752set dummy $tclsh_name; ac_word=$2 6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6754$as_echo_n "checking for $ac_word... " >&6; } 6755if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757else 6758 case $vi_cv_path_tcl in 6759 [\\/]* | ?:[\\/]*) 6760 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6761 ;; 6762 *) 6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6764for as_dir in $PATH 6765do 6766 IFS=$as_save_IFS 6767 test -z "$as_dir" && as_dir=. 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6770 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774done 6775 done 6776IFS=$as_save_IFS 6777 6778 ;; 6779esac 6780fi 6781vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6782if test -n "$vi_cv_path_tcl"; then 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6784$as_echo "$vi_cv_path_tcl" >&6; } 6785else 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6787$as_echo "no" >&6; } 6788fi 6789 6790 6791 6792 6793 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 6794 tclsh_name="tclsh8.4" 6795 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6796set dummy $tclsh_name; ac_word=$2 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6798$as_echo_n "checking for $ac_word... " >&6; } 6799if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 case $vi_cv_path_tcl in 6803 [\\/]* | ?:[\\/]*) 6804 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6805 ;; 6806 *) 6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6808for as_dir in $PATH 6809do 6810 IFS=$as_save_IFS 6811 test -z "$as_dir" && as_dir=. 6812 for ac_exec_ext in '' $ac_executable_extensions; do 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6814 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6816 break 2 6817 fi 6818done 6819 done 6820IFS=$as_save_IFS 6821 6822 ;; 6823esac 6824fi 6825vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6826if test -n "$vi_cv_path_tcl"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6828$as_echo "$vi_cv_path_tcl" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 6835 fi 6836 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 6837 tclsh_name="tclsh8.2" 6838 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6839set dummy $tclsh_name; ac_word=$2 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6841$as_echo_n "checking for $ac_word... " >&6; } 6842if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 case $vi_cv_path_tcl in 6846 [\\/]* | ?:[\\/]*) 6847 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6848 ;; 6849 *) 6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6857 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865 ;; 6866esac 6867fi 6868vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6869if test -n "$vi_cv_path_tcl"; then 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6871$as_echo "$vi_cv_path_tcl" >&6; } 6872else 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6874$as_echo "no" >&6; } 6875fi 6876 6877 6878 fi 6879 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 6880 tclsh_name="tclsh8.0" 6881 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6882set dummy $tclsh_name; ac_word=$2 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6884$as_echo_n "checking for $ac_word... " >&6; } 6885if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 case $vi_cv_path_tcl in 6889 [\\/]* | ?:[\\/]*) 6890 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6891 ;; 6892 *) 6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 test -z "$as_dir" && as_dir=. 6898 for ac_exec_ext in '' $ac_executable_extensions; do 6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6900 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6902 break 2 6903 fi 6904done 6905 done 6906IFS=$as_save_IFS 6907 6908 ;; 6909esac 6910fi 6911vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6912if test -n "$vi_cv_path_tcl"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6914$as_echo "$vi_cv_path_tcl" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 6921 fi 6922 if test "X$vi_cv_path_tcl" = "X"; then 6923 tclsh_name="tclsh" 6924 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6925set dummy $tclsh_name; ac_word=$2 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6927$as_echo_n "checking for $ac_word... " >&6; } 6928if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6929 $as_echo_n "(cached) " >&6 6930else 6931 case $vi_cv_path_tcl in 6932 [\\/]* | ?:[\\/]*) 6933 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6934 ;; 6935 *) 6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6943 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947done 6948 done 6949IFS=$as_save_IFS 6950 6951 ;; 6952esac 6953fi 6954vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6955if test -n "$vi_cv_path_tcl"; then 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6957$as_echo "$vi_cv_path_tcl" >&6; } 6958else 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6960$as_echo "no" >&6; } 6961fi 6962 6963 6964 fi 6965 if test "X$vi_cv_path_tcl" != "X"; then 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 6967$as_echo_n "checking Tcl version... " >&6; } 6968 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 6969 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6971$as_echo "$tclver - OK" >&6; }; 6972 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 -` 6973 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 6974 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6976$as_echo_n "checking for location of Tcl include... " >&6; } 6977 if test "x$MACOS_X" != "xyes"; then 6978 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6979 else 6980 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6981 fi 6982 TCL_INC= 6983 for try in $tclinc; do 6984 if test -f "$try/tcl.h"; then 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6986$as_echo "$try/tcl.h" >&6; } 6987 TCL_INC=$try 6988 break 6989 fi 6990 done 6991 if test -z "$TCL_INC"; then 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6993$as_echo "<not found>" >&6; } 6994 SKIP_TCL=YES 6995 fi 6996 if test -z "$SKIP_TCL"; then 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6998$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6999 if test "x$MACOS_X" != "xyes"; then 7000 tclcnf=`echo $tclinc | sed s/include/lib/g` 7001 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 7002 else 7003 tclcnf="/System/Library/Frameworks/Tcl.framework" 7004 fi 7005 for try in $tclcnf; do 7006 if test -f "$try/tclConfig.sh"; then 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 7008$as_echo "$try/tclConfig.sh" >&6; } 7009 . "$try/tclConfig.sh" 7010 if test "$enable_tclinterp" = "dynamic"; then 7011 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 7012 else 7013 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 7014 fi 7015 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'` 7016 break 7017 fi 7018 done 7019 if test -z "$TCL_LIBS"; then 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7021$as_echo "<not found>" >&6; } 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7023$as_echo_n "checking for Tcl library by myself... " >&6; } 7024 tcllib=`echo $tclinc | sed s/include/lib/g` 7025 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7026 for ext in .so .a ; do 7027 for ver in "" $tclver ; do 7028 for try in $tcllib ; do 7029 trylib=tcl$ver$ext 7030 if test -f "$try/lib$trylib" ; then 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7032$as_echo "$try/lib$trylib" >&6; } 7033 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7034 if test "`(uname) 2>/dev/null`" = SunOS && 7035 uname -r | grep '^5' >/dev/null; then 7036 TCL_LIBS="$TCL_LIBS -R $try" 7037 fi 7038 break 3 7039 fi 7040 done 7041 done 7042 done 7043 if test -z "$TCL_LIBS"; then 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7045$as_echo "<not found>" >&6; } 7046 SKIP_TCL=YES 7047 fi 7048 fi 7049 if test -z "$SKIP_TCL"; then 7050 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7051 7052 TCL_SRC=if_tcl.c 7053 TCL_OBJ=objects/if_tcl.o 7054 TCL_PRO=if_tcl.pro 7055 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7056 fi 7057 fi 7058 else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7060$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7061 fi 7062 fi 7063 if test "$enable_tclinterp" = "dynamic"; then 7064 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7065 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7066 7067 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7068 fi 7069 fi 7070 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7071 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7072 fi 7073fi 7074 7075 7076 7077 7078 7079 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7081$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7082# Check whether --enable-rubyinterp was given. 7083if test "${enable_rubyinterp+set}" = set; then : 7084 enableval=$enable_rubyinterp; 7085else 7086 enable_rubyinterp="no" 7087fi 7088 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7090$as_echo "$enable_rubyinterp" >&6; } 7091if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7092 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7093 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7094 fi 7095 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7097$as_echo_n "checking --with-ruby-command argument... " >&6; } 7098 7099 7100# Check whether --with-ruby-command was given. 7101if test "${with_ruby_command+set}" = set; then : 7102 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7103$as_echo "$RUBY_CMD" >&6; } 7104else 7105 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7106$as_echo "defaulting to $RUBY_CMD" >&6; } 7107fi 7108 7109 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7110set dummy $RUBY_CMD; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 case $vi_cv_path_ruby in 7117 [\\/]* | ?:[\\/]*) 7118 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7119 ;; 7120 *) 7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7122for as_dir in $PATH 7123do 7124 IFS=$as_save_IFS 7125 test -z "$as_dir" && as_dir=. 7126 for ac_exec_ext in '' $ac_executable_extensions; do 7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7128 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7130 break 2 7131 fi 7132done 7133 done 7134IFS=$as_save_IFS 7135 7136 ;; 7137esac 7138fi 7139vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7140if test -n "$vi_cv_path_ruby"; then 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7142$as_echo "$vi_cv_path_ruby" >&6; } 7143else 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7145$as_echo "no" >&6; } 7146fi 7147 7148 7149 if test "X$vi_cv_path_ruby" != "X"; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7151$as_echo_n "checking Ruby version... " >&6; } 7152 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7154$as_echo "OK" >&6; } 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7156$as_echo_n "checking Ruby rbconfig... " >&6; } 7157 ruby_rbconfig="RbConfig" 7158 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7159 ruby_rbconfig="Config" 7160 fi 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7162$as_echo "$ruby_rbconfig" >&6; } 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7164$as_echo_n "checking Ruby header files... " >&6; } 7165 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7166 if test "X$rubyhdrdir" != "X"; then 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7168$as_echo "$rubyhdrdir" >&6; } 7169 RUBY_CFLAGS="-I$rubyhdrdir" 7170 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7171 if test -d "$rubyarchdir"; then 7172 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7173 fi 7174 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7175 if test "X$rubyversion" = "X"; then 7176 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7177 fi 7178 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7179 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7180 if test "X$rubylibs" != "X"; then 7181 RUBY_LIBS="$rubylibs" 7182 fi 7183 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7184 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7185 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7186 if test -f "$rubylibdir/$librubya"; then 7187 librubyarg="$librubyarg" 7188 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7189 elif test "$librubyarg" = "libruby.a"; then 7190 librubyarg="-lruby" 7191 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7192 fi 7193 7194 if test "X$librubyarg" != "X"; then 7195 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7196 fi 7197 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7198 if test "X$rubyldflags" != "X"; then 7199 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7200 if test "X$rubyldflags" != "X"; then 7201 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7202 LDFLAGS="$rubyldflags $LDFLAGS" 7203 fi 7204 fi 7205 fi 7206 RUBY_SRC="if_ruby.c" 7207 RUBY_OBJ="objects/if_ruby.o" 7208 RUBY_PRO="if_ruby.pro" 7209 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7210 7211 if test "$enable_rubyinterp" = "dynamic"; then 7212 libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"` 7213 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7214 7215 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7216 RUBY_LIBS= 7217 fi 7218 else 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7220$as_echo "not found; disabling Ruby" >&6; } 7221 fi 7222 else 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7224$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7225 fi 7226 fi 7227 7228 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7229 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7230 fi 7231fi 7232 7233 7234 7235 7236 7237 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7239$as_echo_n "checking --enable-cscope argument... " >&6; } 7240# Check whether --enable-cscope was given. 7241if test "${enable_cscope+set}" = set; then : 7242 enableval=$enable_cscope; 7243else 7244 enable_cscope="no" 7245fi 7246 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7248$as_echo "$enable_cscope" >&6; } 7249if test "$enable_cscope" = "yes"; then 7250 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7251 7252fi 7253 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7255$as_echo_n "checking --enable-workshop argument... " >&6; } 7256# Check whether --enable-workshop was given. 7257if test "${enable_workshop+set}" = set; then : 7258 enableval=$enable_workshop; 7259else 7260 enable_workshop="no" 7261fi 7262 7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7264$as_echo "$enable_workshop" >&6; } 7265if test "$enable_workshop" = "yes"; then 7266 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7267 7268 WORKSHOP_SRC="workshop.c integration.c" 7269 7270 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7271 7272 if test "${enable_gui-xxx}" = xxx; then 7273 enable_gui=motif 7274 fi 7275fi 7276 7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7278$as_echo_n "checking --disable-netbeans argument... " >&6; } 7279# Check whether --enable-netbeans was given. 7280if test "${enable_netbeans+set}" = set; then : 7281 enableval=$enable_netbeans; 7282else 7283 enable_netbeans="yes" 7284fi 7285 7286if test "$enable_netbeans" = "yes"; then 7287 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7289$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7290 enable_netbeans="no" 7291 else 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7293$as_echo "no" >&6; } 7294 fi 7295else 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7297$as_echo "yes" >&6; } 7298fi 7299 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7301$as_echo_n "checking --disable-channel argument... " >&6; } 7302# Check whether --enable-channel was given. 7303if test "${enable_channel+set}" = set; then : 7304 enableval=$enable_channel; 7305else 7306 enable_channel="yes" 7307fi 7308 7309if test "$enable_channel" = "yes"; then 7310 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7312$as_echo "cannot use channels with tiny or small features" >&6; } 7313 enable_channel="no" 7314 else 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7316$as_echo "no" >&6; } 7317 fi 7318else 7319 if test "$enable_netbeans" = "yes"; then 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7321$as_echo "yes, netbeans also disabled" >&6; } 7322 enable_netbeans="no" 7323 else 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7325$as_echo "yes" >&6; } 7326 fi 7327fi 7328 7329if test "$enable_channel" = "yes"; then 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7331$as_echo_n "checking for socket in -lsocket... " >&6; } 7332if ${ac_cv_lib_socket_socket+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 ac_check_lib_save_LIBS=$LIBS 7336LIBS="-lsocket $LIBS" 7337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339 7340/* Override any GCC internal prototype to avoid an error. 7341 Use char because int might match the return type of a GCC 7342 builtin and then its argument prototype would still apply. */ 7343#ifdef __cplusplus 7344extern "C" 7345#endif 7346char socket (); 7347int 7348main () 7349{ 7350return socket (); 7351 ; 7352 return 0; 7353} 7354_ACEOF 7355if ac_fn_c_try_link "$LINENO"; then : 7356 ac_cv_lib_socket_socket=yes 7357else 7358 ac_cv_lib_socket_socket=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext \ 7361 conftest$ac_exeext conftest.$ac_ext 7362LIBS=$ac_check_lib_save_LIBS 7363fi 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7365$as_echo "$ac_cv_lib_socket_socket" >&6; } 7366if test "x$ac_cv_lib_socket_socket" = xyes; then : 7367 cat >>confdefs.h <<_ACEOF 7368#define HAVE_LIBSOCKET 1 7369_ACEOF 7370 7371 LIBS="-lsocket $LIBS" 7372 7373fi 7374 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7376$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7377if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 ac_check_lib_save_LIBS=$LIBS 7381LIBS="-lnsl $LIBS" 7382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7383/* end confdefs.h. */ 7384 7385/* Override any GCC internal prototype to avoid an error. 7386 Use char because int might match the return type of a GCC 7387 builtin and then its argument prototype would still apply. */ 7388#ifdef __cplusplus 7389extern "C" 7390#endif 7391char gethostbyname (); 7392int 7393main () 7394{ 7395return gethostbyname (); 7396 ; 7397 return 0; 7398} 7399_ACEOF 7400if ac_fn_c_try_link "$LINENO"; then : 7401 ac_cv_lib_nsl_gethostbyname=yes 7402else 7403 ac_cv_lib_nsl_gethostbyname=no 7404fi 7405rm -f core conftest.err conftest.$ac_objext \ 7406 conftest$ac_exeext conftest.$ac_ext 7407LIBS=$ac_check_lib_save_LIBS 7408fi 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7410$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7411if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7412 cat >>confdefs.h <<_ACEOF 7413#define HAVE_LIBNSL 1 7414_ACEOF 7415 7416 LIBS="-lnsl $LIBS" 7417 7418fi 7419 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7421$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424 7425#include <stdio.h> 7426#include <stdlib.h> 7427#include <stdarg.h> 7428#include <fcntl.h> 7429#include <netdb.h> 7430#include <netinet/in.h> 7431#include <errno.h> 7432#include <sys/types.h> 7433#include <sys/socket.h> 7434 /* Check bitfields */ 7435 struct nbbuf { 7436 unsigned int initDone:1; 7437 unsigned short signmaplen; 7438 }; 7439 7440int 7441main () 7442{ 7443 7444 /* Check creating a socket. */ 7445 struct sockaddr_in server; 7446 (void)socket(AF_INET, SOCK_STREAM, 0); 7447 (void)htons(100); 7448 (void)gethostbyname("microsoft.com"); 7449 if (errno == ECONNREFUSED) 7450 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7451 7452 ; 7453 return 0; 7454} 7455_ACEOF 7456if ac_fn_c_try_link "$LINENO"; then : 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7458$as_echo "yes" >&6; } 7459else 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7461$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7462fi 7463rm -f core conftest.err conftest.$ac_objext \ 7464 conftest$ac_exeext conftest.$ac_ext 7465fi 7466if test "$enable_netbeans" = "yes"; then 7467 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7468 7469 NETBEANS_SRC="netbeans.c" 7470 7471 NETBEANS_OBJ="objects/netbeans.o" 7472 7473fi 7474if test "$enable_channel" = "yes"; then 7475 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7476 7477 CHANNEL_SRC="channel.c" 7478 7479 CHANNEL_OBJ="objects/channel.o" 7480 7481fi 7482 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 7484$as_echo_n "checking --enable-terminal argument... " >&6; } 7485# Check whether --enable-terminal was given. 7486if test "${enable_terminal+set}" = set; then : 7487 enableval=$enable_terminal; 7488else 7489 enable_terminal="auto" 7490fi 7491 7492if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then 7493 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 7495$as_echo "cannot use terminal emulator with tiny or small features" >&6; } 7496 enable_terminal="no" 7497 else 7498 if test "$enable_terminal" = "auto"; then 7499 enable_terminal="yes" 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 7501$as_echo "defaulting to yes" >&6; } 7502 else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7504$as_echo "yes" >&6; } 7505 fi 7506 fi 7507else 7508 if test "$enable_terminal" = "auto"; then 7509 enable_terminal="no" 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 7511$as_echo "defaulting to no" >&6; } 7512 else 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7514$as_echo "no" >&6; } 7515 fi 7516fi 7517if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then 7518 $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h 7519 7520 TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/screen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c" 7521 7522 TERM_OBJ="objects/term_encoding.o objects/term_keyboard.o objects/term_mouse.o objects/term_parser.o objects/term_pen.o objects/term_screen.o objects/term_state.o objects/term_unicode.o objects/term_vterm.o" 7523 7524fi 7525 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5 7527$as_echo_n "checking --enable-autoservername argument... " >&6; } 7528# Check whether --enable-autoservername was given. 7529if test "${enable_autoservername+set}" = set; then : 7530 enableval=$enable_autoservername; 7531else 7532 enable_autoservername="no" 7533fi 7534 7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5 7536$as_echo "$enable_autoservername" >&6; } 7537if test "$enable_autoservername" = "yes"; then 7538 $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h 7539 7540fi 7541 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7543$as_echo_n "checking --enable-multibyte argument... " >&6; } 7544# Check whether --enable-multibyte was given. 7545if test "${enable_multibyte+set}" = set; then : 7546 enableval=$enable_multibyte; 7547else 7548 enable_multibyte="no" 7549fi 7550 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7552$as_echo "$enable_multibyte" >&6; } 7553if test "$enable_multibyte" = "yes"; then 7554 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7555 7556fi 7557 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7559$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7560# Check whether --enable-hangulinput was given. 7561if test "${enable_hangulinput+set}" = set; then : 7562 enableval=$enable_hangulinput; 7563else 7564 enable_hangulinput="no" 7565fi 7566 7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7568$as_echo "$enable_hangulinput" >&6; } 7569 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7571$as_echo_n "checking --enable-xim argument... " >&6; } 7572# Check whether --enable-xim was given. 7573if test "${enable_xim+set}" = set; then : 7574 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7575$as_echo "$enable_xim" >&6; } 7576else 7577 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7578$as_echo "defaulting to auto" >&6; } 7579fi 7580 7581 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7583$as_echo_n "checking --enable-fontset argument... " >&6; } 7584# Check whether --enable-fontset was given. 7585if test "${enable_fontset+set}" = set; then : 7586 enableval=$enable_fontset; 7587else 7588 enable_fontset="no" 7589fi 7590 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7592$as_echo "$enable_fontset" >&6; } 7593 7594test -z "$with_x" && with_x=yes 7595test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7596if test "$with_x" = no; then 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7598$as_echo "defaulting to: don't HAVE_X11" >&6; } 7599else 7600 7601 # Extract the first word of "xmkmf", so it can be a program name with args. 7602set dummy xmkmf; ac_word=$2 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if ${ac_cv_path_xmkmfpath+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 case $xmkmfpath in 7609 [\\/]* | ?:[\\/]*) 7610 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 7611 ;; 7612 *) 7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7614for as_dir in $PATH 7615do 7616 IFS=$as_save_IFS 7617 test -z "$as_dir" && as_dir=. 7618 for ac_exec_ext in '' $ac_executable_extensions; do 7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7620 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7622 break 2 7623 fi 7624done 7625 done 7626IFS=$as_save_IFS 7627 7628 ;; 7629esac 7630fi 7631xmkmfpath=$ac_cv_path_xmkmfpath 7632if test -n "$xmkmfpath"; then 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 7634$as_echo "$xmkmfpath" >&6; } 7635else 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7637$as_echo "no" >&6; } 7638fi 7639 7640 7641 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7643$as_echo_n "checking for X... " >&6; } 7644 7645 7646# Check whether --with-x was given. 7647if test "${with_x+set}" = set; then : 7648 withval=$with_x; 7649fi 7650 7651# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7652if test "x$with_x" = xno; then 7653 # The user explicitly disabled X. 7654 have_x=disabled 7655else 7656 case $x_includes,$x_libraries in #( 7657 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7658 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 # One or both of the vars are not set, and there is no cached value. 7662ac_x_includes=no ac_x_libraries=no 7663rm -f -r conftest.dir 7664if mkdir conftest.dir; then 7665 cd conftest.dir 7666 cat >Imakefile <<'_ACEOF' 7667incroot: 7668 @echo incroot='${INCROOT}' 7669usrlibdir: 7670 @echo usrlibdir='${USRLIBDIR}' 7671libdir: 7672 @echo libdir='${LIBDIR}' 7673_ACEOF 7674 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7675 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7676 for ac_var in incroot usrlibdir libdir; do 7677 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7678 done 7679 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7680 for ac_extension in a so sl dylib la dll; do 7681 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7682 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7683 ac_im_usrlibdir=$ac_im_libdir; break 7684 fi 7685 done 7686 # Screen out bogus values from the imake configuration. They are 7687 # bogus both because they are the default anyway, and because 7688 # using them would break gcc on systems where it needs fixed includes. 7689 case $ac_im_incroot in 7690 /usr/include) ac_x_includes= ;; 7691 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7692 esac 7693 case $ac_im_usrlibdir in 7694 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7695 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7696 esac 7697 fi 7698 cd .. 7699 rm -f -r conftest.dir 7700fi 7701 7702# Standard set of common directories for X headers. 7703# Check X11 before X11Rn because it is often a symlink to the current release. 7704ac_x_header_dirs=' 7705/usr/X11/include 7706/usr/X11R7/include 7707/usr/X11R6/include 7708/usr/X11R5/include 7709/usr/X11R4/include 7710 7711/usr/include/X11 7712/usr/include/X11R7 7713/usr/include/X11R6 7714/usr/include/X11R5 7715/usr/include/X11R4 7716 7717/usr/local/X11/include 7718/usr/local/X11R7/include 7719/usr/local/X11R6/include 7720/usr/local/X11R5/include 7721/usr/local/X11R4/include 7722 7723/usr/local/include/X11 7724/usr/local/include/X11R7 7725/usr/local/include/X11R6 7726/usr/local/include/X11R5 7727/usr/local/include/X11R4 7728 7729/usr/X386/include 7730/usr/x386/include 7731/usr/XFree86/include/X11 7732 7733/usr/include 7734/usr/local/include 7735/usr/unsupported/include 7736/usr/athena/include 7737/usr/local/x11r5/include 7738/usr/lpp/Xamples/include 7739 7740/usr/openwin/include 7741/usr/openwin/share/include' 7742 7743if test "$ac_x_includes" = no; then 7744 # Guess where to find include files, by looking for Xlib.h. 7745 # First, try using that file with no special directory specified. 7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7747/* end confdefs.h. */ 7748#include <X11/Xlib.h> 7749_ACEOF 7750if ac_fn_c_try_cpp "$LINENO"; then : 7751 # We can compile using X headers with no special include directory. 7752ac_x_includes= 7753else 7754 for ac_dir in $ac_x_header_dirs; do 7755 if test -r "$ac_dir/X11/Xlib.h"; then 7756 ac_x_includes=$ac_dir 7757 break 7758 fi 7759done 7760fi 7761rm -f conftest.err conftest.i conftest.$ac_ext 7762fi # $ac_x_includes = no 7763 7764if test "$ac_x_libraries" = no; then 7765 # Check for the libraries. 7766 # See if we find them without any special options. 7767 # Don't add to $LIBS permanently. 7768 ac_save_LIBS=$LIBS 7769 LIBS="-lX11 $LIBS" 7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771/* end confdefs.h. */ 7772#include <X11/Xlib.h> 7773int 7774main () 7775{ 7776XrmInitialize () 7777 ; 7778 return 0; 7779} 7780_ACEOF 7781if ac_fn_c_try_link "$LINENO"; then : 7782 LIBS=$ac_save_LIBS 7783# We can link X programs with no special library path. 7784ac_x_libraries= 7785else 7786 LIBS=$ac_save_LIBS 7787for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7788do 7789 # Don't even attempt the hair of trying to link an X program! 7790 for ac_extension in a so sl dylib la dll; do 7791 if test -r "$ac_dir/libX11.$ac_extension"; then 7792 ac_x_libraries=$ac_dir 7793 break 2 7794 fi 7795 done 7796done 7797fi 7798rm -f core conftest.err conftest.$ac_objext \ 7799 conftest$ac_exeext conftest.$ac_ext 7800fi # $ac_x_libraries = no 7801 7802case $ac_x_includes,$ac_x_libraries in #( 7803 no,* | *,no | *\'*) 7804 # Didn't find X, or a directory has "'" in its name. 7805 ac_cv_have_x="have_x=no";; #( 7806 *) 7807 # Record where we found X for the cache. 7808 ac_cv_have_x="have_x=yes\ 7809 ac_x_includes='$ac_x_includes'\ 7810 ac_x_libraries='$ac_x_libraries'" 7811esac 7812fi 7813;; #( 7814 *) have_x=yes;; 7815 esac 7816 eval "$ac_cv_have_x" 7817fi # $with_x != no 7818 7819if test "$have_x" != yes; then 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7821$as_echo "$have_x" >&6; } 7822 no_x=yes 7823else 7824 # If each of the values was on the command line, it overrides each guess. 7825 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7826 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7827 # Update the cache value to reflect the command line values. 7828 ac_cv_have_x="have_x=yes\ 7829 ac_x_includes='$x_includes'\ 7830 ac_x_libraries='$x_libraries'" 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7832$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7833fi 7834 7835if test "$no_x" = yes; then 7836 # Not all programs may use this symbol, but it does not hurt to define it. 7837 7838$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 7839 7840 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7841else 7842 if test -n "$x_includes"; then 7843 X_CFLAGS="$X_CFLAGS -I$x_includes" 7844 fi 7845 7846 # It would also be nice to do this for all -L options, not just this one. 7847 if test -n "$x_libraries"; then 7848 X_LIBS="$X_LIBS -L$x_libraries" 7849 # For Solaris; some versions of Sun CC require a space after -R and 7850 # others require no space. Words are not sufficient . . . . 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 7852$as_echo_n "checking whether -R must be followed by a space... " >&6; } 7853 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7854 ac_xsave_c_werror_flag=$ac_c_werror_flag 7855 ac_c_werror_flag=yes 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858 7859int 7860main () 7861{ 7862 7863 ; 7864 return 0; 7865} 7866_ACEOF 7867if ac_fn_c_try_link "$LINENO"; then : 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7869$as_echo "no" >&6; } 7870 X_LIBS="$X_LIBS -R$x_libraries" 7871else 7872 LIBS="$ac_xsave_LIBS -R $x_libraries" 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7874/* end confdefs.h. */ 7875 7876int 7877main () 7878{ 7879 7880 ; 7881 return 0; 7882} 7883_ACEOF 7884if ac_fn_c_try_link "$LINENO"; then : 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7886$as_echo "yes" >&6; } 7887 X_LIBS="$X_LIBS -R $x_libraries" 7888else 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 7890$as_echo "neither works" >&6; } 7891fi 7892rm -f core conftest.err conftest.$ac_objext \ 7893 conftest$ac_exeext conftest.$ac_ext 7894fi 7895rm -f core conftest.err conftest.$ac_objext \ 7896 conftest$ac_exeext conftest.$ac_ext 7897 ac_c_werror_flag=$ac_xsave_c_werror_flag 7898 LIBS=$ac_xsave_LIBS 7899 fi 7900 7901 # Check for system-dependent libraries X programs must link with. 7902 # Do this before checking for the system-independent R6 libraries 7903 # (-lICE), since we may need -lsocket or whatever for X linking. 7904 7905 if test "$ISC" = yes; then 7906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7907 else 7908 # Martyn Johnson says this is needed for Ultrix, if the X 7909 # libraries were built with DECnet support. And Karl Berry says 7910 # the Alpha needs dnet_stub (dnet does not exist). 7911 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914 7915/* Override any GCC internal prototype to avoid an error. 7916 Use char because int might match the return type of a GCC 7917 builtin and then its argument prototype would still apply. */ 7918#ifdef __cplusplus 7919extern "C" 7920#endif 7921char XOpenDisplay (); 7922int 7923main () 7924{ 7925return XOpenDisplay (); 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930if ac_fn_c_try_link "$LINENO"; then : 7931 7932else 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 7934$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7935if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 7936 $as_echo_n "(cached) " >&6 7937else 7938 ac_check_lib_save_LIBS=$LIBS 7939LIBS="-ldnet $LIBS" 7940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942 7943/* Override any GCC internal prototype to avoid an error. 7944 Use char because int might match the return type of a GCC 7945 builtin and then its argument prototype would still apply. */ 7946#ifdef __cplusplus 7947extern "C" 7948#endif 7949char dnet_ntoa (); 7950int 7951main () 7952{ 7953return dnet_ntoa (); 7954 ; 7955 return 0; 7956} 7957_ACEOF 7958if ac_fn_c_try_link "$LINENO"; then : 7959 ac_cv_lib_dnet_dnet_ntoa=yes 7960else 7961 ac_cv_lib_dnet_dnet_ntoa=no 7962fi 7963rm -f core conftest.err conftest.$ac_objext \ 7964 conftest$ac_exeext conftest.$ac_ext 7965LIBS=$ac_check_lib_save_LIBS 7966fi 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7968$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7969if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 7970 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7971fi 7972 7973 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 7975$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 7976if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 ac_check_lib_save_LIBS=$LIBS 7980LIBS="-ldnet_stub $LIBS" 7981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7982/* end confdefs.h. */ 7983 7984/* Override any GCC internal prototype to avoid an error. 7985 Use char because int might match the return type of a GCC 7986 builtin and then its argument prototype would still apply. */ 7987#ifdef __cplusplus 7988extern "C" 7989#endif 7990char dnet_ntoa (); 7991int 7992main () 7993{ 7994return dnet_ntoa (); 7995 ; 7996 return 0; 7997} 7998_ACEOF 7999if ac_fn_c_try_link "$LINENO"; then : 8000 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8001else 8002 ac_cv_lib_dnet_stub_dnet_ntoa=no 8003fi 8004rm -f core conftest.err conftest.$ac_objext \ 8005 conftest$ac_exeext conftest.$ac_ext 8006LIBS=$ac_check_lib_save_LIBS 8007fi 8008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8009$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 8010if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 8011 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8012fi 8013 8014 fi 8015fi 8016rm -f core conftest.err conftest.$ac_objext \ 8017 conftest$ac_exeext conftest.$ac_ext 8018 LIBS="$ac_xsave_LIBS" 8019 8020 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 8021 # to get the SysV transport functions. 8022 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8023 # needs -lnsl. 8024 # The nsl library prevents programs from opening the X display 8025 # on Irix 5.2, according to T.E. Dickey. 8026 # The functions gethostbyname, getservbyname, and inet_addr are 8027 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8028 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8029if test "x$ac_cv_func_gethostbyname" = xyes; then : 8030 8031fi 8032 8033 if test $ac_cv_func_gethostbyname = no; then 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8035$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8036if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8037 $as_echo_n "(cached) " >&6 8038else 8039 ac_check_lib_save_LIBS=$LIBS 8040LIBS="-lnsl $LIBS" 8041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8042/* end confdefs.h. */ 8043 8044/* Override any GCC internal prototype to avoid an error. 8045 Use char because int might match the return type of a GCC 8046 builtin and then its argument prototype would still apply. */ 8047#ifdef __cplusplus 8048extern "C" 8049#endif 8050char gethostbyname (); 8051int 8052main () 8053{ 8054return gethostbyname (); 8055 ; 8056 return 0; 8057} 8058_ACEOF 8059if ac_fn_c_try_link "$LINENO"; then : 8060 ac_cv_lib_nsl_gethostbyname=yes 8061else 8062 ac_cv_lib_nsl_gethostbyname=no 8063fi 8064rm -f core conftest.err conftest.$ac_objext \ 8065 conftest$ac_exeext conftest.$ac_ext 8066LIBS=$ac_check_lib_save_LIBS 8067fi 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8069$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8070if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8072fi 8073 8074 if test $ac_cv_lib_nsl_gethostbyname = no; then 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8076$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8077if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 ac_check_lib_save_LIBS=$LIBS 8081LIBS="-lbsd $LIBS" 8082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8083/* end confdefs.h. */ 8084 8085/* Override any GCC internal prototype to avoid an error. 8086 Use char because int might match the return type of a GCC 8087 builtin and then its argument prototype would still apply. */ 8088#ifdef __cplusplus 8089extern "C" 8090#endif 8091char gethostbyname (); 8092int 8093main () 8094{ 8095return gethostbyname (); 8096 ; 8097 return 0; 8098} 8099_ACEOF 8100if ac_fn_c_try_link "$LINENO"; then : 8101 ac_cv_lib_bsd_gethostbyname=yes 8102else 8103 ac_cv_lib_bsd_gethostbyname=no 8104fi 8105rm -f core conftest.err conftest.$ac_objext \ 8106 conftest$ac_exeext conftest.$ac_ext 8107LIBS=$ac_check_lib_save_LIBS 8108fi 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8110$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8111if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8113fi 8114 8115 fi 8116 fi 8117 8118 # [email protected] says without -lsocket, 8119 # socket/setsockopt and other routines are undefined under SCO ODT 8120 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8121 # on later versions), says Simon Leinen: it contains gethostby* 8122 # variants that don't use the name server (or something). -lsocket 8123 # must be given before -lnsl if both are needed. We assume that 8124 # if connect needs -lnsl, so does gethostbyname. 8125 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8126if test "x$ac_cv_func_connect" = xyes; then : 8127 8128fi 8129 8130 if test $ac_cv_func_connect = no; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8132$as_echo_n "checking for connect in -lsocket... " >&6; } 8133if ${ac_cv_lib_socket_connect+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 ac_check_lib_save_LIBS=$LIBS 8137LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8139/* end confdefs.h. */ 8140 8141/* Override any GCC internal prototype to avoid an error. 8142 Use char because int might match the return type of a GCC 8143 builtin and then its argument prototype would still apply. */ 8144#ifdef __cplusplus 8145extern "C" 8146#endif 8147char connect (); 8148int 8149main () 8150{ 8151return connect (); 8152 ; 8153 return 0; 8154} 8155_ACEOF 8156if ac_fn_c_try_link "$LINENO"; then : 8157 ac_cv_lib_socket_connect=yes 8158else 8159 ac_cv_lib_socket_connect=no 8160fi 8161rm -f core conftest.err conftest.$ac_objext \ 8162 conftest$ac_exeext conftest.$ac_ext 8163LIBS=$ac_check_lib_save_LIBS 8164fi 8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8166$as_echo "$ac_cv_lib_socket_connect" >&6; } 8167if test "x$ac_cv_lib_socket_connect" = xyes; then : 8168 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8169fi 8170 8171 fi 8172 8173 # Guillermo Gomez says -lposix is necessary on A/UX. 8174 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8175if test "x$ac_cv_func_remove" = xyes; then : 8176 8177fi 8178 8179 if test $ac_cv_func_remove = no; then 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8181$as_echo_n "checking for remove in -lposix... " >&6; } 8182if ${ac_cv_lib_posix_remove+:} false; then : 8183 $as_echo_n "(cached) " >&6 8184else 8185 ac_check_lib_save_LIBS=$LIBS 8186LIBS="-lposix $LIBS" 8187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189 8190/* Override any GCC internal prototype to avoid an error. 8191 Use char because int might match the return type of a GCC 8192 builtin and then its argument prototype would still apply. */ 8193#ifdef __cplusplus 8194extern "C" 8195#endif 8196char remove (); 8197int 8198main () 8199{ 8200return remove (); 8201 ; 8202 return 0; 8203} 8204_ACEOF 8205if ac_fn_c_try_link "$LINENO"; then : 8206 ac_cv_lib_posix_remove=yes 8207else 8208 ac_cv_lib_posix_remove=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext \ 8211 conftest$ac_exeext conftest.$ac_ext 8212LIBS=$ac_check_lib_save_LIBS 8213fi 8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8215$as_echo "$ac_cv_lib_posix_remove" >&6; } 8216if test "x$ac_cv_lib_posix_remove" = xyes; then : 8217 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8218fi 8219 8220 fi 8221 8222 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8223 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8224if test "x$ac_cv_func_shmat" = xyes; then : 8225 8226fi 8227 8228 if test $ac_cv_func_shmat = no; then 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8230$as_echo_n "checking for shmat in -lipc... " >&6; } 8231if ${ac_cv_lib_ipc_shmat+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 ac_check_lib_save_LIBS=$LIBS 8235LIBS="-lipc $LIBS" 8236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8237/* end confdefs.h. */ 8238 8239/* Override any GCC internal prototype to avoid an error. 8240 Use char because int might match the return type of a GCC 8241 builtin and then its argument prototype would still apply. */ 8242#ifdef __cplusplus 8243extern "C" 8244#endif 8245char shmat (); 8246int 8247main () 8248{ 8249return shmat (); 8250 ; 8251 return 0; 8252} 8253_ACEOF 8254if ac_fn_c_try_link "$LINENO"; then : 8255 ac_cv_lib_ipc_shmat=yes 8256else 8257 ac_cv_lib_ipc_shmat=no 8258fi 8259rm -f core conftest.err conftest.$ac_objext \ 8260 conftest$ac_exeext conftest.$ac_ext 8261LIBS=$ac_check_lib_save_LIBS 8262fi 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8264$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8265if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8267fi 8268 8269 fi 8270 fi 8271 8272 # Check for libraries that X11R6 Xt/Xaw programs need. 8273 ac_save_LDFLAGS=$LDFLAGS 8274 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8275 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8276 # check for ICE first), but we must link in the order -lSM -lICE or 8277 # we get undefined symbols. So assume we have SM if we have ICE. 8278 # These have to be linked with before -lX11, unlike the other 8279 # libraries we check for below, so use a different variable. 8280 # John Interrante, Karl Berry 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8282$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8283if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285else 8286 ac_check_lib_save_LIBS=$LIBS 8287LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8289/* end confdefs.h. */ 8290 8291/* Override any GCC internal prototype to avoid an error. 8292 Use char because int might match the return type of a GCC 8293 builtin and then its argument prototype would still apply. */ 8294#ifdef __cplusplus 8295extern "C" 8296#endif 8297char IceConnectionNumber (); 8298int 8299main () 8300{ 8301return IceConnectionNumber (); 8302 ; 8303 return 0; 8304} 8305_ACEOF 8306if ac_fn_c_try_link "$LINENO"; then : 8307 ac_cv_lib_ICE_IceConnectionNumber=yes 8308else 8309 ac_cv_lib_ICE_IceConnectionNumber=no 8310fi 8311rm -f core conftest.err conftest.$ac_objext \ 8312 conftest$ac_exeext conftest.$ac_ext 8313LIBS=$ac_check_lib_save_LIBS 8314fi 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8316$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8317if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8318 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8319fi 8320 8321 LDFLAGS=$ac_save_LDFLAGS 8322 8323fi 8324 8325 8326 if test "$zOSUnix" = "yes"; then 8327 CFLAGS="$CFLAGS -W c,dll" 8328 LDFLAGS="$LDFLAGS -W l,dll" 8329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8330 fi 8331 8332 8333 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8334 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8336$as_echo "Corrected X libraries to $x_libraries" >&6; } 8337 X_LIBS="$X_LIBS -L$x_libraries" 8338 if test "`(uname) 2>/dev/null`" = SunOS && 8339 uname -r | grep '^5' >/dev/null; then 8340 X_LIBS="$X_LIBS -R $x_libraries" 8341 fi 8342 fi 8343 8344 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8345 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8347$as_echo "Corrected X includes to $x_includes" >&6; } 8348 X_CFLAGS="$X_CFLAGS -I$x_includes" 8349 fi 8350 8351 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8352 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8353 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8354 8355 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8357$as_echo_n "checking if X11 header files can be found... " >&6; } 8358 cflags_save=$CFLAGS 8359 CFLAGS="$CFLAGS $X_CFLAGS" 8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8361/* end confdefs.h. */ 8362#include <X11/Xlib.h> 8363#include <X11/Intrinsic.h> 8364int 8365main () 8366{ 8367 8368 ; 8369 return 0; 8370} 8371_ACEOF 8372if ac_fn_c_try_compile "$LINENO"; then : 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8374$as_echo "yes" >&6; } 8375else 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8377$as_echo "no" >&6; }; no_x=yes 8378fi 8379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8380 CFLAGS=$cflags_save 8381 8382 if test "${no_x-no}" = yes; then 8383 with_x=no 8384 else 8385 $as_echo "#define HAVE_X11 1" >>confdefs.h 8386 8387 X_LIB="-lXt -lX11"; 8388 8389 8390 ac_save_LDFLAGS="$LDFLAGS" 8391 LDFLAGS="-L$x_libraries $LDFLAGS" 8392 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8394$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8395if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8396 $as_echo_n "(cached) " >&6 8397else 8398 ac_check_lib_save_LIBS=$LIBS 8399LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8401/* end confdefs.h. */ 8402 8403/* Override any GCC internal prototype to avoid an error. 8404 Use char because int might match the return type of a GCC 8405 builtin and then its argument prototype would still apply. */ 8406#ifdef __cplusplus 8407extern "C" 8408#endif 8409char _XdmcpAuthDoIt (); 8410int 8411main () 8412{ 8413return _XdmcpAuthDoIt (); 8414 ; 8415 return 0; 8416} 8417_ACEOF 8418if ac_fn_c_try_link "$LINENO"; then : 8419 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8420else 8421 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8422fi 8423rm -f core conftest.err conftest.$ac_objext \ 8424 conftest$ac_exeext conftest.$ac_ext 8425LIBS=$ac_check_lib_save_LIBS 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8428$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8429if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8431fi 8432 8433 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8435$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8436if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 ac_check_lib_save_LIBS=$LIBS 8440LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8442/* end confdefs.h. */ 8443 8444/* Override any GCC internal prototype to avoid an error. 8445 Use char because int might match the return type of a GCC 8446 builtin and then its argument prototype would still apply. */ 8447#ifdef __cplusplus 8448extern "C" 8449#endif 8450char IceOpenConnection (); 8451int 8452main () 8453{ 8454return IceOpenConnection (); 8455 ; 8456 return 0; 8457} 8458_ACEOF 8459if ac_fn_c_try_link "$LINENO"; then : 8460 ac_cv_lib_ICE_IceOpenConnection=yes 8461else 8462 ac_cv_lib_ICE_IceOpenConnection=no 8463fi 8464rm -f core conftest.err conftest.$ac_objext \ 8465 conftest$ac_exeext conftest.$ac_ext 8466LIBS=$ac_check_lib_save_LIBS 8467fi 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8469$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8470if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8471 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8472fi 8473 8474 8475 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8477$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8478if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8479 $as_echo_n "(cached) " >&6 8480else 8481 ac_check_lib_save_LIBS=$LIBS 8482LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485 8486/* Override any GCC internal prototype to avoid an error. 8487 Use char because int might match the return type of a GCC 8488 builtin and then its argument prototype would still apply. */ 8489#ifdef __cplusplus 8490extern "C" 8491#endif 8492char XpmCreatePixmapFromData (); 8493int 8494main () 8495{ 8496return XpmCreatePixmapFromData (); 8497 ; 8498 return 0; 8499} 8500_ACEOF 8501if ac_fn_c_try_link "$LINENO"; then : 8502 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8503else 8504 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8505fi 8506rm -f core conftest.err conftest.$ac_objext \ 8507 conftest$ac_exeext conftest.$ac_ext 8508LIBS=$ac_check_lib_save_LIBS 8509fi 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8511$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8512if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8513 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8514fi 8515 8516 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8518$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8519 cflags_save=$CFLAGS 8520 if test "$GCC" = yes; then 8521 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8522 else 8523 CFLAGS="$CFLAGS $X_CFLAGS" 8524 fi 8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8526/* end confdefs.h. */ 8527#include <X11/Xlib.h> 8528int 8529main () 8530{ 8531 8532 ; 8533 return 0; 8534} 8535_ACEOF 8536if ac_fn_c_try_compile "$LINENO"; then : 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8538$as_echo "no" >&6; } 8539else 8540 CFLAGS="$CFLAGS -Wno-implicit-int" 8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8542/* end confdefs.h. */ 8543#include <X11/Xlib.h> 8544int 8545main () 8546{ 8547 8548 ; 8549 return 0; 8550} 8551_ACEOF 8552if ac_fn_c_try_compile "$LINENO"; then : 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8554$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8555else 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8557$as_echo "test failed" >&6; } 8558 8559fi 8560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8561 8562fi 8563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8564 CFLAGS=$cflags_save 8565 8566 LDFLAGS="$ac_save_LDFLAGS" 8567 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8569$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8570 if ${ac_cv_small_wchar_t+:} false; then : 8571 $as_echo_n "(cached) " >&6 8572else 8573 if test "$cross_compiling" = yes; then : 8574 as_fn_error $? "failed to compile test program" "$LINENO" 5 8575else 8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577/* end confdefs.h. */ 8578 8579#include <X11/Xlib.h> 8580#if STDC_HEADERS 8581# include <stdlib.h> 8582# include <stddef.h> 8583#endif 8584 main() 8585 { 8586 if (sizeof(wchar_t) <= 2) 8587 exit(1); 8588 exit(0); 8589 } 8590_ACEOF 8591if ac_fn_c_try_run "$LINENO"; then : 8592 ac_cv_small_wchar_t="no" 8593else 8594 ac_cv_small_wchar_t="yes" 8595fi 8596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8597 conftest.$ac_objext conftest.beam conftest.$ac_ext 8598fi 8599 8600fi 8601 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8603$as_echo "$ac_cv_small_wchar_t" >&6; } 8604 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8605 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 8606 8607 fi 8608 8609 fi 8610fi 8611 8612test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 8613 8614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 8615$as_echo_n "checking --enable-gui argument... " >&6; } 8616# Check whether --enable-gui was given. 8617if test "${enable_gui+set}" = set; then : 8618 enableval=$enable_gui; 8619else 8620 enable_gui="auto" 8621fi 8622 8623 8624enable_gui_canon=`echo "_$enable_gui" | \ 8625 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 8626 8627SKIP_GTK2=YES 8628SKIP_GTK3=YES 8629SKIP_GNOME=YES 8630SKIP_MOTIF=YES 8631SKIP_ATHENA=YES 8632SKIP_NEXTAW=YES 8633SKIP_PHOTON=YES 8634SKIP_CARBON=YES 8635GUITYPE=NONE 8636 8637if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 8638 SKIP_PHOTON= 8639 case "$enable_gui_canon" in 8640 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8641$as_echo "no GUI support" >&6; } 8642 SKIP_PHOTON=YES ;; 8643 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8644$as_echo "yes - automatic GUI support" >&6; } ;; 8645 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 8646$as_echo "auto - automatic GUI support" >&6; } ;; 8647 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 8648$as_echo "Photon GUI support" >&6; } ;; 8649 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8650$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8651 SKIP_PHOTON=YES ;; 8652 esac 8653 8654elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then 8655 SKIP_CARBON= 8656 case "$enable_gui_canon" in 8657 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8658$as_echo "no GUI support" >&6; } 8659 SKIP_CARBON=YES ;; 8660 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8661$as_echo "yes - automatic GUI support" >&6; } ;; 8662 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 8663$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 8664 SKIP_CARBON=YES ;; 8665 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 8666$as_echo "Carbon GUI support" >&6; } ;; 8667 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8668$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8669 SKIP_CARBON=YES ;; 8670 esac 8671 8672else 8673 8674 case "$enable_gui_canon" in 8675 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8676$as_echo "no GUI support" >&6; } ;; 8677 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 8678$as_echo "yes/auto - automatic GUI support" >&6; } 8679 SKIP_GTK2= 8680 SKIP_GNOME= 8681 SKIP_MOTIF= 8682 SKIP_ATHENA= 8683 SKIP_NEXTAW= 8684 SKIP_CARBON=;; 8685 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 8686$as_echo "GTK+ 2.x GUI support" >&6; } 8687 SKIP_GTK2=;; 8688 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 8689$as_echo "GNOME 2.x GUI support" >&6; } 8690 SKIP_GNOME= 8691 SKIP_GTK2=;; 8692 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 8693$as_echo "GTK+ 3.x GUI support" >&6; } 8694 SKIP_GTK3=;; 8695 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 8696$as_echo "Motif GUI support" >&6; } 8697 SKIP_MOTIF=;; 8698 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 8699$as_echo "Athena GUI support" >&6; } 8700 SKIP_ATHENA=;; 8701 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 8702$as_echo "neXtaw GUI support" >&6; } 8703 SKIP_NEXTAW=;; 8704 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8705$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 8706 esac 8707 8708fi 8709 8710if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 8711 -a "$enable_gui_canon" != "gnome2"; then 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 8713$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 8714 # Check whether --enable-gtk2-check was given. 8715if test "${enable_gtk2_check+set}" = set; then : 8716 enableval=$enable_gtk2_check; 8717else 8718 enable_gtk2_check="yes" 8719fi 8720 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 8722$as_echo "$enable_gtk2_check" >&6; } 8723 if test "x$enable_gtk2_check" = "xno"; then 8724 SKIP_GTK2=YES 8725 SKIP_GNOME=YES 8726 fi 8727fi 8728 8729if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 8731$as_echo_n "checking whether or not to look for GNOME... " >&6; } 8732 # Check whether --enable-gnome-check was given. 8733if test "${enable_gnome_check+set}" = set; then : 8734 enableval=$enable_gnome_check; 8735else 8736 enable_gnome_check="no" 8737fi 8738 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 8740$as_echo "$enable_gnome_check" >&6; } 8741 if test "x$enable_gnome_check" = "xno"; then 8742 SKIP_GNOME=YES 8743 fi 8744fi 8745 8746if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 8748$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 8749 # Check whether --enable-gtk3-check was given. 8750if test "${enable_gtk3_check+set}" = set; then : 8751 enableval=$enable_gtk3_check; 8752else 8753 enable_gtk3_check="yes" 8754fi 8755 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 8757$as_echo "$enable_gtk3_check" >&6; } 8758 if test "x$enable_gtk3_check" = "xno"; then 8759 SKIP_GTK3=YES 8760 fi 8761fi 8762 8763if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 8765$as_echo_n "checking whether or not to look for Motif... " >&6; } 8766 # Check whether --enable-motif-check was given. 8767if test "${enable_motif_check+set}" = set; then : 8768 enableval=$enable_motif_check; 8769else 8770 enable_motif_check="yes" 8771fi 8772 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 8774$as_echo "$enable_motif_check" >&6; } 8775 if test "x$enable_motif_check" = "xno"; then 8776 SKIP_MOTIF=YES 8777 fi 8778fi 8779 8780if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 8782$as_echo_n "checking whether or not to look for Athena... " >&6; } 8783 # Check whether --enable-athena-check was given. 8784if test "${enable_athena_check+set}" = set; then : 8785 enableval=$enable_athena_check; 8786else 8787 enable_athena_check="yes" 8788fi 8789 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 8791$as_echo "$enable_athena_check" >&6; } 8792 if test "x$enable_athena_check" = "xno"; then 8793 SKIP_ATHENA=YES 8794 fi 8795fi 8796 8797if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 8799$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 8800 # Check whether --enable-nextaw-check was given. 8801if test "${enable_nextaw_check+set}" = set; then : 8802 enableval=$enable_nextaw_check; 8803else 8804 enable_nextaw_check="yes" 8805fi 8806 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 8808$as_echo "$enable_nextaw_check" >&6; }; 8809 if test "x$enable_nextaw_check" = "xno"; then 8810 SKIP_NEXTAW=YES 8811 fi 8812fi 8813 8814if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 8816$as_echo_n "checking whether or not to look for Carbon... " >&6; } 8817 # Check whether --enable-carbon-check was given. 8818if test "${enable_carbon_check+set}" = set; then : 8819 enableval=$enable_carbon_check; 8820else 8821 enable_carbon_check="yes" 8822fi 8823 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 8825$as_echo "$enable_carbon_check" >&6; }; 8826 if test "x$enable_carbon_check" = "xno"; then 8827 SKIP_CARBON=YES 8828 fi 8829fi 8830 8831 8832if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 8834$as_echo_n "checking for Carbon GUI... " >&6; } 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8836$as_echo "yes" >&6; }; 8837 GUITYPE=CARBONGUI 8838 if test "$VIMNAME" = "vim"; then 8839 VIMNAME=Vim 8840 fi 8841 8842 if test "x$MACARCH" = "xboth"; then 8843 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 8844 else 8845 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 8846 fi 8847 8848 if test x$prefix = xNONE; then 8849 prefix=/Applications 8850 fi 8851 8852 datadir='${prefix}/Vim.app/Contents/Resources' 8853 8854 SKIP_GTK2=YES; 8855 SKIP_GNOME=YES; 8856 SKIP_MOTIF=YES; 8857 SKIP_ATHENA=YES; 8858 SKIP_NEXTAW=YES; 8859 SKIP_PHOTON=YES; 8860 SKIP_CARBON=YES 8861fi 8862 8863 8864 8865 8866 8867 8868 8869 8870if test -z "$SKIP_GTK2"; then 8871 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 8873$as_echo_n "checking --disable-gtktest argument... " >&6; } 8874 # Check whether --enable-gtktest was given. 8875if test "${enable_gtktest+set}" = set; then : 8876 enableval=$enable_gtktest; 8877else 8878 enable_gtktest=yes 8879fi 8880 8881 if test "x$enable_gtktest" = "xyes" ; then 8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 8883$as_echo "gtk test enabled" >&6; } 8884 else 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 8886$as_echo "gtk test disabled" >&6; } 8887 fi 8888 8889 if test "X$PKG_CONFIG" = "X"; then 8890 if test -n "$ac_tool_prefix"; then 8891 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 8892set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8894$as_echo_n "checking for $ac_word... " >&6; } 8895if ${ac_cv_path_PKG_CONFIG+:} false; then : 8896 $as_echo_n "(cached) " >&6 8897else 8898 case $PKG_CONFIG in 8899 [\\/]* | ?:[\\/]*) 8900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8901 ;; 8902 *) 8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8904for as_dir in $PATH 8905do 8906 IFS=$as_save_IFS 8907 test -z "$as_dir" && as_dir=. 8908 for ac_exec_ext in '' $ac_executable_extensions; do 8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8912 break 2 8913 fi 8914done 8915 done 8916IFS=$as_save_IFS 8917 8918 ;; 8919esac 8920fi 8921PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8922if test -n "$PKG_CONFIG"; then 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8924$as_echo "$PKG_CONFIG" >&6; } 8925else 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8927$as_echo "no" >&6; } 8928fi 8929 8930 8931fi 8932if test -z "$ac_cv_path_PKG_CONFIG"; then 8933 ac_pt_PKG_CONFIG=$PKG_CONFIG 8934 # Extract the first word of "pkg-config", so it can be a program name with args. 8935set dummy pkg-config; ac_word=$2 8936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8937$as_echo_n "checking for $ac_word... " >&6; } 8938if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 8939 $as_echo_n "(cached) " >&6 8940else 8941 case $ac_pt_PKG_CONFIG in 8942 [\\/]* | ?:[\\/]*) 8943 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 8944 ;; 8945 *) 8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8947for as_dir in $PATH 8948do 8949 IFS=$as_save_IFS 8950 test -z "$as_dir" && as_dir=. 8951 for ac_exec_ext in '' $ac_executable_extensions; do 8952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8953 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8955 break 2 8956 fi 8957done 8958 done 8959IFS=$as_save_IFS 8960 8961 ;; 8962esac 8963fi 8964ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 8965if test -n "$ac_pt_PKG_CONFIG"; then 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 8967$as_echo "$ac_pt_PKG_CONFIG" >&6; } 8968else 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8970$as_echo "no" >&6; } 8971fi 8972 8973 if test "x$ac_pt_PKG_CONFIG" = x; then 8974 PKG_CONFIG="no" 8975 else 8976 case $cross_compiling:$ac_tool_warned in 8977yes:) 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8980ac_tool_warned=yes ;; 8981esac 8982 PKG_CONFIG=$ac_pt_PKG_CONFIG 8983 fi 8984else 8985 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8986fi 8987 8988 fi 8989 8990 if test "x$PKG_CONFIG" != "xno"; then 8991 8992 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8993 { 8994 no_gtk="" 8995 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8996 && $PKG_CONFIG --exists gtk+-2.0; then 8997 { 8998 min_gtk_version=2.2.0 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9000$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9001 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9002 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9003 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9004 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9005 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9006 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9007 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9008 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9009 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9010 } 9011 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9012 && $PKG_CONFIG --exists gtk+-3.0; then 9013 { 9014 min_gtk_version=2.2.0 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9016$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9017 9018 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9019 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9020 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9021 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9022 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9023 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9024 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9025 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9026 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9027 } 9028 else 9029 no_gtk=yes 9030 fi 9031 9032 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9033 { 9034 ac_save_CFLAGS="$CFLAGS" 9035 ac_save_LIBS="$LIBS" 9036 CFLAGS="$CFLAGS $GTK_CFLAGS" 9037 LIBS="$LIBS $GTK_LIBS" 9038 9039 rm -f conf.gtktest 9040 if test "$cross_compiling" = yes; then : 9041 echo $ac_n "cross compiling; assumed OK... $ac_c" 9042else 9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9044/* end confdefs.h. */ 9045 9046#include <gtk/gtk.h> 9047#include <stdio.h> 9048#if STDC_HEADERS 9049# include <stdlib.h> 9050# include <stddef.h> 9051#endif 9052 9053int 9054main () 9055{ 9056int major, minor, micro; 9057char *tmp_version; 9058 9059system ("touch conf.gtktest"); 9060 9061/* HP/UX 9 (%@#!) writes to sscanf strings */ 9062tmp_version = g_strdup("$min_gtk_version"); 9063if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9064 printf("%s, bad version string\n", "$min_gtk_version"); 9065 exit(1); 9066 } 9067 9068if ((gtk_major_version > major) || 9069 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9070 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9071 (gtk_micro_version >= micro))) 9072{ 9073 return 0; 9074} 9075return 1; 9076} 9077 9078_ACEOF 9079if ac_fn_c_try_run "$LINENO"; then : 9080 9081else 9082 no_gtk=yes 9083fi 9084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9085 conftest.$ac_objext conftest.beam conftest.$ac_ext 9086fi 9087 9088 CFLAGS="$ac_save_CFLAGS" 9089 LIBS="$ac_save_LIBS" 9090 } 9091 fi 9092 if test "x$no_gtk" = x ; then 9093 if test "x$enable_gtktest" = "xyes"; then 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9095$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9096 else 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9098$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9099 fi 9100 GUI_LIB_LOC="$GTK_LIBDIR" 9101 GTK_LIBNAME="$GTK_LIBS" 9102 GUI_INC_LOC="$GTK_CFLAGS" 9103 else 9104 { 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9106$as_echo "no" >&6; } 9107 GTK_CFLAGS="" 9108 GTK_LIBS="" 9109 : 9110 } 9111 fi 9112 } 9113 else 9114 GTK_CFLAGS="" 9115 GTK_LIBS="" 9116 : 9117 fi 9118 9119 9120 rm -f conf.gtktest 9121 9122 if test "x$GTK_CFLAGS" != "x"; then 9123 SKIP_GTK3=YES 9124 SKIP_ATHENA=YES 9125 SKIP_NEXTAW=YES 9126 SKIP_MOTIF=YES 9127 GUITYPE=GTK 9128 9129 fi 9130 fi 9131 if test "x$GUITYPE" = "xGTK"; then 9132 if test -z "$SKIP_GNOME"; then 9133 { 9134 9135 9136 9137 9138 9139 9140# Check whether --with-gnome-includes was given. 9141if test "${with_gnome_includes+set}" = set; then : 9142 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9143 9144fi 9145 9146 9147 9148# Check whether --with-gnome-libs was given. 9149if test "${with_gnome_libs+set}" = set; then : 9150 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9151 9152fi 9153 9154 9155 9156# Check whether --with-gnome was given. 9157if test "${with_gnome+set}" = set; then : 9158 withval=$with_gnome; if test x$withval = xyes; then 9159 want_gnome=yes 9160 have_gnome=yes 9161 else 9162 if test "x$withval" = xno; then 9163 want_gnome=no 9164 else 9165 want_gnome=yes 9166 LDFLAGS="$LDFLAGS -L$withval/lib" 9167 CFLAGS="$CFLAGS -I$withval/include" 9168 gnome_prefix=$withval/lib 9169 fi 9170 fi 9171else 9172 want_gnome=yes 9173fi 9174 9175 9176 if test "x$want_gnome" = xyes; then 9177 { 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9179$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9180 if $PKG_CONFIG --exists libgnomeui-2.0; then 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9182$as_echo "yes" >&6; } 9183 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9184 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9185 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9186 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9188$as_echo_n "checking for FreeBSD... " >&6; } 9189 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9191$as_echo "yes" >&6; } 9192 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9193 GNOME_LIBS="$GNOME_LIBS -pthread" 9194 else 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9196$as_echo "no" >&6; } 9197 fi 9198 have_gnome=yes 9199 else 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9201$as_echo "not found" >&6; } 9202 if test "x" = xfail; then 9203 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9204 fi 9205 fi 9206 } 9207 fi 9208 9209 if test "x$have_gnome" = xyes ; then 9210 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9211 9212 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9213 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9214 fi 9215 } 9216 fi 9217 fi 9218fi 9219 9220 9221if test -z "$SKIP_GTK3"; then 9222 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9224$as_echo_n "checking --disable-gtktest argument... " >&6; } 9225 # Check whether --enable-gtktest was given. 9226if test "${enable_gtktest+set}" = set; then : 9227 enableval=$enable_gtktest; 9228else 9229 enable_gtktest=yes 9230fi 9231 9232 if test "x$enable_gtktest" = "xyes" ; then 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9234$as_echo "gtk test enabled" >&6; } 9235 else 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9237$as_echo "gtk test disabled" >&6; } 9238 fi 9239 9240 if test "X$PKG_CONFIG" = "X"; then 9241 if test -n "$ac_tool_prefix"; then 9242 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9243set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9245$as_echo_n "checking for $ac_word... " >&6; } 9246if ${ac_cv_path_PKG_CONFIG+:} false; then : 9247 $as_echo_n "(cached) " >&6 9248else 9249 case $PKG_CONFIG in 9250 [\\/]* | ?:[\\/]*) 9251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9252 ;; 9253 *) 9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9255for as_dir in $PATH 9256do 9257 IFS=$as_save_IFS 9258 test -z "$as_dir" && as_dir=. 9259 for ac_exec_ext in '' $ac_executable_extensions; do 9260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9263 break 2 9264 fi 9265done 9266 done 9267IFS=$as_save_IFS 9268 9269 ;; 9270esac 9271fi 9272PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9273if test -n "$PKG_CONFIG"; then 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9275$as_echo "$PKG_CONFIG" >&6; } 9276else 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9278$as_echo "no" >&6; } 9279fi 9280 9281 9282fi 9283if test -z "$ac_cv_path_PKG_CONFIG"; then 9284 ac_pt_PKG_CONFIG=$PKG_CONFIG 9285 # Extract the first word of "pkg-config", so it can be a program name with args. 9286set dummy pkg-config; ac_word=$2 9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9288$as_echo_n "checking for $ac_word... " >&6; } 9289if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291else 9292 case $ac_pt_PKG_CONFIG in 9293 [\\/]* | ?:[\\/]*) 9294 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9295 ;; 9296 *) 9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9298for as_dir in $PATH 9299do 9300 IFS=$as_save_IFS 9301 test -z "$as_dir" && as_dir=. 9302 for ac_exec_ext in '' $ac_executable_extensions; do 9303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9304 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9306 break 2 9307 fi 9308done 9309 done 9310IFS=$as_save_IFS 9311 9312 ;; 9313esac 9314fi 9315ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9316if test -n "$ac_pt_PKG_CONFIG"; then 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9318$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9319else 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9321$as_echo "no" >&6; } 9322fi 9323 9324 if test "x$ac_pt_PKG_CONFIG" = x; then 9325 PKG_CONFIG="no" 9326 else 9327 case $cross_compiling:$ac_tool_warned in 9328yes:) 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9331ac_tool_warned=yes ;; 9332esac 9333 PKG_CONFIG=$ac_pt_PKG_CONFIG 9334 fi 9335else 9336 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9337fi 9338 9339 fi 9340 9341 if test "x$PKG_CONFIG" != "xno"; then 9342 9343 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9344 { 9345 no_gtk="" 9346 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9347 && $PKG_CONFIG --exists gtk+-2.0; then 9348 { 9349 min_gtk_version=3.0.0 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9351$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9352 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9353 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9354 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9355 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9356 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9357 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9358 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9359 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9360 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9361 } 9362 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9363 && $PKG_CONFIG --exists gtk+-3.0; then 9364 { 9365 min_gtk_version=3.0.0 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9367$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9368 9369 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9370 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9371 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9372 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9373 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9374 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9375 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9376 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9377 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9378 } 9379 else 9380 no_gtk=yes 9381 fi 9382 9383 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9384 { 9385 ac_save_CFLAGS="$CFLAGS" 9386 ac_save_LIBS="$LIBS" 9387 CFLAGS="$CFLAGS $GTK_CFLAGS" 9388 LIBS="$LIBS $GTK_LIBS" 9389 9390 rm -f conf.gtktest 9391 if test "$cross_compiling" = yes; then : 9392 echo $ac_n "cross compiling; assumed OK... $ac_c" 9393else 9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9395/* end confdefs.h. */ 9396 9397#include <gtk/gtk.h> 9398#include <stdio.h> 9399#if STDC_HEADERS 9400# include <stdlib.h> 9401# include <stddef.h> 9402#endif 9403 9404int 9405main () 9406{ 9407int major, minor, micro; 9408char *tmp_version; 9409 9410system ("touch conf.gtktest"); 9411 9412/* HP/UX 9 (%@#!) writes to sscanf strings */ 9413tmp_version = g_strdup("$min_gtk_version"); 9414if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9415 printf("%s, bad version string\n", "$min_gtk_version"); 9416 exit(1); 9417 } 9418 9419if ((gtk_major_version > major) || 9420 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9421 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9422 (gtk_micro_version >= micro))) 9423{ 9424 return 0; 9425} 9426return 1; 9427} 9428 9429_ACEOF 9430if ac_fn_c_try_run "$LINENO"; then : 9431 9432else 9433 no_gtk=yes 9434fi 9435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9436 conftest.$ac_objext conftest.beam conftest.$ac_ext 9437fi 9438 9439 CFLAGS="$ac_save_CFLAGS" 9440 LIBS="$ac_save_LIBS" 9441 } 9442 fi 9443 if test "x$no_gtk" = x ; then 9444 if test "x$enable_gtktest" = "xyes"; then 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9446$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9447 else 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9449$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9450 fi 9451 GUI_LIB_LOC="$GTK_LIBDIR" 9452 GTK_LIBNAME="$GTK_LIBS" 9453 GUI_INC_LOC="$GTK_CFLAGS" 9454 else 9455 { 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9457$as_echo "no" >&6; } 9458 GTK_CFLAGS="" 9459 GTK_LIBS="" 9460 : 9461 } 9462 fi 9463 } 9464 else 9465 GTK_CFLAGS="" 9466 GTK_LIBS="" 9467 : 9468 fi 9469 9470 9471 rm -f conf.gtktest 9472 9473 if test "x$GTK_CFLAGS" != "x"; then 9474 SKIP_GTK2=YES 9475 SKIP_GNOME=YES 9476 SKIP_ATHENA=YES 9477 SKIP_NEXTAW=YES 9478 SKIP_MOTIF=YES 9479 GUITYPE=GTK 9480 9481 $as_echo "#define USE_GTK3 1" >>confdefs.h 9482 9483 fi 9484 fi 9485fi 9486 9487if test "x$GUITYPE" = "xGTK"; then 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9489$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9490 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9491 if test "x$gdk_pixbuf_version" != x ; then 9492 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9493 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9494 if test "x$gdk_pixbuf_version_minor" != x -a \ 9495 $gdk_pixbuf_version_minor -ge 31 ; then 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9497$as_echo "OK." >&6; } 9498 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9499set dummy glib-compile-resources; ac_word=$2 9500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9501$as_echo_n "checking for $ac_word... " >&6; } 9502if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9503 $as_echo_n "(cached) " >&6 9504else 9505 case $GLIB_COMPILE_RESOURCES in 9506 [\\/]* | ?:[\\/]*) 9507 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9508 ;; 9509 *) 9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9511for as_dir in $PATH 9512do 9513 IFS=$as_save_IFS 9514 test -z "$as_dir" && as_dir=. 9515 for ac_exec_ext in '' $ac_executable_extensions; do 9516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9517 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9519 break 2 9520 fi 9521done 9522 done 9523IFS=$as_save_IFS 9524 9525 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9526 ;; 9527esac 9528fi 9529GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9530if test -n "$GLIB_COMPILE_RESOURCES"; then 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9532$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9533else 9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9535$as_echo "no" >&6; } 9536fi 9537 9538 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9540$as_echo_n "checking glib-compile-resources... " >&6; } 9541 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9542 GLIB_COMPILE_RESOURCES="" 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9544$as_echo "cannot be found in PATH." >&6; } 9545 else 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9547$as_echo "usable." >&6; } 9548 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9549 9550 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9551 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9552 fi 9553 else 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9555$as_echo "not usable." >&6; } 9556 fi 9557 else 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9559$as_echo "cannot obtain from pkg_config." >&6; } 9560 fi 9561 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 9563$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 9564 # Check whether --enable-icon_cache_update was given. 9565if test "${enable_icon_cache_update+set}" = set; then : 9566 enableval=$enable_icon_cache_update; 9567else 9568 enable_icon_cache_update="yes" 9569fi 9570 9571 if test "$enable_icon_cache_update" = "yes"; then 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9573$as_echo "not set" >&6; } 9574 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 9575set dummy gtk-update-icon-cache; ac_word=$2 9576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9577$as_echo_n "checking for $ac_word... " >&6; } 9578if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 9579 $as_echo_n "(cached) " >&6 9580else 9581 case $GTK_UPDATE_ICON_CACHE in 9582 [\\/]* | ?:[\\/]*) 9583 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 9584 ;; 9585 *) 9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9587for as_dir in $PATH 9588do 9589 IFS=$as_save_IFS 9590 test -z "$as_dir" && as_dir=. 9591 for ac_exec_ext in '' $ac_executable_extensions; do 9592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9593 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9595 break 2 9596 fi 9597done 9598 done 9599IFS=$as_save_IFS 9600 9601 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 9602 ;; 9603esac 9604fi 9605GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 9606if test -n "$GTK_UPDATE_ICON_CACHE"; then 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 9608$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 9609else 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9611$as_echo "no" >&6; } 9612fi 9613 9614 9615 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9617$as_echo "not found in PATH." >&6; } 9618 fi 9619 else 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9621$as_echo "update disabled" >&6; } 9622 fi 9623 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 9625$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 9626 # Check whether --enable-desktop_database_update was given. 9627if test "${enable_desktop_database_update+set}" = set; then : 9628 enableval=$enable_desktop_database_update; 9629else 9630 enable_desktop_database_update="yes" 9631fi 9632 9633 if test "$enable_desktop_database_update" = "yes"; then 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9635$as_echo "not set" >&6; } 9636 # Extract the first word of "update-desktop-database", so it can be a program name with args. 9637set dummy update-desktop-database; ac_word=$2 9638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9639$as_echo_n "checking for $ac_word... " >&6; } 9640if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 9641 $as_echo_n "(cached) " >&6 9642else 9643 case $UPDATE_DESKTOP_DATABASE in 9644 [\\/]* | ?:[\\/]*) 9645 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 9646 ;; 9647 *) 9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9649for as_dir in $PATH 9650do 9651 IFS=$as_save_IFS 9652 test -z "$as_dir" && as_dir=. 9653 for ac_exec_ext in '' $ac_executable_extensions; do 9654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9655 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9657 break 2 9658 fi 9659done 9660 done 9661IFS=$as_save_IFS 9662 9663 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 9664 ;; 9665esac 9666fi 9667UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 9668if test -n "$UPDATE_DESKTOP_DATABASE"; then 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 9670$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 9671else 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9673$as_echo "no" >&6; } 9674fi 9675 9676 9677 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9679$as_echo "not found in PATH." >&6; } 9680 fi 9681 else 9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9683$as_echo "update disabled" >&6; } 9684 fi 9685fi 9686 9687 9688 9689 9690 9691 9692 9693if test -z "$SKIP_MOTIF"; then 9694 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" 9695 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 9696 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 9698$as_echo_n "checking for location of Motif GUI includes... " >&6; } 9699 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 9700 GUI_INC_LOC= 9701 for try in $gui_includes; do 9702 if test -f "$try/Xm/Xm.h"; then 9703 GUI_INC_LOC=$try 9704 fi 9705 done 9706 if test -n "$GUI_INC_LOC"; then 9707 if test "$GUI_INC_LOC" = /usr/include; then 9708 GUI_INC_LOC= 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9710$as_echo "in default path" >&6; } 9711 else 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 9713$as_echo "$GUI_INC_LOC" >&6; } 9714 fi 9715 else 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9717$as_echo "<not found>" >&6; } 9718 SKIP_MOTIF=YES 9719 fi 9720fi 9721 9722 9723if test -z "$SKIP_MOTIF"; then 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 9725$as_echo_n "checking --with-motif-lib argument... " >&6; } 9726 9727# Check whether --with-motif-lib was given. 9728if test "${with_motif_lib+set}" = set; then : 9729 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 9730fi 9731 9732 9733 if test -n "$MOTIF_LIBNAME"; then 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 9735$as_echo "$MOTIF_LIBNAME" >&6; } 9736 GUI_LIB_LOC= 9737 else 9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9739$as_echo "no" >&6; } 9740 9741 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 9742 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 9744$as_echo_n "checking for location of Motif GUI libs... " >&6; } 9745 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" 9746 GUI_LIB_LOC= 9747 for try in $gui_libs; do 9748 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 9749 if test -f "$libtry"; then 9750 GUI_LIB_LOC=$try 9751 fi 9752 done 9753 done 9754 if test -n "$GUI_LIB_LOC"; then 9755 if test "$GUI_LIB_LOC" = /usr/lib \ 9756 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 9757 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 9758 GUI_LIB_LOC= 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9760$as_echo "in default path" >&6; } 9761 else 9762 if test -n "$GUI_LIB_LOC"; then 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 9764$as_echo "$GUI_LIB_LOC" >&6; } 9765 if test "`(uname) 2>/dev/null`" = SunOS && 9766 uname -r | grep '^5' >/dev/null; then 9767 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 9768 fi 9769 fi 9770 fi 9771 MOTIF_LIBNAME=-lXm 9772 else 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9774$as_echo "<not found>" >&6; } 9775 SKIP_MOTIF=YES 9776 fi 9777 fi 9778fi 9779 9780if test -z "$SKIP_MOTIF"; then 9781 SKIP_ATHENA=YES 9782 SKIP_NEXTAW=YES 9783 GUITYPE=MOTIF 9784 9785fi 9786 9787 9788GUI_X_LIBS= 9789 9790if test -z "$SKIP_ATHENA"; then 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 9792$as_echo_n "checking if Athena header files can be found... " >&6; } 9793 cflags_save=$CFLAGS 9794 CFLAGS="$CFLAGS $X_CFLAGS" 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797 9798#include <X11/Intrinsic.h> 9799#include <X11/Xaw/Paned.h> 9800int 9801main () 9802{ 9803 9804 ; 9805 return 0; 9806} 9807_ACEOF 9808if ac_fn_c_try_compile "$LINENO"; then : 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9810$as_echo "yes" >&6; } 9811else 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9813$as_echo "no" >&6; }; SKIP_ATHENA=YES 9814fi 9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9816 CFLAGS=$cflags_save 9817fi 9818 9819if test -z "$SKIP_ATHENA"; then 9820 GUITYPE=ATHENA 9821fi 9822 9823if test -z "$SKIP_NEXTAW"; then 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 9825$as_echo_n "checking if neXtaw header files can be found... " >&6; } 9826 cflags_save=$CFLAGS 9827 CFLAGS="$CFLAGS $X_CFLAGS" 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830 9831#include <X11/Intrinsic.h> 9832#include <X11/neXtaw/Paned.h> 9833int 9834main () 9835{ 9836 9837 ; 9838 return 0; 9839} 9840_ACEOF 9841if ac_fn_c_try_compile "$LINENO"; then : 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9843$as_echo "yes" >&6; } 9844else 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9846$as_echo "no" >&6; }; SKIP_NEXTAW=YES 9847fi 9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9849 CFLAGS=$cflags_save 9850fi 9851 9852if test -z "$SKIP_NEXTAW"; then 9853 GUITYPE=NEXTAW 9854fi 9855 9856if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9857 if test -n "$GUI_INC_LOC"; then 9858 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9859 fi 9860 if test -n "$GUI_LIB_LOC"; then 9861 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9862 fi 9863 9864 ldflags_save=$LDFLAGS 9865 LDFLAGS="$X_LIBS $LDFLAGS" 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 9867$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 9868if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 9869 $as_echo_n "(cached) " >&6 9870else 9871 ac_check_lib_save_LIBS=$LIBS 9872LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9874/* end confdefs.h. */ 9875 9876/* Override any GCC internal prototype to avoid an error. 9877 Use char because int might match the return type of a GCC 9878 builtin and then its argument prototype would still apply. */ 9879#ifdef __cplusplus 9880extern "C" 9881#endif 9882char XShapeQueryExtension (); 9883int 9884main () 9885{ 9886return XShapeQueryExtension (); 9887 ; 9888 return 0; 9889} 9890_ACEOF 9891if ac_fn_c_try_link "$LINENO"; then : 9892 ac_cv_lib_Xext_XShapeQueryExtension=yes 9893else 9894 ac_cv_lib_Xext_XShapeQueryExtension=no 9895fi 9896rm -f core conftest.err conftest.$ac_objext \ 9897 conftest$ac_exeext conftest.$ac_ext 9898LIBS=$ac_check_lib_save_LIBS 9899fi 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9901$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 9902if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 9903 GUI_X_LIBS="-lXext" 9904fi 9905 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 9907$as_echo_n "checking for wslen in -lw... " >&6; } 9908if ${ac_cv_lib_w_wslen+:} false; then : 9909 $as_echo_n "(cached) " >&6 9910else 9911 ac_check_lib_save_LIBS=$LIBS 9912LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914/* end confdefs.h. */ 9915 9916/* Override any GCC internal prototype to avoid an error. 9917 Use char because int might match the return type of a GCC 9918 builtin and then its argument prototype would still apply. */ 9919#ifdef __cplusplus 9920extern "C" 9921#endif 9922char wslen (); 9923int 9924main () 9925{ 9926return wslen (); 9927 ; 9928 return 0; 9929} 9930_ACEOF 9931if ac_fn_c_try_link "$LINENO"; then : 9932 ac_cv_lib_w_wslen=yes 9933else 9934 ac_cv_lib_w_wslen=no 9935fi 9936rm -f core conftest.err conftest.$ac_objext \ 9937 conftest$ac_exeext conftest.$ac_ext 9938LIBS=$ac_check_lib_save_LIBS 9939fi 9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 9941$as_echo "$ac_cv_lib_w_wslen" >&6; } 9942if test "x$ac_cv_lib_w_wslen" = xyes; then : 9943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9944fi 9945 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 9947$as_echo_n "checking for dlsym in -ldl... " >&6; } 9948if ${ac_cv_lib_dl_dlsym+:} false; then : 9949 $as_echo_n "(cached) " >&6 9950else 9951 ac_check_lib_save_LIBS=$LIBS 9952LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954/* end confdefs.h. */ 9955 9956/* Override any GCC internal prototype to avoid an error. 9957 Use char because int might match the return type of a GCC 9958 builtin and then its argument prototype would still apply. */ 9959#ifdef __cplusplus 9960extern "C" 9961#endif 9962char dlsym (); 9963int 9964main () 9965{ 9966return dlsym (); 9967 ; 9968 return 0; 9969} 9970_ACEOF 9971if ac_fn_c_try_link "$LINENO"; then : 9972 ac_cv_lib_dl_dlsym=yes 9973else 9974 ac_cv_lib_dl_dlsym=no 9975fi 9976rm -f core conftest.err conftest.$ac_objext \ 9977 conftest$ac_exeext conftest.$ac_ext 9978LIBS=$ac_check_lib_save_LIBS 9979fi 9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 9981$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 9982if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 9983 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9984fi 9985 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 9987$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 9988if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 9989 $as_echo_n "(cached) " >&6 9990else 9991 ac_check_lib_save_LIBS=$LIBS 9992LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994/* end confdefs.h. */ 9995 9996/* Override any GCC internal prototype to avoid an error. 9997 Use char because int might match the return type of a GCC 9998 builtin and then its argument prototype would still apply. */ 9999#ifdef __cplusplus 10000extern "C" 10001#endif 10002char XmuCreateStippledPixmap (); 10003int 10004main () 10005{ 10006return XmuCreateStippledPixmap (); 10007 ; 10008 return 0; 10009} 10010_ACEOF 10011if ac_fn_c_try_link "$LINENO"; then : 10012 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 10013else 10014 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 10015fi 10016rm -f core conftest.err conftest.$ac_objext \ 10017 conftest$ac_exeext conftest.$ac_ext 10018LIBS=$ac_check_lib_save_LIBS 10019fi 10020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 10021$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 10022if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 10023 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 10024fi 10025 10026 if test -z "$SKIP_MOTIF"; then 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 10028$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 10029if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031else 10032 ac_check_lib_save_LIBS=$LIBS 10033LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 10034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036 10037/* Override any GCC internal prototype to avoid an error. 10038 Use char because int might match the return type of a GCC 10039 builtin and then its argument prototype would still apply. */ 10040#ifdef __cplusplus 10041extern "C" 10042#endif 10043char XpEndJob (); 10044int 10045main () 10046{ 10047return XpEndJob (); 10048 ; 10049 return 0; 10050} 10051_ACEOF 10052if ac_fn_c_try_link "$LINENO"; then : 10053 ac_cv_lib_Xp_XpEndJob=yes 10054else 10055 ac_cv_lib_Xp_XpEndJob=no 10056fi 10057rm -f core conftest.err conftest.$ac_objext \ 10058 conftest$ac_exeext conftest.$ac_ext 10059LIBS=$ac_check_lib_save_LIBS 10060fi 10061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 10062$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 10063if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 10064 GUI_X_LIBS="-lXp $GUI_X_LIBS" 10065fi 10066 10067 fi 10068 LDFLAGS=$ldflags_save 10069 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 10071$as_echo_n "checking for extra X11 defines... " >&6; } 10072 NARROW_PROTO= 10073 rm -fr conftestdir 10074 if mkdir conftestdir; then 10075 cd conftestdir 10076 cat > Imakefile <<'EOF' 10077acfindx: 10078 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 10079EOF 10080 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 10081 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 10082 fi 10083 cd .. 10084 rm -fr conftestdir 10085 fi 10086 if test -z "$NARROW_PROTO"; then 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10088$as_echo "no" >&6; } 10089 else 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 10091$as_echo "$NARROW_PROTO" >&6; } 10092 fi 10093 10094fi 10095 10096if test "$enable_xsmp" = "yes"; then 10097 cppflags_save=$CPPFLAGS 10098 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10099 for ac_header in X11/SM/SMlib.h 10100do : 10101 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 10102if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 10103 cat >>confdefs.h <<_ACEOF 10104#define HAVE_X11_SM_SMLIB_H 1 10105_ACEOF 10106 10107fi 10108 10109done 10110 10111 CPPFLAGS=$cppflags_save 10112fi 10113 10114 10115if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 10116 cppflags_save=$CPPFLAGS 10117 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10118 for ac_header in X11/xpm.h X11/Sunkeysym.h 10119do : 10120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10121ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10123 cat >>confdefs.h <<_ACEOF 10124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10125_ACEOF 10126 10127fi 10128 10129done 10130 10131 10132 if test ! "$enable_xim" = "no"; then 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 10134$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10136/* end confdefs.h. */ 10137#include <X11/Xlib.h> 10138_ACEOF 10139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10140 $EGREP "XIMText" >/dev/null 2>&1; then : 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10142$as_echo "yes" >&6; } 10143else 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 10145$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 10146fi 10147rm -f conftest* 10148 10149 fi 10150 CPPFLAGS=$cppflags_save 10151 10152 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 10153 -a "x$GUITYPE" != "xNONE" ; then 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 10155$as_echo "X GUI selected; xim has been enabled" >&6; } 10156 enable_xim="yes" 10157 fi 10158fi 10159 10160if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10161 cppflags_save=$CPPFLAGS 10162 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 10164$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10166/* end confdefs.h. */ 10167 10168#include <X11/Intrinsic.h> 10169#include <X11/Xmu/Editres.h> 10170int 10171main () 10172{ 10173int i; i = 0; 10174 ; 10175 return 0; 10176} 10177_ACEOF 10178if ac_fn_c_try_compile "$LINENO"; then : 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10180$as_echo "yes" >&6; } 10181 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10182 10183else 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10185$as_echo "no" >&6; } 10186fi 10187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10188 CPPFLAGS=$cppflags_save 10189fi 10190 10191if test -z "$SKIP_MOTIF"; then 10192 cppflags_save=$CPPFLAGS 10193 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10194 if test "$zOSUnix" = "yes"; then 10195 xmheader="Xm/Xm.h" 10196 else 10197 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10198 Xm/UnhighlightT.h Xm/Notebook.h" 10199 fi 10200 for ac_header in $xmheader 10201do : 10202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10203ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10204if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10205 cat >>confdefs.h <<_ACEOF 10206#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10207_ACEOF 10208 10209fi 10210 10211done 10212 10213 10214 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10216$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219#include <Xm/XpmP.h> 10220int 10221main () 10222{ 10223XpmAttributes_21 attr; 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228if ac_fn_c_try_compile "$LINENO"; then : 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10230$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10231 10232else 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10234$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10235 10236 10237fi 10238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10239 else 10240 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10241 10242 fi 10243 CPPFLAGS=$cppflags_save 10244fi 10245 10246if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10248$as_echo "no GUI selected; xim has been disabled" >&6; } 10249 enable_xim="no" 10250fi 10251if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10253$as_echo "no GUI selected; fontset has been disabled" >&6; } 10254 enable_fontset="no" 10255fi 10256if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10258$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10259 enable_fontset="no" 10260fi 10261 10262if test -z "$SKIP_PHOTON"; then 10263 GUITYPE=PHOTONGUI 10264fi 10265 10266 10267 10268 10269 10270 10271if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10272 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10273fi 10274 10275if test "$enable_xim" = "yes"; then 10276 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10277 10278fi 10279if test "$enable_fontset" = "yes"; then 10280 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10281 10282fi 10283 10284 10285 10286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10287$as_echo_n "checking for /proc link to executable... " >&6; } 10288if test -L "/proc/self/exe"; then 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10290$as_echo "/proc/self/exe" >&6; } 10291 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10292 10293elif test -L "/proc/self/path/a.out"; then 10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10295$as_echo "/proc/self/path/a.out" >&6; } 10296 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10297 10298elif test -L "/proc/curproc/file"; then 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10300$as_echo "/proc/curproc/file" >&6; } 10301 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10302 10303else 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10305$as_echo "no" >&6; } 10306fi 10307 10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10309$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10310case `uname` in 10311 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10312$as_echo "yes" >&6; } 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10314$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10315 if test "x$with_x" = "xno" ; then 10316 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10318$as_echo "yes" >&6; } 10319 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10320 10321 else 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10323$as_echo "no - using X11" >&6; } 10324 fi ;; 10325 10326 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10327$as_echo "no" >&6; };; 10328esac 10329 10330if test "$enable_hangulinput" = "yes"; then 10331 if test "x$GUITYPE" = "xNONE"; then 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 10333$as_echo "no GUI selected; hangul input has been disabled" >&6; } 10334 enable_hangulinput=no 10335 else 10336 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 10337 10338 HANGULIN_SRC=hangulin.c 10339 10340 HANGULIN_OBJ=objects/hangulin.o 10341 10342 fi 10343fi 10344 10345 10346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10347$as_echo_n "checking whether toupper is broken... " >&6; } 10348if ${vim_cv_toupper_broken+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350else 10351 10352 if test "$cross_compiling" = yes; then : 10353 10354 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10355 10356else 10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358/* end confdefs.h. */ 10359 10360#include "confdefs.h" 10361#include <ctype.h> 10362#if STDC_HEADERS 10363# include <stdlib.h> 10364# include <stddef.h> 10365#endif 10366main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10367 10368_ACEOF 10369if ac_fn_c_try_run "$LINENO"; then : 10370 10371 vim_cv_toupper_broken=yes 10372 10373else 10374 10375 vim_cv_toupper_broken=no 10376 10377fi 10378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10379 conftest.$ac_objext conftest.beam conftest.$ac_ext 10380fi 10381 10382fi 10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10384$as_echo "$vim_cv_toupper_broken" >&6; } 10385 10386if test "x$vim_cv_toupper_broken" = "xyes" ; then 10387 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10388 10389fi 10390 10391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10392$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10394/* end confdefs.h. */ 10395#include <stdio.h> 10396int 10397main () 10398{ 10399printf("(" __DATE__ " " __TIME__ ")"); 10400 ; 10401 return 0; 10402} 10403_ACEOF 10404if ac_fn_c_try_compile "$LINENO"; then : 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10406$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10407 10408else 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10410$as_echo "no" >&6; } 10411fi 10412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10413 10414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10415$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418#include <stdio.h> 10419int 10420main () 10421{ 10422int x __attribute__((unused)); 10423 ; 10424 return 0; 10425} 10426_ACEOF 10427if ac_fn_c_try_compile "$LINENO"; then : 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10429$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10430 10431else 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10433$as_echo "no" >&6; } 10434fi 10435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10436 10437ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10438if test "x$ac_cv_header_elf_h" = xyes; then : 10439 HAS_ELF=1 10440fi 10441 10442 10443if test "$HAS_ELF" = 1; then 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10445$as_echo_n "checking for main in -lelf... " >&6; } 10446if ${ac_cv_lib_elf_main+:} false; then : 10447 $as_echo_n "(cached) " >&6 10448else 10449 ac_check_lib_save_LIBS=$LIBS 10450LIBS="-lelf $LIBS" 10451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10452/* end confdefs.h. */ 10453 10454 10455int 10456main () 10457{ 10458return main (); 10459 ; 10460 return 0; 10461} 10462_ACEOF 10463if ac_fn_c_try_link "$LINENO"; then : 10464 ac_cv_lib_elf_main=yes 10465else 10466 ac_cv_lib_elf_main=no 10467fi 10468rm -f core conftest.err conftest.$ac_objext \ 10469 conftest$ac_exeext conftest.$ac_ext 10470LIBS=$ac_check_lib_save_LIBS 10471fi 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10473$as_echo "$ac_cv_lib_elf_main" >&6; } 10474if test "x$ac_cv_lib_elf_main" = xyes; then : 10475 cat >>confdefs.h <<_ACEOF 10476#define HAVE_LIBELF 1 10477_ACEOF 10478 10479 LIBS="-lelf $LIBS" 10480 10481fi 10482 10483fi 10484 10485ac_header_dirent=no 10486for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10487 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10489$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10490if eval \${$as_ac_Header+:} false; then : 10491 $as_echo_n "(cached) " >&6 10492else 10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10494/* end confdefs.h. */ 10495#include <sys/types.h> 10496#include <$ac_hdr> 10497 10498int 10499main () 10500{ 10501if ((DIR *) 0) 10502return 0; 10503 ; 10504 return 0; 10505} 10506_ACEOF 10507if ac_fn_c_try_compile "$LINENO"; then : 10508 eval "$as_ac_Header=yes" 10509else 10510 eval "$as_ac_Header=no" 10511fi 10512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10513fi 10514eval ac_res=\$$as_ac_Header 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10516$as_echo "$ac_res" >&6; } 10517if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10518 cat >>confdefs.h <<_ACEOF 10519#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10520_ACEOF 10521 10522ac_header_dirent=$ac_hdr; break 10523fi 10524 10525done 10526# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10527if test $ac_header_dirent = dirent.h; then 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10529$as_echo_n "checking for library containing opendir... " >&6; } 10530if ${ac_cv_search_opendir+:} false; then : 10531 $as_echo_n "(cached) " >&6 10532else 10533 ac_func_search_save_LIBS=$LIBS 10534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10535/* end confdefs.h. */ 10536 10537/* Override any GCC internal prototype to avoid an error. 10538 Use char because int might match the return type of a GCC 10539 builtin and then its argument prototype would still apply. */ 10540#ifdef __cplusplus 10541extern "C" 10542#endif 10543char opendir (); 10544int 10545main () 10546{ 10547return opendir (); 10548 ; 10549 return 0; 10550} 10551_ACEOF 10552for ac_lib in '' dir; do 10553 if test -z "$ac_lib"; then 10554 ac_res="none required" 10555 else 10556 ac_res=-l$ac_lib 10557 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10558 fi 10559 if ac_fn_c_try_link "$LINENO"; then : 10560 ac_cv_search_opendir=$ac_res 10561fi 10562rm -f core conftest.err conftest.$ac_objext \ 10563 conftest$ac_exeext 10564 if ${ac_cv_search_opendir+:} false; then : 10565 break 10566fi 10567done 10568if ${ac_cv_search_opendir+:} false; then : 10569 10570else 10571 ac_cv_search_opendir=no 10572fi 10573rm conftest.$ac_ext 10574LIBS=$ac_func_search_save_LIBS 10575fi 10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10577$as_echo "$ac_cv_search_opendir" >&6; } 10578ac_res=$ac_cv_search_opendir 10579if test "$ac_res" != no; then : 10580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10581 10582fi 10583 10584else 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10586$as_echo_n "checking for library containing opendir... " >&6; } 10587if ${ac_cv_search_opendir+:} false; then : 10588 $as_echo_n "(cached) " >&6 10589else 10590 ac_func_search_save_LIBS=$LIBS 10591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10592/* end confdefs.h. */ 10593 10594/* Override any GCC internal prototype to avoid an error. 10595 Use char because int might match the return type of a GCC 10596 builtin and then its argument prototype would still apply. */ 10597#ifdef __cplusplus 10598extern "C" 10599#endif 10600char opendir (); 10601int 10602main () 10603{ 10604return opendir (); 10605 ; 10606 return 0; 10607} 10608_ACEOF 10609for ac_lib in '' x; do 10610 if test -z "$ac_lib"; then 10611 ac_res="none required" 10612 else 10613 ac_res=-l$ac_lib 10614 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10615 fi 10616 if ac_fn_c_try_link "$LINENO"; then : 10617 ac_cv_search_opendir=$ac_res 10618fi 10619rm -f core conftest.err conftest.$ac_objext \ 10620 conftest$ac_exeext 10621 if ${ac_cv_search_opendir+:} false; then : 10622 break 10623fi 10624done 10625if ${ac_cv_search_opendir+:} false; then : 10626 10627else 10628 ac_cv_search_opendir=no 10629fi 10630rm conftest.$ac_ext 10631LIBS=$ac_func_search_save_LIBS 10632fi 10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10634$as_echo "$ac_cv_search_opendir" >&6; } 10635ac_res=$ac_cv_search_opendir 10636if test "$ac_res" != no; then : 10637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10638 10639fi 10640 10641fi 10642 10643 10644if test $ac_cv_header_sys_wait_h = no; then 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 10646$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648/* end confdefs.h. */ 10649#include <sys/wait.h> 10650int 10651main () 10652{ 10653union wait xx, yy; xx = yy 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658if ac_fn_c_try_compile "$LINENO"; then : 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10660$as_echo "yes" >&6; } 10661 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10662 10663 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 10664 10665else 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10667$as_echo "no" >&6; } 10668fi 10669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10670fi 10671 10672for ac_header in stdint.h stdlib.h string.h \ 10673 sys/select.h sys/utsname.h termcap.h fcntl.h \ 10674 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 10675 termio.h iconv.h inttypes.h langinfo.h math.h \ 10676 unistd.h stropts.h errno.h sys/resource.h \ 10677 sys/systeminfo.h locale.h sys/stream.h termios.h \ 10678 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 10679 utime.h sys/param.h libintl.h libgen.h \ 10680 util/debug.h util/msg18n.h frame.h sys/acl.h \ 10681 sys/access.h sys/sysinfo.h wchar.h wctype.h 10682do : 10683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10684ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10685if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10686 cat >>confdefs.h <<_ACEOF 10687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10688_ACEOF 10689 10690fi 10691 10692done 10693 10694 10695for ac_header in sys/ptem.h 10696do : 10697 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 10698# include <sys/stream.h> 10699#endif 10700" 10701if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 10702 cat >>confdefs.h <<_ACEOF 10703#define HAVE_SYS_PTEM_H 1 10704_ACEOF 10705 10706fi 10707 10708done 10709 10710 10711for ac_header in sys/sysctl.h 10712do : 10713 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 10714# include <sys/param.h> 10715#endif 10716" 10717if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 10718 cat >>confdefs.h <<_ACEOF 10719#define HAVE_SYS_SYSCTL_H 1 10720_ACEOF 10721 10722fi 10723 10724done 10725 10726 10727 10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 10729$as_echo_n "checking for pthread_np.h... " >&6; } 10730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10731/* end confdefs.h. */ 10732 10733#include <pthread.h> 10734#include <pthread_np.h> 10735int 10736main () 10737{ 10738int i; i = 0; 10739 ; 10740 return 0; 10741} 10742_ACEOF 10743if ac_fn_c_try_compile "$LINENO"; then : 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10745$as_echo "yes" >&6; } 10746 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 10747 10748else 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10750$as_echo "no" >&6; } 10751fi 10752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10753 10754for ac_header in strings.h 10755do : 10756 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 10757if test "x$ac_cv_header_strings_h" = xyes; then : 10758 cat >>confdefs.h <<_ACEOF 10759#define HAVE_STRINGS_H 1 10760_ACEOF 10761 10762fi 10763 10764done 10765 10766if test "x$MACOS_X" = "xyes"; then 10767 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10768 10769else 10770 10771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 10772$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 10773cppflags_save=$CPPFLAGS 10774CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10776/* end confdefs.h. */ 10777 10778#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 10779# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 10780 /* but don't do it on AIX 5.1 (Uribarri) */ 10781#endif 10782#ifdef HAVE_XM_XM_H 10783# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 10784#endif 10785#ifdef HAVE_STRING_H 10786# include <string.h> 10787#endif 10788#if defined(HAVE_STRINGS_H) 10789# include <strings.h> 10790#endif 10791 10792int 10793main () 10794{ 10795int i; i = 0; 10796 ; 10797 return 0; 10798} 10799_ACEOF 10800if ac_fn_c_try_compile "$LINENO"; then : 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10802$as_echo "yes" >&6; } 10803else 10804 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10805 10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10807$as_echo "no" >&6; } 10808fi 10809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10810CPPFLAGS=$cppflags_save 10811fi 10812 10813if test $ac_cv_c_compiler_gnu = yes; then 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 10815$as_echo_n "checking whether $CC needs -traditional... " >&6; } 10816if ${ac_cv_prog_gcc_traditional+:} false; then : 10817 $as_echo_n "(cached) " >&6 10818else 10819 ac_pattern="Autoconf.*'x'" 10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10821/* end confdefs.h. */ 10822#include <sgtty.h> 10823Autoconf TIOCGETP 10824_ACEOF 10825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10826 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10827 ac_cv_prog_gcc_traditional=yes 10828else 10829 ac_cv_prog_gcc_traditional=no 10830fi 10831rm -f conftest* 10832 10833 10834 if test $ac_cv_prog_gcc_traditional = no; then 10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10836/* end confdefs.h. */ 10837#include <termio.h> 10838Autoconf TCGETA 10839_ACEOF 10840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10841 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10842 ac_cv_prog_gcc_traditional=yes 10843fi 10844rm -f conftest* 10845 10846 fi 10847fi 10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 10849$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 10850 if test $ac_cv_prog_gcc_traditional = yes; then 10851 CC="$CC -traditional" 10852 fi 10853fi 10854 10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10856$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10857if ${ac_cv_c_const+:} false; then : 10858 $as_echo_n "(cached) " >&6 10859else 10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861/* end confdefs.h. */ 10862 10863int 10864main () 10865{ 10866 10867#ifndef __cplusplus 10868 /* Ultrix mips cc rejects this sort of thing. */ 10869 typedef int charset[2]; 10870 const charset cs = { 0, 0 }; 10871 /* SunOS 4.1.1 cc rejects this. */ 10872 char const *const *pcpcc; 10873 char **ppc; 10874 /* NEC SVR4.0.2 mips cc rejects this. */ 10875 struct point {int x, y;}; 10876 static struct point const zero = {0,0}; 10877 /* AIX XL C 1.02.0.0 rejects this. 10878 It does not let you subtract one const X* pointer from another in 10879 an arm of an if-expression whose if-part is not a constant 10880 expression */ 10881 const char *g = "string"; 10882 pcpcc = &g + (g ? g-g : 0); 10883 /* HPUX 7.0 cc rejects these. */ 10884 ++pcpcc; 10885 ppc = (char**) pcpcc; 10886 pcpcc = (char const *const *) ppc; 10887 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10888 char tx; 10889 char *t = &tx; 10890 char const *s = 0 ? (char *) 0 : (char const *) 0; 10891 10892 *t++ = 0; 10893 if (s) return 0; 10894 } 10895 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10896 int x[] = {25, 17}; 10897 const int *foo = &x[0]; 10898 ++foo; 10899 } 10900 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10901 typedef const int *iptr; 10902 iptr p = 0; 10903 ++p; 10904 } 10905 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10906 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10907 struct s { int j; const int *ap[3]; } bx; 10908 struct s *b = &bx; b->j = 5; 10909 } 10910 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10911 const int foo = 10; 10912 if (!foo) return 0; 10913 } 10914 return !cs[0] && !zero.x; 10915#endif 10916 10917 ; 10918 return 0; 10919} 10920_ACEOF 10921if ac_fn_c_try_compile "$LINENO"; then : 10922 ac_cv_c_const=yes 10923else 10924 ac_cv_c_const=no 10925fi 10926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10927fi 10928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10929$as_echo "$ac_cv_c_const" >&6; } 10930if test $ac_cv_c_const = no; then 10931 10932$as_echo "#define const /**/" >>confdefs.h 10933 10934fi 10935 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 10937$as_echo_n "checking for working volatile... " >&6; } 10938if ${ac_cv_c_volatile+:} false; then : 10939 $as_echo_n "(cached) " >&6 10940else 10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10942/* end confdefs.h. */ 10943 10944int 10945main () 10946{ 10947 10948volatile int x; 10949int * volatile y = (int *) 0; 10950return !x && !y; 10951 ; 10952 return 0; 10953} 10954_ACEOF 10955if ac_fn_c_try_compile "$LINENO"; then : 10956 ac_cv_c_volatile=yes 10957else 10958 ac_cv_c_volatile=no 10959fi 10960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10961fi 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 10963$as_echo "$ac_cv_c_volatile" >&6; } 10964if test $ac_cv_c_volatile = no; then 10965 10966$as_echo "#define volatile /**/" >>confdefs.h 10967 10968fi 10969 10970ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10971if test "x$ac_cv_type_mode_t" = xyes; then : 10972 10973else 10974 10975cat >>confdefs.h <<_ACEOF 10976#define mode_t int 10977_ACEOF 10978 10979fi 10980 10981ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10982if test "x$ac_cv_type_off_t" = xyes; then : 10983 10984else 10985 10986cat >>confdefs.h <<_ACEOF 10987#define off_t long int 10988_ACEOF 10989 10990fi 10991 10992ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10993if test "x$ac_cv_type_pid_t" = xyes; then : 10994 10995else 10996 10997cat >>confdefs.h <<_ACEOF 10998#define pid_t int 10999_ACEOF 11000 11001fi 11002 11003ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11004if test "x$ac_cv_type_size_t" = xyes; then : 11005 11006else 11007 11008cat >>confdefs.h <<_ACEOF 11009#define size_t unsigned int 11010_ACEOF 11011 11012fi 11013 11014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11015$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11016if ${ac_cv_type_uid_t+:} false; then : 11017 $as_echo_n "(cached) " >&6 11018else 11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11020/* end confdefs.h. */ 11021#include <sys/types.h> 11022 11023_ACEOF 11024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11025 $EGREP "uid_t" >/dev/null 2>&1; then : 11026 ac_cv_type_uid_t=yes 11027else 11028 ac_cv_type_uid_t=no 11029fi 11030rm -f conftest* 11031 11032fi 11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11034$as_echo "$ac_cv_type_uid_t" >&6; } 11035if test $ac_cv_type_uid_t = no; then 11036 11037$as_echo "#define uid_t int" >>confdefs.h 11038 11039 11040$as_echo "#define gid_t int" >>confdefs.h 11041 11042fi 11043 11044ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 11045case $ac_cv_c_uint32_t in #( 11046 no|yes) ;; #( 11047 *) 11048 11049$as_echo "#define _UINT32_T 1" >>confdefs.h 11050 11051 11052cat >>confdefs.h <<_ACEOF 11053#define uint32_t $ac_cv_c_uint32_t 11054_ACEOF 11055;; 11056 esac 11057 11058 11059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11060$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11061if ${ac_cv_header_time+:} false; then : 11062 $as_echo_n "(cached) " >&6 11063else 11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11065/* end confdefs.h. */ 11066#include <sys/types.h> 11067#include <sys/time.h> 11068#include <time.h> 11069 11070int 11071main () 11072{ 11073if ((struct tm *) 0) 11074return 0; 11075 ; 11076 return 0; 11077} 11078_ACEOF 11079if ac_fn_c_try_compile "$LINENO"; then : 11080 ac_cv_header_time=yes 11081else 11082 ac_cv_header_time=no 11083fi 11084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11085fi 11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11087$as_echo "$ac_cv_header_time" >&6; } 11088if test $ac_cv_header_time = yes; then 11089 11090$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11091 11092fi 11093 11094ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 11095if test "x$ac_cv_type_ino_t" = xyes; then : 11096 11097else 11098 11099cat >>confdefs.h <<_ACEOF 11100#define ino_t long 11101_ACEOF 11102 11103fi 11104 11105ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 11106if test "x$ac_cv_type_dev_t" = xyes; then : 11107 11108else 11109 11110cat >>confdefs.h <<_ACEOF 11111#define dev_t unsigned 11112_ACEOF 11113 11114fi 11115 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11117$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11118if ${ac_cv_c_bigendian+:} false; then : 11119 $as_echo_n "(cached) " >&6 11120else 11121 ac_cv_c_bigendian=unknown 11122 # See if we're dealing with a universal compiler. 11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124/* end confdefs.h. */ 11125#ifndef __APPLE_CC__ 11126 not a universal capable compiler 11127 #endif 11128 typedef int dummy; 11129 11130_ACEOF 11131if ac_fn_c_try_compile "$LINENO"; then : 11132 11133 # Check for potential -arch flags. It is not universal unless 11134 # there are at least two -arch flags with different values. 11135 ac_arch= 11136 ac_prev= 11137 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11138 if test -n "$ac_prev"; then 11139 case $ac_word in 11140 i?86 | x86_64 | ppc | ppc64) 11141 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11142 ac_arch=$ac_word 11143 else 11144 ac_cv_c_bigendian=universal 11145 break 11146 fi 11147 ;; 11148 esac 11149 ac_prev= 11150 elif test "x$ac_word" = "x-arch"; then 11151 ac_prev=arch 11152 fi 11153 done 11154fi 11155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11156 if test $ac_cv_c_bigendian = unknown; then 11157 # See if sys/param.h defines the BYTE_ORDER macro. 11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11159/* end confdefs.h. */ 11160#include <sys/types.h> 11161 #include <sys/param.h> 11162 11163int 11164main () 11165{ 11166#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11167 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11168 && LITTLE_ENDIAN) 11169 bogus endian macros 11170 #endif 11171 11172 ; 11173 return 0; 11174} 11175_ACEOF 11176if ac_fn_c_try_compile "$LINENO"; then : 11177 # It does; now see whether it defined to BIG_ENDIAN or not. 11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11179/* end confdefs.h. */ 11180#include <sys/types.h> 11181 #include <sys/param.h> 11182 11183int 11184main () 11185{ 11186#if BYTE_ORDER != BIG_ENDIAN 11187 not big endian 11188 #endif 11189 11190 ; 11191 return 0; 11192} 11193_ACEOF 11194if ac_fn_c_try_compile "$LINENO"; then : 11195 ac_cv_c_bigendian=yes 11196else 11197 ac_cv_c_bigendian=no 11198fi 11199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11200fi 11201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11202 fi 11203 if test $ac_cv_c_bigendian = unknown; then 11204 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11206/* end confdefs.h. */ 11207#include <limits.h> 11208 11209int 11210main () 11211{ 11212#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11213 bogus endian macros 11214 #endif 11215 11216 ; 11217 return 0; 11218} 11219_ACEOF 11220if ac_fn_c_try_compile "$LINENO"; then : 11221 # It does; now see whether it defined to _BIG_ENDIAN or not. 11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11223/* end confdefs.h. */ 11224#include <limits.h> 11225 11226int 11227main () 11228{ 11229#ifndef _BIG_ENDIAN 11230 not big endian 11231 #endif 11232 11233 ; 11234 return 0; 11235} 11236_ACEOF 11237if ac_fn_c_try_compile "$LINENO"; then : 11238 ac_cv_c_bigendian=yes 11239else 11240 ac_cv_c_bigendian=no 11241fi 11242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11243fi 11244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11245 fi 11246 if test $ac_cv_c_bigendian = unknown; then 11247 # Compile a test program. 11248 if test "$cross_compiling" = yes; then : 11249 # Try to guess by grepping values from an object file. 11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11251/* end confdefs.h. */ 11252short int ascii_mm[] = 11253 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11254 short int ascii_ii[] = 11255 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11256 int use_ascii (int i) { 11257 return ascii_mm[i] + ascii_ii[i]; 11258 } 11259 short int ebcdic_ii[] = 11260 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11261 short int ebcdic_mm[] = 11262 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11263 int use_ebcdic (int i) { 11264 return ebcdic_mm[i] + ebcdic_ii[i]; 11265 } 11266 extern int foo; 11267 11268int 11269main () 11270{ 11271return use_ascii (foo) == use_ebcdic (foo); 11272 ; 11273 return 0; 11274} 11275_ACEOF 11276if ac_fn_c_try_compile "$LINENO"; then : 11277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11278 ac_cv_c_bigendian=yes 11279 fi 11280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11281 if test "$ac_cv_c_bigendian" = unknown; then 11282 ac_cv_c_bigendian=no 11283 else 11284 # finding both strings is unlikely to happen, but who knows? 11285 ac_cv_c_bigendian=unknown 11286 fi 11287 fi 11288fi 11289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11290else 11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11292/* end confdefs.h. */ 11293$ac_includes_default 11294int 11295main () 11296{ 11297 11298 /* Are we little or big endian? From Harbison&Steele. */ 11299 union 11300 { 11301 long int l; 11302 char c[sizeof (long int)]; 11303 } u; 11304 u.l = 1; 11305 return u.c[sizeof (long int) - 1] == 1; 11306 11307 ; 11308 return 0; 11309} 11310_ACEOF 11311if ac_fn_c_try_run "$LINENO"; then : 11312 ac_cv_c_bigendian=no 11313else 11314 ac_cv_c_bigendian=yes 11315fi 11316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11317 conftest.$ac_objext conftest.beam conftest.$ac_ext 11318fi 11319 11320 fi 11321fi 11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11323$as_echo "$ac_cv_c_bigendian" >&6; } 11324 case $ac_cv_c_bigendian in #( 11325 yes) 11326 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11327;; #( 11328 no) 11329 ;; #( 11330 universal) 11331 11332$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11333 11334 ;; #( 11335 *) 11336 as_fn_error $? "unknown endianness 11337 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11338 esac 11339 11340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11341$as_echo_n "checking for inline... " >&6; } 11342if ${ac_cv_c_inline+:} false; then : 11343 $as_echo_n "(cached) " >&6 11344else 11345 ac_cv_c_inline=no 11346for ac_kw in inline __inline__ __inline; do 11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11348/* end confdefs.h. */ 11349#ifndef __cplusplus 11350typedef int foo_t; 11351static $ac_kw foo_t static_foo () {return 0; } 11352$ac_kw foo_t foo () {return 0; } 11353#endif 11354 11355_ACEOF 11356if ac_fn_c_try_compile "$LINENO"; then : 11357 ac_cv_c_inline=$ac_kw 11358fi 11359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11360 test "$ac_cv_c_inline" != no && break 11361done 11362 11363fi 11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11365$as_echo "$ac_cv_c_inline" >&6; } 11366 11367case $ac_cv_c_inline in 11368 inline | yes) ;; 11369 *) 11370 case $ac_cv_c_inline in 11371 no) ac_val=;; 11372 *) ac_val=$ac_cv_c_inline;; 11373 esac 11374 cat >>confdefs.h <<_ACEOF 11375#ifndef __cplusplus 11376#define inline $ac_val 11377#endif 11378_ACEOF 11379 ;; 11380esac 11381 11382 11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11384$as_echo_n "checking for rlim_t... " >&6; } 11385if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11387$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11388else 11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11390/* end confdefs.h. */ 11391 11392#include <sys/types.h> 11393#if STDC_HEADERS 11394# include <stdlib.h> 11395# include <stddef.h> 11396#endif 11397#ifdef HAVE_SYS_RESOURCE_H 11398# include <sys/resource.h> 11399#endif 11400 11401_ACEOF 11402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11403 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11404 ac_cv_type_rlim_t=yes 11405else 11406 ac_cv_type_rlim_t=no 11407fi 11408rm -f conftest* 11409 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11411$as_echo "$ac_cv_type_rlim_t" >&6; } 11412fi 11413if test $ac_cv_type_rlim_t = no; then 11414 cat >> confdefs.h <<\EOF 11415#define rlim_t unsigned long 11416EOF 11417fi 11418 11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11420$as_echo_n "checking for stack_t... " >&6; } 11421if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11423$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11424else 11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11426/* end confdefs.h. */ 11427 11428#include <sys/types.h> 11429#if STDC_HEADERS 11430# include <stdlib.h> 11431# include <stddef.h> 11432#endif 11433#include <signal.h> 11434 11435_ACEOF 11436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11437 $EGREP "stack_t" >/dev/null 2>&1; then : 11438 ac_cv_type_stack_t=yes 11439else 11440 ac_cv_type_stack_t=no 11441fi 11442rm -f conftest* 11443 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11445$as_echo "$ac_cv_type_stack_t" >&6; } 11446fi 11447if test $ac_cv_type_stack_t = no; then 11448 cat >> confdefs.h <<\EOF 11449#define stack_t struct sigaltstack 11450EOF 11451fi 11452 11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11454$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11456/* end confdefs.h. */ 11457 11458#include <sys/types.h> 11459#if STDC_HEADERS 11460# include <stdlib.h> 11461# include <stddef.h> 11462#endif 11463#include <signal.h> 11464#include "confdefs.h" 11465 11466int 11467main () 11468{ 11469stack_t sigstk; sigstk.ss_base = 0; 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474if ac_fn_c_try_compile "$LINENO"; then : 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11476$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11477 11478else 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11480$as_echo "no" >&6; } 11481fi 11482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11483 11484olibs="$LIBS" 11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11486$as_echo_n "checking --with-tlib argument... " >&6; } 11487 11488# Check whether --with-tlib was given. 11489if test "${with_tlib+set}" = set; then : 11490 withval=$with_tlib; 11491fi 11492 11493if test -n "$with_tlib"; then 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11495$as_echo "$with_tlib" >&6; } 11496 LIBS="$LIBS -l$with_tlib" 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11498$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11500/* end confdefs.h. */ 11501 11502int 11503main () 11504{ 11505 11506 ; 11507 return 0; 11508} 11509_ACEOF 11510if ac_fn_c_try_link "$LINENO"; then : 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11512$as_echo "OK" >&6; } 11513else 11514 as_fn_error $? "FAILED" "$LINENO" 5 11515fi 11516rm -f core conftest.err conftest.$ac_objext \ 11517 conftest$ac_exeext conftest.$ac_ext 11518 olibs="$LIBS" 11519else 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11521$as_echo "empty: automatic terminal library selection" >&6; } 11522 case "`uname -s 2>/dev/null`" in 11523 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11524 *) tlibs="tinfo ncurses termlib termcap curses";; 11525 esac 11526 for libname in $tlibs; do 11527 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11529$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11530if eval \${$as_ac_Lib+:} false; then : 11531 $as_echo_n "(cached) " >&6 11532else 11533 ac_check_lib_save_LIBS=$LIBS 11534LIBS="-l${libname} $LIBS" 11535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11536/* end confdefs.h. */ 11537 11538/* Override any GCC internal prototype to avoid an error. 11539 Use char because int might match the return type of a GCC 11540 builtin and then its argument prototype would still apply. */ 11541#ifdef __cplusplus 11542extern "C" 11543#endif 11544char tgetent (); 11545int 11546main () 11547{ 11548return tgetent (); 11549 ; 11550 return 0; 11551} 11552_ACEOF 11553if ac_fn_c_try_link "$LINENO"; then : 11554 eval "$as_ac_Lib=yes" 11555else 11556 eval "$as_ac_Lib=no" 11557fi 11558rm -f core conftest.err conftest.$ac_objext \ 11559 conftest$ac_exeext conftest.$ac_ext 11560LIBS=$ac_check_lib_save_LIBS 11561fi 11562eval ac_res=\$$as_ac_Lib 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11564$as_echo "$ac_res" >&6; } 11565if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11566 cat >>confdefs.h <<_ACEOF 11567#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 11568_ACEOF 11569 11570 LIBS="-l${libname} $LIBS" 11571 11572fi 11573 11574 if test "x$olibs" != "x$LIBS"; then 11575 if test "$cross_compiling" = yes; then : 11576 res="FAIL" 11577else 11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11579/* end confdefs.h. */ 11580 11581#ifdef HAVE_TERMCAP_H 11582# include <termcap.h> 11583#endif 11584#if STDC_HEADERS 11585# include <stdlib.h> 11586# include <stddef.h> 11587#endif 11588main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 11589_ACEOF 11590if ac_fn_c_try_run "$LINENO"; then : 11591 res="OK" 11592else 11593 res="FAIL" 11594fi 11595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11596 conftest.$ac_objext conftest.beam conftest.$ac_ext 11597fi 11598 11599 if test "$res" = "OK"; then 11600 break 11601 fi 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 11603$as_echo "$libname library is not usable" >&6; } 11604 LIBS="$olibs" 11605 fi 11606 done 11607 if test "x$olibs" = "x$LIBS"; then 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 11609$as_echo "no terminal library found" >&6; } 11610 fi 11611fi 11612 11613if test "x$olibs" = "x$LIBS"; then 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 11615$as_echo_n "checking for tgetent()... " >&6; } 11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11617/* end confdefs.h. */ 11618 11619int 11620main () 11621{ 11622char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 11623 ; 11624 return 0; 11625} 11626_ACEOF 11627if ac_fn_c_try_link "$LINENO"; then : 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11629$as_echo "yes" >&6; } 11630else 11631 as_fn_error $? "NOT FOUND! 11632 You need to install a terminal library; for example ncurses. 11633 Or specify the name of the library with --with-tlib." "$LINENO" 5 11634fi 11635rm -f core conftest.err conftest.$ac_objext \ 11636 conftest$ac_exeext conftest.$ac_ext 11637fi 11638 11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 11640$as_echo_n "checking whether we talk terminfo... " >&6; } 11641if ${vim_cv_terminfo+:} false; then : 11642 $as_echo_n "(cached) " >&6 11643else 11644 11645 if test "$cross_compiling" = yes; then : 11646 11647 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 11648 11649else 11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11651/* end confdefs.h. */ 11652 11653#include "confdefs.h" 11654#ifdef HAVE_TERMCAP_H 11655# include <termcap.h> 11656#endif 11657#ifdef HAVE_STRING_H 11658# include <string.h> 11659#endif 11660#if STDC_HEADERS 11661# include <stdlib.h> 11662# include <stddef.h> 11663#endif 11664main() 11665{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 11666 11667_ACEOF 11668if ac_fn_c_try_run "$LINENO"; then : 11669 11670 vim_cv_terminfo=no 11671 11672else 11673 11674 vim_cv_terminfo=yes 11675 11676fi 11677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11678 conftest.$ac_objext conftest.beam conftest.$ac_ext 11679fi 11680 11681 11682fi 11683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 11684$as_echo "$vim_cv_terminfo" >&6; } 11685 11686if test "x$vim_cv_terminfo" = "xyes" ; then 11687 $as_echo "#define TERMINFO 1" >>confdefs.h 11688 11689fi 11690 11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 11692$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 11693if ${vim_cv_tgetent+:} false; then : 11694 $as_echo_n "(cached) " >&6 11695else 11696 11697 if test "$cross_compiling" = yes; then : 11698 11699 as_fn_error $? "failed to compile test program." "$LINENO" 5 11700 11701else 11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11703/* end confdefs.h. */ 11704 11705#include "confdefs.h" 11706#ifdef HAVE_TERMCAP_H 11707# include <termcap.h> 11708#endif 11709#if STDC_HEADERS 11710# include <stdlib.h> 11711# include <stddef.h> 11712#endif 11713main() 11714{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 11715 11716_ACEOF 11717if ac_fn_c_try_run "$LINENO"; then : 11718 11719 vim_cv_tgetent=zero 11720 11721else 11722 11723 vim_cv_tgetent=non-zero 11724 11725fi 11726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11727 conftest.$ac_objext conftest.beam conftest.$ac_ext 11728fi 11729 11730 11731fi 11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5 11733$as_echo "$vim_cv_tgetent" >&6; } 11734 11735if test "x$vim_cv_tgetent" = "xzero" ; then 11736 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 11737 11738fi 11739 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 11741$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 11742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11743/* end confdefs.h. */ 11744 11745#ifdef HAVE_TERMCAP_H 11746# include <termcap.h> 11747#endif 11748 11749int 11750main () 11751{ 11752ospeed = 20000 11753 ; 11754 return 0; 11755} 11756_ACEOF 11757if ac_fn_c_try_link "$LINENO"; then : 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11759$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 11760 11761else 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11763$as_echo "no" >&6; } 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 11765$as_echo_n "checking whether ospeed can be extern... " >&6; } 11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11767/* end confdefs.h. */ 11768 11769#ifdef HAVE_TERMCAP_H 11770# include <termcap.h> 11771#endif 11772extern short ospeed; 11773 11774int 11775main () 11776{ 11777ospeed = 20000 11778 ; 11779 return 0; 11780} 11781_ACEOF 11782if ac_fn_c_try_link "$LINENO"; then : 11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11784$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 11785 11786else 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788$as_echo "no" >&6; } 11789fi 11790rm -f core conftest.err conftest.$ac_objext \ 11791 conftest$ac_exeext conftest.$ac_ext 11792 11793fi 11794rm -f core conftest.err conftest.$ac_objext \ 11795 conftest$ac_exeext conftest.$ac_ext 11796 11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 11798$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11800/* end confdefs.h. */ 11801 11802#ifdef HAVE_TERMCAP_H 11803# include <termcap.h> 11804#endif 11805 11806int 11807main () 11808{ 11809if (UP == 0 && BC == 0) PC = 1 11810 ; 11811 return 0; 11812} 11813_ACEOF 11814if ac_fn_c_try_link "$LINENO"; then : 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11816$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 11817 11818else 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11820$as_echo "no" >&6; } 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 11822$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11824/* end confdefs.h. */ 11825 11826#ifdef HAVE_TERMCAP_H 11827# include <termcap.h> 11828#endif 11829extern char *UP, *BC, PC; 11830 11831int 11832main () 11833{ 11834if (UP == 0 && BC == 0) PC = 1 11835 ; 11836 return 0; 11837} 11838_ACEOF 11839if ac_fn_c_try_link "$LINENO"; then : 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11841$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 11842 11843else 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11845$as_echo "no" >&6; } 11846fi 11847rm -f core conftest.err conftest.$ac_objext \ 11848 conftest$ac_exeext conftest.$ac_ext 11849 11850fi 11851rm -f core conftest.err conftest.$ac_objext \ 11852 conftest$ac_exeext conftest.$ac_ext 11853 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 11855$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 11856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11857/* end confdefs.h. */ 11858 11859#ifdef HAVE_TERMCAP_H 11860# include <termcap.h> 11861#endif 11862 11863int 11864main () 11865{ 11866extern int xx(); tputs("test", 1, (outfuntype)xx) 11867 ; 11868 return 0; 11869} 11870_ACEOF 11871if ac_fn_c_try_compile "$LINENO"; then : 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11873$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 11874 11875else 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11877$as_echo "no" >&6; } 11878fi 11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11880 11881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 11882$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 11883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885 11886#include <sys/types.h> 11887#include <sys/time.h> 11888#include <sys/select.h> 11889int 11890main () 11891{ 11892 11893 ; 11894 return 0; 11895} 11896_ACEOF 11897if ac_fn_c_try_compile "$LINENO"; then : 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11899$as_echo "yes" >&6; } 11900 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 11901 11902else 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11904$as_echo "no" >&6; } 11905fi 11906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11907 11908 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 11910$as_echo_n "checking for /dev/ptc... " >&6; } 11911if test -r /dev/ptc; then 11912 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 11913 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11915$as_echo "yes" >&6; } 11916else 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11918$as_echo "no" >&6; } 11919fi 11920 11921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 11922$as_echo_n "checking for SVR4 ptys... " >&6; } 11923if test -c /dev/ptmx ; then 11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11925/* end confdefs.h. */ 11926 11927int 11928main () 11929{ 11930ptsname(0);grantpt(0);unlockpt(0); 11931 ; 11932 return 0; 11933} 11934_ACEOF 11935if ac_fn_c_try_link "$LINENO"; then : 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11937$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 11938 11939else 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11941$as_echo "no" >&6; } 11942fi 11943rm -f core conftest.err conftest.$ac_objext \ 11944 conftest$ac_exeext conftest.$ac_ext 11945else 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11947$as_echo "no" >&6; } 11948fi 11949 11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 11951$as_echo_n "checking for ptyranges... " >&6; } 11952if test -d /dev/ptym ; then 11953 pdir='/dev/ptym' 11954else 11955 pdir='/dev' 11956fi 11957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11958/* end confdefs.h. */ 11959#ifdef M_UNIX 11960 yes; 11961#endif 11962 11963_ACEOF 11964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11965 $EGREP "yes" >/dev/null 2>&1; then : 11966 ptys=`echo /dev/ptyp??` 11967else 11968 ptys=`echo $pdir/pty??` 11969fi 11970rm -f conftest* 11971 11972if test "$ptys" != "$pdir/pty??" ; then 11973 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 11974 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 11975 cat >>confdefs.h <<_ACEOF 11976#define PTYRANGE0 "$p0" 11977_ACEOF 11978 11979 cat >>confdefs.h <<_ACEOF 11980#define PTYRANGE1 "$p1" 11981_ACEOF 11982 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 11984$as_echo "$p0 / $p1" >&6; } 11985else 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 11987$as_echo "don't know" >&6; } 11988fi 11989 11990rm -f conftest_grp 11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 11992$as_echo_n "checking default tty permissions/group... " >&6; } 11993if ${vim_cv_tty_group+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 11997 if test "$cross_compiling" = yes; then : 11998 11999 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 12000 12001else 12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12003/* end confdefs.h. */ 12004 12005#include "confdefs.h" 12006#include <sys/types.h> 12007#if STDC_HEADERS 12008# include <stdlib.h> 12009# include <stddef.h> 12010#endif 12011#ifdef HAVE_UNISTD_H 12012#include <unistd.h> 12013#endif 12014#include <sys/stat.h> 12015#include <stdio.h> 12016main() 12017{ 12018 struct stat sb; 12019 char *x,*ttyname(); 12020 int om, m; 12021 FILE *fp; 12022 12023 if (!(x = ttyname(0))) exit(1); 12024 if (stat(x, &sb)) exit(1); 12025 om = sb.st_mode; 12026 if (om & 002) exit(0); 12027 m = system("mesg y"); 12028 if (m == -1 || m == 127) exit(1); 12029 if (stat(x, &sb)) exit(1); 12030 m = sb.st_mode; 12031 if (chmod(x, om)) exit(1); 12032 if (m & 002) exit(0); 12033 if (sb.st_gid == getgid()) exit(1); 12034 if (!(fp=fopen("conftest_grp", "w"))) 12035 exit(1); 12036 fprintf(fp, "%d\n", sb.st_gid); 12037 fclose(fp); 12038 exit(0); 12039} 12040 12041_ACEOF 12042if ac_fn_c_try_run "$LINENO"; then : 12043 12044 if test -f conftest_grp; then 12045 vim_cv_tty_group=`cat conftest_grp` 12046 if test "x$vim_cv_tty_mode" = "x" ; then 12047 vim_cv_tty_mode=0620 12048 fi 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 12050$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 12051 else 12052 vim_cv_tty_group=world 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 12054$as_echo "ptys are world accessible" >&6; } 12055 fi 12056 12057else 12058 12059 vim_cv_tty_group=world 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 12061$as_echo "can't determine - assume ptys are world accessible" >&6; } 12062 12063fi 12064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12065 conftest.$ac_objext conftest.beam conftest.$ac_ext 12066fi 12067 12068 12069fi 12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 12071$as_echo "$vim_cv_tty_group" >&6; } 12072rm -f conftest_grp 12073 12074if test "x$vim_cv_tty_group" != "xworld" ; then 12075 cat >>confdefs.h <<_ACEOF 12076#define PTYGROUP $vim_cv_tty_group 12077_ACEOF 12078 12079 if test "x$vim_cv_tty_mode" = "x" ; then 12080 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 12081 else 12082 $as_echo "#define PTYMODE 0620" >>confdefs.h 12083 12084 fi 12085fi 12086 12087 12088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12089$as_echo_n "checking return type of signal handlers... " >&6; } 12090if ${ac_cv_type_signal+:} false; then : 12091 $as_echo_n "(cached) " >&6 12092else 12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12094/* end confdefs.h. */ 12095#include <sys/types.h> 12096#include <signal.h> 12097 12098int 12099main () 12100{ 12101return *(signal (0, 0)) (0) == 1; 12102 ; 12103 return 0; 12104} 12105_ACEOF 12106if ac_fn_c_try_compile "$LINENO"; then : 12107 ac_cv_type_signal=int 12108else 12109 ac_cv_type_signal=void 12110fi 12111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12112fi 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12114$as_echo "$ac_cv_type_signal" >&6; } 12115 12116cat >>confdefs.h <<_ACEOF 12117#define RETSIGTYPE $ac_cv_type_signal 12118_ACEOF 12119 12120 12121 12122if test $ac_cv_type_signal = void; then 12123 $as_echo "#define SIGRETURN return" >>confdefs.h 12124 12125else 12126 $as_echo "#define SIGRETURN return 0" >>confdefs.h 12127 12128fi 12129 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 12131$as_echo_n "checking for struct sigcontext... " >&6; } 12132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12133/* end confdefs.h. */ 12134 12135#include <signal.h> 12136test_sig() 12137{ 12138 struct sigcontext *scont; 12139 scont = (struct sigcontext *)0; 12140 return 1; 12141} 12142int 12143main () 12144{ 12145 12146 ; 12147 return 0; 12148} 12149_ACEOF 12150if ac_fn_c_try_compile "$LINENO"; then : 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12152$as_echo "yes" >&6; } 12153 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 12154 12155else 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12157$as_echo "no" >&6; } 12158fi 12159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12160 12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 12162$as_echo_n "checking getcwd implementation is broken... " >&6; } 12163if ${vim_cv_getcwd_broken+:} false; then : 12164 $as_echo_n "(cached) " >&6 12165else 12166 12167 if test "$cross_compiling" = yes; then : 12168 12169 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 12170 12171else 12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12173/* end confdefs.h. */ 12174 12175#include "confdefs.h" 12176#ifdef HAVE_UNISTD_H 12177#include <unistd.h> 12178#endif 12179char *dagger[] = { "IFS=pwd", 0 }; 12180main() 12181{ 12182 char buffer[500]; 12183 extern char **environ; 12184 environ = dagger; 12185 return getcwd(buffer, 500) ? 0 : 1; 12186} 12187 12188_ACEOF 12189if ac_fn_c_try_run "$LINENO"; then : 12190 12191 vim_cv_getcwd_broken=no 12192 12193else 12194 12195 vim_cv_getcwd_broken=yes 12196 12197fi 12198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12199 conftest.$ac_objext conftest.beam conftest.$ac_ext 12200fi 12201 12202 12203fi 12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12205$as_echo "$vim_cv_getcwd_broken" >&6; } 12206 12207if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12208 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12209 12210fi 12211 12212for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \ 12213 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \ 12214 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12215 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12216 sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \ 12217 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 12218 usleep utime utimes mblen ftruncate 12219do : 12220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12221ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12222if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12223 cat >>confdefs.h <<_ACEOF 12224#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12225_ACEOF 12226 12227fi 12228done 12229 12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12231$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12232if ${ac_cv_sys_largefile_source+:} false; then : 12233 $as_echo_n "(cached) " >&6 12234else 12235 while :; do 12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12237/* end confdefs.h. */ 12238#include <sys/types.h> /* for off_t */ 12239 #include <stdio.h> 12240int 12241main () 12242{ 12243int (*fp) (FILE *, off_t, int) = fseeko; 12244 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12245 ; 12246 return 0; 12247} 12248_ACEOF 12249if ac_fn_c_try_link "$LINENO"; then : 12250 ac_cv_sys_largefile_source=no; break 12251fi 12252rm -f core conftest.err conftest.$ac_objext \ 12253 conftest$ac_exeext conftest.$ac_ext 12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12255/* end confdefs.h. */ 12256#define _LARGEFILE_SOURCE 1 12257#include <sys/types.h> /* for off_t */ 12258 #include <stdio.h> 12259int 12260main () 12261{ 12262int (*fp) (FILE *, off_t, int) = fseeko; 12263 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12264 ; 12265 return 0; 12266} 12267_ACEOF 12268if ac_fn_c_try_link "$LINENO"; then : 12269 ac_cv_sys_largefile_source=1; break 12270fi 12271rm -f core conftest.err conftest.$ac_objext \ 12272 conftest$ac_exeext conftest.$ac_ext 12273 ac_cv_sys_largefile_source=unknown 12274 break 12275done 12276fi 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12278$as_echo "$ac_cv_sys_largefile_source" >&6; } 12279case $ac_cv_sys_largefile_source in #( 12280 no | unknown) ;; 12281 *) 12282cat >>confdefs.h <<_ACEOF 12283#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12284_ACEOF 12285;; 12286esac 12287rm -rf conftest* 12288 12289# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12290# in glibc 2.1.3, but that breaks too many other things. 12291# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12292if test $ac_cv_sys_largefile_source != unknown; then 12293 12294$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12295 12296fi 12297 12298 12299# Check whether --enable-largefile was given. 12300if test "${enable_largefile+set}" = set; then : 12301 enableval=$enable_largefile; 12302fi 12303 12304if test "$enable_largefile" != no; then 12305 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12307$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12308if ${ac_cv_sys_largefile_CC+:} false; then : 12309 $as_echo_n "(cached) " >&6 12310else 12311 ac_cv_sys_largefile_CC=no 12312 if test "$GCC" != yes; then 12313 ac_save_CC=$CC 12314 while :; do 12315 # IRIX 6.2 and later do not support large files by default, 12316 # so use the C compiler's -n32 option if that helps. 12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12318/* end confdefs.h. */ 12319#include <sys/types.h> 12320 /* Check that off_t can represent 2**63 - 1 correctly. 12321 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12322 since some C++ compilers masquerading as C compilers 12323 incorrectly reject 9223372036854775807. */ 12324#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12326 && LARGE_OFF_T % 2147483647 == 1) 12327 ? 1 : -1]; 12328int 12329main () 12330{ 12331 12332 ; 12333 return 0; 12334} 12335_ACEOF 12336 if ac_fn_c_try_compile "$LINENO"; then : 12337 break 12338fi 12339rm -f core conftest.err conftest.$ac_objext 12340 CC="$CC -n32" 12341 if ac_fn_c_try_compile "$LINENO"; then : 12342 ac_cv_sys_largefile_CC=' -n32'; break 12343fi 12344rm -f core conftest.err conftest.$ac_objext 12345 break 12346 done 12347 CC=$ac_save_CC 12348 rm -f conftest.$ac_ext 12349 fi 12350fi 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12352$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12353 if test "$ac_cv_sys_largefile_CC" != no; then 12354 CC=$CC$ac_cv_sys_largefile_CC 12355 fi 12356 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12358$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12359if ${ac_cv_sys_file_offset_bits+:} false; then : 12360 $as_echo_n "(cached) " >&6 12361else 12362 while :; do 12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12364/* end confdefs.h. */ 12365#include <sys/types.h> 12366 /* Check that off_t can represent 2**63 - 1 correctly. 12367 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12368 since some C++ compilers masquerading as C compilers 12369 incorrectly reject 9223372036854775807. */ 12370#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12372 && LARGE_OFF_T % 2147483647 == 1) 12373 ? 1 : -1]; 12374int 12375main () 12376{ 12377 12378 ; 12379 return 0; 12380} 12381_ACEOF 12382if ac_fn_c_try_compile "$LINENO"; then : 12383 ac_cv_sys_file_offset_bits=no; break 12384fi 12385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12387/* end confdefs.h. */ 12388#define _FILE_OFFSET_BITS 64 12389#include <sys/types.h> 12390 /* Check that off_t can represent 2**63 - 1 correctly. 12391 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12392 since some C++ compilers masquerading as C compilers 12393 incorrectly reject 9223372036854775807. */ 12394#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12396 && LARGE_OFF_T % 2147483647 == 1) 12397 ? 1 : -1]; 12398int 12399main () 12400{ 12401 12402 ; 12403 return 0; 12404} 12405_ACEOF 12406if ac_fn_c_try_compile "$LINENO"; then : 12407 ac_cv_sys_file_offset_bits=64; break 12408fi 12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12410 ac_cv_sys_file_offset_bits=unknown 12411 break 12412done 12413fi 12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12415$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12416case $ac_cv_sys_file_offset_bits in #( 12417 no | unknown) ;; 12418 *) 12419cat >>confdefs.h <<_ACEOF 12420#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12421_ACEOF 12422;; 12423esac 12424rm -rf conftest* 12425 if test $ac_cv_sys_file_offset_bits = unknown; then 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12427$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12428if ${ac_cv_sys_large_files+:} false; then : 12429 $as_echo_n "(cached) " >&6 12430else 12431 while :; do 12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12433/* end confdefs.h. */ 12434#include <sys/types.h> 12435 /* Check that off_t can represent 2**63 - 1 correctly. 12436 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12437 since some C++ compilers masquerading as C compilers 12438 incorrectly reject 9223372036854775807. */ 12439#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12441 && LARGE_OFF_T % 2147483647 == 1) 12442 ? 1 : -1]; 12443int 12444main () 12445{ 12446 12447 ; 12448 return 0; 12449} 12450_ACEOF 12451if ac_fn_c_try_compile "$LINENO"; then : 12452 ac_cv_sys_large_files=no; break 12453fi 12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12456/* end confdefs.h. */ 12457#define _LARGE_FILES 1 12458#include <sys/types.h> 12459 /* Check that off_t can represent 2**63 - 1 correctly. 12460 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12461 since some C++ compilers masquerading as C compilers 12462 incorrectly reject 9223372036854775807. */ 12463#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12465 && LARGE_OFF_T % 2147483647 == 1) 12466 ? 1 : -1]; 12467int 12468main () 12469{ 12470 12471 ; 12472 return 0; 12473} 12474_ACEOF 12475if ac_fn_c_try_compile "$LINENO"; then : 12476 ac_cv_sys_large_files=1; break 12477fi 12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12479 ac_cv_sys_large_files=unknown 12480 break 12481done 12482fi 12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12484$as_echo "$ac_cv_sys_large_files" >&6; } 12485case $ac_cv_sys_large_files in #( 12486 no | unknown) ;; 12487 *) 12488cat >>confdefs.h <<_ACEOF 12489#define _LARGE_FILES $ac_cv_sys_large_files 12490_ACEOF 12491;; 12492esac 12493rm -rf conftest* 12494 fi 12495 12496 12497fi 12498 12499 12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 12501$as_echo_n "checking for st_blksize... " >&6; } 12502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12503/* end confdefs.h. */ 12504#include <sys/types.h> 12505#include <sys/stat.h> 12506int 12507main () 12508{ 12509 struct stat st; 12510 int n; 12511 12512 stat("/", &st); 12513 n = (int)st.st_blksize; 12514 ; 12515 return 0; 12516} 12517_ACEOF 12518if ac_fn_c_try_compile "$LINENO"; then : 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12520$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12521 12522else 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12524$as_echo "no" >&6; } 12525fi 12526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12527 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 12529$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 12530if ${vim_cv_stat_ignores_slash+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532else 12533 12534 if test "$cross_compiling" = yes; then : 12535 12536 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 12537 12538else 12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540/* end confdefs.h. */ 12541 12542#include "confdefs.h" 12543#if STDC_HEADERS 12544# include <stdlib.h> 12545# include <stddef.h> 12546#endif 12547#include <sys/types.h> 12548#include <sys/stat.h> 12549main() {struct stat st; exit(stat("configure/", &st) != 0); } 12550 12551_ACEOF 12552if ac_fn_c_try_run "$LINENO"; then : 12553 12554 vim_cv_stat_ignores_slash=yes 12555 12556else 12557 12558 vim_cv_stat_ignores_slash=no 12559 12560fi 12561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12562 conftest.$ac_objext conftest.beam conftest.$ac_ext 12563fi 12564 12565 12566fi 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 12568$as_echo "$vim_cv_stat_ignores_slash" >&6; } 12569 12570if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 12571 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 12572 12573fi 12574 12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 12576$as_echo_n "checking for iconv_open()... " >&6; } 12577save_LIBS="$LIBS" 12578LIBS="$LIBS -liconv" 12579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12580/* end confdefs.h. */ 12581 12582#ifdef HAVE_ICONV_H 12583# include <iconv.h> 12584#endif 12585 12586int 12587main () 12588{ 12589iconv_open("fr", "to"); 12590 ; 12591 return 0; 12592} 12593_ACEOF 12594if ac_fn_c_try_link "$LINENO"; then : 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 12596$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12597 12598else 12599 LIBS="$save_LIBS" 12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12601/* end confdefs.h. */ 12602 12603#ifdef HAVE_ICONV_H 12604# include <iconv.h> 12605#endif 12606 12607int 12608main () 12609{ 12610iconv_open("fr", "to"); 12611 ; 12612 return 0; 12613} 12614_ACEOF 12615if ac_fn_c_try_link "$LINENO"; then : 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12617$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12618 12619else 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12621$as_echo "no" >&6; } 12622fi 12623rm -f core conftest.err conftest.$ac_objext \ 12624 conftest$ac_exeext conftest.$ac_ext 12625fi 12626rm -f core conftest.err conftest.$ac_objext \ 12627 conftest$ac_exeext conftest.$ac_ext 12628 12629 12630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 12631$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 12632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12633/* end confdefs.h. */ 12634 12635#ifdef HAVE_LANGINFO_H 12636# include <langinfo.h> 12637#endif 12638 12639int 12640main () 12641{ 12642char *cs = nl_langinfo(CODESET); 12643 ; 12644 return 0; 12645} 12646_ACEOF 12647if ac_fn_c_try_link "$LINENO"; then : 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12649$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 12650 12651else 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12653$as_echo "no" >&6; } 12654fi 12655rm -f core conftest.err conftest.$ac_objext \ 12656 conftest$ac_exeext conftest.$ac_ext 12657 12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 12659$as_echo_n "checking for strtod in -lm... " >&6; } 12660if ${ac_cv_lib_m_strtod+:} false; then : 12661 $as_echo_n "(cached) " >&6 12662else 12663 ac_check_lib_save_LIBS=$LIBS 12664LIBS="-lm $LIBS" 12665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12666/* end confdefs.h. */ 12667 12668/* Override any GCC internal prototype to avoid an error. 12669 Use char because int might match the return type of a GCC 12670 builtin and then its argument prototype would still apply. */ 12671#ifdef __cplusplus 12672extern "C" 12673#endif 12674char strtod (); 12675int 12676main () 12677{ 12678return strtod (); 12679 ; 12680 return 0; 12681} 12682_ACEOF 12683if ac_fn_c_try_link "$LINENO"; then : 12684 ac_cv_lib_m_strtod=yes 12685else 12686 ac_cv_lib_m_strtod=no 12687fi 12688rm -f core conftest.err conftest.$ac_objext \ 12689 conftest$ac_exeext conftest.$ac_ext 12690LIBS=$ac_check_lib_save_LIBS 12691fi 12692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 12693$as_echo "$ac_cv_lib_m_strtod" >&6; } 12694if test "x$ac_cv_lib_m_strtod" = xyes; then : 12695 cat >>confdefs.h <<_ACEOF 12696#define HAVE_LIBM 1 12697_ACEOF 12698 12699 LIBS="-lm $LIBS" 12700 12701fi 12702 12703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 12704$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 12705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12706/* end confdefs.h. */ 12707 12708#ifdef HAVE_MATH_H 12709# include <math.h> 12710#endif 12711#if STDC_HEADERS 12712# include <stdlib.h> 12713# include <stddef.h> 12714#endif 12715 12716int 12717main () 12718{ 12719char *s; double d; 12720 d = strtod("1.1", &s); 12721 d = fabs(1.11); 12722 d = ceil(1.11); 12723 d = floor(1.11); 12724 d = log10(1.11); 12725 d = pow(1.11, 2.22); 12726 d = sqrt(1.11); 12727 d = sin(1.11); 12728 d = cos(1.11); 12729 d = atan(1.11); 12730 12731 ; 12732 return 0; 12733} 12734_ACEOF 12735if ac_fn_c_try_link "$LINENO"; then : 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12737$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 12738 12739else 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12741$as_echo "no" >&6; } 12742fi 12743rm -f core conftest.err conftest.$ac_objext \ 12744 conftest$ac_exeext conftest.$ac_ext 12745 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 12747$as_echo_n "checking for isinf()... " >&6; } 12748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12749/* end confdefs.h. */ 12750 12751#ifdef HAVE_MATH_H 12752# include <math.h> 12753#endif 12754#if STDC_HEADERS 12755# include <stdlib.h> 12756# include <stddef.h> 12757#endif 12758 12759int 12760main () 12761{ 12762int r = isinf(1.11); 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767if ac_fn_c_try_link "$LINENO"; then : 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12769$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 12770 12771else 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12773$as_echo "no" >&6; } 12774fi 12775rm -f core conftest.err conftest.$ac_objext \ 12776 conftest$ac_exeext conftest.$ac_ext 12777 12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 12779$as_echo_n "checking for isnan()... " >&6; } 12780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12781/* end confdefs.h. */ 12782 12783#ifdef HAVE_MATH_H 12784# include <math.h> 12785#endif 12786#if STDC_HEADERS 12787# include <stdlib.h> 12788# include <stddef.h> 12789#endif 12790 12791int 12792main () 12793{ 12794int r = isnan(1.11); 12795 ; 12796 return 0; 12797} 12798_ACEOF 12799if ac_fn_c_try_link "$LINENO"; then : 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12801$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 12802 12803else 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12805$as_echo "no" >&6; } 12806fi 12807rm -f core conftest.err conftest.$ac_objext \ 12808 conftest$ac_exeext conftest.$ac_ext 12809 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 12811$as_echo_n "checking --disable-acl argument... " >&6; } 12812# Check whether --enable-acl was given. 12813if test "${enable_acl+set}" = set; then : 12814 enableval=$enable_acl; 12815else 12816 enable_acl="yes" 12817fi 12818 12819if test "$enable_acl" = "yes"; then 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12821$as_echo "no" >&6; } 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 12823$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 12824if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 12825 $as_echo_n "(cached) " >&6 12826else 12827 ac_check_lib_save_LIBS=$LIBS 12828LIBS="-lposix1e $LIBS" 12829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12830/* end confdefs.h. */ 12831 12832/* Override any GCC internal prototype to avoid an error. 12833 Use char because int might match the return type of a GCC 12834 builtin and then its argument prototype would still apply. */ 12835#ifdef __cplusplus 12836extern "C" 12837#endif 12838char acl_get_file (); 12839int 12840main () 12841{ 12842return acl_get_file (); 12843 ; 12844 return 0; 12845} 12846_ACEOF 12847if ac_fn_c_try_link "$LINENO"; then : 12848 ac_cv_lib_posix1e_acl_get_file=yes 12849else 12850 ac_cv_lib_posix1e_acl_get_file=no 12851fi 12852rm -f core conftest.err conftest.$ac_objext \ 12853 conftest$ac_exeext conftest.$ac_ext 12854LIBS=$ac_check_lib_save_LIBS 12855fi 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 12857$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 12858if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 12859 LIBS="$LIBS -lposix1e" 12860else 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 12862$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 12863if ${ac_cv_lib_acl_acl_get_file+:} false; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 ac_check_lib_save_LIBS=$LIBS 12867LIBS="-lacl $LIBS" 12868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12869/* end confdefs.h. */ 12870 12871/* Override any GCC internal prototype to avoid an error. 12872 Use char because int might match the return type of a GCC 12873 builtin and then its argument prototype would still apply. */ 12874#ifdef __cplusplus 12875extern "C" 12876#endif 12877char acl_get_file (); 12878int 12879main () 12880{ 12881return acl_get_file (); 12882 ; 12883 return 0; 12884} 12885_ACEOF 12886if ac_fn_c_try_link "$LINENO"; then : 12887 ac_cv_lib_acl_acl_get_file=yes 12888else 12889 ac_cv_lib_acl_acl_get_file=no 12890fi 12891rm -f core conftest.err conftest.$ac_objext \ 12892 conftest$ac_exeext conftest.$ac_ext 12893LIBS=$ac_check_lib_save_LIBS 12894fi 12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 12896$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 12897if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 12898 LIBS="$LIBS -lacl" 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 12900$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 12901if ${ac_cv_lib_attr_fgetxattr+:} false; then : 12902 $as_echo_n "(cached) " >&6 12903else 12904 ac_check_lib_save_LIBS=$LIBS 12905LIBS="-lattr $LIBS" 12906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12907/* end confdefs.h. */ 12908 12909/* Override any GCC internal prototype to avoid an error. 12910 Use char because int might match the return type of a GCC 12911 builtin and then its argument prototype would still apply. */ 12912#ifdef __cplusplus 12913extern "C" 12914#endif 12915char fgetxattr (); 12916int 12917main () 12918{ 12919return fgetxattr (); 12920 ; 12921 return 0; 12922} 12923_ACEOF 12924if ac_fn_c_try_link "$LINENO"; then : 12925 ac_cv_lib_attr_fgetxattr=yes 12926else 12927 ac_cv_lib_attr_fgetxattr=no 12928fi 12929rm -f core conftest.err conftest.$ac_objext \ 12930 conftest$ac_exeext conftest.$ac_ext 12931LIBS=$ac_check_lib_save_LIBS 12932fi 12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 12934$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 12935if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 12936 LIBS="$LIBS -lattr" 12937fi 12938 12939fi 12940 12941fi 12942 12943 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 12945$as_echo_n "checking for POSIX ACL support... " >&6; } 12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12947/* end confdefs.h. */ 12948 12949#include <sys/types.h> 12950#ifdef HAVE_SYS_ACL_H 12951# include <sys/acl.h> 12952#endif 12953acl_t acl; 12954int 12955main () 12956{ 12957acl = acl_get_file("foo", ACL_TYPE_ACCESS); 12958 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 12959 acl_free(acl); 12960 ; 12961 return 0; 12962} 12963_ACEOF 12964if ac_fn_c_try_link "$LINENO"; then : 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12966$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 12967 12968else 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12970$as_echo "no" >&6; } 12971fi 12972rm -f core conftest.err conftest.$ac_objext \ 12973 conftest$ac_exeext conftest.$ac_ext 12974 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 12976$as_echo_n "checking for acl_get in -lsec... " >&6; } 12977if ${ac_cv_lib_sec_acl_get+:} false; then : 12978 $as_echo_n "(cached) " >&6 12979else 12980 ac_check_lib_save_LIBS=$LIBS 12981LIBS="-lsec $LIBS" 12982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984 12985/* Override any GCC internal prototype to avoid an error. 12986 Use char because int might match the return type of a GCC 12987 builtin and then its argument prototype would still apply. */ 12988#ifdef __cplusplus 12989extern "C" 12990#endif 12991char acl_get (); 12992int 12993main () 12994{ 12995return acl_get (); 12996 ; 12997 return 0; 12998} 12999_ACEOF 13000if ac_fn_c_try_link "$LINENO"; then : 13001 ac_cv_lib_sec_acl_get=yes 13002else 13003 ac_cv_lib_sec_acl_get=no 13004fi 13005rm -f core conftest.err conftest.$ac_objext \ 13006 conftest$ac_exeext conftest.$ac_ext 13007LIBS=$ac_check_lib_save_LIBS 13008fi 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 13010$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 13011if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 13012 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 13013 13014else 13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 13016$as_echo_n "checking for Solaris ACL support... " >&6; } 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019 13020#ifdef HAVE_SYS_ACL_H 13021# include <sys/acl.h> 13022#endif 13023int 13024main () 13025{ 13026acl("foo", GETACLCNT, 0, NULL); 13027 13028 ; 13029 return 0; 13030} 13031_ACEOF 13032if ac_fn_c_try_link "$LINENO"; then : 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13034$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 13035 13036else 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13038$as_echo "no" >&6; } 13039fi 13040rm -f core conftest.err conftest.$ac_objext \ 13041 conftest$ac_exeext conftest.$ac_ext 13042fi 13043 13044 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 13046$as_echo_n "checking for AIX ACL support... " >&6; } 13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048/* end confdefs.h. */ 13049 13050#if STDC_HEADERS 13051# include <stdlib.h> 13052# include <stddef.h> 13053#endif 13054#ifdef HAVE_SYS_ACL_H 13055# include <sys/acl.h> 13056#endif 13057#ifdef HAVE_SYS_ACCESS_H 13058# include <sys/access.h> 13059#endif 13060#define _ALL_SOURCE 13061 13062#include <sys/stat.h> 13063 13064int aclsize; 13065struct acl *aclent; 13066int 13067main () 13068{ 13069aclsize = sizeof(struct acl); 13070 aclent = (void *)malloc(aclsize); 13071 statacl("foo", STX_NORMAL, aclent, aclsize); 13072 13073 ; 13074 return 0; 13075} 13076_ACEOF 13077if ac_fn_c_try_link "$LINENO"; then : 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13079$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 13080 13081else 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13083$as_echo "no" >&6; } 13084fi 13085rm -f core conftest.err conftest.$ac_objext \ 13086 conftest$ac_exeext conftest.$ac_ext 13087else 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13089$as_echo "yes" >&6; } 13090fi 13091 13092if test "x$GTK_CFLAGS" != "x"; then 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 13094$as_echo_n "checking for pango_shape_full... " >&6; } 13095 ac_save_CFLAGS="$CFLAGS" 13096 ac_save_LIBS="$LIBS" 13097 CFLAGS="$CFLAGS $GTK_CFLAGS" 13098 LIBS="$LIBS $GTK_LIBS" 13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100/* end confdefs.h. */ 13101#include <gtk/gtk.h> 13102int 13103main () 13104{ 13105 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 13106 ; 13107 return 0; 13108} 13109_ACEOF 13110if ac_fn_c_try_link "$LINENO"; then : 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13112$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 13113 13114else 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13116$as_echo "no" >&6; } 13117fi 13118rm -f core conftest.err conftest.$ac_objext \ 13119 conftest$ac_exeext conftest.$ac_ext 13120 CFLAGS="$ac_save_CFLAGS" 13121 LIBS="$ac_save_LIBS" 13122fi 13123 13124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 13125$as_echo_n "checking --disable-gpm argument... " >&6; } 13126# Check whether --enable-gpm was given. 13127if test "${enable_gpm+set}" = set; then : 13128 enableval=$enable_gpm; 13129else 13130 enable_gpm="yes" 13131fi 13132 13133 13134if test "$enable_gpm" = "yes"; then 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13136$as_echo "no" >&6; } 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 13138$as_echo_n "checking for gpm... " >&6; } 13139if ${vi_cv_have_gpm+:} false; then : 13140 $as_echo_n "(cached) " >&6 13141else 13142 olibs="$LIBS" ; LIBS="-lgpm" 13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144/* end confdefs.h. */ 13145#include <gpm.h> 13146 #include <linux/keyboard.h> 13147int 13148main () 13149{ 13150Gpm_GetLibVersion(NULL); 13151 ; 13152 return 0; 13153} 13154_ACEOF 13155if ac_fn_c_try_link "$LINENO"; then : 13156 vi_cv_have_gpm=yes 13157else 13158 vi_cv_have_gpm=no 13159fi 13160rm -f core conftest.err conftest.$ac_objext \ 13161 conftest$ac_exeext conftest.$ac_ext 13162 LIBS="$olibs" 13163 13164fi 13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 13166$as_echo "$vi_cv_have_gpm" >&6; } 13167 if test $vi_cv_have_gpm = yes; then 13168 LIBS="$LIBS -lgpm" 13169 $as_echo "#define HAVE_GPM 1" >>confdefs.h 13170 13171 fi 13172else 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13174$as_echo "yes" >&6; } 13175fi 13176 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 13178$as_echo_n "checking --disable-sysmouse argument... " >&6; } 13179# Check whether --enable-sysmouse was given. 13180if test "${enable_sysmouse+set}" = set; then : 13181 enableval=$enable_sysmouse; 13182else 13183 enable_sysmouse="yes" 13184fi 13185 13186 13187if test "$enable_sysmouse" = "yes"; then 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13189$as_echo "no" >&6; } 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13191$as_echo_n "checking for sysmouse... " >&6; } 13192if ${vi_cv_have_sysmouse+:} false; then : 13193 $as_echo_n "(cached) " >&6 13194else 13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13196/* end confdefs.h. */ 13197#include <sys/consio.h> 13198 #include <signal.h> 13199 #include <sys/fbio.h> 13200int 13201main () 13202{ 13203struct mouse_info mouse; 13204 mouse.operation = MOUSE_MODE; 13205 mouse.operation = MOUSE_SHOW; 13206 mouse.u.mode.mode = 0; 13207 mouse.u.mode.signal = SIGUSR2; 13208 ; 13209 return 0; 13210} 13211_ACEOF 13212if ac_fn_c_try_link "$LINENO"; then : 13213 vi_cv_have_sysmouse=yes 13214else 13215 vi_cv_have_sysmouse=no 13216fi 13217rm -f core conftest.err conftest.$ac_objext \ 13218 conftest$ac_exeext conftest.$ac_ext 13219 13220fi 13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13222$as_echo "$vi_cv_have_sysmouse" >&6; } 13223 if test $vi_cv_have_sysmouse = yes; then 13224 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13225 13226 fi 13227else 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13229$as_echo "yes" >&6; } 13230fi 13231 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13233$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13235/* end confdefs.h. */ 13236#if HAVE_FCNTL_H 13237# include <fcntl.h> 13238#endif 13239int 13240main () 13241{ 13242 int flag = FD_CLOEXEC; 13243 ; 13244 return 0; 13245} 13246_ACEOF 13247if ac_fn_c_try_compile "$LINENO"; then : 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13249$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13250 13251else 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13253$as_echo "not usable" >&6; } 13254fi 13255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13256 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13258$as_echo_n "checking for rename... " >&6; } 13259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260/* end confdefs.h. */ 13261#include <stdio.h> 13262int 13263main () 13264{ 13265rename("this", "that") 13266 ; 13267 return 0; 13268} 13269_ACEOF 13270if ac_fn_c_try_link "$LINENO"; then : 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13272$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13273 13274else 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13276$as_echo "no" >&6; } 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext conftest.$ac_ext 13280 13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13282$as_echo_n "checking for sysctl... " >&6; } 13283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13284/* end confdefs.h. */ 13285#include <sys/types.h> 13286#include <sys/sysctl.h> 13287int 13288main () 13289{ 13290 int mib[2], r; 13291 size_t len; 13292 13293 mib[0] = CTL_HW; 13294 mib[1] = HW_USERMEM; 13295 len = sizeof(r); 13296 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13297 13298 ; 13299 return 0; 13300} 13301_ACEOF 13302if ac_fn_c_try_compile "$LINENO"; then : 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13304$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13305 13306else 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13308$as_echo "not usable" >&6; } 13309fi 13310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13311 13312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13313$as_echo_n "checking for sysinfo... " >&6; } 13314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13315/* end confdefs.h. */ 13316#include <sys/types.h> 13317#include <sys/sysinfo.h> 13318int 13319main () 13320{ 13321 struct sysinfo sinfo; 13322 int t; 13323 13324 (void)sysinfo(&sinfo); 13325 t = sinfo.totalram; 13326 13327 ; 13328 return 0; 13329} 13330_ACEOF 13331if ac_fn_c_try_compile "$LINENO"; then : 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13333$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13334 13335else 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13337$as_echo "not usable" >&6; } 13338fi 13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13340 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13342$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345#include <sys/types.h> 13346#include <sys/sysinfo.h> 13347int 13348main () 13349{ 13350 struct sysinfo sinfo; 13351 sinfo.mem_unit = 1; 13352 13353 ; 13354 return 0; 13355} 13356_ACEOF 13357if ac_fn_c_try_compile "$LINENO"; then : 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13359$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13360 13361else 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13363$as_echo "no" >&6; } 13364fi 13365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13366 13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13368$as_echo_n "checking for sysconf... " >&6; } 13369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13370/* end confdefs.h. */ 13371#include <unistd.h> 13372int 13373main () 13374{ 13375 (void)sysconf(_SC_PAGESIZE); 13376 (void)sysconf(_SC_PHYS_PAGES); 13377 13378 ; 13379 return 0; 13380} 13381_ACEOF 13382if ac_fn_c_try_compile "$LINENO"; then : 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13384$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13385 13386else 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13388$as_echo "not usable" >&6; } 13389fi 13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13391 13392# The cast to long int works around a bug in the HP C Compiler 13393# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13394# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13395# This bug is HP SR number 8606223364. 13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13397$as_echo_n "checking size of int... " >&6; } 13398if ${ac_cv_sizeof_int+:} false; then : 13399 $as_echo_n "(cached) " >&6 13400else 13401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13402 13403else 13404 if test "$ac_cv_type_int" = yes; then 13405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13407as_fn_error 77 "cannot compute sizeof (int) 13408See \`config.log' for more details" "$LINENO" 5; } 13409 else 13410 ac_cv_sizeof_int=0 13411 fi 13412fi 13413 13414fi 13415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13416$as_echo "$ac_cv_sizeof_int" >&6; } 13417 13418 13419 13420cat >>confdefs.h <<_ACEOF 13421#define SIZEOF_INT $ac_cv_sizeof_int 13422_ACEOF 13423 13424 13425# The cast to long int works around a bug in the HP C Compiler 13426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13428# This bug is HP SR number 8606223364. 13429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13430$as_echo_n "checking size of long... " >&6; } 13431if ${ac_cv_sizeof_long+:} false; then : 13432 $as_echo_n "(cached) " >&6 13433else 13434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13435 13436else 13437 if test "$ac_cv_type_long" = yes; then 13438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13440as_fn_error 77 "cannot compute sizeof (long) 13441See \`config.log' for more details" "$LINENO" 5; } 13442 else 13443 ac_cv_sizeof_long=0 13444 fi 13445fi 13446 13447fi 13448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13449$as_echo "$ac_cv_sizeof_long" >&6; } 13450 13451 13452 13453cat >>confdefs.h <<_ACEOF 13454#define SIZEOF_LONG $ac_cv_sizeof_long 13455_ACEOF 13456 13457 13458# The cast to long int works around a bug in the HP C Compiler 13459# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13460# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13461# This bug is HP SR number 8606223364. 13462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13463$as_echo_n "checking size of time_t... " >&6; } 13464if ${ac_cv_sizeof_time_t+:} false; then : 13465 $as_echo_n "(cached) " >&6 13466else 13467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 13468 13469else 13470 if test "$ac_cv_type_time_t" = yes; then 13471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13473as_fn_error 77 "cannot compute sizeof (time_t) 13474See \`config.log' for more details" "$LINENO" 5; } 13475 else 13476 ac_cv_sizeof_time_t=0 13477 fi 13478fi 13479 13480fi 13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 13482$as_echo "$ac_cv_sizeof_time_t" >&6; } 13483 13484 13485 13486cat >>confdefs.h <<_ACEOF 13487#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 13488_ACEOF 13489 13490 13491# The cast to long int works around a bug in the HP C Compiler 13492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13494# This bug is HP SR number 8606223364. 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 13496$as_echo_n "checking size of off_t... " >&6; } 13497if ${ac_cv_sizeof_off_t+:} false; then : 13498 $as_echo_n "(cached) " >&6 13499else 13500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 13501 13502else 13503 if test "$ac_cv_type_off_t" = yes; then 13504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13506as_fn_error 77 "cannot compute sizeof (off_t) 13507See \`config.log' for more details" "$LINENO" 5; } 13508 else 13509 ac_cv_sizeof_off_t=0 13510 fi 13511fi 13512 13513fi 13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 13515$as_echo "$ac_cv_sizeof_off_t" >&6; } 13516 13517 13518 13519cat >>confdefs.h <<_ACEOF 13520#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13521_ACEOF 13522 13523 13524 13525cat >>confdefs.h <<_ACEOF 13526#define VIM_SIZEOF_INT $ac_cv_sizeof_int 13527_ACEOF 13528 13529cat >>confdefs.h <<_ACEOF 13530#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 13531_ACEOF 13532 13533 13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 13535$as_echo_n "checking uint32_t is 32 bits... " >&6; } 13536if test "$cross_compiling" = yes; then : 13537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 13538$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 13539else 13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13541/* end confdefs.h. */ 13542 13543#ifdef HAVE_STDINT_H 13544# include <stdint.h> 13545#endif 13546#ifdef HAVE_INTTYPES_H 13547# include <inttypes.h> 13548#endif 13549main() { 13550 uint32_t nr1 = (uint32_t)-1; 13551 uint32_t nr2 = (uint32_t)0xffffffffUL; 13552 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 13553 exit(0); 13554} 13555_ACEOF 13556if ac_fn_c_try_run "$LINENO"; then : 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13558$as_echo "ok" >&6; } 13559else 13560 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 13561fi 13562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13563 conftest.$ac_objext conftest.beam conftest.$ac_ext 13564fi 13565 13566 13567 13568bcopy_test_prog=' 13569#include "confdefs.h" 13570#ifdef HAVE_STRING_H 13571# include <string.h> 13572#endif 13573#if STDC_HEADERS 13574# include <stdlib.h> 13575# include <stddef.h> 13576#endif 13577main() { 13578 char buf[10]; 13579 strcpy(buf, "abcdefghi"); 13580 mch_memmove(buf, buf + 2, 3); 13581 if (strncmp(buf, "ababcf", 6)) 13582 exit(1); 13583 strcpy(buf, "abcdefghi"); 13584 mch_memmove(buf + 2, buf, 3); 13585 if (strncmp(buf, "cdedef", 6)) 13586 exit(1); 13587 exit(0); /* libc version works properly. */ 13588}' 13589 13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 13591$as_echo_n "checking whether memmove handles overlaps... " >&6; } 13592if ${vim_cv_memmove_handles_overlap+:} false; then : 13593 $as_echo_n "(cached) " >&6 13594else 13595 13596 if test "$cross_compiling" = yes; then : 13597 13598 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 13599 13600else 13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13602/* end confdefs.h. */ 13603#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 13604_ACEOF 13605if ac_fn_c_try_run "$LINENO"; then : 13606 13607 vim_cv_memmove_handles_overlap=yes 13608 13609else 13610 13611 vim_cv_memmove_handles_overlap=no 13612 13613fi 13614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13615 conftest.$ac_objext conftest.beam conftest.$ac_ext 13616fi 13617 13618 13619fi 13620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 13621$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 13622 13623if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 13624 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 13625 13626else 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 13628$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 13629if ${vim_cv_bcopy_handles_overlap+:} false; then : 13630 $as_echo_n "(cached) " >&6 13631else 13632 13633 if test "$cross_compiling" = yes; then : 13634 13635 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 13636 13637else 13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13639/* end confdefs.h. */ 13640#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 13641_ACEOF 13642if ac_fn_c_try_run "$LINENO"; then : 13643 13644 vim_cv_bcopy_handles_overlap=yes 13645 13646else 13647 13648 vim_cv_bcopy_handles_overlap=no 13649 13650fi 13651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13652 conftest.$ac_objext conftest.beam conftest.$ac_ext 13653fi 13654 13655 13656fi 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 13658$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 13659 13660 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 13661 $as_echo "#define USEBCOPY 1" >>confdefs.h 13662 13663 else 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 13665$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 13666if ${vim_cv_memcpy_handles_overlap+:} false; then : 13667 $as_echo_n "(cached) " >&6 13668else 13669 13670 if test "$cross_compiling" = yes; then : 13671 13672 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 13673 13674else 13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 13678_ACEOF 13679if ac_fn_c_try_run "$LINENO"; then : 13680 13681 vim_cv_memcpy_handles_overlap=yes 13682 13683else 13684 13685 vim_cv_memcpy_handles_overlap=no 13686 13687fi 13688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13689 conftest.$ac_objext conftest.beam conftest.$ac_ext 13690fi 13691 13692 13693fi 13694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 13695$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 13696 13697 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 13698 $as_echo "#define USEMEMCPY 1" >>confdefs.h 13699 13700 fi 13701 fi 13702fi 13703 13704 13705if test "x$with_x" = "xyes"; then 13706 cflags_save=$CFLAGS 13707 libs_save=$LIBS 13708 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 13709 CFLAGS="$CFLAGS $X_CFLAGS" 13710 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 13712$as_echo_n "checking whether X_LOCALE needed... " >&6; } 13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13714/* end confdefs.h. */ 13715#include <X11/Xlocale.h> 13716int 13717main () 13718{ 13719 13720 ; 13721 return 0; 13722} 13723_ACEOF 13724if ac_fn_c_try_compile "$LINENO"; then : 13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13726/* end confdefs.h. */ 13727 13728/* Override any GCC internal prototype to avoid an error. 13729 Use char because int might match the return type of a GCC 13730 builtin and then its argument prototype would still apply. */ 13731#ifdef __cplusplus 13732extern "C" 13733#endif 13734char _Xsetlocale (); 13735int 13736main () 13737{ 13738return _Xsetlocale (); 13739 ; 13740 return 0; 13741} 13742_ACEOF 13743if ac_fn_c_try_link "$LINENO"; then : 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13745$as_echo "yes" >&6; } 13746 $as_echo "#define X_LOCALE 1" >>confdefs.h 13747 13748else 13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13750$as_echo "no" >&6; } 13751fi 13752rm -f core conftest.err conftest.$ac_objext \ 13753 conftest$ac_exeext conftest.$ac_ext 13754else 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13756$as_echo "no" >&6; } 13757fi 13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13759 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 13761$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13763/* end confdefs.h. */ 13764 13765/* Override any GCC internal prototype to avoid an error. 13766 Use char because int might match the return type of a GCC 13767 builtin and then its argument prototype would still apply. */ 13768#ifdef __cplusplus 13769extern "C" 13770#endif 13771char Xutf8SetWMProperties (); 13772int 13773main () 13774{ 13775return Xutf8SetWMProperties (); 13776 ; 13777 return 0; 13778} 13779_ACEOF 13780if ac_fn_c_try_link "$LINENO"; then : 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13782$as_echo "yes" >&6; } 13783 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 13784 13785else 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13787$as_echo "no" >&6; } 13788fi 13789rm -f core conftest.err conftest.$ac_objext \ 13790 conftest$ac_exeext conftest.$ac_ext 13791 13792 CFLAGS=$cflags_save 13793 LIBS=$libs_save 13794fi 13795 13796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 13797$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 13798if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 13799 $as_echo_n "(cached) " >&6 13800else 13801 ac_check_lib_save_LIBS=$LIBS 13802LIBS="-lxpg4 $LIBS" 13803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13804/* end confdefs.h. */ 13805 13806/* Override any GCC internal prototype to avoid an error. 13807 Use char because int might match the return type of a GCC 13808 builtin and then its argument prototype would still apply. */ 13809#ifdef __cplusplus 13810extern "C" 13811#endif 13812char _xpg4_setrunelocale (); 13813int 13814main () 13815{ 13816return _xpg4_setrunelocale (); 13817 ; 13818 return 0; 13819} 13820_ACEOF 13821if ac_fn_c_try_link "$LINENO"; then : 13822 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 13823else 13824 ac_cv_lib_xpg4__xpg4_setrunelocale=no 13825fi 13826rm -f core conftest.err conftest.$ac_objext \ 13827 conftest$ac_exeext conftest.$ac_ext 13828LIBS=$ac_check_lib_save_LIBS 13829fi 13830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 13831$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 13832if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 13833 LIBS="$LIBS -lxpg4" 13834fi 13835 13836 13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 13838$as_echo_n "checking how to create tags... " >&6; } 13839test -f tags && mv tags tags.save 13840if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13841 TAGPRG="ctags -I INIT+ --fields=+S" 13842elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13843 TAGPRG="exctags -I INIT+ --fields=+S" 13844elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13845 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 13846else 13847 TAGPRG="ctags" 13848 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 13849 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 13850 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 13851 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 13852 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 13853 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 13854 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 13855fi 13856test -f tags.save && mv tags.save tags 13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 13858$as_echo "$TAGPRG" >&6; } 13859 13860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 13861$as_echo_n "checking how to run man with a section nr... " >&6; } 13862MANDEF="man" 13863(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 13865$as_echo "$MANDEF" >&6; } 13866if test "$MANDEF" = "man -s"; then 13867 $as_echo "#define USEMAN_S 1" >>confdefs.h 13868 13869fi 13870 13871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 13872$as_echo_n "checking --disable-nls argument... " >&6; } 13873# Check whether --enable-nls was given. 13874if test "${enable_nls+set}" = set; then : 13875 enableval=$enable_nls; 13876else 13877 enable_nls="yes" 13878fi 13879 13880 13881if test "$enable_nls" = "yes"; then 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13883$as_echo "no" >&6; } 13884 13885 INSTALL_LANGS=install-languages 13886 13887 INSTALL_TOOL_LANGS=install-tool-languages 13888 13889 13890 # Extract the first word of "msgfmt", so it can be a program name with args. 13891set dummy msgfmt; ac_word=$2 13892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13893$as_echo_n "checking for $ac_word... " >&6; } 13894if ${ac_cv_prog_MSGFMT+:} false; then : 13895 $as_echo_n "(cached) " >&6 13896else 13897 if test -n "$MSGFMT"; then 13898 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 13899else 13900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13901for as_dir in $PATH 13902do 13903 IFS=$as_save_IFS 13904 test -z "$as_dir" && as_dir=. 13905 for ac_exec_ext in '' $ac_executable_extensions; do 13906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13907 ac_cv_prog_MSGFMT="msgfmt" 13908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13909 break 2 13910 fi 13911done 13912 done 13913IFS=$as_save_IFS 13914 13915fi 13916fi 13917MSGFMT=$ac_cv_prog_MSGFMT 13918if test -n "$MSGFMT"; then 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13920$as_echo "$MSGFMT" >&6; } 13921else 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13923$as_echo "no" >&6; } 13924fi 13925 13926 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 13928$as_echo_n "checking for NLS... " >&6; } 13929 if test -f po/Makefile; then 13930 have_gettext="no" 13931 if test -n "$MSGFMT"; then 13932 olibs=$LIBS 13933 LIBS="" 13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13935/* end confdefs.h. */ 13936#include <libintl.h> 13937int 13938main () 13939{ 13940gettext("Test"); 13941 ; 13942 return 0; 13943} 13944_ACEOF 13945if ac_fn_c_try_link "$LINENO"; then : 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 13947$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 13948else 13949 LIBS="-lintl" 13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13951/* end confdefs.h. */ 13952#include <libintl.h> 13953int 13954main () 13955{ 13956gettext("Test"); 13957 ; 13958 return 0; 13959} 13960_ACEOF 13961if ac_fn_c_try_link "$LINENO"; then : 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 13963$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 13964 LIBS="$olibs -lintl" 13965else 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 13967$as_echo "gettext() doesn't work" >&6; }; 13968 LIBS=$olibs 13969fi 13970rm -f core conftest.err conftest.$ac_objext \ 13971 conftest$ac_exeext conftest.$ac_ext 13972fi 13973rm -f core conftest.err conftest.$ac_objext \ 13974 conftest$ac_exeext conftest.$ac_ext 13975 else 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 13977$as_echo "msgfmt not found - disabled" >&6; }; 13978 fi 13979 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 13980 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13981 13982 MAKEMO=yes 13983 13984 for ac_func in bind_textdomain_codeset 13985do : 13986 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13987if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 13988 cat >>confdefs.h <<_ACEOF 13989#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13990_ACEOF 13991 13992fi 13993done 13994 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 13996$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13998/* end confdefs.h. */ 13999#include <libintl.h> 14000 extern int _nl_msg_cat_cntr; 14001int 14002main () 14003{ 14004++_nl_msg_cat_cntr; 14005 ; 14006 return 0; 14007} 14008_ACEOF 14009if ac_fn_c_try_link "$LINENO"; then : 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14011$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 14012 14013else 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14015$as_echo "no" >&6; } 14016fi 14017rm -f core conftest.err conftest.$ac_objext \ 14018 conftest$ac_exeext conftest.$ac_ext 14019 fi 14020 else 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 14022$as_echo "no \"po/Makefile\" - disabled" >&6; }; 14023 fi 14024else 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14026$as_echo "yes" >&6; } 14027fi 14028 14029ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14030if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14031 DLL=dlfcn.h 14032else 14033 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14034if test "x$ac_cv_header_dl_h" = xyes; then : 14035 DLL=dl.h 14036fi 14037 14038 14039fi 14040 14041 14042if test x${DLL} = xdlfcn.h; then 14043 14044$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 14045 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 14047$as_echo_n "checking for dlopen()... " >&6; } 14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14049/* end confdefs.h. */ 14050 14051int 14052main () 14053{ 14054 14055 extern void* dlopen(); 14056 dlopen(); 14057 14058 ; 14059 return 0; 14060} 14061_ACEOF 14062if ac_fn_c_try_link "$LINENO"; then : 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14064$as_echo "yes" >&6; }; 14065 14066$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14067 14068else 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14070$as_echo "no" >&6; }; 14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 14072$as_echo_n "checking for dlopen() in -ldl... " >&6; } 14073 olibs=$LIBS 14074 LIBS="$LIBS -ldl" 14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14076/* end confdefs.h. */ 14077 14078int 14079main () 14080{ 14081 14082 extern void* dlopen(); 14083 dlopen(); 14084 14085 ; 14086 return 0; 14087} 14088_ACEOF 14089if ac_fn_c_try_link "$LINENO"; then : 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14091$as_echo "yes" >&6; }; 14092 14093$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14094 14095else 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14097$as_echo "no" >&6; }; 14098 LIBS=$olibs 14099fi 14100rm -f core conftest.err conftest.$ac_objext \ 14101 conftest$ac_exeext conftest.$ac_ext 14102fi 14103rm -f core conftest.err conftest.$ac_objext \ 14104 conftest$ac_exeext conftest.$ac_ext 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 14106$as_echo_n "checking for dlsym()... " >&6; } 14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14108/* end confdefs.h. */ 14109 14110int 14111main () 14112{ 14113 14114 extern void* dlsym(); 14115 dlsym(); 14116 14117 ; 14118 return 0; 14119} 14120_ACEOF 14121if ac_fn_c_try_link "$LINENO"; then : 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14123$as_echo "yes" >&6; }; 14124 14125$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14126 14127else 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14129$as_echo "no" >&6; }; 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 14131$as_echo_n "checking for dlsym() in -ldl... " >&6; } 14132 olibs=$LIBS 14133 LIBS="$LIBS -ldl" 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14135/* end confdefs.h. */ 14136 14137int 14138main () 14139{ 14140 14141 extern void* dlsym(); 14142 dlsym(); 14143 14144 ; 14145 return 0; 14146} 14147_ACEOF 14148if ac_fn_c_try_link "$LINENO"; then : 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14150$as_echo "yes" >&6; }; 14151 14152$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14153 14154else 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14156$as_echo "no" >&6; }; 14157 LIBS=$olibs 14158fi 14159rm -f core conftest.err conftest.$ac_objext \ 14160 conftest$ac_exeext conftest.$ac_ext 14161fi 14162rm -f core conftest.err conftest.$ac_objext \ 14163 conftest$ac_exeext conftest.$ac_ext 14164elif test x${DLL} = xdl.h; then 14165 14166$as_echo "#define HAVE_DL_H 1" >>confdefs.h 14167 14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 14169$as_echo_n "checking for shl_load()... " >&6; } 14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14171/* end confdefs.h. */ 14172 14173int 14174main () 14175{ 14176 14177 extern void* shl_load(); 14178 shl_load(); 14179 14180 ; 14181 return 0; 14182} 14183_ACEOF 14184if ac_fn_c_try_link "$LINENO"; then : 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14186$as_echo "yes" >&6; }; 14187 14188$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14189 14190else 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14192$as_echo "no" >&6; }; 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14194$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14195 olibs=$LIBS 14196 LIBS="$LIBS -ldld" 14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14198/* end confdefs.h. */ 14199 14200int 14201main () 14202{ 14203 14204 extern void* shl_load(); 14205 shl_load(); 14206 14207 ; 14208 return 0; 14209} 14210_ACEOF 14211if ac_fn_c_try_link "$LINENO"; then : 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14213$as_echo "yes" >&6; }; 14214 14215$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14216 14217else 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14219$as_echo "no" >&6; }; 14220 LIBS=$olibs 14221fi 14222rm -f core conftest.err conftest.$ac_objext \ 14223 conftest$ac_exeext conftest.$ac_ext 14224fi 14225rm -f core conftest.err conftest.$ac_objext \ 14226 conftest$ac_exeext conftest.$ac_ext 14227fi 14228for ac_header in setjmp.h 14229do : 14230 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14231if test "x$ac_cv_header_setjmp_h" = xyes; then : 14232 cat >>confdefs.h <<_ACEOF 14233#define HAVE_SETJMP_H 1 14234_ACEOF 14235 14236fi 14237 14238done 14239 14240 14241if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then 14242 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14243 LIBS=`echo $LIBS | sed s/-ldl//` 14244 PERL_LIBS="$PERL_LIBS -ldl" 14245 fi 14246fi 14247 14248if test "$MACOS_X" = "yes"; then 14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5 14250$as_echo_n "checking whether we need macOS frameworks... " >&6; } 14251 if test "$GUITYPE" = "CARBONGUI"; then 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5 14253$as_echo "yes, we need Carbon" >&6; } 14254 LIBS="$LIBS -framework Carbon" 14255 elif test "$MACOS_X_DARWIN" = "yes"; then 14256 if test "$features" = "tiny"; then 14257 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14258 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14259 if test "$enable_multibyte" = "yes"; then 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5 14261$as_echo "yes, we need CoreServices" >&6; } 14262 LIBS="$LIBS -framework CoreServices" 14263 else 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14265$as_echo "no" >&6; } 14266 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'` 14267 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'` 14268 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'` 14269 fi 14270 else 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5 14272$as_echo "yes, we need AppKit" >&6; } 14273 LIBS="$LIBS -framework AppKit" 14274 if test "$features" = "small" -a "$enable_multibyte" = "no"; then 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5 14276$as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;} 14277 enable_multibyte=yes 14278 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 14279 14280 fi 14281 fi 14282 else 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14284$as_echo "no" >&6; } 14285 fi 14286fi 14287if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14288 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14289fi 14290 14291DEPEND_CFLAGS_FILTER= 14292if test "$GCC" = yes; then 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14294$as_echo_n "checking for GCC 3 or later... " >&6; } 14295 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 14296 if test "$gccmajor" -gt "2"; then 14297 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14299$as_echo "yes" >&6; } 14300 else 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14302$as_echo "no" >&6; } 14303 fi 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14305$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14306 if test "$gccmajor" -gt "3"; then 14307 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/'` 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14309$as_echo "yes" >&6; } 14310 else 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14312$as_echo "no" >&6; } 14313 fi 14314fi 14315 14316 14317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 14318$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } 14319if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_GETPATH_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14321$as_echo "yes" >&6; } 14322 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14323 14324else 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14326$as_echo "no" >&6; } 14327fi 14328 14329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14330$as_echo_n "checking linker --as-needed support... " >&6; } 14331LINK_AS_NEEDED= 14332# Check if linker supports --as-needed and --no-as-needed options 14333if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14334 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14335 LINK_AS_NEEDED=yes 14336fi 14337if test "$LINK_AS_NEEDED" = yes; then 14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14339$as_echo "yes" >&6; } 14340else 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14342$as_echo "no" >&6; } 14343fi 14344 14345 14346# IBM z/OS reset CFLAGS for config.mk 14347if test "$zOSUnix" = "yes"; then 14348 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14349fi 14350 14351ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14352 14353cat >confcache <<\_ACEOF 14354# This file is a shell script that caches the results of configure 14355# tests run on this system so they can be shared between configure 14356# scripts and configure runs, see configure's option --config-cache. 14357# It is not useful on other systems. If it contains results you don't 14358# want to keep, you may remove or edit it. 14359# 14360# config.status only pays attention to the cache file if you give it 14361# the --recheck option to rerun configure. 14362# 14363# `ac_cv_env_foo' variables (set or unset) will be overridden when 14364# loading this file, other *unset* `ac_cv_foo' will be assigned the 14365# following values. 14366 14367_ACEOF 14368 14369# The following way of writing the cache mishandles newlines in values, 14370# but we know of no workaround that is simple, portable, and efficient. 14371# So, we kill variables containing newlines. 14372# Ultrix sh set writes to stderr and can't be redirected directly, 14373# and sets the high bit in the cache file unless we assign to the vars. 14374( 14375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14376 eval ac_val=\$$ac_var 14377 case $ac_val in #( 14378 *${as_nl}*) 14379 case $ac_var in #( 14380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14381$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14382 esac 14383 case $ac_var in #( 14384 _ | IFS | as_nl) ;; #( 14385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14386 *) { eval $ac_var=; unset $ac_var;} ;; 14387 esac ;; 14388 esac 14389 done 14390 14391 (set) 2>&1 | 14392 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14393 *${as_nl}ac_space=\ *) 14394 # `set' does not quote correctly, so add quotes: double-quote 14395 # substitution turns \\\\ into \\, and sed turns \\ into \. 14396 sed -n \ 14397 "s/'/'\\\\''/g; 14398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14399 ;; #( 14400 *) 14401 # `set' quotes correctly as required by POSIX, so do not add quotes. 14402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14403 ;; 14404 esac | 14405 sort 14406) | 14407 sed ' 14408 /^ac_cv_env_/b end 14409 t clear 14410 :clear 14411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14412 t end 14413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14414 :end' >>confcache 14415if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14416 if test -w "$cache_file"; then 14417 if test "x$cache_file" != "x/dev/null"; then 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14419$as_echo "$as_me: updating cache $cache_file" >&6;} 14420 if test ! -f "$cache_file" || test -h "$cache_file"; then 14421 cat confcache >"$cache_file" 14422 else 14423 case $cache_file in #( 14424 */* | ?:*) 14425 mv -f confcache "$cache_file"$$ && 14426 mv -f "$cache_file"$$ "$cache_file" ;; #( 14427 *) 14428 mv -f confcache "$cache_file" ;; 14429 esac 14430 fi 14431 fi 14432 else 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14434$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14435 fi 14436fi 14437rm -f confcache 14438 14439test "x$prefix" = xNONE && prefix=$ac_default_prefix 14440# Let make expand exec_prefix. 14441test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14442 14443DEFS=-DHAVE_CONFIG_H 14444 14445ac_libobjs= 14446ac_ltlibobjs= 14447U= 14448for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14449 # 1. Remove the extension, and $U if already installed. 14450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14451 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14453 # will be set to the directory where LIBOBJS objects are built. 14454 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14455 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14456done 14457LIBOBJS=$ac_libobjs 14458 14459LTLIBOBJS=$ac_ltlibobjs 14460 14461 14462 14463 14464: "${CONFIG_STATUS=./config.status}" 14465ac_write_fail=0 14466ac_clean_files_save=$ac_clean_files 14467ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14468{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14469$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14470as_write_fail=0 14471cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14472#! $SHELL 14473# Generated by $as_me. 14474# Run this file to recreate the current configuration. 14475# Compiler output produced by configure, useful for debugging 14476# configure, is in config.log if it exists. 14477 14478debug=false 14479ac_cs_recheck=false 14480ac_cs_silent=false 14481 14482SHELL=\${CONFIG_SHELL-$SHELL} 14483export SHELL 14484_ASEOF 14485cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14486## -------------------- ## 14487## M4sh Initialization. ## 14488## -------------------- ## 14489 14490# Be more Bourne compatible 14491DUALCASE=1; export DUALCASE # for MKS sh 14492if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14493 emulate sh 14494 NULLCMD=: 14495 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14496 # is contrary to our usage. Disable this feature. 14497 alias -g '${1+"$@"}'='"$@"' 14498 setopt NO_GLOB_SUBST 14499else 14500 case `(set -o) 2>/dev/null` in #( 14501 *posix*) : 14502 set -o posix ;; #( 14503 *) : 14504 ;; 14505esac 14506fi 14507 14508 14509as_nl=' 14510' 14511export as_nl 14512# Printing a long string crashes Solaris 7 /usr/bin/printf. 14513as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14514as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14515as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14516# Prefer a ksh shell builtin over an external printf program on Solaris, 14517# but without wasting forks for bash or zsh. 14518if test -z "$BASH_VERSION$ZSH_VERSION" \ 14519 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14520 as_echo='print -r --' 14521 as_echo_n='print -rn --' 14522elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14523 as_echo='printf %s\n' 14524 as_echo_n='printf %s' 14525else 14526 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14527 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14528 as_echo_n='/usr/ucb/echo -n' 14529 else 14530 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14531 as_echo_n_body='eval 14532 arg=$1; 14533 case $arg in #( 14534 *"$as_nl"*) 14535 expr "X$arg" : "X\\(.*\\)$as_nl"; 14536 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14537 esac; 14538 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14539 ' 14540 export as_echo_n_body 14541 as_echo_n='sh -c $as_echo_n_body as_echo' 14542 fi 14543 export as_echo_body 14544 as_echo='sh -c $as_echo_body as_echo' 14545fi 14546 14547# The user is always right. 14548if test "${PATH_SEPARATOR+set}" != set; then 14549 PATH_SEPARATOR=: 14550 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14551 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14552 PATH_SEPARATOR=';' 14553 } 14554fi 14555 14556 14557# IFS 14558# We need space, tab and new line, in precisely that order. Quoting is 14559# there to prevent editors from complaining about space-tab. 14560# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14561# splitting by setting IFS to empty value.) 14562IFS=" "" $as_nl" 14563 14564# Find who we are. Look in the path if we contain no directory separator. 14565as_myself= 14566case $0 in #(( 14567 *[\\/]* ) as_myself=$0 ;; 14568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14569for as_dir in $PATH 14570do 14571 IFS=$as_save_IFS 14572 test -z "$as_dir" && as_dir=. 14573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14574 done 14575IFS=$as_save_IFS 14576 14577 ;; 14578esac 14579# We did not find ourselves, most probably we were run as `sh COMMAND' 14580# in which case we are not to be found in the path. 14581if test "x$as_myself" = x; then 14582 as_myself=$0 14583fi 14584if test ! -f "$as_myself"; then 14585 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14586 exit 1 14587fi 14588 14589# Unset variables that we do not need and which cause bugs (e.g. in 14590# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14591# suppresses any "Segmentation fault" message there. '((' could 14592# trigger a bug in pdksh 5.2.14. 14593for as_var in BASH_ENV ENV MAIL MAILPATH 14594do eval test x\${$as_var+set} = xset \ 14595 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14596done 14597PS1='$ ' 14598PS2='> ' 14599PS4='+ ' 14600 14601# NLS nuisances. 14602LC_ALL=C 14603export LC_ALL 14604LANGUAGE=C 14605export LANGUAGE 14606 14607# CDPATH. 14608(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14609 14610 14611# as_fn_error STATUS ERROR [LINENO LOG_FD] 14612# ---------------------------------------- 14613# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14614# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14615# script with STATUS, using 1 if that was 0. 14616as_fn_error () 14617{ 14618 as_status=$1; test $as_status -eq 0 && as_status=1 14619 if test "$4"; then 14620 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14621 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14622 fi 14623 $as_echo "$as_me: error: $2" >&2 14624 as_fn_exit $as_status 14625} # as_fn_error 14626 14627 14628# as_fn_set_status STATUS 14629# ----------------------- 14630# Set $? to STATUS, without forking. 14631as_fn_set_status () 14632{ 14633 return $1 14634} # as_fn_set_status 14635 14636# as_fn_exit STATUS 14637# ----------------- 14638# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14639as_fn_exit () 14640{ 14641 set +e 14642 as_fn_set_status $1 14643 exit $1 14644} # as_fn_exit 14645 14646# as_fn_unset VAR 14647# --------------- 14648# Portably unset VAR. 14649as_fn_unset () 14650{ 14651 { eval $1=; unset $1;} 14652} 14653as_unset=as_fn_unset 14654# as_fn_append VAR VALUE 14655# ---------------------- 14656# Append the text in VALUE to the end of the definition contained in VAR. Take 14657# advantage of any shell optimizations that allow amortized linear growth over 14658# repeated appends, instead of the typical quadratic growth present in naive 14659# implementations. 14660if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14661 eval 'as_fn_append () 14662 { 14663 eval $1+=\$2 14664 }' 14665else 14666 as_fn_append () 14667 { 14668 eval $1=\$$1\$2 14669 } 14670fi # as_fn_append 14671 14672# as_fn_arith ARG... 14673# ------------------ 14674# Perform arithmetic evaluation on the ARGs, and store the result in the 14675# global $as_val. Take advantage of shells that can avoid forks. The arguments 14676# must be portable across $(()) and expr. 14677if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14678 eval 'as_fn_arith () 14679 { 14680 as_val=$(( $* )) 14681 }' 14682else 14683 as_fn_arith () 14684 { 14685 as_val=`expr "$@" || test $? -eq 1` 14686 } 14687fi # as_fn_arith 14688 14689 14690if expr a : '\(a\)' >/dev/null 2>&1 && 14691 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14692 as_expr=expr 14693else 14694 as_expr=false 14695fi 14696 14697if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14698 as_basename=basename 14699else 14700 as_basename=false 14701fi 14702 14703if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14704 as_dirname=dirname 14705else 14706 as_dirname=false 14707fi 14708 14709as_me=`$as_basename -- "$0" || 14710$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14711 X"$0" : 'X\(//\)$' \| \ 14712 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14713$as_echo X/"$0" | 14714 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14715 s//\1/ 14716 q 14717 } 14718 /^X\/\(\/\/\)$/{ 14719 s//\1/ 14720 q 14721 } 14722 /^X\/\(\/\).*/{ 14723 s//\1/ 14724 q 14725 } 14726 s/.*/./; q'` 14727 14728# Avoid depending upon Character Ranges. 14729as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14730as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14731as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14732as_cr_digits='0123456789' 14733as_cr_alnum=$as_cr_Letters$as_cr_digits 14734 14735ECHO_C= ECHO_N= ECHO_T= 14736case `echo -n x` in #((((( 14737-n*) 14738 case `echo 'xy\c'` in 14739 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14740 xy) ECHO_C='\c';; 14741 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14742 ECHO_T=' ';; 14743 esac;; 14744*) 14745 ECHO_N='-n';; 14746esac 14747 14748rm -f conf$$ conf$$.exe conf$$.file 14749if test -d conf$$.dir; then 14750 rm -f conf$$.dir/conf$$.file 14751else 14752 rm -f conf$$.dir 14753 mkdir conf$$.dir 2>/dev/null 14754fi 14755if (echo >conf$$.file) 2>/dev/null; then 14756 if ln -s conf$$.file conf$$ 2>/dev/null; then 14757 as_ln_s='ln -s' 14758 # ... but there are two gotchas: 14759 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14760 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14761 # In both cases, we have to default to `cp -pR'. 14762 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14763 as_ln_s='cp -pR' 14764 elif ln conf$$.file conf$$ 2>/dev/null; then 14765 as_ln_s=ln 14766 else 14767 as_ln_s='cp -pR' 14768 fi 14769else 14770 as_ln_s='cp -pR' 14771fi 14772rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14773rmdir conf$$.dir 2>/dev/null 14774 14775 14776# as_fn_mkdir_p 14777# ------------- 14778# Create "$as_dir" as a directory, including parents if necessary. 14779as_fn_mkdir_p () 14780{ 14781 14782 case $as_dir in #( 14783 -*) as_dir=./$as_dir;; 14784 esac 14785 test -d "$as_dir" || eval $as_mkdir_p || { 14786 as_dirs= 14787 while :; do 14788 case $as_dir in #( 14789 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14790 *) as_qdir=$as_dir;; 14791 esac 14792 as_dirs="'$as_qdir' $as_dirs" 14793 as_dir=`$as_dirname -- "$as_dir" || 14794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14795 X"$as_dir" : 'X\(//\)[^/]' \| \ 14796 X"$as_dir" : 'X\(//\)$' \| \ 14797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14798$as_echo X"$as_dir" | 14799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14800 s//\1/ 14801 q 14802 } 14803 /^X\(\/\/\)[^/].*/{ 14804 s//\1/ 14805 q 14806 } 14807 /^X\(\/\/\)$/{ 14808 s//\1/ 14809 q 14810 } 14811 /^X\(\/\).*/{ 14812 s//\1/ 14813 q 14814 } 14815 s/.*/./; q'` 14816 test -d "$as_dir" && break 14817 done 14818 test -z "$as_dirs" || eval "mkdir $as_dirs" 14819 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14820 14821 14822} # as_fn_mkdir_p 14823if mkdir -p . 2>/dev/null; then 14824 as_mkdir_p='mkdir -p "$as_dir"' 14825else 14826 test -d ./-p && rmdir ./-p 14827 as_mkdir_p=false 14828fi 14829 14830 14831# as_fn_executable_p FILE 14832# ----------------------- 14833# Test if FILE is an executable regular file. 14834as_fn_executable_p () 14835{ 14836 test -f "$1" && test -x "$1" 14837} # as_fn_executable_p 14838as_test_x='test -x' 14839as_executable_p=as_fn_executable_p 14840 14841# Sed expression to map a string onto a valid CPP name. 14842as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14843 14844# Sed expression to map a string onto a valid variable name. 14845as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14846 14847 14848exec 6>&1 14849## ----------------------------------- ## 14850## Main body of $CONFIG_STATUS script. ## 14851## ----------------------------------- ## 14852_ASEOF 14853test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14854 14855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14856# Save the log message, to keep $0 and so on meaningful, and to 14857# report actual input values of CONFIG_FILES etc. instead of their 14858# values after options handling. 14859ac_log=" 14860This file was extended by $as_me, which was 14861generated by GNU Autoconf 2.69. Invocation command line was 14862 14863 CONFIG_FILES = $CONFIG_FILES 14864 CONFIG_HEADERS = $CONFIG_HEADERS 14865 CONFIG_LINKS = $CONFIG_LINKS 14866 CONFIG_COMMANDS = $CONFIG_COMMANDS 14867 $ $0 $@ 14868 14869on `(hostname || uname -n) 2>/dev/null | sed 1q` 14870" 14871 14872_ACEOF 14873 14874case $ac_config_files in *" 14875"*) set x $ac_config_files; shift; ac_config_files=$*;; 14876esac 14877 14878case $ac_config_headers in *" 14879"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14880esac 14881 14882 14883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14884# Files that config.status was made for. 14885config_files="$ac_config_files" 14886config_headers="$ac_config_headers" 14887 14888_ACEOF 14889 14890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14891ac_cs_usage="\ 14892\`$as_me' instantiates files and other configuration actions 14893from templates according to the current configuration. Unless the files 14894and actions are specified as TAGs, all are instantiated by default. 14895 14896Usage: $0 [OPTION]... [TAG]... 14897 14898 -h, --help print this help, then exit 14899 -V, --version print version number and configuration settings, then exit 14900 --config print configuration, then exit 14901 -q, --quiet, --silent 14902 do not print progress messages 14903 -d, --debug don't remove temporary files 14904 --recheck update $as_me by reconfiguring in the same conditions 14905 --file=FILE[:TEMPLATE] 14906 instantiate the configuration file FILE 14907 --header=FILE[:TEMPLATE] 14908 instantiate the configuration header FILE 14909 14910Configuration files: 14911$config_files 14912 14913Configuration headers: 14914$config_headers 14915 14916Report bugs to the package provider." 14917 14918_ACEOF 14919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14920ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14921ac_cs_version="\\ 14922config.status 14923configured by $0, generated by GNU Autoconf 2.69, 14924 with options \\"\$ac_cs_config\\" 14925 14926Copyright (C) 2012 Free Software Foundation, Inc. 14927This config.status script is free software; the Free Software Foundation 14928gives unlimited permission to copy, distribute and modify it." 14929 14930ac_pwd='$ac_pwd' 14931srcdir='$srcdir' 14932AWK='$AWK' 14933test -n "\$AWK" || AWK=awk 14934_ACEOF 14935 14936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14937# The default lists apply if the user does not specify any file. 14938ac_need_defaults=: 14939while test $# != 0 14940do 14941 case $1 in 14942 --*=?*) 14943 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14945 ac_shift=: 14946 ;; 14947 --*=) 14948 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14949 ac_optarg= 14950 ac_shift=: 14951 ;; 14952 *) 14953 ac_option=$1 14954 ac_optarg=$2 14955 ac_shift=shift 14956 ;; 14957 esac 14958 14959 case $ac_option in 14960 # Handling of the options. 14961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14962 ac_cs_recheck=: ;; 14963 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14964 $as_echo "$ac_cs_version"; exit ;; 14965 --config | --confi | --conf | --con | --co | --c ) 14966 $as_echo "$ac_cs_config"; exit ;; 14967 --debug | --debu | --deb | --de | --d | -d ) 14968 debug=: ;; 14969 --file | --fil | --fi | --f ) 14970 $ac_shift 14971 case $ac_optarg in 14972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14973 '') as_fn_error $? "missing file argument" ;; 14974 esac 14975 as_fn_append CONFIG_FILES " '$ac_optarg'" 14976 ac_need_defaults=false;; 14977 --header | --heade | --head | --hea ) 14978 $ac_shift 14979 case $ac_optarg in 14980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14981 esac 14982 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14983 ac_need_defaults=false;; 14984 --he | --h) 14985 # Conflict between --help and --header 14986 as_fn_error $? "ambiguous option: \`$1' 14987Try \`$0 --help' for more information.";; 14988 --help | --hel | -h ) 14989 $as_echo "$ac_cs_usage"; exit ;; 14990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14991 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14992 ac_cs_silent=: ;; 14993 14994 # This is an error. 14995 -*) as_fn_error $? "unrecognized option: \`$1' 14996Try \`$0 --help' for more information." ;; 14997 14998 *) as_fn_append ac_config_targets " $1" 14999 ac_need_defaults=false ;; 15000 15001 esac 15002 shift 15003done 15004 15005ac_configure_extra_args= 15006 15007if $ac_cs_silent; then 15008 exec 6>/dev/null 15009 ac_configure_extra_args="$ac_configure_extra_args --silent" 15010fi 15011 15012_ACEOF 15013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15014if \$ac_cs_recheck; then 15015 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15016 shift 15017 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15018 CONFIG_SHELL='$SHELL' 15019 export CONFIG_SHELL 15020 exec "\$@" 15021fi 15022 15023_ACEOF 15024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15025exec 5>>auto/config.log 15026{ 15027 echo 15028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15029## Running $as_me. ## 15030_ASBOX 15031 $as_echo "$ac_log" 15032} >&5 15033 15034_ACEOF 15035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15036_ACEOF 15037 15038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15039 15040# Handling of arguments. 15041for ac_config_target in $ac_config_targets 15042do 15043 case $ac_config_target in 15044 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 15045 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 15046 15047 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15048 esac 15049done 15050 15051 15052# If the user did not use the arguments to specify the items to instantiate, 15053# then the envvar interface is used. Set only those that are not. 15054# We use the long form for the default assignment because of an extremely 15055# bizarre bug on SunOS 4.1.3. 15056if $ac_need_defaults; then 15057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15059fi 15060 15061# Have a temporary directory for convenience. Make it in the build tree 15062# simply because there is no reason against having it here, and in addition, 15063# creating and moving files from /tmp can sometimes cause problems. 15064# Hook for its removal unless debugging. 15065# Note that there is a small window in which the directory will not be cleaned: 15066# after its creation but before its name has been assigned to `$tmp'. 15067$debug || 15068{ 15069 tmp= ac_tmp= 15070 trap 'exit_status=$? 15071 : "${ac_tmp:=$tmp}" 15072 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15073' 0 15074 trap 'as_fn_exit 1' 1 2 13 15 15075} 15076# Create a (secure) tmp directory for tmp files. 15077 15078{ 15079 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15080 test -d "$tmp" 15081} || 15082{ 15083 tmp=./conf$$-$RANDOM 15084 (umask 077 && mkdir "$tmp") 15085} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15086ac_tmp=$tmp 15087 15088# Set up the scripts for CONFIG_FILES section. 15089# No need to generate them if there are no CONFIG_FILES. 15090# This happens for instance with `./config.status config.h'. 15091if test -n "$CONFIG_FILES"; then 15092 15093 15094ac_cr=`echo X | tr X '\015'` 15095# On cygwin, bash can eat \r inside `` if the user requested igncr. 15096# But we know of no other shell where ac_cr would be empty at this 15097# point, so we can use a bashism as a fallback. 15098if test "x$ac_cr" = x; then 15099 eval ac_cr=\$\'\\r\' 15100fi 15101ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15102if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15103 ac_cs_awk_cr='\\r' 15104else 15105 ac_cs_awk_cr=$ac_cr 15106fi 15107 15108echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15109_ACEOF 15110 15111 15112{ 15113 echo "cat >conf$$subs.awk <<_ACEOF" && 15114 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15115 echo "_ACEOF" 15116} >conf$$subs.sh || 15117 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15118ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15119ac_delim='%!_!# ' 15120for ac_last_try in false false false false false :; do 15121 . ./conf$$subs.sh || 15122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15123 15124 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15125 if test $ac_delim_n = $ac_delim_num; then 15126 break 15127 elif $ac_last_try; then 15128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15129 else 15130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15131 fi 15132done 15133rm -f conf$$subs.sh 15134 15135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15136cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15137_ACEOF 15138sed -n ' 15139h 15140s/^/S["/; s/!.*/"]=/ 15141p 15142g 15143s/^[^!]*!// 15144:repl 15145t repl 15146s/'"$ac_delim"'$// 15147t delim 15148:nl 15149h 15150s/\(.\{148\}\)..*/\1/ 15151t more1 15152s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15153p 15154n 15155b repl 15156:more1 15157s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15158p 15159g 15160s/.\{148\}// 15161t nl 15162:delim 15163h 15164s/\(.\{148\}\)..*/\1/ 15165t more2 15166s/["\\]/\\&/g; s/^/"/; s/$/"/ 15167p 15168b 15169:more2 15170s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15171p 15172g 15173s/.\{148\}// 15174t delim 15175' <conf$$subs.awk | sed ' 15176/^[^""]/{ 15177 N 15178 s/\n// 15179} 15180' >>$CONFIG_STATUS || ac_write_fail=1 15181rm -f conf$$subs.awk 15182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15183_ACAWK 15184cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15185 for (key in S) S_is_set[key] = 1 15186 FS = "" 15187 15188} 15189{ 15190 line = $ 0 15191 nfields = split(line, field, "@") 15192 substed = 0 15193 len = length(field[1]) 15194 for (i = 2; i < nfields; i++) { 15195 key = field[i] 15196 keylen = length(key) 15197 if (S_is_set[key]) { 15198 value = S[key] 15199 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15200 len += length(value) + length(field[++i]) 15201 substed = 1 15202 } else 15203 len += 1 + keylen 15204 } 15205 15206 print line 15207} 15208 15209_ACAWK 15210_ACEOF 15211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15212if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15213 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15214else 15215 cat 15216fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15217 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15218_ACEOF 15219 15220# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15221# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15222# trailing colons and then remove the whole line if VPATH becomes empty 15223# (actually we leave an empty line to preserve line numbers). 15224if test "x$srcdir" = x.; then 15225 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15226h 15227s/// 15228s/^/:/ 15229s/[ ]*$/:/ 15230s/:\$(srcdir):/:/g 15231s/:\${srcdir}:/:/g 15232s/:@srcdir@:/:/g 15233s/^:*// 15234s/:*$// 15235x 15236s/\(=[ ]*\).*/\1/ 15237G 15238s/\n// 15239s/^[^=]*=[ ]*$// 15240}' 15241fi 15242 15243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15244fi # test -n "$CONFIG_FILES" 15245 15246# Set up the scripts for CONFIG_HEADERS section. 15247# No need to generate them if there are no CONFIG_HEADERS. 15248# This happens for instance with `./config.status Makefile'. 15249if test -n "$CONFIG_HEADERS"; then 15250cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15251BEGIN { 15252_ACEOF 15253 15254# Transform confdefs.h into an awk script `defines.awk', embedded as 15255# here-document in config.status, that substitutes the proper values into 15256# config.h.in to produce config.h. 15257 15258# Create a delimiter string that does not exist in confdefs.h, to ease 15259# handling of long lines. 15260ac_delim='%!_!# ' 15261for ac_last_try in false false :; do 15262 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15263 if test -z "$ac_tt"; then 15264 break 15265 elif $ac_last_try; then 15266 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15267 else 15268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15269 fi 15270done 15271 15272# For the awk script, D is an array of macro values keyed by name, 15273# likewise P contains macro parameters if any. Preserve backslash 15274# newline sequences. 15275 15276ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15277sed -n ' 15278s/.\{148\}/&'"$ac_delim"'/g 15279t rset 15280:rset 15281s/^[ ]*#[ ]*define[ ][ ]*/ / 15282t def 15283d 15284:def 15285s/\\$// 15286t bsnl 15287s/["\\]/\\&/g 15288s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15289D["\1"]=" \3"/p 15290s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15291d 15292:bsnl 15293s/["\\]/\\&/g 15294s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15295D["\1"]=" \3\\\\\\n"\\/p 15296t cont 15297s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15298t cont 15299d 15300:cont 15301n 15302s/.\{148\}/&'"$ac_delim"'/g 15303t clear 15304:clear 15305s/\\$// 15306t bsnlc 15307s/["\\]/\\&/g; s/^/"/; s/$/"/p 15308d 15309:bsnlc 15310s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15311b cont 15312' <confdefs.h | sed ' 15313s/'"$ac_delim"'/"\\\ 15314"/g' >>$CONFIG_STATUS || ac_write_fail=1 15315 15316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15317 for (key in D) D_is_set[key] = 1 15318 FS = "" 15319} 15320/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15321 line = \$ 0 15322 split(line, arg, " ") 15323 if (arg[1] == "#") { 15324 defundef = arg[2] 15325 mac1 = arg[3] 15326 } else { 15327 defundef = substr(arg[1], 2) 15328 mac1 = arg[2] 15329 } 15330 split(mac1, mac2, "(") #) 15331 macro = mac2[1] 15332 prefix = substr(line, 1, index(line, defundef) - 1) 15333 if (D_is_set[macro]) { 15334 # Preserve the white space surrounding the "#". 15335 print prefix "define", macro P[macro] D[macro] 15336 next 15337 } else { 15338 # Replace #undef with comments. This is necessary, for example, 15339 # in the case of _POSIX_SOURCE, which is predefined and required 15340 # on some systems where configure will not decide to define it. 15341 if (defundef == "undef") { 15342 print "/*", prefix defundef, macro, "*/" 15343 next 15344 } 15345 } 15346} 15347{ print } 15348_ACAWK 15349_ACEOF 15350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15351 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15352fi # test -n "$CONFIG_HEADERS" 15353 15354 15355eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15356shift 15357for ac_tag 15358do 15359 case $ac_tag in 15360 :[FHLC]) ac_mode=$ac_tag; continue;; 15361 esac 15362 case $ac_mode$ac_tag in 15363 :[FHL]*:*);; 15364 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15365 :[FH]-) ac_tag=-:-;; 15366 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15367 esac 15368 ac_save_IFS=$IFS 15369 IFS=: 15370 set x $ac_tag 15371 IFS=$ac_save_IFS 15372 shift 15373 ac_file=$1 15374 shift 15375 15376 case $ac_mode in 15377 :L) ac_source=$1;; 15378 :[FH]) 15379 ac_file_inputs= 15380 for ac_f 15381 do 15382 case $ac_f in 15383 -) ac_f="$ac_tmp/stdin";; 15384 *) # Look for the file first in the build tree, then in the source tree 15385 # (if the path is not absolute). The absolute path cannot be DOS-style, 15386 # because $ac_f cannot contain `:'. 15387 test -f "$ac_f" || 15388 case $ac_f in 15389 [\\/$]*) false;; 15390 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15391 esac || 15392 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15393 esac 15394 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15395 as_fn_append ac_file_inputs " '$ac_f'" 15396 done 15397 15398 # Let's still pretend it is `configure' which instantiates (i.e., don't 15399 # use $as_me), people would be surprised to read: 15400 # /* config.h. Generated by config.status. */ 15401 configure_input='Generated from '` 15402 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15403 `' by configure.' 15404 if test x"$ac_file" != x-; then 15405 configure_input="$ac_file. $configure_input" 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15407$as_echo "$as_me: creating $ac_file" >&6;} 15408 fi 15409 # Neutralize special characters interpreted by sed in replacement strings. 15410 case $configure_input in #( 15411 *\&* | *\|* | *\\* ) 15412 ac_sed_conf_input=`$as_echo "$configure_input" | 15413 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15414 *) ac_sed_conf_input=$configure_input;; 15415 esac 15416 15417 case $ac_tag in 15418 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15420 esac 15421 ;; 15422 esac 15423 15424 ac_dir=`$as_dirname -- "$ac_file" || 15425$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15426 X"$ac_file" : 'X\(//\)[^/]' \| \ 15427 X"$ac_file" : 'X\(//\)$' \| \ 15428 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15429$as_echo X"$ac_file" | 15430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15431 s//\1/ 15432 q 15433 } 15434 /^X\(\/\/\)[^/].*/{ 15435 s//\1/ 15436 q 15437 } 15438 /^X\(\/\/\)$/{ 15439 s//\1/ 15440 q 15441 } 15442 /^X\(\/\).*/{ 15443 s//\1/ 15444 q 15445 } 15446 s/.*/./; q'` 15447 as_dir="$ac_dir"; as_fn_mkdir_p 15448 ac_builddir=. 15449 15450case "$ac_dir" in 15451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15452*) 15453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15454 # A ".." for each directory in $ac_dir_suffix. 15455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15456 case $ac_top_builddir_sub in 15457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15459 esac ;; 15460esac 15461ac_abs_top_builddir=$ac_pwd 15462ac_abs_builddir=$ac_pwd$ac_dir_suffix 15463# for backward compatibility: 15464ac_top_builddir=$ac_top_build_prefix 15465 15466case $srcdir in 15467 .) # We are building in place. 15468 ac_srcdir=. 15469 ac_top_srcdir=$ac_top_builddir_sub 15470 ac_abs_top_srcdir=$ac_pwd ;; 15471 [\\/]* | ?:[\\/]* ) # Absolute name. 15472 ac_srcdir=$srcdir$ac_dir_suffix; 15473 ac_top_srcdir=$srcdir 15474 ac_abs_top_srcdir=$srcdir ;; 15475 *) # Relative name. 15476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15477 ac_top_srcdir=$ac_top_build_prefix$srcdir 15478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15479esac 15480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15481 15482 15483 case $ac_mode in 15484 :F) 15485 # 15486 # CONFIG_FILE 15487 # 15488 15489_ACEOF 15490 15491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15492# If the template does not know about datarootdir, expand it. 15493# FIXME: This hack should be removed a few years after 2.60. 15494ac_datarootdir_hack=; ac_datarootdir_seen= 15495ac_sed_dataroot=' 15496/datarootdir/ { 15497 p 15498 q 15499} 15500/@datadir@/p 15501/@docdir@/p 15502/@infodir@/p 15503/@localedir@/p 15504/@mandir@/p' 15505case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15506*datarootdir*) ac_datarootdir_seen=yes;; 15507*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15509$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15510_ACEOF 15511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15512 ac_datarootdir_hack=' 15513 s&@datadir@&$datadir&g 15514 s&@docdir@&$docdir&g 15515 s&@infodir@&$infodir&g 15516 s&@localedir@&$localedir&g 15517 s&@mandir@&$mandir&g 15518 s&\\\${datarootdir}&$datarootdir&g' ;; 15519esac 15520_ACEOF 15521 15522# Neutralize VPATH when `$srcdir' = `.'. 15523# Shell code in configure.ac might set extrasub. 15524# FIXME: do we really want to maintain this feature? 15525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15526ac_sed_extra="$ac_vpsub 15527$extrasub 15528_ACEOF 15529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15530:t 15531/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15532s|@configure_input@|$ac_sed_conf_input|;t t 15533s&@top_builddir@&$ac_top_builddir_sub&;t t 15534s&@top_build_prefix@&$ac_top_build_prefix&;t t 15535s&@srcdir@&$ac_srcdir&;t t 15536s&@abs_srcdir@&$ac_abs_srcdir&;t t 15537s&@top_srcdir@&$ac_top_srcdir&;t t 15538s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15539s&@builddir@&$ac_builddir&;t t 15540s&@abs_builddir@&$ac_abs_builddir&;t t 15541s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15542$ac_datarootdir_hack 15543" 15544eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15545 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15546 15547test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15548 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15549 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15550 "$ac_tmp/out"`; test -z "$ac_out"; } && 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15552which seems to be undefined. Please make sure it is defined" >&5 15553$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15554which seems to be undefined. Please make sure it is defined" >&2;} 15555 15556 rm -f "$ac_tmp/stdin" 15557 case $ac_file in 15558 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15559 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15560 esac \ 15561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15562 ;; 15563 :H) 15564 # 15565 # CONFIG_HEADER 15566 # 15567 if test x"$ac_file" != x-; then 15568 { 15569 $as_echo "/* $configure_input */" \ 15570 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15571 } >"$ac_tmp/config.h" \ 15572 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15573 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15575$as_echo "$as_me: $ac_file is unchanged" >&6;} 15576 else 15577 rm -f "$ac_file" 15578 mv "$ac_tmp/config.h" "$ac_file" \ 15579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15580 fi 15581 else 15582 $as_echo "/* $configure_input */" \ 15583 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15584 || as_fn_error $? "could not create -" "$LINENO" 5 15585 fi 15586 ;; 15587 15588 15589 esac 15590 15591done # for ac_tag 15592 15593 15594as_fn_exit 0 15595_ACEOF 15596ac_clean_files=$ac_clean_files_save 15597 15598test $ac_write_fail = 0 || 15599 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15600 15601 15602# configure is writing to config.log, and then calls config.status. 15603# config.status does its own redirection, appending to config.log. 15604# Unfortunately, on DOS this fails, as config.log is still kept open 15605# by configure, so config.status won't be able to write to it; its 15606# output is simply discarded. So we exec the FD to /dev/null, 15607# effectively closing config.log, so it can be properly (re)opened and 15608# appended to by config.status. When coming back to configure, we 15609# need to make the FD available again. 15610if test "$no_create" != yes; then 15611 ac_cs_success=: 15612 ac_config_status_args= 15613 test "$silent" = yes && 15614 ac_config_status_args="$ac_config_status_args --quiet" 15615 exec 5>/dev/null 15616 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15617 exec 5>>auto/config.log 15618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15619 # would make configure fail if this is the last instruction. 15620 $ac_cs_success || as_fn_exit 1 15621fi 15622if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15624$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15625fi 15626 15627 15628