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_multibyte 821enable_hangulinput 822enable_xim 823enable_fontset 824with_x 825enable_gui 826enable_gtk2_check 827enable_gnome_check 828enable_gtk3_check 829enable_motif_check 830enable_athena_check 831enable_nextaw_check 832enable_carbon_check 833enable_gtktest 834with_gnome_includes 835with_gnome_libs 836with_gnome 837enable_icon_cache_update 838enable_desktop_database_update 839with_motif_lib 840with_tlib 841enable_largefile 842enable_acl 843enable_gpm 844enable_sysmouse 845enable_nls 846' 847 ac_precious_vars='build_alias 848host_alias 849target_alias 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855CPP 856XMKMF' 857 858 859# Initialize some variables set by options. 860ac_init_help= 861ac_init_version=false 862ac_unrecognized_opts= 863ac_unrecognized_sep= 864# The variables have the same names as the options, with 865# dashes changed to underlines. 866cache_file=/dev/null 867exec_prefix=NONE 868no_create= 869no_recursion= 870prefix=NONE 871program_prefix=NONE 872program_suffix=NONE 873program_transform_name=s,x,x, 874silent= 875site= 876srcdir= 877verbose= 878x_includes=NONE 879x_libraries=NONE 880 881# Installation directory options. 882# These are left unexpanded so users can "make install exec_prefix=/foo" 883# and all the variables that are supposed to be based on exec_prefix 884# by default will actually change. 885# Use braces instead of parens because sh, perl, etc. also accept them. 886# (The list follows the same order as the GNU Coding Standards.) 887bindir='${exec_prefix}/bin' 888sbindir='${exec_prefix}/sbin' 889libexecdir='${exec_prefix}/libexec' 890datarootdir='${prefix}/share' 891datadir='${datarootdir}' 892sysconfdir='${prefix}/etc' 893sharedstatedir='${prefix}/com' 894localstatedir='${prefix}/var' 895runstatedir='${localstatedir}/run' 896includedir='${prefix}/include' 897oldincludedir='/usr/include' 898docdir='${datarootdir}/doc/${PACKAGE}' 899infodir='${datarootdir}/info' 900htmldir='${docdir}' 901dvidir='${docdir}' 902pdfdir='${docdir}' 903psdir='${docdir}' 904libdir='${exec_prefix}/lib' 905localedir='${datarootdir}/locale' 906mandir='${datarootdir}/man' 907 908ac_prev= 909ac_dashdash= 910for ac_option 911do 912 # If the previous option needs an argument, assign it. 913 if test -n "$ac_prev"; then 914 eval $ac_prev=\$ac_option 915 ac_prev= 916 continue 917 fi 918 919 case $ac_option in 920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 921 *=) ac_optarg= ;; 922 *) ac_optarg=yes ;; 923 esac 924 925 # Accept the important Cygnus configure options, so we can diagnose typos. 926 927 case $ac_dashdash$ac_option in 928 --) 929 ac_dashdash=yes ;; 930 931 -bindir | --bindir | --bindi | --bind | --bin | --bi) 932 ac_prev=bindir ;; 933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 934 bindir=$ac_optarg ;; 935 936 -build | --build | --buil | --bui | --bu) 937 ac_prev=build_alias ;; 938 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 939 build_alias=$ac_optarg ;; 940 941 -cache-file | --cache-file | --cache-fil | --cache-fi \ 942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 943 ac_prev=cache_file ;; 944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 946 cache_file=$ac_optarg ;; 947 948 --config-cache | -C) 949 cache_file=config.cache ;; 950 951 -datadir | --datadir | --datadi | --datad) 952 ac_prev=datadir ;; 953 -datadir=* | --datadir=* | --datadi=* | --datad=*) 954 datadir=$ac_optarg ;; 955 956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 957 | --dataroo | --dataro | --datar) 958 ac_prev=datarootdir ;; 959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 961 datarootdir=$ac_optarg ;; 962 963 -disable-* | --disable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=no ;; 978 979 -docdir | --docdir | --docdi | --doc | --do) 980 ac_prev=docdir ;; 981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 982 docdir=$ac_optarg ;; 983 984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 985 ac_prev=dvidir ;; 986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 987 dvidir=$ac_optarg ;; 988 989 -enable-* | --enable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=\$ac_optarg ;; 1004 1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1007 | --exec | --exe | --ex) 1008 ac_prev=exec_prefix ;; 1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1011 | --exec=* | --exe=* | --ex=*) 1012 exec_prefix=$ac_optarg ;; 1013 1014 -gas | --gas | --ga | --g) 1015 # Obsolete; use --with-gas. 1016 with_gas=yes ;; 1017 1018 -help | --help | --hel | --he | -h) 1019 ac_init_help=long ;; 1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1021 ac_init_help=recursive ;; 1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1023 ac_init_help=short ;; 1024 1025 -host | --host | --hos | --ho) 1026 ac_prev=host_alias ;; 1027 -host=* | --host=* | --hos=* | --ho=*) 1028 host_alias=$ac_optarg ;; 1029 1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1031 ac_prev=htmldir ;; 1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1033 | --ht=*) 1034 htmldir=$ac_optarg ;; 1035 1036 -includedir | --includedir | --includedi | --included | --include \ 1037 | --includ | --inclu | --incl | --inc) 1038 ac_prev=includedir ;; 1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1040 | --includ=* | --inclu=* | --incl=* | --inc=*) 1041 includedir=$ac_optarg ;; 1042 1043 -infodir | --infodir | --infodi | --infod | --info | --inf) 1044 ac_prev=infodir ;; 1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1046 infodir=$ac_optarg ;; 1047 1048 -libdir | --libdir | --libdi | --libd) 1049 ac_prev=libdir ;; 1050 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1051 libdir=$ac_optarg ;; 1052 1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1054 | --libexe | --libex | --libe) 1055 ac_prev=libexecdir ;; 1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1057 | --libexe=* | --libex=* | --libe=*) 1058 libexecdir=$ac_optarg ;; 1059 1060 -localedir | --localedir | --localedi | --localed | --locale) 1061 ac_prev=localedir ;; 1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1063 localedir=$ac_optarg ;; 1064 1065 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1066 | --localstate | --localstat | --localsta | --localst | --locals) 1067 ac_prev=localstatedir ;; 1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1070 localstatedir=$ac_optarg ;; 1071 1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1073 ac_prev=mandir ;; 1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1075 mandir=$ac_optarg ;; 1076 1077 -nfp | --nfp | --nf) 1078 # Obsolete; use --without-fp. 1079 with_fp=no ;; 1080 1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1082 | --no-cr | --no-c | -n) 1083 no_create=yes ;; 1084 1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1087 no_recursion=yes ;; 1088 1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1091 | --oldin | --oldi | --old | --ol | --o) 1092 ac_prev=oldincludedir ;; 1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1096 oldincludedir=$ac_optarg ;; 1097 1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1099 ac_prev=prefix ;; 1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1101 prefix=$ac_optarg ;; 1102 1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1104 | --program-pre | --program-pr | --program-p) 1105 ac_prev=program_prefix ;; 1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1108 program_prefix=$ac_optarg ;; 1109 1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1111 | --program-suf | --program-su | --program-s) 1112 ac_prev=program_suffix ;; 1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1115 program_suffix=$ac_optarg ;; 1116 1117 -program-transform-name | --program-transform-name \ 1118 | --program-transform-nam | --program-transform-na \ 1119 | --program-transform-n | --program-transform- \ 1120 | --program-transform | --program-transfor \ 1121 | --program-transfo | --program-transf \ 1122 | --program-trans | --program-tran \ 1123 | --progr-tra | --program-tr | --program-t) 1124 ac_prev=program_transform_name ;; 1125 -program-transform-name=* | --program-transform-name=* \ 1126 | --program-transform-nam=* | --program-transform-na=* \ 1127 | --program-transform-n=* | --program-transform-=* \ 1128 | --program-transform=* | --program-transfor=* \ 1129 | --program-transfo=* | --program-transf=* \ 1130 | --program-trans=* | --program-tran=* \ 1131 | --progr-tra=* | --program-tr=* | --program-t=*) 1132 program_transform_name=$ac_optarg ;; 1133 1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1135 ac_prev=pdfdir ;; 1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1137 pdfdir=$ac_optarg ;; 1138 1139 -psdir | --psdir | --psdi | --psd | --ps) 1140 ac_prev=psdir ;; 1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1142 psdir=$ac_optarg ;; 1143 1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1145 | -silent | --silent | --silen | --sile | --sil) 1146 silent=yes ;; 1147 1148 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1149 | --runstate | --runstat | --runsta | --runst | --runs \ 1150 | --run | --ru | --r) 1151 ac_prev=runstatedir ;; 1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1154 | --run=* | --ru=* | --r=*) 1155 runstatedir=$ac_optarg ;; 1156 1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1158 ac_prev=sbindir ;; 1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1160 | --sbi=* | --sb=*) 1161 sbindir=$ac_optarg ;; 1162 1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1165 | --sharedst | --shareds | --shared | --share | --shar \ 1166 | --sha | --sh) 1167 ac_prev=sharedstatedir ;; 1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1171 | --sha=* | --sh=*) 1172 sharedstatedir=$ac_optarg ;; 1173 1174 -site | --site | --sit) 1175 ac_prev=site ;; 1176 -site=* | --site=* | --sit=*) 1177 site=$ac_optarg ;; 1178 1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1180 ac_prev=srcdir ;; 1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1182 srcdir=$ac_optarg ;; 1183 1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1185 | --syscon | --sysco | --sysc | --sys | --sy) 1186 ac_prev=sysconfdir ;; 1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1189 sysconfdir=$ac_optarg ;; 1190 1191 -target | --target | --targe | --targ | --tar | --ta | --t) 1192 ac_prev=target_alias ;; 1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1194 target_alias=$ac_optarg ;; 1195 1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1197 verbose=yes ;; 1198 1199 -version | --version | --versio | --versi | --vers | -V) 1200 ac_init_version=: ;; 1201 1202 -with-* | --with-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=\$ac_optarg ;; 1217 1218 -without-* | --without-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: $ac_useropt" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1253Try \`$0 --help' for more information" 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 case $ac_envvar in #( 1260 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1262 esac 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 as_fn_error $? "missing argument to $ac_option" 1280fi 1281 1282if test -n "$ac_unrecognized_opts"; then 1283 case $enable_option_checking in 1284 no) ;; 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1287 esac 1288fi 1289 1290# Check all directory arguments for consistency. 1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1292 datadir sysconfdir sharedstatedir localstatedir includedir \ 1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1294 libdir localedir mandir runstatedir 1295do 1296 eval ac_val=\$$ac_var 1297 # Remove trailing slashes. 1298 case $ac_val in 1299 */ ) 1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1301 eval $ac_var=\$ac_val;; 1302 esac 1303 # Be sure to have absolute directory names. 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 as_fn_error $? "working directory cannot be determined" 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1338 as_fn_error $? "pwd does not report name of working directory" 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$as_myself" || 1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$as_myself" : 'X\(//\)[^/]' \| \ 1348 X"$as_myself" : 'X\(//\)$' \| \ 1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1350$as_echo X"$as_myself" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1378fi 1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1380ac_abs_confdir=`( 1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1382 pwd)` 1383# When building in place, set srcdir=. 1384if test "$ac_abs_confdir" = "$ac_pwd"; then 1385 srcdir=. 1386fi 1387# Remove unnecessary trailing slashes from srcdir. 1388# Double slashes in file names in object file debugging info 1389# mess up M-x gdb in Emacs. 1390case $srcdir in 1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1392esac 1393for ac_var in $ac_precious_vars; do 1394 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_env_${ac_var}_value=\$${ac_var} 1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1398done 1399 1400# 1401# Report the --help message. 1402# 1403if test "$ac_init_help" = "long"; then 1404 # Omit some internal or obsolete options to make the list less imposing. 1405 # This message is too long to be a string in the A/UX 3.1 sh. 1406 cat <<_ACEOF 1407\`configure' configures this package to adapt to many kinds of systems. 1408 1409Usage: $0 [OPTION]... [VAR=VALUE]... 1410 1411To assign environment variables (e.g., CC, CFLAGS...), specify them as 1412VAR=VALUE. See below for descriptions of some of the useful variables. 1413 1414Defaults for the options are specified in brackets. 1415 1416Configuration: 1417 -h, --help display this help and exit 1418 --help=short display options specific to this package 1419 --help=recursive display the short help of all the included packages 1420 -V, --version display version information and exit 1421 -q, --quiet, --silent do not print \`checking ...' messages 1422 --cache-file=FILE cache test results in FILE [disabled] 1423 -C, --config-cache alias for \`--cache-file=config.cache' 1424 -n, --no-create do not create output files 1425 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1426 1427Installation directories: 1428 --prefix=PREFIX install architecture-independent files in PREFIX 1429 [$ac_default_prefix] 1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1431 [PREFIX] 1432 1433By default, \`make install' will install all the files in 1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1435an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1436for instance \`--prefix=\$HOME'. 1437 1438For better control, use the options below. 1439 1440Fine tuning of the installation directories: 1441 --bindir=DIR user executables [EPREFIX/bin] 1442 --sbindir=DIR system admin executables [EPREFIX/sbin] 1443 --libexecdir=DIR program executables [EPREFIX/libexec] 1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1448 --libdir=DIR object code libraries [EPREFIX/lib] 1449 --includedir=DIR C header files [PREFIX/include] 1450 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1453 --infodir=DIR info documentation [DATAROOTDIR/info] 1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1455 --mandir=DIR man documentation [DATAROOTDIR/man] 1456 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1457 --htmldir=DIR html documentation [DOCDIR] 1458 --dvidir=DIR dvi documentation [DOCDIR] 1459 --pdfdir=DIR pdf documentation [DOCDIR] 1460 --psdir=DIR ps documentation [DOCDIR] 1461_ACEOF 1462 1463 cat <<\_ACEOF 1464 1465X features: 1466 --x-includes=DIR X include files are in DIR 1467 --x-libraries=DIR X library files are in DIR 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 1473 cat <<\_ACEOF 1474 1475Optional Features: 1476 --disable-option-checking ignore unrecognized --enable/--with options 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --enable-fail-if-missing Fail if dependencies on additional features 1480 specified on the command line are missing. 1481 --disable-darwin Disable Darwin (Mac OS X) support. 1482 --disable-smack Do not check for Smack support. 1483 --disable-selinux Do not check for SELinux support. 1484 --disable-xsmp Disable XSMP session management 1485 --disable-xsmp-interact Disable XSMP interaction 1486 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1487 --enable-mzschemeinterp Include MzScheme interpreter. 1488 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1489 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1490 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1491 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1492 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1493 --enable-cscope Include cscope interface. 1494 --enable-workshop Include Sun Visual Workshop support. 1495 --disable-netbeans Disable NetBeans integration support. 1496 --disable-channel Disable process communication support. 1497 --enable-terminal Enable terminal emulation support. 1498 --enable-multibyte Include multibyte editing support. 1499 --enable-hangulinput Include Hangul input support. 1500 --enable-xim Include XIM input support. 1501 --enable-fontset Include X fontset output support. 1502 --enable-gui=OPTS X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1503 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1504 --enable-gnome-check If GTK GUI, check for GNOME default=no 1505 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1506 --enable-motif-check If auto-select GUI, check for Motif default=yes 1507 --enable-athena-check If auto-select GUI, check for Athena default=yes 1508 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1509 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1510 --disable-gtktest Do not try to compile and run a test GTK program 1511 --disable-icon-cache-update update disabled 1512 --disable-desktop-database-update update disabled 1513 --disable-largefile omit support for large files 1514 --disable-acl Don't check for ACL support. 1515 --disable-gpm Don't use gpm (Linux mouse daemon). 1516 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1517 --disable-nls Don't support NLS (gettext()). 1518 1519Optional Packages: 1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1522 --with-mac-arch=ARCH current, intel, ppc or both 1523 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1524 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1525 --without-local-dir do not search /usr/local for local libraries. 1526 --with-vim-name=NAME what to call the Vim executable 1527 --with-ex-name=NAME what to call the Ex executable 1528 --with-view-name=NAME what to call the View executable 1529 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1530 --with-modified-by=NAME name of who modified a release version 1531 --with-features=TYPE tiny, small, normal, big or huge (default: huge) 1532 --with-compiledby=NAME name to show in :version message 1533 --with-lua-prefix=PFX Prefix where Lua is installed. 1534 --with-luajit Link with LuaJIT instead of Lua. 1535 --with-plthome=PLTHOME Use PLTHOME. 1536 --with-python-config-dir=PATH Python's config directory 1537 --with-python3-config-dir=PATH Python's config directory 1538 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1539 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1540 --with-x use the X Window System 1541 --with-gnome-includes=DIR Specify location of GNOME headers 1542 --with-gnome-libs=DIR Specify location of GNOME libs 1543 --with-gnome Specify prefix for GNOME files 1544 --with-motif-lib=STRING Library for Motif 1545 --with-tlib=library terminal library to be used 1546 1547Some influential environment variables: 1548 CC C compiler command 1549 CFLAGS C compiler flags 1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1551 nonstandard directory <lib dir> 1552 LIBS libraries to pass to the linker, e.g. -l<library> 1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1554 you have headers in a nonstandard directory <include dir> 1555 CPP C preprocessor 1556 XMKMF Path to xmkmf, Makefile generator for X Window System 1557 1558Use these variables to override the choices made by `configure' or to help 1559it to find libraries and programs with nonstandard names/locations. 1560 1561Report bugs to the package provider. 1562_ACEOF 1563ac_status=$? 1564fi 1565 1566if test "$ac_init_help" = "recursive"; then 1567 # If there are subdirs, report their specific --help. 1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1569 test -d "$ac_dir" || 1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1571 continue 1572 ac_builddir=. 1573 1574case "$ac_dir" in 1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576*) 1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1578 # A ".." for each directory in $ac_dir_suffix. 1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1580 case $ac_top_builddir_sub in 1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1583 esac ;; 1584esac 1585ac_abs_top_builddir=$ac_pwd 1586ac_abs_builddir=$ac_pwd$ac_dir_suffix 1587# for backward compatibility: 1588ac_top_builddir=$ac_top_build_prefix 1589 1590case $srcdir in 1591 .) # We are building in place. 1592 ac_srcdir=. 1593 ac_top_srcdir=$ac_top_builddir_sub 1594 ac_abs_top_srcdir=$ac_pwd ;; 1595 [\\/]* | ?:[\\/]* ) # Absolute name. 1596 ac_srcdir=$srcdir$ac_dir_suffix; 1597 ac_top_srcdir=$srcdir 1598 ac_abs_top_srcdir=$srcdir ;; 1599 *) # Relative name. 1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1601 ac_top_srcdir=$ac_top_build_prefix$srcdir 1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1603esac 1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1605 1606 cd "$ac_dir" || { ac_status=$?; continue; } 1607 # Check for guested configure. 1608 if test -f "$ac_srcdir/configure.gnu"; then 1609 echo && 1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1611 elif test -f "$ac_srcdir/configure"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure" --help=recursive 1614 else 1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1616 fi || ac_status=$? 1617 cd "$ac_pwd" || { ac_status=$?; break; } 1618 done 1619fi 1620 1621test -n "$ac_init_help" && exit $ac_status 1622if $ac_init_version; then 1623 cat <<\_ACEOF 1624configure 1625generated by GNU Autoconf 2.69 1626 1627Copyright (C) 2012 Free Software Foundation, Inc. 1628This configure script is free software; the Free Software Foundation 1629gives unlimited permission to copy, distribute and modify it. 1630_ACEOF 1631 exit 1632fi 1633 1634## ------------------------ ## 1635## Autoconf initialization. ## 1636## ------------------------ ## 1637 1638# ac_fn_c_try_compile LINENO 1639# -------------------------- 1640# Try to compile conftest.$ac_ext, and return whether this succeeded. 1641ac_fn_c_try_compile () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 rm -f conftest.$ac_objext 1645 if { { ac_try="$ac_compile" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_compile") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } && { 1661 test -z "$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 } && test -s conftest.$ac_objext; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_compile 1675 1676# ac_fn_c_try_cpp LINENO 1677# ---------------------- 1678# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_cpp () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 if { { ac_try="$ac_cpp conftest.$ac_ext" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } > conftest.i && { 1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 }; then : 1701 ac_retval=0 1702else 1703 $as_echo "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=1 1707fi 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_cpp 1712 1713# ac_fn_c_try_link LINENO 1714# ----------------------- 1715# Try to link conftest.$ac_ext, and return whether this succeeded. 1716ac_fn_c_try_link () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 rm -f conftest.$ac_objext conftest$ac_exeext 1720 if { { ac_try="$ac_link" 1721case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_link") 2>conftest.err 1728 ac_status=$? 1729 if test -s conftest.err; then 1730 grep -v '^ *+' conftest.err >conftest.er1 1731 cat conftest.er1 >&5 1732 mv -f conftest.er1 conftest.err 1733 fi 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; } && { 1736 test -z "$ac_c_werror_flag" || 1737 test ! -s conftest.err 1738 } && test -s conftest$ac_exeext && { 1739 test "$cross_compiling" = yes || 1740 test -x conftest$ac_exeext 1741 }; then : 1742 ac_retval=0 1743else 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=1 1748fi 1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1751 # interfere with the next link command; also delete a directory that is 1752 # left behind by Apple's compiler. We do this before executing the actions. 1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1755 as_fn_set_status $ac_retval 1756 1757} # ac_fn_c_try_link 1758 1759# ac_fn_c_try_run LINENO 1760# ---------------------- 1761# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1762# that executables *can* be run. 1763ac_fn_c_try_run () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 if { { ac_try="$ac_link" 1767case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770esac 1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772$as_echo "$ac_try_echo"; } >&5 1773 (eval "$ac_link") 2>&5 1774 ac_status=$? 1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1777 { { case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_try") 2>&5 1784 ac_status=$? 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; }; }; then : 1787 ac_retval=0 1788else 1789 $as_echo "$as_me: program exited with status $ac_status" >&5 1790 $as_echo "$as_me: failed program was:" >&5 1791sed 's/^/| /' conftest.$ac_ext >&5 1792 1793 ac_retval=$ac_status 1794fi 1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 as_fn_set_status $ac_retval 1798 1799} # ac_fn_c_try_run 1800 1801# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1802# ------------------------------------------------------- 1803# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1804# the include files in INCLUDES and setting the cache variable VAR 1805# accordingly. 1806ac_fn_c_check_header_mongrel () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 if eval \${$3+:} false; then : 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1811$as_echo_n "checking for $2... " >&6; } 1812if eval \${$3+:} false; then : 1813 $as_echo_n "(cached) " >&6 1814fi 1815eval ac_res=\$$3 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1817$as_echo "$ac_res" >&6; } 1818else 1819 # Is the header compilable? 1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1821$as_echo_n "checking $2 usability... " >&6; } 1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824$4 1825#include <$2> 1826_ACEOF 1827if ac_fn_c_try_compile "$LINENO"; then : 1828 ac_header_compiler=yes 1829else 1830 ac_header_compiler=no 1831fi 1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1834$as_echo "$ac_header_compiler" >&6; } 1835 1836# Is the header present? 1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1838$as_echo_n "checking $2 presence... " >&6; } 1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840/* end confdefs.h. */ 1841#include <$2> 1842_ACEOF 1843if ac_fn_c_try_cpp "$LINENO"; then : 1844 ac_header_preproc=yes 1845else 1846 ac_header_preproc=no 1847fi 1848rm -f conftest.err conftest.i conftest.$ac_ext 1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1850$as_echo "$ac_header_preproc" >&6; } 1851 1852# So? What about this header? 1853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1854 yes:no: ) 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1856$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1859 ;; 1860 no:yes:* ) 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1862$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1864$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1866$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1868$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1871 ;; 1872esac 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874$as_echo_n "checking for $2... " >&6; } 1875if eval \${$3+:} false; then : 1876 $as_echo_n "(cached) " >&6 1877else 1878 eval "$3=\$ac_header_compiler" 1879fi 1880eval ac_res=\$$3 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1882$as_echo "$ac_res" >&6; } 1883fi 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 1886} # ac_fn_c_check_header_mongrel 1887 1888# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1889# ------------------------------------------------------- 1890# Tests whether HEADER exists and can be compiled using the include files in 1891# INCLUDES, setting the cache variable VAR accordingly. 1892ac_fn_c_check_header_compile () 1893{ 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1896$as_echo_n "checking for $2... " >&6; } 1897if eval \${$3+:} false; then : 1898 $as_echo_n "(cached) " >&6 1899else 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$4 1903#include <$2> 1904_ACEOF 1905if ac_fn_c_try_compile "$LINENO"; then : 1906 eval "$3=yes" 1907else 1908 eval "$3=no" 1909fi 1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 1917} # ac_fn_c_check_header_compile 1918 1919# ac_fn_c_check_func LINENO FUNC VAR 1920# ---------------------------------- 1921# Tests whether FUNC exists, setting the cache variable VAR accordingly 1922ac_fn_c_check_func () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1926$as_echo_n "checking for $2... " >&6; } 1927if eval \${$3+:} false; then : 1928 $as_echo_n "(cached) " >&6 1929else 1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1934#define $2 innocuous_$2 1935 1936/* System header to define __stub macros and hopefully few prototypes, 1937 which can conflict with char $2 (); below. 1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1939 <limits.h> exists even on freestanding compilers. */ 1940 1941#ifdef __STDC__ 1942# include <limits.h> 1943#else 1944# include <assert.h> 1945#endif 1946 1947#undef $2 1948 1949/* Override any GCC internal prototype to avoid an error. 1950 Use char because int might match the return type of a GCC 1951 builtin and then its argument prototype would still apply. */ 1952#ifdef __cplusplus 1953extern "C" 1954#endif 1955char $2 (); 1956/* The GNU C library defines this for functions which it implements 1957 to always fail with ENOSYS. Some functions are actually named 1958 something starting with __ and the normal name is an alias. */ 1959#if defined __stub_$2 || defined __stub___$2 1960choke me 1961#endif 1962 1963int 1964main () 1965{ 1966return $2 (); 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_link "$LINENO"; then : 1972 eval "$3=yes" 1973else 1974 eval "$3=no" 1975fi 1976rm -f core conftest.err conftest.$ac_objext \ 1977 conftest$ac_exeext conftest.$ac_ext 1978fi 1979eval ac_res=\$$3 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1981$as_echo "$ac_res" >&6; } 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 1984} # ac_fn_c_check_func 1985 1986# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1987# ------------------------------------------- 1988# Tests whether TYPE exists after having included INCLUDES, setting cache 1989# variable VAR accordingly. 1990ac_fn_c_check_type () 1991{ 1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1994$as_echo_n "checking for $2... " >&6; } 1995if eval \${$3+:} false; then : 1996 $as_echo_n "(cached) " >&6 1997else 1998 eval "$3=no" 1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2000/* end confdefs.h. */ 2001$4 2002int 2003main () 2004{ 2005if (sizeof ($2)) 2006 return 0; 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013/* end confdefs.h. */ 2014$4 2015int 2016main () 2017{ 2018if (sizeof (($2))) 2019 return 0; 2020 ; 2021 return 0; 2022} 2023_ACEOF 2024if ac_fn_c_try_compile "$LINENO"; then : 2025 2026else 2027 eval "$3=yes" 2028fi 2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2030fi 2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2032fi 2033eval ac_res=\$$3 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2035$as_echo "$ac_res" >&6; } 2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2037 2038} # ac_fn_c_check_type 2039 2040# ac_fn_c_find_uintX_t LINENO BITS VAR 2041# ------------------------------------ 2042# Finds an unsigned integer type with width BITS, setting cache variable VAR 2043# accordingly. 2044ac_fn_c_find_uintX_t () 2045{ 2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2048$as_echo_n "checking for uint$2_t... " >&6; } 2049if eval \${$3+:} false; then : 2050 $as_echo_n "(cached) " >&6 2051else 2052 eval "$3=no" 2053 # Order is important - never check a type that is potentially smaller 2054 # than half of the expected target width. 2055 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2056 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2058/* end confdefs.h. */ 2059$ac_includes_default 2060int 2061main () 2062{ 2063static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2064test_array [0] = 0; 2065return test_array [0]; 2066 2067 ; 2068 return 0; 2069} 2070_ACEOF 2071if ac_fn_c_try_compile "$LINENO"; then : 2072 case $ac_type in #( 2073 uint$2_t) : 2074 eval "$3=yes" ;; #( 2075 *) : 2076 eval "$3=\$ac_type" ;; 2077esac 2078fi 2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2080 if eval test \"x\$"$3"\" = x"no"; then : 2081 2082else 2083 break 2084fi 2085 done 2086fi 2087eval ac_res=\$$3 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2089$as_echo "$ac_res" >&6; } 2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2091 2092} # ac_fn_c_find_uintX_t 2093 2094# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2095# -------------------------------------------- 2096# Tries to find the compile-time value of EXPR in a program that includes 2097# INCLUDES, setting VAR accordingly. Returns whether the value could be 2098# computed 2099ac_fn_c_compute_int () 2100{ 2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2102 if test "$cross_compiling" = yes; then 2103 # Depending upon the size, compute the lo and hi bounds. 2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105/* end confdefs.h. */ 2106$4 2107int 2108main () 2109{ 2110static int test_array [1 - 2 * !(($2) >= 0)]; 2111test_array [0] = 0; 2112return test_array [0]; 2113 2114 ; 2115 return 0; 2116} 2117_ACEOF 2118if ac_fn_c_try_compile "$LINENO"; then : 2119 ac_lo=0 ac_mid=0 2120 while :; do 2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2122/* end confdefs.h. */ 2123$4 2124int 2125main () 2126{ 2127static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2128test_array [0] = 0; 2129return test_array [0]; 2130 2131 ; 2132 return 0; 2133} 2134_ACEOF 2135if ac_fn_c_try_compile "$LINENO"; then : 2136 ac_hi=$ac_mid; break 2137else 2138 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2139 if test $ac_lo -le $ac_mid; then 2140 ac_lo= ac_hi= 2141 break 2142 fi 2143 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2144fi 2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2146 done 2147else 2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2149/* end confdefs.h. */ 2150$4 2151int 2152main () 2153{ 2154static int test_array [1 - 2 * !(($2) < 0)]; 2155test_array [0] = 0; 2156return test_array [0]; 2157 2158 ; 2159 return 0; 2160} 2161_ACEOF 2162if ac_fn_c_try_compile "$LINENO"; then : 2163 ac_hi=-1 ac_mid=-1 2164 while :; do 2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2166/* end confdefs.h. */ 2167$4 2168int 2169main () 2170{ 2171static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2172test_array [0] = 0; 2173return test_array [0]; 2174 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179if ac_fn_c_try_compile "$LINENO"; then : 2180 ac_lo=$ac_mid; break 2181else 2182 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2183 if test $ac_mid -le $ac_hi; then 2184 ac_lo= ac_hi= 2185 break 2186 fi 2187 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2188fi 2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2190 done 2191else 2192 ac_lo= ac_hi= 2193fi 2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2195fi 2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2197# Binary search between lo and hi bounds. 2198while test "x$ac_lo" != "x$ac_hi"; do 2199 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2201/* end confdefs.h. */ 2202$4 2203int 2204main () 2205{ 2206static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2207test_array [0] = 0; 2208return test_array [0]; 2209 2210 ; 2211 return 0; 2212} 2213_ACEOF 2214if ac_fn_c_try_compile "$LINENO"; then : 2215 ac_hi=$ac_mid 2216else 2217 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2218fi 2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2220done 2221case $ac_lo in #(( 2222?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2223'') ac_retval=1 ;; 2224esac 2225 else 2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2227/* end confdefs.h. */ 2228$4 2229static long int longval () { return $2; } 2230static unsigned long int ulongval () { return $2; } 2231#include <stdio.h> 2232#include <stdlib.h> 2233int 2234main () 2235{ 2236 2237 FILE *f = fopen ("conftest.val", "w"); 2238 if (! f) 2239 return 1; 2240 if (($2) < 0) 2241 { 2242 long int i = longval (); 2243 if (i != ($2)) 2244 return 1; 2245 fprintf (f, "%ld", i); 2246 } 2247 else 2248 { 2249 unsigned long int i = ulongval (); 2250 if (i != ($2)) 2251 return 1; 2252 fprintf (f, "%lu", i); 2253 } 2254 /* Do not output a trailing newline, as this causes \r\n confusion 2255 on some platforms. */ 2256 return ferror (f) || fclose (f) != 0; 2257 2258 ; 2259 return 0; 2260} 2261_ACEOF 2262if ac_fn_c_try_run "$LINENO"; then : 2263 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2264else 2265 ac_retval=1 2266fi 2267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2268 conftest.$ac_objext conftest.beam conftest.$ac_ext 2269rm -f conftest.val 2270 2271 fi 2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2273 as_fn_set_status $ac_retval 2274 2275} # ac_fn_c_compute_int 2276cat >auto/config.log <<_ACEOF 2277This file contains any messages produced by compilers while 2278running configure, to aid debugging if configure makes a mistake. 2279 2280It was created by $as_me, which was 2281generated by GNU Autoconf 2.69. Invocation command line was 2282 2283 $ $0 $@ 2284 2285_ACEOF 2286exec 5>>auto/config.log 2287{ 2288cat <<_ASUNAME 2289## --------- ## 2290## Platform. ## 2291## --------- ## 2292 2293hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2294uname -m = `(uname -m) 2>/dev/null || echo unknown` 2295uname -r = `(uname -r) 2>/dev/null || echo unknown` 2296uname -s = `(uname -s) 2>/dev/null || echo unknown` 2297uname -v = `(uname -v) 2>/dev/null || echo unknown` 2298 2299/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2300/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2301 2302/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2303/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2304/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2305/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2306/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2307/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2308/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2309 2310_ASUNAME 2311 2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2313for as_dir in $PATH 2314do 2315 IFS=$as_save_IFS 2316 test -z "$as_dir" && as_dir=. 2317 $as_echo "PATH: $as_dir" 2318 done 2319IFS=$as_save_IFS 2320 2321} >&5 2322 2323cat >&5 <<_ACEOF 2324 2325 2326## ----------- ## 2327## Core tests. ## 2328## ----------- ## 2329 2330_ACEOF 2331 2332 2333# Keep a trace of the command line. 2334# Strip out --no-create and --no-recursion so they do not pile up. 2335# Strip out --silent because we don't want to record it for future runs. 2336# Also quote any args containing shell meta-characters. 2337# Make two passes to allow for proper duplicate-argument suppression. 2338ac_configure_args= 2339ac_configure_args0= 2340ac_configure_args1= 2341ac_must_keep_next=false 2342for ac_pass in 1 2 2343do 2344 for ac_arg 2345 do 2346 case $ac_arg in 2347 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2349 | -silent | --silent | --silen | --sile | --sil) 2350 continue ;; 2351 *\'*) 2352 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2353 esac 2354 case $ac_pass in 2355 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2356 2) 2357 as_fn_append ac_configure_args1 " '$ac_arg'" 2358 if test $ac_must_keep_next = true; then 2359 ac_must_keep_next=false # Got value, back to normal. 2360 else 2361 case $ac_arg in 2362 *=* | --config-cache | -C | -disable-* | --disable-* \ 2363 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2364 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2365 | -with-* | --with-* | -without-* | --without-* | --x) 2366 case "$ac_configure_args0 " in 2367 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2368 esac 2369 ;; 2370 -* ) ac_must_keep_next=true ;; 2371 esac 2372 fi 2373 as_fn_append ac_configure_args " '$ac_arg'" 2374 ;; 2375 esac 2376 done 2377done 2378{ ac_configure_args0=; unset ac_configure_args0;} 2379{ ac_configure_args1=; unset ac_configure_args1;} 2380 2381# When interrupted or exit'd, cleanup temporary files, and complete 2382# config.log. We remove comments because anyway the quotes in there 2383# would cause problems or look ugly. 2384# WARNING: Use '\'' to represent an apostrophe within the trap. 2385# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2386trap 'exit_status=$? 2387 # Save into config.log some information that might help in debugging. 2388 { 2389 echo 2390 2391 $as_echo "## ---------------- ## 2392## Cache variables. ## 2393## ---------------- ##" 2394 echo 2395 # The following way of writing the cache mishandles newlines in values, 2396( 2397 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2398 eval ac_val=\$$ac_var 2399 case $ac_val in #( 2400 *${as_nl}*) 2401 case $ac_var in #( 2402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2403$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2404 esac 2405 case $ac_var in #( 2406 _ | IFS | as_nl) ;; #( 2407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2408 *) { eval $ac_var=; unset $ac_var;} ;; 2409 esac ;; 2410 esac 2411 done 2412 (set) 2>&1 | 2413 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2414 *${as_nl}ac_space=\ *) 2415 sed -n \ 2416 "s/'\''/'\''\\\\'\'''\''/g; 2417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2418 ;; #( 2419 *) 2420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2421 ;; 2422 esac | 2423 sort 2424) 2425 echo 2426 2427 $as_echo "## ----------------- ## 2428## Output variables. ## 2429## ----------------- ##" 2430 echo 2431 for ac_var in $ac_subst_vars 2432 do 2433 eval ac_val=\$$ac_var 2434 case $ac_val in 2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2436 esac 2437 $as_echo "$ac_var='\''$ac_val'\''" 2438 done | sort 2439 echo 2440 2441 if test -n "$ac_subst_files"; then 2442 $as_echo "## ------------------- ## 2443## File substitutions. ## 2444## ------------------- ##" 2445 echo 2446 for ac_var in $ac_subst_files 2447 do 2448 eval ac_val=\$$ac_var 2449 case $ac_val in 2450 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2451 esac 2452 $as_echo "$ac_var='\''$ac_val'\''" 2453 done | sort 2454 echo 2455 fi 2456 2457 if test -s confdefs.h; then 2458 $as_echo "## ----------- ## 2459## confdefs.h. ## 2460## ----------- ##" 2461 echo 2462 cat confdefs.h 2463 echo 2464 fi 2465 test "$ac_signal" != 0 && 2466 $as_echo "$as_me: caught signal $ac_signal" 2467 $as_echo "$as_me: exit $exit_status" 2468 } >&5 2469 rm -f core *.core core.conftest.* && 2470 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2471 exit $exit_status 2472' 0 2473for ac_signal in 1 2 13 15; do 2474 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2475done 2476ac_signal=0 2477 2478# confdefs.h avoids OS command line length limits that DEFS can exceed. 2479rm -f -r conftest* confdefs.h 2480 2481$as_echo "/* confdefs.h */" > confdefs.h 2482 2483# Predefined preprocessor variables. 2484 2485cat >>confdefs.h <<_ACEOF 2486#define PACKAGE_NAME "$PACKAGE_NAME" 2487_ACEOF 2488 2489cat >>confdefs.h <<_ACEOF 2490#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2491_ACEOF 2492 2493cat >>confdefs.h <<_ACEOF 2494#define PACKAGE_VERSION "$PACKAGE_VERSION" 2495_ACEOF 2496 2497cat >>confdefs.h <<_ACEOF 2498#define PACKAGE_STRING "$PACKAGE_STRING" 2499_ACEOF 2500 2501cat >>confdefs.h <<_ACEOF 2502#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2503_ACEOF 2504 2505cat >>confdefs.h <<_ACEOF 2506#define PACKAGE_URL "$PACKAGE_URL" 2507_ACEOF 2508 2509 2510# Let the site file select an alternate cache file if it wants to. 2511# Prefer an explicitly selected file to automatically selected ones. 2512ac_site_file1=NONE 2513ac_site_file2=NONE 2514if test -n "$CONFIG_SITE"; then 2515 # We do not want a PATH search for config.site. 2516 case $CONFIG_SITE in #(( 2517 -*) ac_site_file1=./$CONFIG_SITE;; 2518 */*) ac_site_file1=$CONFIG_SITE;; 2519 *) ac_site_file1=./$CONFIG_SITE;; 2520 esac 2521elif test "x$prefix" != xNONE; then 2522 ac_site_file1=$prefix/share/config.site 2523 ac_site_file2=$prefix/etc/config.site 2524else 2525 ac_site_file1=$ac_default_prefix/share/config.site 2526 ac_site_file2=$ac_default_prefix/etc/config.site 2527fi 2528for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2529do 2530 test "x$ac_site_file" = xNONE && continue 2531 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2533$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2534 sed 's/^/| /' "$ac_site_file" >&5 2535 . "$ac_site_file" \ 2536 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2538as_fn_error $? "failed to load site script $ac_site_file 2539See \`config.log' for more details" "$LINENO" 5; } 2540 fi 2541done 2542 2543if test -r "$cache_file"; then 2544 # Some versions of bash will fail to source /dev/null (special files 2545 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2546 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2548$as_echo "$as_me: loading cache $cache_file" >&6;} 2549 case $cache_file in 2550 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2551 *) . "./$cache_file";; 2552 esac 2553 fi 2554else 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2556$as_echo "$as_me: creating cache $cache_file" >&6;} 2557 >$cache_file 2558fi 2559 2560# Check that the precious variables saved in the cache have kept the same 2561# value. 2562ac_cache_corrupted=false 2563for ac_var in $ac_precious_vars; do 2564 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2565 eval ac_new_set=\$ac_env_${ac_var}_set 2566 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2567 eval ac_new_val=\$ac_env_${ac_var}_value 2568 case $ac_old_set,$ac_new_set in 2569 set,) 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2571$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2572 ac_cache_corrupted=: ;; 2573 ,set) 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2575$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2576 ac_cache_corrupted=: ;; 2577 ,);; 2578 *) 2579 if test "x$ac_old_val" != "x$ac_new_val"; then 2580 # differences in whitespace do not lead to failure. 2581 ac_old_val_w=`echo x $ac_old_val` 2582 ac_new_val_w=`echo x $ac_new_val` 2583 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2585$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2586 ac_cache_corrupted=: 2587 else 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2589$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2590 eval $ac_var=\$ac_old_val 2591 fi 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2593$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2595$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2596 fi;; 2597 esac 2598 # Pass precious variables to config.status. 2599 if test "$ac_new_set" = set; then 2600 case $ac_new_val in 2601 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2602 *) ac_arg=$ac_var=$ac_new_val ;; 2603 esac 2604 case " $ac_configure_args " in 2605 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2606 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2607 esac 2608 fi 2609done 2610if $ac_cache_corrupted; then 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2614$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2615 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2616fi 2617## -------------------- ## 2618## Main body of script. ## 2619## -------------------- ## 2620 2621ac_ext=c 2622ac_cpp='$CPP $CPPFLAGS' 2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2625ac_compiler_gnu=$ac_cv_c_compiler_gnu 2626 2627 2628ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2629 2630 2631$as_echo "#define UNIX 1" >>confdefs.h 2632 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2634$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2635set x ${MAKE-make} 2636ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2637if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2638 $as_echo_n "(cached) " >&6 2639else 2640 cat >conftest.make <<\_ACEOF 2641SHELL = /bin/sh 2642all: 2643 @echo '@@@%%%=$(MAKE)=@@@%%%' 2644_ACEOF 2645# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2646case `${MAKE-make} -f conftest.make 2>/dev/null` in 2647 *@@@%%%=?*=@@@%%%*) 2648 eval ac_cv_prog_make_${ac_make}_set=yes;; 2649 *) 2650 eval ac_cv_prog_make_${ac_make}_set=no;; 2651esac 2652rm -f conftest.make 2653fi 2654if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2656$as_echo "yes" >&6; } 2657 SET_MAKE= 2658else 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2660$as_echo "no" >&6; } 2661 SET_MAKE="MAKE=${MAKE-make}" 2662fi 2663 2664 2665ac_ext=c 2666ac_cpp='$CPP $CPPFLAGS' 2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2669ac_compiler_gnu=$ac_cv_c_compiler_gnu 2670if test -n "$ac_tool_prefix"; then 2671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2672set dummy ${ac_tool_prefix}gcc; ac_word=$2 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2674$as_echo_n "checking for $ac_word... " >&6; } 2675if ${ac_cv_prog_CC+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 if test -n "$CC"; then 2679 ac_cv_prog_CC="$CC" # Let the user override the test. 2680else 2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH 2683do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2688 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2690 break 2 2691 fi 2692done 2693 done 2694IFS=$as_save_IFS 2695 2696fi 2697fi 2698CC=$ac_cv_prog_CC 2699if test -n "$CC"; then 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2701$as_echo "$CC" >&6; } 2702else 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2704$as_echo "no" >&6; } 2705fi 2706 2707 2708fi 2709if test -z "$ac_cv_prog_CC"; then 2710 ac_ct_CC=$CC 2711 # Extract the first word of "gcc", so it can be a program name with args. 2712set dummy gcc; ac_word=$2 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if ${ac_cv_prog_ac_ct_CC+:} false; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$ac_ct_CC"; then 2719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2720else 2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2728 ac_cv_prog_ac_ct_CC="gcc" 2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738ac_ct_CC=$ac_cv_prog_ac_ct_CC 2739if test -n "$ac_ct_CC"; then 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2741$as_echo "$ac_ct_CC" >&6; } 2742else 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744$as_echo "no" >&6; } 2745fi 2746 2747 if test "x$ac_ct_CC" = x; then 2748 CC="" 2749 else 2750 case $cross_compiling:$ac_tool_warned in 2751yes:) 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2754ac_tool_warned=yes ;; 2755esac 2756 CC=$ac_ct_CC 2757 fi 2758else 2759 CC="$ac_cv_prog_CC" 2760fi 2761 2762if test -z "$CC"; then 2763 if test -n "$ac_tool_prefix"; then 2764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2765set dummy ${ac_tool_prefix}cc; ac_word=$2 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2767$as_echo_n "checking for $ac_word... " >&6; } 2768if ${ac_cv_prog_CC+:} false; then : 2769 $as_echo_n "(cached) " >&6 2770else 2771 if test -n "$CC"; then 2772 ac_cv_prog_CC="$CC" # Let the user override the test. 2773else 2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2781 ac_cv_prog_CC="${ac_tool_prefix}cc" 2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2783 break 2 2784 fi 2785done 2786 done 2787IFS=$as_save_IFS 2788 2789fi 2790fi 2791CC=$ac_cv_prog_CC 2792if test -n "$CC"; then 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2794$as_echo "$CC" >&6; } 2795else 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2797$as_echo "no" >&6; } 2798fi 2799 2800 2801 fi 2802fi 2803if test -z "$CC"; then 2804 # Extract the first word of "cc", so it can be a program name with args. 2805set dummy cc; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_CC+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$CC"; then 2812 ac_cv_prog_CC="$CC" # Let the user override the test. 2813else 2814 ac_prog_rejected=no 2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2816for as_dir in $PATH 2817do 2818 IFS=$as_save_IFS 2819 test -z "$as_dir" && as_dir=. 2820 for ac_exec_ext in '' $ac_executable_extensions; do 2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2823 ac_prog_rejected=yes 2824 continue 2825 fi 2826 ac_cv_prog_CC="cc" 2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2828 break 2 2829 fi 2830done 2831 done 2832IFS=$as_save_IFS 2833 2834if test $ac_prog_rejected = yes; then 2835 # We found a bogon in the path, so make sure we never use it. 2836 set dummy $ac_cv_prog_CC 2837 shift 2838 if test $# != 0; then 2839 # We chose a different compiler from the bogus one. 2840 # However, it has the same basename, so the bogon will be chosen 2841 # first if we set CC to just the basename; use the full file name. 2842 shift 2843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2844 fi 2845fi 2846fi 2847fi 2848CC=$ac_cv_prog_CC 2849if test -n "$CC"; then 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2851$as_echo "$CC" >&6; } 2852else 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854$as_echo "no" >&6; } 2855fi 2856 2857 2858fi 2859if test -z "$CC"; then 2860 if test -n "$ac_tool_prefix"; then 2861 for ac_prog in cl.exe 2862 do 2863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2864set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2866$as_echo_n "checking for $ac_word... " >&6; } 2867if ${ac_cv_prog_CC+:} false; then : 2868 $as_echo_n "(cached) " >&6 2869else 2870 if test -n "$CC"; then 2871 ac_cv_prog_CC="$CC" # Let the user override the test. 2872else 2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2874for as_dir in $PATH 2875do 2876 IFS=$as_save_IFS 2877 test -z "$as_dir" && as_dir=. 2878 for ac_exec_ext in '' $ac_executable_extensions; do 2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2882 break 2 2883 fi 2884done 2885 done 2886IFS=$as_save_IFS 2887 2888fi 2889fi 2890CC=$ac_cv_prog_CC 2891if test -n "$CC"; then 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2893$as_echo "$CC" >&6; } 2894else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896$as_echo "no" >&6; } 2897fi 2898 2899 2900 test -n "$CC" && break 2901 done 2902fi 2903if test -z "$CC"; then 2904 ac_ct_CC=$CC 2905 for ac_prog in cl.exe 2906do 2907 # Extract the first word of "$ac_prog", so it can be a program name with args. 2908set dummy $ac_prog; ac_word=$2 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2910$as_echo_n "checking for $ac_word... " >&6; } 2911if ${ac_cv_prog_ac_ct_CC+:} false; then : 2912 $as_echo_n "(cached) " >&6 2913else 2914 if test -n "$ac_ct_CC"; then 2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2916else 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918for as_dir in $PATH 2919do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2924 ac_cv_prog_ac_ct_CC="$ac_prog" 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2926 break 2 2927 fi 2928done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933fi 2934ac_ct_CC=$ac_cv_prog_ac_ct_CC 2935if test -n "$ac_ct_CC"; then 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2937$as_echo "$ac_ct_CC" >&6; } 2938else 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2940$as_echo "no" >&6; } 2941fi 2942 2943 2944 test -n "$ac_ct_CC" && break 2945done 2946 2947 if test "x$ac_ct_CC" = x; then 2948 CC="" 2949 else 2950 case $cross_compiling:$ac_tool_warned in 2951yes:) 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2954ac_tool_warned=yes ;; 2955esac 2956 CC=$ac_ct_CC 2957 fi 2958fi 2959 2960fi 2961 2962 2963test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2965as_fn_error $? "no acceptable C compiler found in \$PATH 2966See \`config.log' for more details" "$LINENO" 5; } 2967 2968# Provide some information about the compiler. 2969$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2970set X $ac_compile 2971ac_compiler=$2 2972for ac_option in --version -v -V -qversion; do 2973 { { ac_try="$ac_compiler $ac_option >&5" 2974case "(($ac_try" in 2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2976 *) ac_try_echo=$ac_try;; 2977esac 2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2979$as_echo "$ac_try_echo"; } >&5 2980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2981 ac_status=$? 2982 if test -s conftest.err; then 2983 sed '10a\ 2984... rest of stderr output deleted ... 2985 10q' conftest.err >conftest.er1 2986 cat conftest.er1 >&5 2987 fi 2988 rm -f conftest.er1 conftest.err 2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2990 test $ac_status = 0; } 2991done 2992 2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2994/* end confdefs.h. */ 2995 2996int 2997main () 2998{ 2999 3000 ; 3001 return 0; 3002} 3003_ACEOF 3004ac_clean_files_save=$ac_clean_files 3005ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3006# Try to create an executable without -o first, disregard a.out. 3007# It will help us diagnose broken compilers, and finding out an intuition 3008# of exeext. 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3010$as_echo_n "checking whether the C compiler works... " >&6; } 3011ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3012 3013# The possible output files: 3014ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3015 3016ac_rmfiles= 3017for ac_file in $ac_files 3018do 3019 case $ac_file in 3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3021 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3022 esac 3023done 3024rm -f $ac_rmfiles 3025 3026if { { ac_try="$ac_link_default" 3027case "(($ac_try" in 3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3029 *) ac_try_echo=$ac_try;; 3030esac 3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3032$as_echo "$ac_try_echo"; } >&5 3033 (eval "$ac_link_default") 2>&5 3034 ac_status=$? 3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3036 test $ac_status = 0; }; then : 3037 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3038# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3039# in a Makefile. We should not override ac_cv_exeext if it was cached, 3040# so that the user can short-circuit this test for compilers unknown to 3041# Autoconf. 3042for ac_file in $ac_files '' 3043do 3044 test -f "$ac_file" || continue 3045 case $ac_file in 3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3047 ;; 3048 [ab].out ) 3049 # We found the default executable, but exeext='' is most 3050 # certainly right. 3051 break;; 3052 *.* ) 3053 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3054 then :; else 3055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3056 fi 3057 # We set ac_cv_exeext here because the later test for it is not 3058 # safe: cross compilers may not add the suffix if given an `-o' 3059 # argument, so we may need to know it at that point already. 3060 # Even if this section looks crufty: it has the advantage of 3061 # actually working. 3062 break;; 3063 * ) 3064 break;; 3065 esac 3066done 3067test "$ac_cv_exeext" = no && ac_cv_exeext= 3068 3069else 3070 ac_file='' 3071fi 3072if test -z "$ac_file"; then : 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3074$as_echo "no" >&6; } 3075$as_echo "$as_me: failed program was:" >&5 3076sed 's/^/| /' conftest.$ac_ext >&5 3077 3078{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3080as_fn_error 77 "C compiler cannot create executables 3081See \`config.log' for more details" "$LINENO" 5; } 3082else 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3084$as_echo "yes" >&6; } 3085fi 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3087$as_echo_n "checking for C compiler default output file name... " >&6; } 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3089$as_echo "$ac_file" >&6; } 3090ac_exeext=$ac_cv_exeext 3091 3092rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3093ac_clean_files=$ac_clean_files_save 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3095$as_echo_n "checking for suffix of executables... " >&6; } 3096if { { ac_try="$ac_link" 3097case "(($ac_try" in 3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3099 *) ac_try_echo=$ac_try;; 3100esac 3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3102$as_echo "$ac_try_echo"; } >&5 3103 (eval "$ac_link") 2>&5 3104 ac_status=$? 3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3106 test $ac_status = 0; }; then : 3107 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3108# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3109# work properly (i.e., refer to `conftest.exe'), while it won't with 3110# `rm'. 3111for ac_file in conftest.exe conftest conftest.*; do 3112 test -f "$ac_file" || continue 3113 case $ac_file in 3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3115 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3116 break;; 3117 * ) break;; 3118 esac 3119done 3120else 3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3123as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3124See \`config.log' for more details" "$LINENO" 5; } 3125fi 3126rm -f conftest conftest$ac_cv_exeext 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3128$as_echo "$ac_cv_exeext" >&6; } 3129 3130rm -f conftest.$ac_ext 3131EXEEXT=$ac_cv_exeext 3132ac_exeext=$EXEEXT 3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3134/* end confdefs.h. */ 3135#include <stdio.h> 3136int 3137main () 3138{ 3139FILE *f = fopen ("conftest.out", "w"); 3140 return ferror (f) || fclose (f) != 0; 3141 3142 ; 3143 return 0; 3144} 3145_ACEOF 3146ac_clean_files="$ac_clean_files conftest.out" 3147# Check that the compiler produces executables we can run. If not, either 3148# the compiler is broken, or we cross compile. 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3150$as_echo_n "checking whether we are cross compiling... " >&6; } 3151if test "$cross_compiling" != yes; then 3152 { { ac_try="$ac_link" 3153case "(($ac_try" in 3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3155 *) ac_try_echo=$ac_try;; 3156esac 3157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3158$as_echo "$ac_try_echo"; } >&5 3159 (eval "$ac_link") 2>&5 3160 ac_status=$? 3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3162 test $ac_status = 0; } 3163 if { ac_try='./conftest$ac_cv_exeext' 3164 { { case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3169$as_echo "$ac_try_echo"; } >&5 3170 (eval "$ac_try") 2>&5 3171 ac_status=$? 3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3173 test $ac_status = 0; }; }; then 3174 cross_compiling=no 3175 else 3176 if test "$cross_compiling" = maybe; then 3177 cross_compiling=yes 3178 else 3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3181as_fn_error $? "cannot run C compiled programs. 3182If you meant to cross compile, use \`--host'. 3183See \`config.log' for more details" "$LINENO" 5; } 3184 fi 3185 fi 3186fi 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3188$as_echo "$cross_compiling" >&6; } 3189 3190rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3191ac_clean_files=$ac_clean_files_save 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3193$as_echo_n "checking for suffix of object files... " >&6; } 3194if ${ac_cv_objext+:} false; then : 3195 $as_echo_n "(cached) " >&6 3196else 3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3198/* end confdefs.h. */ 3199 3200int 3201main () 3202{ 3203 3204 ; 3205 return 0; 3206} 3207_ACEOF 3208rm -f conftest.o conftest.obj 3209if { { ac_try="$ac_compile" 3210case "(($ac_try" in 3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212 *) ac_try_echo=$ac_try;; 3213esac 3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3215$as_echo "$ac_try_echo"; } >&5 3216 (eval "$ac_compile") 2>&5 3217 ac_status=$? 3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3219 test $ac_status = 0; }; then : 3220 for ac_file in conftest.o conftest.obj conftest.*; do 3221 test -f "$ac_file" || continue; 3222 case $ac_file in 3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3225 break;; 3226 esac 3227done 3228else 3229 $as_echo "$as_me: failed program was:" >&5 3230sed 's/^/| /' conftest.$ac_ext >&5 3231 3232{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3234as_fn_error $? "cannot compute suffix of object files: cannot compile 3235See \`config.log' for more details" "$LINENO" 5; } 3236fi 3237rm -f conftest.$ac_cv_objext conftest.$ac_ext 3238fi 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3240$as_echo "$ac_cv_objext" >&6; } 3241OBJEXT=$ac_cv_objext 3242ac_objext=$OBJEXT 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3244$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3245if ${ac_cv_c_compiler_gnu+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3249/* end confdefs.h. */ 3250 3251int 3252main () 3253{ 3254#ifndef __GNUC__ 3255 choke me 3256#endif 3257 3258 ; 3259 return 0; 3260} 3261_ACEOF 3262if ac_fn_c_try_compile "$LINENO"; then : 3263 ac_compiler_gnu=yes 3264else 3265 ac_compiler_gnu=no 3266fi 3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3268ac_cv_c_compiler_gnu=$ac_compiler_gnu 3269 3270fi 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3272$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3273if test $ac_compiler_gnu = yes; then 3274 GCC=yes 3275else 3276 GCC= 3277fi 3278ac_test_CFLAGS=${CFLAGS+set} 3279ac_save_CFLAGS=$CFLAGS 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3281$as_echo_n "checking whether $CC accepts -g... " >&6; } 3282if ${ac_cv_prog_cc_g+:} false; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 ac_save_c_werror_flag=$ac_c_werror_flag 3286 ac_c_werror_flag=yes 3287 ac_cv_prog_cc_g=no 3288 CFLAGS="-g" 3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3290/* end confdefs.h. */ 3291 3292int 3293main () 3294{ 3295 3296 ; 3297 return 0; 3298} 3299_ACEOF 3300if ac_fn_c_try_compile "$LINENO"; then : 3301 ac_cv_prog_cc_g=yes 3302else 3303 CFLAGS="" 3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305/* end confdefs.h. */ 3306 3307int 3308main () 3309{ 3310 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315if ac_fn_c_try_compile "$LINENO"; then : 3316 3317else 3318 ac_c_werror_flag=$ac_save_c_werror_flag 3319 CFLAGS="-g" 3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321/* end confdefs.h. */ 3322 3323int 3324main () 3325{ 3326 3327 ; 3328 return 0; 3329} 3330_ACEOF 3331if ac_fn_c_try_compile "$LINENO"; then : 3332 ac_cv_prog_cc_g=yes 3333fi 3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3335fi 3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3337fi 3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3339 ac_c_werror_flag=$ac_save_c_werror_flag 3340fi 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3342$as_echo "$ac_cv_prog_cc_g" >&6; } 3343if test "$ac_test_CFLAGS" = set; then 3344 CFLAGS=$ac_save_CFLAGS 3345elif test $ac_cv_prog_cc_g = yes; then 3346 if test "$GCC" = yes; then 3347 CFLAGS="-g -O2" 3348 else 3349 CFLAGS="-g" 3350 fi 3351else 3352 if test "$GCC" = yes; then 3353 CFLAGS="-O2" 3354 else 3355 CFLAGS= 3356 fi 3357fi 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3359$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3360if ${ac_cv_prog_cc_c89+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 ac_cv_prog_cc_c89=no 3364ac_save_CC=$CC 3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366/* end confdefs.h. */ 3367#include <stdarg.h> 3368#include <stdio.h> 3369struct stat; 3370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3371struct buf { int x; }; 3372FILE * (*rcsopen) (struct buf *, struct stat *, int); 3373static char *e (p, i) 3374 char **p; 3375 int i; 3376{ 3377 return p[i]; 3378} 3379static char *f (char * (*g) (char **, int), char **p, ...) 3380{ 3381 char *s; 3382 va_list v; 3383 va_start (v,p); 3384 s = g (p, va_arg (v,int)); 3385 va_end (v); 3386 return s; 3387} 3388 3389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3390 function prototypes and stuff, but not '\xHH' hex character constants. 3391 These don't provoke an error unfortunately, instead are silently treated 3392 as 'x'. The following induces an error, until -std is added to get 3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3394 array size at least. It's necessary to write '\x00'==0 to get something 3395 that's true only with -std. */ 3396int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3397 3398/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3399 inside strings and character constants. */ 3400#define FOO(x) 'x' 3401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3402 3403int test (int i, double x); 3404struct s1 {int (*f) (int a);}; 3405struct s2 {int (*f) (double a);}; 3406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3407int argc; 3408char **argv; 3409int 3410main () 3411{ 3412return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3419do 3420 CC="$ac_save_CC $ac_arg" 3421 if ac_fn_c_try_compile "$LINENO"; then : 3422 ac_cv_prog_cc_c89=$ac_arg 3423fi 3424rm -f core conftest.err conftest.$ac_objext 3425 test "x$ac_cv_prog_cc_c89" != "xno" && break 3426done 3427rm -f conftest.$ac_ext 3428CC=$ac_save_CC 3429 3430fi 3431# AC_CACHE_VAL 3432case "x$ac_cv_prog_cc_c89" in 3433 x) 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3435$as_echo "none needed" >&6; } ;; 3436 xno) 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3438$as_echo "unsupported" >&6; } ;; 3439 *) 3440 CC="$CC $ac_cv_prog_cc_c89" 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3442$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3443esac 3444if test "x$ac_cv_prog_cc_c89" != xno; then : 3445 3446fi 3447 3448ac_ext=c 3449ac_cpp='$CPP $CPPFLAGS' 3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3452ac_compiler_gnu=$ac_cv_c_compiler_gnu 3453 ac_ext=c 3454ac_cpp='$CPP $CPPFLAGS' 3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3457ac_compiler_gnu=$ac_cv_c_compiler_gnu 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3459$as_echo_n "checking how to run the C preprocessor... " >&6; } 3460# On Suns, sometimes $CPP names a directory. 3461if test -n "$CPP" && test -d "$CPP"; then 3462 CPP= 3463fi 3464if test -z "$CPP"; then 3465 if ${ac_cv_prog_CPP+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 # Double quotes because CPP needs to be expanded 3469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3470 do 3471 ac_preproc_ok=false 3472for ac_c_preproc_warn_flag in '' yes 3473do 3474 # Use a header file that comes with gcc, so configuring glibc 3475 # with a fresh cross-compiler works. 3476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3477 # <limits.h> exists even on freestanding compilers. 3478 # On the NeXT, cc -E runs the code through the compiler's parser, 3479 # not just through cpp. "Syntax error" is here to catch this case. 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482#ifdef __STDC__ 3483# include <limits.h> 3484#else 3485# include <assert.h> 3486#endif 3487 Syntax error 3488_ACEOF 3489if ac_fn_c_try_cpp "$LINENO"; then : 3490 3491else 3492 # Broken: fails on valid input. 3493continue 3494fi 3495rm -f conftest.err conftest.i conftest.$ac_ext 3496 3497 # OK, works on sane cases. Now check whether nonexistent headers 3498 # can be detected and how. 3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3500/* end confdefs.h. */ 3501#include <ac_nonexistent.h> 3502_ACEOF 3503if ac_fn_c_try_cpp "$LINENO"; then : 3504 # Broken: success on invalid input. 3505continue 3506else 3507 # Passes both tests. 3508ac_preproc_ok=: 3509break 3510fi 3511rm -f conftest.err conftest.i conftest.$ac_ext 3512 3513done 3514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3515rm -f conftest.i conftest.err conftest.$ac_ext 3516if $ac_preproc_ok; then : 3517 break 3518fi 3519 3520 done 3521 ac_cv_prog_CPP=$CPP 3522 3523fi 3524 CPP=$ac_cv_prog_CPP 3525else 3526 ac_cv_prog_CPP=$CPP 3527fi 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3529$as_echo "$CPP" >&6; } 3530ac_preproc_ok=false 3531for ac_c_preproc_warn_flag in '' yes 3532do 3533 # Use a header file that comes with gcc, so configuring glibc 3534 # with a fresh cross-compiler works. 3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3536 # <limits.h> exists even on freestanding compilers. 3537 # On the NeXT, cc -E runs the code through the compiler's parser, 3538 # not just through cpp. "Syntax error" is here to catch this case. 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540/* end confdefs.h. */ 3541#ifdef __STDC__ 3542# include <limits.h> 3543#else 3544# include <assert.h> 3545#endif 3546 Syntax error 3547_ACEOF 3548if ac_fn_c_try_cpp "$LINENO"; then : 3549 3550else 3551 # Broken: fails on valid input. 3552continue 3553fi 3554rm -f conftest.err conftest.i conftest.$ac_ext 3555 3556 # OK, works on sane cases. Now check whether nonexistent headers 3557 # can be detected and how. 3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3559/* end confdefs.h. */ 3560#include <ac_nonexistent.h> 3561_ACEOF 3562if ac_fn_c_try_cpp "$LINENO"; then : 3563 # Broken: success on invalid input. 3564continue 3565else 3566 # Passes both tests. 3567ac_preproc_ok=: 3568break 3569fi 3570rm -f conftest.err conftest.i conftest.$ac_ext 3571 3572done 3573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3574rm -f conftest.i conftest.err conftest.$ac_ext 3575if $ac_preproc_ok; then : 3576 3577else 3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3580as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3581See \`config.log' for more details" "$LINENO" 5; } 3582fi 3583 3584ac_ext=c 3585ac_cpp='$CPP $CPPFLAGS' 3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3588ac_compiler_gnu=$ac_cv_c_compiler_gnu 3589 3590 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3592$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3593if ${ac_cv_path_GREP+:} false; then : 3594 $as_echo_n "(cached) " >&6 3595else 3596 if test -z "$GREP"; then 3597 ac_path_GREP_found=false 3598 # Loop through the user's path and test for each of PROGNAME-LIST 3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3601do 3602 IFS=$as_save_IFS 3603 test -z "$as_dir" && as_dir=. 3604 for ac_prog in grep ggrep; do 3605 for ac_exec_ext in '' $ac_executable_extensions; do 3606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3607 as_fn_executable_p "$ac_path_GREP" || continue 3608# Check for GNU ac_path_GREP and select it if it is found. 3609 # Check for GNU $ac_path_GREP 3610case `"$ac_path_GREP" --version 2>&1` in 3611*GNU*) 3612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3613*) 3614 ac_count=0 3615 $as_echo_n 0123456789 >"conftest.in" 3616 while : 3617 do 3618 cat "conftest.in" "conftest.in" >"conftest.tmp" 3619 mv "conftest.tmp" "conftest.in" 3620 cp "conftest.in" "conftest.nl" 3621 $as_echo 'GREP' >> "conftest.nl" 3622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3624 as_fn_arith $ac_count + 1 && ac_count=$as_val 3625 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3626 # Best one so far, save it but keep looking for a better one 3627 ac_cv_path_GREP="$ac_path_GREP" 3628 ac_path_GREP_max=$ac_count 3629 fi 3630 # 10*(2^10) chars as input seems more than enough 3631 test $ac_count -gt 10 && break 3632 done 3633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3634esac 3635 3636 $ac_path_GREP_found && break 3 3637 done 3638 done 3639 done 3640IFS=$as_save_IFS 3641 if test -z "$ac_cv_path_GREP"; then 3642 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3643 fi 3644else 3645 ac_cv_path_GREP=$GREP 3646fi 3647 3648fi 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3650$as_echo "$ac_cv_path_GREP" >&6; } 3651 GREP="$ac_cv_path_GREP" 3652 3653 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3655$as_echo_n "checking for egrep... " >&6; } 3656if ${ac_cv_path_EGREP+:} false; then : 3657 $as_echo_n "(cached) " >&6 3658else 3659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3660 then ac_cv_path_EGREP="$GREP -E" 3661 else 3662 if test -z "$EGREP"; then 3663 ac_path_EGREP_found=false 3664 # Loop through the user's path and test for each of PROGNAME-LIST 3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3667do 3668 IFS=$as_save_IFS 3669 test -z "$as_dir" && as_dir=. 3670 for ac_prog in egrep; do 3671 for ac_exec_ext in '' $ac_executable_extensions; do 3672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3673 as_fn_executable_p "$ac_path_EGREP" || continue 3674# Check for GNU ac_path_EGREP and select it if it is found. 3675 # Check for GNU $ac_path_EGREP 3676case `"$ac_path_EGREP" --version 2>&1` in 3677*GNU*) 3678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3679*) 3680 ac_count=0 3681 $as_echo_n 0123456789 >"conftest.in" 3682 while : 3683 do 3684 cat "conftest.in" "conftest.in" >"conftest.tmp" 3685 mv "conftest.tmp" "conftest.in" 3686 cp "conftest.in" "conftest.nl" 3687 $as_echo 'EGREP' >> "conftest.nl" 3688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3690 as_fn_arith $ac_count + 1 && ac_count=$as_val 3691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3692 # Best one so far, save it but keep looking for a better one 3693 ac_cv_path_EGREP="$ac_path_EGREP" 3694 ac_path_EGREP_max=$ac_count 3695 fi 3696 # 10*(2^10) chars as input seems more than enough 3697 test $ac_count -gt 10 && break 3698 done 3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3700esac 3701 3702 $ac_path_EGREP_found && break 3 3703 done 3704 done 3705 done 3706IFS=$as_save_IFS 3707 if test -z "$ac_cv_path_EGREP"; then 3708 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3709 fi 3710else 3711 ac_cv_path_EGREP=$EGREP 3712fi 3713 3714 fi 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3717$as_echo "$ac_cv_path_EGREP" >&6; } 3718 EGREP="$ac_cv_path_EGREP" 3719 3720 3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3722/* end confdefs.h. */ 3723 3724_ACEOF 3725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3726 $EGREP "" >/dev/null 2>&1; then : 3727 3728fi 3729rm -f conftest* 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3731$as_echo_n "checking for fgrep... " >&6; } 3732if ${ac_cv_path_FGREP+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3736 then ac_cv_path_FGREP="$GREP -F" 3737 else 3738 if test -z "$FGREP"; then 3739 ac_path_FGREP_found=false 3740 # Loop through the user's path and test for each of PROGNAME-LIST 3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3743do 3744 IFS=$as_save_IFS 3745 test -z "$as_dir" && as_dir=. 3746 for ac_prog in fgrep; do 3747 for ac_exec_ext in '' $ac_executable_extensions; do 3748 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3749 as_fn_executable_p "$ac_path_FGREP" || continue 3750# Check for GNU ac_path_FGREP and select it if it is found. 3751 # Check for GNU $ac_path_FGREP 3752case `"$ac_path_FGREP" --version 2>&1` in 3753*GNU*) 3754 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3755*) 3756 ac_count=0 3757 $as_echo_n 0123456789 >"conftest.in" 3758 while : 3759 do 3760 cat "conftest.in" "conftest.in" >"conftest.tmp" 3761 mv "conftest.tmp" "conftest.in" 3762 cp "conftest.in" "conftest.nl" 3763 $as_echo 'FGREP' >> "conftest.nl" 3764 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3766 as_fn_arith $ac_count + 1 && ac_count=$as_val 3767 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3768 # Best one so far, save it but keep looking for a better one 3769 ac_cv_path_FGREP="$ac_path_FGREP" 3770 ac_path_FGREP_max=$ac_count 3771 fi 3772 # 10*(2^10) chars as input seems more than enough 3773 test $ac_count -gt 10 && break 3774 done 3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3776esac 3777 3778 $ac_path_FGREP_found && break 3 3779 done 3780 done 3781 done 3782IFS=$as_save_IFS 3783 if test -z "$ac_cv_path_FGREP"; then 3784 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3785 fi 3786else 3787 ac_cv_path_FGREP=$FGREP 3788fi 3789 3790 fi 3791fi 3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3793$as_echo "$ac_cv_path_FGREP" >&6; } 3794 FGREP="$ac_cv_path_FGREP" 3795 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3797$as_echo_n "checking for library containing strerror... " >&6; } 3798if ${ac_cv_search_strerror+:} false; then : 3799 $as_echo_n "(cached) " >&6 3800else 3801 ac_func_search_save_LIBS=$LIBS 3802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805/* Override any GCC internal prototype to avoid an error. 3806 Use char because int might match the return type of a GCC 3807 builtin and then its argument prototype would still apply. */ 3808#ifdef __cplusplus 3809extern "C" 3810#endif 3811char strerror (); 3812int 3813main () 3814{ 3815return strerror (); 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820for ac_lib in '' cposix; do 3821 if test -z "$ac_lib"; then 3822 ac_res="none required" 3823 else 3824 ac_res=-l$ac_lib 3825 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3826 fi 3827 if ac_fn_c_try_link "$LINENO"; then : 3828 ac_cv_search_strerror=$ac_res 3829fi 3830rm -f core conftest.err conftest.$ac_objext \ 3831 conftest$ac_exeext 3832 if ${ac_cv_search_strerror+:} false; then : 3833 break 3834fi 3835done 3836if ${ac_cv_search_strerror+:} false; then : 3837 3838else 3839 ac_cv_search_strerror=no 3840fi 3841rm conftest.$ac_ext 3842LIBS=$ac_func_search_save_LIBS 3843fi 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3845$as_echo "$ac_cv_search_strerror" >&6; } 3846ac_res=$ac_cv_search_strerror 3847if test "$ac_res" != no; then : 3848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3849 3850fi 3851 for ac_prog in gawk mawk nawk awk 3852do 3853 # Extract the first word of "$ac_prog", so it can be a program name with args. 3854set dummy $ac_prog; ac_word=$2 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3856$as_echo_n "checking for $ac_word... " >&6; } 3857if ${ac_cv_prog_AWK+:} false; then : 3858 $as_echo_n "(cached) " >&6 3859else 3860 if test -n "$AWK"; then 3861 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3862else 3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3864for as_dir in $PATH 3865do 3866 IFS=$as_save_IFS 3867 test -z "$as_dir" && as_dir=. 3868 for ac_exec_ext in '' $ac_executable_extensions; do 3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3870 ac_cv_prog_AWK="$ac_prog" 3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3872 break 2 3873 fi 3874done 3875 done 3876IFS=$as_save_IFS 3877 3878fi 3879fi 3880AWK=$ac_cv_prog_AWK 3881if test -n "$AWK"; then 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3883$as_echo "$AWK" >&6; } 3884else 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3886$as_echo "no" >&6; } 3887fi 3888 3889 3890 test -n "$AWK" && break 3891done 3892 3893# Extract the first word of "strip", so it can be a program name with args. 3894set dummy strip; ac_word=$2 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3896$as_echo_n "checking for $ac_word... " >&6; } 3897if ${ac_cv_prog_STRIP+:} false; then : 3898 $as_echo_n "(cached) " >&6 3899else 3900 if test -n "$STRIP"; then 3901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3902else 3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904for as_dir in $PATH 3905do 3906 IFS=$as_save_IFS 3907 test -z "$as_dir" && as_dir=. 3908 for ac_exec_ext in '' $ac_executable_extensions; do 3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3910 ac_cv_prog_STRIP="strip" 3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3912 break 2 3913 fi 3914done 3915 done 3916IFS=$as_save_IFS 3917 3918 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3919fi 3920fi 3921STRIP=$ac_cv_prog_STRIP 3922if test -n "$STRIP"; then 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3924$as_echo "$STRIP" >&6; } 3925else 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3927$as_echo "no" >&6; } 3928fi 3929 3930 3931 3932 3933 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3935$as_echo_n "checking for ANSI C header files... " >&6; } 3936if ${ac_cv_header_stdc+:} false; then : 3937 $as_echo_n "(cached) " >&6 3938else 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941#include <stdlib.h> 3942#include <stdarg.h> 3943#include <string.h> 3944#include <float.h> 3945 3946int 3947main () 3948{ 3949 3950 ; 3951 return 0; 3952} 3953_ACEOF 3954if ac_fn_c_try_compile "$LINENO"; then : 3955 ac_cv_header_stdc=yes 3956else 3957 ac_cv_header_stdc=no 3958fi 3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3960 3961if test $ac_cv_header_stdc = yes; then 3962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964/* end confdefs.h. */ 3965#include <string.h> 3966 3967_ACEOF 3968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3969 $EGREP "memchr" >/dev/null 2>&1; then : 3970 3971else 3972 ac_cv_header_stdc=no 3973fi 3974rm -f conftest* 3975 3976fi 3977 3978if test $ac_cv_header_stdc = yes; then 3979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981/* end confdefs.h. */ 3982#include <stdlib.h> 3983 3984_ACEOF 3985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3986 $EGREP "free" >/dev/null 2>&1; then : 3987 3988else 3989 ac_cv_header_stdc=no 3990fi 3991rm -f conftest* 3992 3993fi 3994 3995if test $ac_cv_header_stdc = yes; then 3996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3997 if test "$cross_compiling" = yes; then : 3998 : 3999else 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002#include <ctype.h> 4003#include <stdlib.h> 4004#if ((' ' & 0x0FF) == 0x020) 4005# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4006# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4007#else 4008# define ISLOWER(c) \ 4009 (('a' <= (c) && (c) <= 'i') \ 4010 || ('j' <= (c) && (c) <= 'r') \ 4011 || ('s' <= (c) && (c) <= 'z')) 4012# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4013#endif 4014 4015#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4016int 4017main () 4018{ 4019 int i; 4020 for (i = 0; i < 256; i++) 4021 if (XOR (islower (i), ISLOWER (i)) 4022 || toupper (i) != TOUPPER (i)) 4023 return 2; 4024 return 0; 4025} 4026_ACEOF 4027if ac_fn_c_try_run "$LINENO"; then : 4028 4029else 4030 ac_cv_header_stdc=no 4031fi 4032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4033 conftest.$ac_objext conftest.beam conftest.$ac_ext 4034fi 4035 4036fi 4037fi 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4039$as_echo "$ac_cv_header_stdc" >&6; } 4040if test $ac_cv_header_stdc = yes; then 4041 4042$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4043 4044fi 4045 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4047$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4048if ${ac_cv_header_sys_wait_h+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4052/* end confdefs.h. */ 4053#include <sys/types.h> 4054#include <sys/wait.h> 4055#ifndef WEXITSTATUS 4056# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4057#endif 4058#ifndef WIFEXITED 4059# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4060#endif 4061 4062int 4063main () 4064{ 4065 int s; 4066 wait (&s); 4067 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4068 ; 4069 return 0; 4070} 4071_ACEOF 4072if ac_fn_c_try_compile "$LINENO"; then : 4073 ac_cv_header_sys_wait_h=yes 4074else 4075 ac_cv_header_sys_wait_h=no 4076fi 4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4078fi 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4080$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4081if test $ac_cv_header_sys_wait_h = yes; then 4082 4083$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4084 4085fi 4086 4087 4088 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4090$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4091# Check whether --enable-fail_if_missing was given. 4092if test "${enable_fail_if_missing+set}" = set; then : 4093 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4094else 4095 fail_if_missing="no" 4096fi 4097 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4099$as_echo "$fail_if_missing" >&6; } 4100 4101if test -z "$CFLAGS"; then 4102 CFLAGS="-O" 4103 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4104fi 4105if test "$GCC" = yes; then 4106 gccversion=`$CC -dumpversion` 4107 if test "x$gccversion" = "x"; then 4108 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4109 fi 4110 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4111 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4112 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4113 else 4114 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4115 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4116 CFLAGS="$CFLAGS -fno-strength-reduce" 4117 fi 4118 fi 4119fi 4120 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4122$as_echo_n "checking for clang version... " >&6; } 4123CLANG_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'` 4124if test x"$CLANG_VERSION_STRING" != x"" ; then 4125 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4126 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4127 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4128 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4130$as_echo "$CLANG_VERSION" >&6; } 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4132$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4133 if test "$CLANG_VERSION" -ge 500002075 ; then 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4135$as_echo "no" >&6; } 4136 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4137 else 4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4139$as_echo "yes" >&6; } 4140 fi 4141else 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4143$as_echo "N/A" >&6; } 4144fi 4145 4146CROSS_COMPILING= 4147if test "$cross_compiling" = yes; then 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4149$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4150 CROSS_COMPILING=1 4151fi 4152 4153 4154test "$GCC" = yes && CPP_MM=M; 4155 4156if test -f ./toolcheck; then 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4158$as_echo "$as_me: checking for buggy tools..." >&6;} 4159 sh ./toolcheck 1>&6 4160fi 4161 4162OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4163 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4165$as_echo_n "checking for BeOS... " >&6; } 4166case `uname` in 4167 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4168 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4169$as_echo "yes" >&6; };; 4170 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4171$as_echo "no" >&6; };; 4172esac 4173 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4175$as_echo_n "checking for QNX... " >&6; } 4176case `uname` in 4177 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4178 test -z "$with_x" && with_x=no 4179 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4180$as_echo "yes" >&6; };; 4181 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4182$as_echo "no" >&6; };; 4183esac 4184 4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4186$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4187if test "`(uname) 2>/dev/null`" = Darwin; then 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4189$as_echo "yes" >&6; } 4190 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4192$as_echo_n "checking --disable-darwin argument... " >&6; } 4193 # Check whether --enable-darwin was given. 4194if test "${enable_darwin+set}" = set; then : 4195 enableval=$enable_darwin; 4196else 4197 enable_darwin="yes" 4198fi 4199 4200 if test "$enable_darwin" = "yes"; then 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4202$as_echo "no" >&6; } 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4204$as_echo_n "checking if Darwin files are there... " >&6; } 4205 if test -f os_macosx.m; then 4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4207$as_echo "yes" >&6; } 4208 else 4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4210$as_echo "no, Darwin support disabled" >&6; } 4211 enable_darwin=no 4212 fi 4213 else 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4215$as_echo "yes, Darwin support excluded" >&6; } 4216 fi 4217 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4219$as_echo_n "checking --with-mac-arch argument... " >&6; } 4220 4221# Check whether --with-mac-arch was given. 4222if test "${with_mac_arch+set}" = set; then : 4223 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4224$as_echo "$MACARCH" >&6; } 4225else 4226 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4227$as_echo "defaulting to $MACARCH" >&6; } 4228fi 4229 4230 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4232$as_echo_n "checking --with-developer-dir argument... " >&6; } 4233 4234# Check whether --with-developer-dir was given. 4235if test "${with_developer_dir+set}" = set; then : 4236 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4237$as_echo "$DEVELOPER_DIR" >&6; } 4238else 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4240$as_echo "not present" >&6; } 4241fi 4242 4243 4244 if test "x$DEVELOPER_DIR" = "x"; then 4245 # Extract the first word of "xcode-select", so it can be a program name with args. 4246set dummy xcode-select; ac_word=$2 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4248$as_echo_n "checking for $ac_word... " >&6; } 4249if ${ac_cv_path_XCODE_SELECT+:} false; then : 4250 $as_echo_n "(cached) " >&6 4251else 4252 case $XCODE_SELECT in 4253 [\\/]* | ?:[\\/]*) 4254 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4255 ;; 4256 *) 4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 for ac_exec_ext in '' $ac_executable_extensions; do 4263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4264 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4266 break 2 4267 fi 4268done 4269 done 4270IFS=$as_save_IFS 4271 4272 ;; 4273esac 4274fi 4275XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4276if test -n "$XCODE_SELECT"; then 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4278$as_echo "$XCODE_SELECT" >&6; } 4279else 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4281$as_echo "no" >&6; } 4282fi 4283 4284 4285 if test "x$XCODE_SELECT" != "x"; then 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4287$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4288 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4290$as_echo "$DEVELOPER_DIR" >&6; } 4291 else 4292 DEVELOPER_DIR=/Developer 4293 fi 4294 fi 4295 4296 if test "x$MACARCH" = "xboth"; then 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4298$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4299 save_cppflags="$CPPFLAGS" 4300 save_cflags="$CFLAGS" 4301 save_ldflags="$LDFLAGS" 4302 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304/* end confdefs.h. */ 4305 4306int 4307main () 4308{ 4309 4310 ; 4311 return 0; 4312} 4313_ACEOF 4314if ac_fn_c_try_link "$LINENO"; then : 4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4316$as_echo "found" >&6; } 4317else 4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4319$as_echo "not found" >&6; } 4320 CFLAGS="$save_cflags" 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4322$as_echo_n "checking if Intel architecture is supported... " >&6; } 4323 CPPFLAGS="$CPPFLAGS -arch i386" 4324 LDFLAGS="$save_ldflags -arch i386" 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327 4328int 4329main () 4330{ 4331 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336if ac_fn_c_try_link "$LINENO"; then : 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4338$as_echo "yes" >&6; }; MACARCH="intel" 4339else 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4341$as_echo "no" >&6; } 4342 MACARCH="ppc" 4343 CPPFLAGS="$save_cppflags -arch ppc" 4344 LDFLAGS="$save_ldflags -arch ppc" 4345fi 4346rm -f core conftest.err conftest.$ac_objext \ 4347 conftest$ac_exeext conftest.$ac_ext 4348fi 4349rm -f core conftest.err conftest.$ac_objext \ 4350 conftest$ac_exeext conftest.$ac_ext 4351 elif test "x$MACARCH" = "xintel"; then 4352 CPPFLAGS="$CPPFLAGS -arch intel" 4353 LDFLAGS="$LDFLAGS -arch intel" 4354 elif test "x$MACARCH" = "xppc"; then 4355 CPPFLAGS="$CPPFLAGS -arch ppc" 4356 LDFLAGS="$LDFLAGS -arch ppc" 4357 fi 4358 4359 if test "$enable_darwin" = "yes"; then 4360 MACOSX=yes 4361 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4362 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4363 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX" 4364 4365 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4366for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4367 inttypes.h stdint.h unistd.h 4368do : 4369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4370ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4371" 4372if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4373 cat >>confdefs.h <<_ACEOF 4374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4375_ACEOF 4376 4377fi 4378 4379done 4380 4381 4382ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4383if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4384 CARBON=yes 4385fi 4386 4387 4388 if test "x$CARBON" = "xyes"; then 4389 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 4390 with_x=no 4391 fi 4392 fi 4393 fi 4394 4395 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4396 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4397 fi 4398 4399else 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4401$as_echo "no" >&6; } 4402fi 4403 4404for ac_header in AvailabilityMacros.h 4405do : 4406 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4407if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4408 cat >>confdefs.h <<_ACEOF 4409#define HAVE_AVAILABILITYMACROS_H 1 4410_ACEOF 4411 4412fi 4413 4414done 4415 4416 4417 4418 4419 4420if test "$cross_compiling" = no; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4422$as_echo_n "checking --with-local-dir argument... " >&6; } 4423 have_local_include='' 4424 have_local_lib='' 4425 4426# Check whether --with-local-dir was given. 4427if test "${with_local_dir+set}" = set; then : 4428 withval=$with_local_dir; 4429 local_dir="$withval" 4430 case "$withval" in 4431 */*) ;; 4432 no) 4433 # avoid adding local dir to LDFLAGS and CPPFLAGS 4434 have_local_include=yes 4435 have_local_lib=yes 4436 ;; 4437 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4438 esac 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4440$as_echo "$local_dir" >&6; } 4441 4442else 4443 4444 local_dir=/usr/local 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4446$as_echo "Defaulting to $local_dir" >&6; } 4447 4448fi 4449 4450 if test "$GCC" = yes -a "$local_dir" != no; then 4451 echo 'void f(){}' > conftest.c 4452 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4453 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4454 rm -f conftest.c conftest.o 4455 fi 4456 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4457 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4458 if test "$tt" = "$LDFLAGS"; then 4459 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4460 fi 4461 fi 4462 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4463 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4464 if test "$tt" = "$CPPFLAGS"; then 4465 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4466 fi 4467 fi 4468fi 4469 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4471$as_echo_n "checking --with-vim-name argument... " >&6; } 4472 4473# Check whether --with-vim-name was given. 4474if test "${with_vim_name+set}" = set; then : 4475 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4476$as_echo "$VIMNAME" >&6; } 4477else 4478 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4479$as_echo "Defaulting to $VIMNAME" >&6; } 4480fi 4481 4482 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4484$as_echo_n "checking --with-ex-name argument... " >&6; } 4485 4486# Check whether --with-ex-name was given. 4487if test "${with_ex_name+set}" = set; then : 4488 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4489$as_echo "$EXNAME" >&6; } 4490else 4491 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4492$as_echo "Defaulting to ex" >&6; } 4493fi 4494 4495 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4497$as_echo_n "checking --with-view-name argument... " >&6; } 4498 4499# Check whether --with-view-name was given. 4500if test "${with_view_name+set}" = set; then : 4501 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4502$as_echo "$VIEWNAME" >&6; } 4503else 4504 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4505$as_echo "Defaulting to view" >&6; } 4506fi 4507 4508 4509 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4511$as_echo_n "checking --with-global-runtime argument... " >&6; } 4512 4513# Check whether --with-global-runtime was given. 4514if test "${with_global_runtime+set}" = set; then : 4515 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4516$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4517#define RUNTIME_GLOBAL "$withval" 4518_ACEOF 4519 4520else 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4522$as_echo "no" >&6; } 4523fi 4524 4525 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4527$as_echo_n "checking --with-modified-by argument... " >&6; } 4528 4529# Check whether --with-modified-by was given. 4530if test "${with_modified_by+set}" = set; then : 4531 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4532$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4533#define MODIFIED_BY "$withval" 4534_ACEOF 4535 4536else 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4538$as_echo "no" >&6; } 4539fi 4540 4541 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4543$as_echo_n "checking if character set is EBCDIC... " >&6; } 4544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4545/* end confdefs.h. */ 4546 4547int 4548main () 4549{ 4550 /* TryCompile function for CharSet. 4551 Treat any failure as ASCII for compatibility with existing art. 4552 Use compile-time rather than run-time tests for cross-compiler 4553 tolerance. */ 4554#if '0'!=240 4555make an error "Character set is not EBCDIC" 4556#endif 4557 ; 4558 return 0; 4559} 4560_ACEOF 4561if ac_fn_c_try_compile "$LINENO"; then : 4562 # TryCompile action if true 4563cf_cv_ebcdic=yes 4564else 4565 # TryCompile action if false 4566cf_cv_ebcdic=no 4567fi 4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4569# end of TryCompile ]) 4570# end of CacheVal CvEbcdic 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4572$as_echo "$cf_cv_ebcdic" >&6; } 4573case "$cf_cv_ebcdic" in #(vi 4574 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4575 4576 line_break='"\\n"' 4577 ;; 4578 *) line_break='"\\012"';; 4579esac 4580 4581 4582if test "$cf_cv_ebcdic" = "yes"; then 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4584$as_echo_n "checking for z/OS Unix... " >&6; } 4585case `uname` in 4586 OS/390) zOSUnix="yes"; 4587 if test "$CC" = "cc"; then 4588 ccm="$_CC_CCMODE" 4589 ccn="CC" 4590 else 4591 if test "$CC" = "c89"; then 4592 ccm="$_CC_C89MODE" 4593 ccn="C89" 4594 else 4595 ccm=1 4596 fi 4597 fi 4598 if test "$ccm" != "1"; then 4599 echo "" 4600 echo "------------------------------------------" 4601 echo " On z/OS Unix, the environment variable" 4602 echo " _CC_${ccn}MODE must be set to \"1\"!" 4603 echo " Do:" 4604 echo " export _CC_${ccn}MODE=1" 4605 echo " and then call configure again." 4606 echo "------------------------------------------" 4607 exit 1 4608 fi 4609 # Set CFLAGS for configure process. 4610 # This will be reset later for config.mk. 4611 # Use haltonmsg to force error for missing H files. 4612 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4613 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4615$as_echo "yes" >&6; } 4616 ;; 4617 *) zOSUnix="no"; 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619$as_echo "no" >&6; } 4620 ;; 4621esac 4622fi 4623 4624if test "$zOSUnix" = "yes"; then 4625 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4626else 4627 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4628fi 4629 4630 4631 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 4633$as_echo_n "checking --disable-smack argument... " >&6; } 4634# Check whether --enable-smack was given. 4635if test "${enable_smack+set}" = set; then : 4636 enableval=$enable_smack; 4637else 4638 enable_smack="yes" 4639fi 4640 4641if test "$enable_smack" = "yes"; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4643$as_echo "no" >&6; } 4644 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 4645if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 4646 true 4647else 4648 enable_smack="no" 4649fi 4650 4651 4652else 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4654$as_echo "yes" >&6; } 4655fi 4656if test "$enable_smack" = "yes"; then 4657 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 4658if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 4659 true 4660else 4661 enable_smack="no" 4662fi 4663 4664 4665fi 4666if test "$enable_smack" = "yes"; then 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 4668$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4670/* end confdefs.h. */ 4671#include <linux/xattr.h> 4672_ACEOF 4673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4674 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4676$as_echo "yes" >&6; } 4677else 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4679$as_echo "no" >&6; }; enable_smack="no" 4680fi 4681rm -f conftest* 4682 4683fi 4684if test "$enable_smack" = "yes"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 4686$as_echo_n "checking for setxattr in -lattr... " >&6; } 4687if ${ac_cv_lib_attr_setxattr+:} false; then : 4688 $as_echo_n "(cached) " >&6 4689else 4690 ac_check_lib_save_LIBS=$LIBS 4691LIBS="-lattr $LIBS" 4692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4693/* end confdefs.h. */ 4694 4695/* Override any GCC internal prototype to avoid an error. 4696 Use char because int might match the return type of a GCC 4697 builtin and then its argument prototype would still apply. */ 4698#ifdef __cplusplus 4699extern "C" 4700#endif 4701char setxattr (); 4702int 4703main () 4704{ 4705return setxattr (); 4706 ; 4707 return 0; 4708} 4709_ACEOF 4710if ac_fn_c_try_link "$LINENO"; then : 4711 ac_cv_lib_attr_setxattr=yes 4712else 4713 ac_cv_lib_attr_setxattr=no 4714fi 4715rm -f core conftest.err conftest.$ac_objext \ 4716 conftest$ac_exeext conftest.$ac_ext 4717LIBS=$ac_check_lib_save_LIBS 4718fi 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 4720$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 4721if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 4722 LIBS="$LIBS -lattr" 4723 found_smack="yes" 4724 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 4725 4726fi 4727 4728fi 4729 4730if test "x$found_smack" = "x"; then 4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4732$as_echo_n "checking --disable-selinux argument... " >&6; } 4733 # Check whether --enable-selinux was given. 4734if test "${enable_selinux+set}" = set; then : 4735 enableval=$enable_selinux; 4736else 4737 enable_selinux="yes" 4738fi 4739 4740 if test "$enable_selinux" = "yes"; then 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4742$as_echo "no" >&6; } 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4744$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4745if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 4746 $as_echo_n "(cached) " >&6 4747else 4748 ac_check_lib_save_LIBS=$LIBS 4749LIBS="-lselinux $LIBS" 4750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751/* end confdefs.h. */ 4752 4753/* Override any GCC internal prototype to avoid an error. 4754 Use char because int might match the return type of a GCC 4755 builtin and then its argument prototype would still apply. */ 4756#ifdef __cplusplus 4757extern "C" 4758#endif 4759char is_selinux_enabled (); 4760int 4761main () 4762{ 4763return is_selinux_enabled (); 4764 ; 4765 return 0; 4766} 4767_ACEOF 4768if ac_fn_c_try_link "$LINENO"; then : 4769 ac_cv_lib_selinux_is_selinux_enabled=yes 4770else 4771 ac_cv_lib_selinux_is_selinux_enabled=no 4772fi 4773rm -f core conftest.err conftest.$ac_objext \ 4774 conftest$ac_exeext conftest.$ac_ext 4775LIBS=$ac_check_lib_save_LIBS 4776fi 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4778$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4779if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 4780 LIBS="$LIBS -lselinux" 4781 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4782 4783fi 4784 4785 else 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4787$as_echo "yes" >&6; } 4788 fi 4789fi 4790 4791 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4793$as_echo_n "checking --with-features argument... " >&6; } 4794 4795# Check whether --with-features was given. 4796if test "${with_features+set}" = set; then : 4797 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4798$as_echo "$features" >&6; } 4799else 4800 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 4801$as_echo "Defaulting to huge" >&6; } 4802fi 4803 4804 4805dovimdiff="" 4806dogvimdiff="" 4807case "$features" in 4808 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4809 ;; 4810 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4811 ;; 4812 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4813 dovimdiff="installvimdiff"; 4814 dogvimdiff="installgvimdiff" ;; 4815 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4816 dovimdiff="installvimdiff"; 4817 dogvimdiff="installgvimdiff" ;; 4818 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4819 dovimdiff="installvimdiff"; 4820 dogvimdiff="installgvimdiff" ;; 4821 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4822$as_echo "Sorry, $features is not supported" >&6; } ;; 4823esac 4824 4825 4826 4827 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4829$as_echo_n "checking --with-compiledby argument... " >&6; } 4830 4831# Check whether --with-compiledby was given. 4832if test "${with_compiledby+set}" = set; then : 4833 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4834$as_echo "$withval" >&6; } 4835else 4836 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4837$as_echo "no" >&6; } 4838fi 4839 4840 4841 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4843$as_echo_n "checking --disable-xsmp argument... " >&6; } 4844# Check whether --enable-xsmp was given. 4845if test "${enable_xsmp+set}" = set; then : 4846 enableval=$enable_xsmp; 4847else 4848 enable_xsmp="yes" 4849fi 4850 4851 4852if test "$enable_xsmp" = "yes"; then 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854$as_echo "no" >&6; } 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4856$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4857 # Check whether --enable-xsmp-interact was given. 4858if test "${enable_xsmp_interact+set}" = set; then : 4859 enableval=$enable_xsmp_interact; 4860else 4861 enable_xsmp_interact="yes" 4862fi 4863 4864 if test "$enable_xsmp_interact" = "yes"; then 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4866$as_echo "no" >&6; } 4867 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4868 4869 else 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4871$as_echo "yes" >&6; } 4872 fi 4873else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4875$as_echo "yes" >&6; } 4876fi 4877 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4879$as_echo_n "checking --enable-luainterp argument... " >&6; } 4880# Check whether --enable-luainterp was given. 4881if test "${enable_luainterp+set}" = set; then : 4882 enableval=$enable_luainterp; 4883else 4884 enable_luainterp="no" 4885fi 4886 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4888$as_echo "$enable_luainterp" >&6; } 4889 4890if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4891 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 4892 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 4893 fi 4894 4895 4896 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4898$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4899 4900# Check whether --with-lua_prefix was given. 4901if test "${with_lua_prefix+set}" = set; then : 4902 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4903$as_echo "$with_lua_prefix" >&6; } 4904else 4905 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4906$as_echo "no" >&6; } 4907fi 4908 4909 4910 if test "X$with_lua_prefix" != "X"; then 4911 vi_cv_path_lua_pfx="$with_lua_prefix" 4912 else 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4914$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4915 if test "X$LUA_PREFIX" != "X"; then 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4917$as_echo "\"$LUA_PREFIX\"" >&6; } 4918 vi_cv_path_lua_pfx="$LUA_PREFIX" 4919 else 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4921$as_echo "not set, default to /usr" >&6; } 4922 vi_cv_path_lua_pfx="/usr" 4923 fi 4924 fi 4925 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 4927$as_echo_n "checking --with-luajit... " >&6; } 4928 4929# Check whether --with-luajit was given. 4930if test "${with_luajit+set}" = set; then : 4931 withval=$with_luajit; vi_cv_with_luajit="$withval" 4932else 4933 vi_cv_with_luajit="no" 4934fi 4935 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 4937$as_echo "$vi_cv_with_luajit" >&6; } 4938 4939 LUA_INC= 4940 if test "X$vi_cv_path_lua_pfx" != "X"; then 4941 if test "x$vi_cv_with_luajit" != "xno"; then 4942 # Extract the first word of "luajit", so it can be a program name with args. 4943set dummy luajit; ac_word=$2 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4945$as_echo_n "checking for $ac_word... " >&6; } 4946if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 case $vi_cv_path_luajit in 4950 [\\/]* | ?:[\\/]*) 4951 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 4952 ;; 4953 *) 4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4955for as_dir in $PATH 4956do 4957 IFS=$as_save_IFS 4958 test -z "$as_dir" && as_dir=. 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4961 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4963 break 2 4964 fi 4965done 4966 done 4967IFS=$as_save_IFS 4968 4969 ;; 4970esac 4971fi 4972vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 4973if test -n "$vi_cv_path_luajit"; then 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 4975$as_echo "$vi_cv_path_luajit" >&6; } 4976else 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978$as_echo "no" >&6; } 4979fi 4980 4981 4982 if test "X$vi_cv_path_luajit" != "X"; then 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 4984$as_echo_n "checking LuaJIT version... " >&6; } 4985if ${vi_cv_version_luajit+:} false; then : 4986 $as_echo_n "(cached) " >&6 4987else 4988 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 4989fi 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 4991$as_echo "$vi_cv_version_luajit" >&6; } 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 4993$as_echo_n "checking Lua version of LuaJIT... " >&6; } 4994if ${vi_cv_version_lua_luajit+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 4998fi 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 5000$as_echo "$vi_cv_version_lua_luajit" >&6; } 5001 vi_cv_path_lua="$vi_cv_path_luajit" 5002 vi_cv_version_lua="$vi_cv_version_lua_luajit" 5003 fi 5004 else 5005 # Extract the first word of "lua", so it can be a program name with args. 5006set dummy lua; ac_word=$2 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5008$as_echo_n "checking for $ac_word... " >&6; } 5009if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 case $vi_cv_path_plain_lua in 5013 [\\/]* | ?:[\\/]*) 5014 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5015 ;; 5016 *) 5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH 5019do 5020 IFS=$as_save_IFS 5021 test -z "$as_dir" && as_dir=. 5022 for ac_exec_ext in '' $ac_executable_extensions; do 5023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5024 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5026 break 2 5027 fi 5028done 5029 done 5030IFS=$as_save_IFS 5031 5032 ;; 5033esac 5034fi 5035vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5036if test -n "$vi_cv_path_plain_lua"; then 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5038$as_echo "$vi_cv_path_plain_lua" >&6; } 5039else 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5041$as_echo "no" >&6; } 5042fi 5043 5044 5045 if test "X$vi_cv_path_plain_lua" != "X"; then 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5047$as_echo_n "checking Lua version... " >&6; } 5048if ${vi_cv_version_plain_lua+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5052fi 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5054$as_echo "$vi_cv_version_plain_lua" >&6; } 5055 fi 5056 vi_cv_path_lua="$vi_cv_path_plain_lua" 5057 vi_cv_version_lua="$vi_cv_version_plain_lua" 5058 fi 5059 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5060 { $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 5061$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5062 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5064$as_echo "yes" >&6; } 5065 LUA_INC=/luajit-$vi_cv_version_luajit 5066 fi 5067 fi 5068 if test "X$LUA_INC" = "X"; then 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5070$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5071 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5073$as_echo "yes" >&6; } 5074 else 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5076$as_echo "no" >&6; } 5077 { $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 5078$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5079 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5081$as_echo "yes" >&6; } 5082 LUA_INC=/lua$vi_cv_version_lua 5083 else 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5085$as_echo "no" >&6; } 5086 vi_cv_path_lua_pfx= 5087 fi 5088 fi 5089 fi 5090 fi 5091 5092 if test "X$vi_cv_path_lua_pfx" != "X"; then 5093 if test "x$vi_cv_with_luajit" != "xno"; then 5094 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5095 if test "X$multiarch" != "X"; then 5096 lib_multiarch="lib/${multiarch}" 5097 else 5098 lib_multiarch="lib" 5099 fi 5100 if test "X$vi_cv_version_lua" = "X"; then 5101 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5102 else 5103 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5104 fi 5105 else 5106 if test "X$LUA_INC" != "X"; then 5107 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5108 else 5109 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5110 fi 5111 fi 5112 if test "$enable_luainterp" = "dynamic"; then 5113 lua_ok="yes" 5114 else 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5116$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5117 libs_save=$LIBS 5118 LIBS="$LIBS $LUA_LIBS" 5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5120/* end confdefs.h. */ 5121 5122int 5123main () 5124{ 5125 5126 ; 5127 return 0; 5128} 5129_ACEOF 5130if ac_fn_c_try_link "$LINENO"; then : 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5132$as_echo "yes" >&6; }; lua_ok="yes" 5133else 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5135$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5136fi 5137rm -f core conftest.err conftest.$ac_objext \ 5138 conftest$ac_exeext conftest.$ac_ext 5139 LIBS=$libs_save 5140 fi 5141 if test "x$lua_ok" = "xyes"; then 5142 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5143 LUA_SRC="if_lua.c" 5144 LUA_OBJ="objects/if_lua.o" 5145 LUA_PRO="if_lua.pro" 5146 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5147 5148 fi 5149 if test "$enable_luainterp" = "dynamic"; then 5150 if test "x$vi_cv_with_luajit" != "xno"; then 5151 luajit="jit" 5152 fi 5153 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5154 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5155 else 5156 if test "x$MACOSX" = "xyes"; then 5157 ext="dylib" 5158 indexes="" 5159 else 5160 ext="so" 5161 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5162 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5163 if test "X$multiarch" != "X"; then 5164 lib_multiarch="lib/${multiarch}" 5165 fi 5166 fi 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5168$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5169 for subdir in "${lib_multiarch}" lib64 lib; do 5170 if test -z "$subdir"; then 5171 continue 5172 fi 5173 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5174 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5175 for i in $indexes ""; do 5176 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5177 sover2="$i" 5178 break 3 5179 fi 5180 done 5181 done 5182 sover="" 5183 done 5184 if test "X$sover" = "X"; then 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5186$as_echo "no" >&6; } 5187 lua_ok="no" 5188 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5189 else 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5191$as_echo "yes" >&6; } 5192 lua_ok="yes" 5193 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5194 fi 5195 fi 5196 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5197 5198 LUA_LIBS="" 5199 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5200 fi 5201 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5202 test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5203 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5204 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5205 fi 5206 fi 5207 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5208 as_fn_error $? "could not configure lua" "$LINENO" 5 5209 fi 5210 5211 5212 5213 5214 5215fi 5216 5217 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5219$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5220# Check whether --enable-mzschemeinterp was given. 5221if test "${enable_mzschemeinterp+set}" = set; then : 5222 enableval=$enable_mzschemeinterp; 5223else 5224 enable_mzschemeinterp="no" 5225fi 5226 5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5228$as_echo "$enable_mzschemeinterp" >&6; } 5229 5230if test "$enable_mzschemeinterp" = "yes"; then 5231 5232 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5234$as_echo_n "checking --with-plthome argument... " >&6; } 5235 5236# Check whether --with-plthome was given. 5237if test "${with_plthome+set}" = set; then : 5238 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5239$as_echo "$with_plthome" >&6; } 5240else 5241 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5242$as_echo "\"no\"" >&6; } 5243fi 5244 5245 5246 if test "X$with_plthome" != "X"; then 5247 vi_cv_path_mzscheme_pfx="$with_plthome" 5248 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5249 else 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5251$as_echo_n "checking PLTHOME environment var... " >&6; } 5252 if test "X$PLTHOME" != "X"; then 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5254$as_echo "\"$PLTHOME\"" >&6; } 5255 vi_cv_path_mzscheme_pfx="$PLTHOME" 5256 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5257 else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5259$as_echo "not set" >&6; } 5260 # Extract the first word of "mzscheme", so it can be a program name with args. 5261set dummy mzscheme; ac_word=$2 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5263$as_echo_n "checking for $ac_word... " >&6; } 5264if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 case $vi_cv_path_mzscheme in 5268 [\\/]* | ?:[\\/]*) 5269 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5270 ;; 5271 *) 5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH 5274do 5275 IFS=$as_save_IFS 5276 test -z "$as_dir" && as_dir=. 5277 for ac_exec_ext in '' $ac_executable_extensions; do 5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5279 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5281 break 2 5282 fi 5283done 5284 done 5285IFS=$as_save_IFS 5286 5287 ;; 5288esac 5289fi 5290vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5291if test -n "$vi_cv_path_mzscheme"; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5293$as_echo "$vi_cv_path_mzscheme" >&6; } 5294else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5296$as_echo "no" >&6; } 5297fi 5298 5299 5300 5301 if test "X$vi_cv_path_mzscheme" != "X"; then 5302 lsout=`ls -l $vi_cv_path_mzscheme` 5303 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5304 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5305 fi 5306 fi 5307 5308 if test "X$vi_cv_path_mzscheme" != "X"; then 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5310$as_echo_n "checking MzScheme install prefix... " >&6; } 5311if ${vi_cv_path_mzscheme_pfx+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 echo "(display (simplify-path \ 5315 (build-path (call-with-values \ 5316 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5317 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5318 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5319 sed -e 's+/$++'` 5320fi 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5322$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5323 rm -f mzdirs.scm 5324 fi 5325 fi 5326 fi 5327 5328 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5330$as_echo_n "checking for racket include directory... " >&6; } 5331 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5332 if test "X$SCHEME_INC" != "X"; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5334$as_echo "${SCHEME_INC}" >&6; } 5335 else 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5337$as_echo "not found" >&6; } 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5339$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5340 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5341 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5343$as_echo "yes" >&6; } 5344 else 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5346$as_echo "no" >&6; } 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5348$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5349 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5351$as_echo "yes" >&6; } 5352 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 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/racket" >&5 5357$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5358 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/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/racket 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 /usr/include/plt/" >&5 5366$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5367 if test -f /usr/include/plt/scheme.h; then 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5369$as_echo "yes" >&6; } 5370 SCHEME_INC=/usr/include/plt 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/racket/" >&5 5375$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5376 if test -f /usr/include/racket/scheme.h; then 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5378$as_echo "yes" >&6; } 5379 SCHEME_INC=/usr/include/racket 5380 else 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5382$as_echo "no" >&6; } 5383 vi_cv_path_mzscheme_pfx= 5384 fi 5385 fi 5386 fi 5387 fi 5388 fi 5389 fi 5390 fi 5391 5392 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5393 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5395$as_echo_n "checking for racket lib directory... " >&6; } 5396 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5397 if test "X$SCHEME_LIB" != "X"; then 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5399$as_echo "${SCHEME_LIB}" >&6; } 5400 else 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5402$as_echo "not found" >&6; } 5403 fi 5404 5405 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5406 if test "X$path" != "X"; then 5407 if test "x$MACOSX" = "xyes"; then 5408 MZSCHEME_LIBS="-framework Racket" 5409 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5410 elif test -f "${path}/libmzscheme3m.a"; then 5411 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5412 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5413 elif test -f "${path}/libracket3m.a"; then 5414 MZSCHEME_LIBS="${path}/libracket3m.a" 5415 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5416 elif test -f "${path}/libracket.a"; then 5417 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5418 elif test -f "${path}/libmzscheme.a"; then 5419 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5420 else 5421 if test -f "${path}/libmzscheme3m.so"; then 5422 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5423 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5424 elif test -f "${path}/libracket3m.so"; then 5425 MZSCHEME_LIBS="-L${path} -lracket3m" 5426 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5427 elif test -f "${path}/libracket.so"; then 5428 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5429 else 5430 if test "$path" != "$SCHEME_LIB"; then 5431 continue 5432 fi 5433 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5434 fi 5435 if test "$GCC" = yes; then 5436 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5437 elif test "`(uname) 2>/dev/null`" = SunOS && 5438 uname -r | grep '^5' >/dev/null; then 5439 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5440 fi 5441 fi 5442 fi 5443 if test "X$MZSCHEME_LIBS" != "X"; then 5444 break 5445 fi 5446 done 5447 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5449$as_echo_n "checking if racket requires -pthread... " >&6; } 5450 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5452$as_echo "yes" >&6; } 5453 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5454 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5455 else 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5457$as_echo "no" >&6; } 5458 fi 5459 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5461$as_echo_n "checking for racket config directory... " >&6; } 5462 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5463 if test "X$SCHEME_CONFIGDIR" != "X"; then 5464 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5466$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5467 else 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5469$as_echo "not found" >&6; } 5470 fi 5471 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5473$as_echo_n "checking for racket collects directory... " >&6; } 5474 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))))'` 5475 if test "X$SCHEME_COLLECTS" = "X"; then 5476 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5477 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5478 else 5479 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5480 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5481 else 5482 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5483 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5484 else 5485 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5486 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5487 fi 5488 fi 5489 fi 5490 fi 5491 fi 5492 if test "X$SCHEME_COLLECTS" != "X" ; then 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5494$as_echo "${SCHEME_COLLECTS}" >&6; } 5495 else 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5497$as_echo "not found" >&6; } 5498 fi 5499 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5501$as_echo_n "checking for mzscheme_base.c... " >&6; } 5502 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5503 MZSCHEME_EXTRA="mzscheme_base.c" 5504 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5505 MZSCHEME_MOD="++lib scheme/base" 5506 else 5507 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5508 MZSCHEME_EXTRA="mzscheme_base.c" 5509 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5510 MZSCHEME_MOD="++lib scheme/base" 5511 else 5512 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5513 MZSCHEME_EXTRA="mzscheme_base.c" 5514 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5515 MZSCHEME_MOD="" 5516 fi 5517 fi 5518 fi 5519 if test "X$MZSCHEME_EXTRA" != "X" ; then 5520 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5522$as_echo "needed" >&6; } 5523 else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5525$as_echo "not needed" >&6; } 5526 fi 5527 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5529$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5530if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5531 $as_echo_n "(cached) " >&6 5532else 5533 ac_check_lib_save_LIBS=$LIBS 5534LIBS="-lffi $LIBS" 5535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536/* end confdefs.h. */ 5537 5538/* Override any GCC internal prototype to avoid an error. 5539 Use char because int might match the return type of a GCC 5540 builtin and then its argument prototype would still apply. */ 5541#ifdef __cplusplus 5542extern "C" 5543#endif 5544char ffi_type_void (); 5545int 5546main () 5547{ 5548return ffi_type_void (); 5549 ; 5550 return 0; 5551} 5552_ACEOF 5553if ac_fn_c_try_link "$LINENO"; then : 5554 ac_cv_lib_ffi_ffi_type_void=yes 5555else 5556 ac_cv_lib_ffi_ffi_type_void=no 5557fi 5558rm -f core conftest.err conftest.$ac_objext \ 5559 conftest$ac_exeext conftest.$ac_ext 5560LIBS=$ac_check_lib_save_LIBS 5561fi 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5563$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5564if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5565 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5566fi 5567 5568 5569 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5570 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5571 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5573$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5574 cflags_save=$CFLAGS 5575 libs_save=$LIBS 5576 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5577 LIBS="$LIBS $MZSCHEME_LIBS" 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580 5581int 5582main () 5583{ 5584 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589if ac_fn_c_try_link "$LINENO"; then : 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5591$as_echo "yes" >&6; }; mzs_ok=yes 5592else 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5594$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext \ 5597 conftest$ac_exeext conftest.$ac_ext 5598 CFLAGS=$cflags_save 5599 LIBS=$libs_save 5600 if test $mzs_ok = yes; then 5601 MZSCHEME_SRC="if_mzsch.c" 5602 MZSCHEME_OBJ="objects/if_mzsch.o" 5603 MZSCHEME_PRO="if_mzsch.pro" 5604 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5605 5606 else 5607 MZSCHEME_CFLAGS= 5608 MZSCHEME_LIBS= 5609 MZSCHEME_EXTRA= 5610 MZSCHEME_MZC= 5611 fi 5612 fi 5613 5614 5615 5616 5617 5618 5619 5620fi 5621 5622 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5624$as_echo_n "checking --enable-perlinterp argument... " >&6; } 5625# Check whether --enable-perlinterp was given. 5626if test "${enable_perlinterp+set}" = set; then : 5627 enableval=$enable_perlinterp; 5628else 5629 enable_perlinterp="no" 5630fi 5631 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 5633$as_echo "$enable_perlinterp" >&6; } 5634if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 5635 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5636 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 5637 fi 5638 5639 # Extract the first word of "perl", so it can be a program name with args. 5640set dummy perl; ac_word=$2 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5642$as_echo_n "checking for $ac_word... " >&6; } 5643if ${ac_cv_path_vi_cv_path_perl+:} false; then : 5644 $as_echo_n "(cached) " >&6 5645else 5646 case $vi_cv_path_perl in 5647 [\\/]* | ?:[\\/]*) 5648 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 5649 ;; 5650 *) 5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5652for as_dir in $PATH 5653do 5654 IFS=$as_save_IFS 5655 test -z "$as_dir" && as_dir=. 5656 for ac_exec_ext in '' $ac_executable_extensions; do 5657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5658 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5660 break 2 5661 fi 5662done 5663 done 5664IFS=$as_save_IFS 5665 5666 ;; 5667esac 5668fi 5669vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 5670if test -n "$vi_cv_path_perl"; then 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 5672$as_echo "$vi_cv_path_perl" >&6; } 5673else 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5675$as_echo "no" >&6; } 5676fi 5677 5678 5679 if test "X$vi_cv_path_perl" != "X"; then 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 5681$as_echo_n "checking Perl version... " >&6; } 5682 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 5683 eval `$vi_cv_path_perl -V:usethreads` 5684 eval `$vi_cv_path_perl -V:libperl` 5685 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 5686 badthreads=no 5687 else 5688 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 5689 eval `$vi_cv_path_perl -V:use5005threads` 5690 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 5691 badthreads=no 5692 else 5693 badthreads=yes 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 5695$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 5696 fi 5697 else 5698 badthreads=yes 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5700$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5701 fi 5702 fi 5703 if test $badthreads = no; then 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5705$as_echo "OK" >&6; } 5706 eval `$vi_cv_path_perl -V:shrpenv` 5707 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5708 shrpenv="" 5709 fi 5710 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5711 5712 vi_cv_perl_extutils=unknown_perl_extutils_path 5713 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 5714 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 5715 if test -f "$xsubpp_path"; then 5716 vi_cv_perl_xsubpp="$xsubpp_path" 5717 fi 5718 done 5719 5720 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5721 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 5722 -e 's/-fdebug-prefix-map[^ ]*//g' \ 5723 -e 's/-pipe //' \ 5724 -e 's/-W[^ ]*//g' \ 5725 -e 's/-D_FORTIFY_SOURCE=.//g'` 5726 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5727 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5728 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5729 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5730 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5731 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5733$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5734 cflags_save=$CFLAGS 5735 libs_save=$LIBS 5736 ldflags_save=$LDFLAGS 5737 CFLAGS="$CFLAGS $perlcppflags" 5738 LIBS="$LIBS $perllibs" 5739 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 5740 LDFLAGS="$perlldflags $LDFLAGS" 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743 5744int 5745main () 5746{ 5747 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752if ac_fn_c_try_link "$LINENO"; then : 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5754$as_echo "yes" >&6; }; perl_ok=yes 5755else 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5757$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5758fi 5759rm -f core conftest.err conftest.$ac_objext \ 5760 conftest$ac_exeext conftest.$ac_ext 5761 CFLAGS=$cflags_save 5762 LIBS=$libs_save 5763 LDFLAGS=$ldflags_save 5764 if test $perl_ok = yes; then 5765 if test "X$perlcppflags" != "X"; then 5766 PERL_CFLAGS=$perlcppflags 5767 fi 5768 if test "X$perlldflags" != "X"; then 5769 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 5770 LDFLAGS="$perlldflags $LDFLAGS" 5771 fi 5772 fi 5773 PERL_LIBS=$perllibs 5774 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5775 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5776 PERL_PRO="if_perl.pro if_perlsfio.pro" 5777 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5778 5779 fi 5780 fi 5781 else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5783$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5784 fi 5785 fi 5786 5787 if test "x$MACOSX" = "xyes"; then 5788 dir=/System/Library/Perl 5789 darwindir=$dir/darwin 5790 if test -d $darwindir; then 5791 PERL=/usr/bin/perl 5792 else 5793 dir=/System/Library/Perl/5.8.1 5794 darwindir=$dir/darwin-thread-multi-2level 5795 if test -d $darwindir; then 5796 PERL=/usr/bin/perl 5797 fi 5798 fi 5799 if test -n "$PERL"; then 5800 PERL_DIR="$dir" 5801 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5802 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5803 PERL_LIBS="-L$darwindir/CORE -lperl" 5804 fi 5805 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5806 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5807 fi 5808 if test "$enable_perlinterp" = "dynamic"; then 5809 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5810 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5811 5812 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5813 fi 5814 fi 5815 5816 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 5817 as_fn_error $? "could not configure perl" "$LINENO" 5 5818 fi 5819fi 5820 5821 5822 5823 5824 5825 5826 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5828$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5829# Check whether --enable-pythoninterp was given. 5830if test "${enable_pythoninterp+set}" = set; then : 5831 enableval=$enable_pythoninterp; 5832else 5833 enable_pythoninterp="no" 5834fi 5835 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5837$as_echo "$enable_pythoninterp" >&6; } 5838if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5839 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5840 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 5841 fi 5842 5843 for ac_prog in python2 python 5844do 5845 # Extract the first word of "$ac_prog", so it can be a program name with args. 5846set dummy $ac_prog; ac_word=$2 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5848$as_echo_n "checking for $ac_word... " >&6; } 5849if ${ac_cv_path_vi_cv_path_python+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851else 5852 case $vi_cv_path_python in 5853 [\\/]* | ?:[\\/]*) 5854 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5855 ;; 5856 *) 5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5858for as_dir in $PATH 5859do 5860 IFS=$as_save_IFS 5861 test -z "$as_dir" && as_dir=. 5862 for ac_exec_ext in '' $ac_executable_extensions; do 5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5864 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5866 break 2 5867 fi 5868done 5869 done 5870IFS=$as_save_IFS 5871 5872 ;; 5873esac 5874fi 5875vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5876if test -n "$vi_cv_path_python"; then 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5878$as_echo "$vi_cv_path_python" >&6; } 5879else 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5881$as_echo "no" >&6; } 5882fi 5883 5884 5885 test -n "$vi_cv_path_python" && break 5886done 5887 5888 if test "X$vi_cv_path_python" != "X"; then 5889 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5891$as_echo_n "checking Python version... " >&6; } 5892if ${vi_cv_var_python_version+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 vi_cv_var_python_version=` 5896 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5897 5898fi 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5900$as_echo "$vi_cv_var_python_version" >&6; } 5901 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 5903$as_echo_n "checking Python is 2.3 or better... " >&6; } 5904 if ${vi_cv_path_python} -c \ 5905 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 5906 then 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5908$as_echo "yep" >&6; } 5909 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5911$as_echo_n "checking Python's install prefix... " >&6; } 5912if ${vi_cv_path_python_pfx+:} false; then : 5913 $as_echo_n "(cached) " >&6 5914else 5915 vi_cv_path_python_pfx=` 5916 ${vi_cv_path_python} -c \ 5917 "import sys; print sys.prefix"` 5918fi 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5920$as_echo "$vi_cv_path_python_pfx" >&6; } 5921 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5923$as_echo_n "checking Python's execution prefix... " >&6; } 5924if ${vi_cv_path_python_epfx+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 vi_cv_path_python_epfx=` 5928 ${vi_cv_path_python} -c \ 5929 "import sys; print sys.exec_prefix"` 5930fi 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5932$as_echo "$vi_cv_path_python_epfx" >&6; } 5933 5934 5935 if ${vi_cv_path_pythonpath+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 vi_cv_path_pythonpath=` 5939 unset PYTHONPATH; 5940 ${vi_cv_path_python} -c \ 5941 "import sys, string; print string.join(sys.path,':')"` 5942fi 5943 5944 5945 5946 5947# Check whether --with-python-config-dir was given. 5948if test "${with_python_config_dir+set}" = set; then : 5949 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5950fi 5951 5952 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5954$as_echo_n "checking Python's configuration directory... " >&6; } 5955if ${vi_cv_path_python_conf+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 5959 vi_cv_path_python_conf= 5960 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 5961 if test -d "$d" && test -f "$d/config.c"; then 5962 vi_cv_path_python_conf="$d" 5963 else 5964 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5965 for subdir in lib64 lib share; do 5966 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5967 if test -d "$d" && test -f "$d/config.c"; then 5968 vi_cv_path_python_conf="$d" 5969 fi 5970 done 5971 done 5972 fi 5973 5974fi 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5976$as_echo "$vi_cv_path_python_conf" >&6; } 5977 5978 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5979 5980 if test "X$PYTHON_CONFDIR" = "X"; then 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5982$as_echo "can't find it!" >&6; } 5983 else 5984 5985 if ${vi_cv_path_python_plibs+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 5989 pwd=`pwd` 5990 tmp_mkf="$pwd/config-PyMake$$" 5991 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5992__: 5993 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5994 @echo "python_LIBS='$(LIBS)'" 5995 @echo "python_SYSLIBS='$(SYSLIBS)'" 5996 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5997 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 5998 @echo "python_INSTSONAME='$(INSTSONAME)'" 5999 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 6000 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 6001 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 6002eof 6003 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6004 rm -f -- "${tmp_mkf}" 6005 if test "x$MACOSX" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 6006 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6007 vi_cv_path_python_plibs="-framework Python" 6008 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6009 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6010 fi 6011 else 6012 if test "${vi_cv_var_python_version}" = "1.4"; then 6013 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 6014 else 6015 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6016 fi 6017 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6018 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6019 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6020 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6021 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6022 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6023 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6024 fi 6025 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6026 fi 6027 fi 6028 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6029 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6030 fi 6031 6032fi 6033 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6035$as_echo_n "checking Python's dll name... " >&6; } 6036if ${vi_cv_dll_name_python+:} false; then : 6037 $as_echo_n "(cached) " >&6 6038else 6039 6040 if test "X$python_DLLLIBRARY" != "X"; then 6041 vi_cv_dll_name_python="$python_DLLLIBRARY" 6042 else 6043 vi_cv_dll_name_python="$python_INSTSONAME" 6044 fi 6045 6046fi 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6048$as_echo "$vi_cv_dll_name_python" >&6; } 6049 6050 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6051 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6052 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6053 else 6054 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}\"'" 6055 fi 6056 PYTHON_SRC="if_python.c" 6057 PYTHON_OBJ="objects/if_python.o" 6058 if test "${vi_cv_var_python_version}" = "1.4"; then 6059 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 6060 fi 6061 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 6062 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6064$as_echo_n "checking if -pthread should be used... " >&6; } 6065 threadsafe_flag= 6066 thread_lib= 6067 if test "`(uname) 2>/dev/null`" != Darwin; then 6068 test "$GCC" = yes && threadsafe_flag="-pthread" 6069 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6070 threadsafe_flag="-D_THREAD_SAFE" 6071 thread_lib="-pthread" 6072 fi 6073 if test "`(uname) 2>/dev/null`" = SunOS; then 6074 threadsafe_flag="-pthreads" 6075 fi 6076 fi 6077 libs_save_old=$LIBS 6078 if test -n "$threadsafe_flag"; then 6079 cflags_save=$CFLAGS 6080 CFLAGS="$CFLAGS $threadsafe_flag" 6081 LIBS="$LIBS $thread_lib" 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084 6085int 6086main () 6087{ 6088 6089 ; 6090 return 0; 6091} 6092_ACEOF 6093if ac_fn_c_try_link "$LINENO"; then : 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6095$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6096else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098$as_echo "no" >&6; }; LIBS=$libs_save_old 6099 6100fi 6101rm -f core conftest.err conftest.$ac_objext \ 6102 conftest$ac_exeext conftest.$ac_ext 6103 CFLAGS=$cflags_save 6104 else 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6106$as_echo "no" >&6; } 6107 fi 6108 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6110$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6111 cflags_save=$CFLAGS 6112 libs_save=$LIBS 6113 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6114 LIBS="$LIBS $PYTHON_LIBS" 6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116/* end confdefs.h. */ 6117 6118int 6119main () 6120{ 6121 6122 ; 6123 return 0; 6124} 6125_ACEOF 6126if ac_fn_c_try_link "$LINENO"; then : 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6128$as_echo "yes" >&6; }; python_ok=yes 6129else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6131$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6132fi 6133rm -f core conftest.err conftest.$ac_objext \ 6134 conftest$ac_exeext conftest.$ac_ext 6135 CFLAGS=$cflags_save 6136 LIBS=$libs_save 6137 if test $python_ok = yes; then 6138 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6139 6140 else 6141 LIBS=$libs_save_old 6142 PYTHON_SRC= 6143 PYTHON_OBJ= 6144 PYTHON_LIBS= 6145 PYTHON_CFLAGS= 6146 fi 6147 fi 6148 else 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6150$as_echo "too old" >&6; } 6151 fi 6152 fi 6153 6154 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6155 as_fn_error $? "could not configure python" "$LINENO" 5 6156 fi 6157fi 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6168$as_echo_n "checking --enable-python3interp argument... " >&6; } 6169# Check whether --enable-python3interp was given. 6170if test "${enable_python3interp+set}" = set; then : 6171 enableval=$enable_python3interp; 6172else 6173 enable_python3interp="no" 6174fi 6175 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6177$as_echo "$enable_python3interp" >&6; } 6178if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6179 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6180 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6181 fi 6182 6183 for ac_prog in python3 python 6184do 6185 # Extract the first word of "$ac_prog", so it can be a program name with args. 6186set dummy $ac_prog; ac_word=$2 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6188$as_echo_n "checking for $ac_word... " >&6; } 6189if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 case $vi_cv_path_python3 in 6193 [\\/]* | ?:[\\/]*) 6194 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6195 ;; 6196 *) 6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6198for as_dir in $PATH 6199do 6200 IFS=$as_save_IFS 6201 test -z "$as_dir" && as_dir=. 6202 for ac_exec_ext in '' $ac_executable_extensions; do 6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6204 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6206 break 2 6207 fi 6208done 6209 done 6210IFS=$as_save_IFS 6211 6212 ;; 6213esac 6214fi 6215vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6216if test -n "$vi_cv_path_python3"; then 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6218$as_echo "$vi_cv_path_python3" >&6; } 6219else 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6221$as_echo "no" >&6; } 6222fi 6223 6224 6225 test -n "$vi_cv_path_python3" && break 6226done 6227 6228 if test "X$vi_cv_path_python3" != "X"; then 6229 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6231$as_echo_n "checking Python version... " >&6; } 6232if ${vi_cv_var_python3_version+:} false; then : 6233 $as_echo_n "(cached) " >&6 6234else 6235 vi_cv_var_python3_version=` 6236 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6237 6238fi 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6240$as_echo "$vi_cv_var_python3_version" >&6; } 6241 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6243$as_echo_n "checking Python is 3.0 or better... " >&6; } 6244 if ${vi_cv_path_python3} -c \ 6245 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6246 then 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6248$as_echo "yep" >&6; } 6249 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6251$as_echo_n "checking Python's abiflags... " >&6; } 6252if ${vi_cv_var_python3_abiflags+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 6256 vi_cv_var_python3_abiflags= 6257 if ${vi_cv_path_python3} -c \ 6258 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6259 then 6260 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6261 "import sys; print(sys.abiflags)"` 6262 fi 6263fi 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6265$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6266 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6268$as_echo_n "checking Python's install prefix... " >&6; } 6269if ${vi_cv_path_python3_pfx+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 vi_cv_path_python3_pfx=` 6273 ${vi_cv_path_python3} -c \ 6274 "import sys; print(sys.prefix)"` 6275fi 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6277$as_echo "$vi_cv_path_python3_pfx" >&6; } 6278 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6280$as_echo_n "checking Python's execution prefix... " >&6; } 6281if ${vi_cv_path_python3_epfx+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 vi_cv_path_python3_epfx=` 6285 ${vi_cv_path_python3} -c \ 6286 "import sys; print(sys.exec_prefix)"` 6287fi 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6289$as_echo "$vi_cv_path_python3_epfx" >&6; } 6290 6291 6292 if ${vi_cv_path_python3path+:} false; then : 6293 $as_echo_n "(cached) " >&6 6294else 6295 vi_cv_path_python3path=` 6296 unset PYTHONPATH; 6297 ${vi_cv_path_python3} -c \ 6298 "import sys, string; print(':'.join(sys.path))"` 6299fi 6300 6301 6302 6303 6304# Check whether --with-python3-config-dir was given. 6305if test "${with_python3_config_dir+set}" = set; then : 6306 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 6307fi 6308 6309 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6311$as_echo_n "checking Python's configuration directory... " >&6; } 6312if ${vi_cv_path_python3_conf+:} false; then : 6313 $as_echo_n "(cached) " >&6 6314else 6315 6316 vi_cv_path_python3_conf= 6317 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6318 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6319 if test -d "$d" && test -f "$d/config.c"; then 6320 vi_cv_path_python3_conf="$d" 6321 else 6322 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6323 for subdir in lib64 lib share; do 6324 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6325 if test -d "$d" && test -f "$d/config.c"; then 6326 vi_cv_path_python3_conf="$d" 6327 fi 6328 done 6329 done 6330 fi 6331 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6334$as_echo "$vi_cv_path_python3_conf" >&6; } 6335 6336 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6337 6338 if test "X$PYTHON3_CONFDIR" = "X"; then 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6340$as_echo "can't find it!" >&6; } 6341 else 6342 6343 if ${vi_cv_path_python3_plibs+:} false; then : 6344 $as_echo_n "(cached) " >&6 6345else 6346 6347 pwd=`pwd` 6348 tmp_mkf="$pwd/config-PyMake$$" 6349 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6350__: 6351 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6352 @echo "python3_LIBS='$(LIBS)'" 6353 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6354 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6355 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6356eof 6357 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6358 rm -f -- "${tmp_mkf}" 6359 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6360 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6361 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6362 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6363 6364fi 6365 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6367$as_echo_n "checking Python3's dll name... " >&6; } 6368if ${vi_cv_dll_name_python3+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 6372 if test "X$python3_DLLLIBRARY" != "X"; then 6373 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6374 else 6375 vi_cv_dll_name_python3="$python3_INSTSONAME" 6376 fi 6377 6378fi 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6380$as_echo "$vi_cv_dll_name_python3" >&6; } 6381 6382 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6383 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6384 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}\"'" 6385 else 6386 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}\"'" 6387 fi 6388 PYTHON3_SRC="if_python3.c" 6389 PYTHON3_OBJ="objects/if_python3.o" 6390 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6392$as_echo_n "checking if -pthread should be used... " >&6; } 6393 threadsafe_flag= 6394 thread_lib= 6395 if test "`(uname) 2>/dev/null`" != Darwin; then 6396 test "$GCC" = yes && threadsafe_flag="-pthread" 6397 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6398 threadsafe_flag="-D_THREAD_SAFE" 6399 thread_lib="-pthread" 6400 fi 6401 if test "`(uname) 2>/dev/null`" = SunOS; then 6402 threadsafe_flag="-pthreads" 6403 fi 6404 fi 6405 libs_save_old=$LIBS 6406 if test -n "$threadsafe_flag"; then 6407 cflags_save=$CFLAGS 6408 CFLAGS="$CFLAGS $threadsafe_flag" 6409 LIBS="$LIBS $thread_lib" 6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411/* end confdefs.h. */ 6412 6413int 6414main () 6415{ 6416 6417 ; 6418 return 0; 6419} 6420_ACEOF 6421if ac_fn_c_try_link "$LINENO"; then : 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6423$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6424else 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6426$as_echo "no" >&6; }; LIBS=$libs_save_old 6427 6428fi 6429rm -f core conftest.err conftest.$ac_objext \ 6430 conftest$ac_exeext conftest.$ac_ext 6431 CFLAGS=$cflags_save 6432 else 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6434$as_echo "no" >&6; } 6435 fi 6436 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6438$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6439 cflags_save=$CFLAGS 6440 libs_save=$LIBS 6441 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6442 LIBS="$LIBS $PYTHON3_LIBS" 6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6444/* end confdefs.h. */ 6445 6446int 6447main () 6448{ 6449 6450 ; 6451 return 0; 6452} 6453_ACEOF 6454if ac_fn_c_try_link "$LINENO"; then : 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6456$as_echo "yes" >&6; }; python3_ok=yes 6457else 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6459$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6460fi 6461rm -f core conftest.err conftest.$ac_objext \ 6462 conftest$ac_exeext conftest.$ac_ext 6463 CFLAGS=$cflags_save 6464 LIBS=$libs_save 6465 if test "$python3_ok" = yes; then 6466 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6467 6468 else 6469 LIBS=$libs_save_old 6470 PYTHON3_SRC= 6471 PYTHON3_OBJ= 6472 PYTHON3_LIBS= 6473 PYTHON3_CFLAGS= 6474 fi 6475 fi 6476 else 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6478$as_echo "too old" >&6; } 6479 fi 6480 fi 6481 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6482 as_fn_error $? "could not configure python3" "$LINENO" 5 6483 fi 6484fi 6485 6486 6487 6488 6489 6490 6491 6492if test "$python_ok" = yes && test "$python3_ok" = yes; then 6493 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6494 6495 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6496 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6498$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6499 cflags_save=$CFLAGS 6500 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6501 libs_save=$LIBS 6502 LIBS="-ldl $LIBS" 6503 if test "$cross_compiling" = yes; then : 6504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6506as_fn_error $? "cannot run test program while cross compiling 6507See \`config.log' for more details" "$LINENO" 5; } 6508else 6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6510/* end confdefs.h. */ 6511 6512 #include <dlfcn.h> 6513 /* If this program fails, then RTLD_GLOBAL is needed. 6514 * RTLD_GLOBAL will be used and then it is not possible to 6515 * have both python versions enabled in the same vim instance. 6516 * Only the first python version used will be switched on. 6517 */ 6518 6519 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6520 { 6521 int needed = 0; 6522 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6523 if (pylib != 0) 6524 { 6525 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6526 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6527 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6528 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6529 (*pfx)(prefix); 6530 (*init)(); 6531 needed = (*simple)("import termios") == -1; 6532 (*final)(); 6533 dlclose(pylib); 6534 } 6535 return !needed; 6536 } 6537 6538 int main(int argc, char** argv) 6539 { 6540 int not_needed = 0; 6541 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6542 not_needed = 1; 6543 return !not_needed; 6544 } 6545_ACEOF 6546if ac_fn_c_try_run "$LINENO"; then : 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6548$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6549 6550else 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6552$as_echo "no" >&6; } 6553fi 6554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6555 conftest.$ac_objext conftest.beam conftest.$ac_ext 6556fi 6557 6558 6559 CFLAGS=$cflags_save 6560 LIBS=$libs_save 6561 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6563$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6564 cflags_save=$CFLAGS 6565 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6566 libs_save=$LIBS 6567 LIBS="-ldl $LIBS" 6568 if test "$cross_compiling" = yes; then : 6569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6571as_fn_error $? "cannot run test program while cross compiling 6572See \`config.log' for more details" "$LINENO" 5; } 6573else 6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575/* end confdefs.h. */ 6576 6577 #include <dlfcn.h> 6578 #include <wchar.h> 6579 /* If this program fails, then RTLD_GLOBAL is needed. 6580 * RTLD_GLOBAL will be used and then it is not possible to 6581 * have both python versions enabled in the same vim instance. 6582 * Only the first python version used will be switched on. 6583 */ 6584 6585 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6586 { 6587 int needed = 0; 6588 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6589 if (pylib != 0) 6590 { 6591 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6592 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6593 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6594 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6595 (*pfx)(prefix); 6596 (*init)(); 6597 needed = (*simple)("import termios") == -1; 6598 (*final)(); 6599 dlclose(pylib); 6600 } 6601 return !needed; 6602 } 6603 6604 int main(int argc, char** argv) 6605 { 6606 int not_needed = 0; 6607 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 6608 not_needed = 1; 6609 return !not_needed; 6610 } 6611_ACEOF 6612if ac_fn_c_try_run "$LINENO"; then : 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6614$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 6615 6616else 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6618$as_echo "no" >&6; } 6619fi 6620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6621 conftest.$ac_objext conftest.beam conftest.$ac_ext 6622fi 6623 6624 6625 CFLAGS=$cflags_save 6626 LIBS=$libs_save 6627 6628 PYTHON_SRC="if_python.c" 6629 PYTHON_OBJ="objects/if_python.o" 6630 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6631 PYTHON_LIBS= 6632 PYTHON3_SRC="if_python3.c" 6633 PYTHON3_OBJ="objects/if_python3.o" 6634 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6635 PYTHON3_LIBS= 6636elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 6637 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6638 6639 PYTHON_SRC="if_python.c" 6640 PYTHON_OBJ="objects/if_python.o" 6641 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6642 PYTHON_LIBS= 6643elif test "$python_ok" = yes; then 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 6645$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 6646 cflags_save=$CFLAGS 6647 libs_save=$LIBS 6648 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 6649 LIBS="$LIBS $PYTHON_LIBS" 6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6651/* end confdefs.h. */ 6652 6653int 6654main () 6655{ 6656 6657 ; 6658 return 0; 6659} 6660_ACEOF 6661if ac_fn_c_try_link "$LINENO"; then : 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6663$as_echo "yes" >&6; }; fpie_ok=yes 6664else 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6666$as_echo "no" >&6; }; fpie_ok=no 6667fi 6668rm -f core conftest.err conftest.$ac_objext \ 6669 conftest$ac_exeext conftest.$ac_ext 6670 CFLAGS=$cflags_save 6671 LIBS=$libs_save 6672 if test $fpie_ok = yes; then 6673 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 6674 fi 6675elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 6676 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6677 6678 PYTHON3_SRC="if_python3.c" 6679 PYTHON3_OBJ="objects/if_python3.o" 6680 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6681 PYTHON3_LIBS= 6682elif test "$python3_ok" = yes; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 6684$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 6685 cflags_save=$CFLAGS 6686 libs_save=$LIBS 6687 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 6688 LIBS="$LIBS $PYTHON3_LIBS" 6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6690/* end confdefs.h. */ 6691 6692int 6693main () 6694{ 6695 6696 ; 6697 return 0; 6698} 6699_ACEOF 6700if ac_fn_c_try_link "$LINENO"; then : 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6702$as_echo "yes" >&6; }; fpie_ok=yes 6703else 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6705$as_echo "no" >&6; }; fpie_ok=no 6706fi 6707rm -f core conftest.err conftest.$ac_objext \ 6708 conftest$ac_exeext conftest.$ac_ext 6709 CFLAGS=$cflags_save 6710 LIBS=$libs_save 6711 if test $fpie_ok = yes; then 6712 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 6713 fi 6714fi 6715 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 6717$as_echo_n "checking --enable-tclinterp argument... " >&6; } 6718# Check whether --enable-tclinterp was given. 6719if test "${enable_tclinterp+set}" = set; then : 6720 enableval=$enable_tclinterp; 6721else 6722 enable_tclinterp="no" 6723fi 6724 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 6726$as_echo "$enable_tclinterp" >&6; } 6727 6728if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 6729 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 6731$as_echo_n "checking --with-tclsh argument... " >&6; } 6732 6733# Check whether --with-tclsh was given. 6734if test "${with_tclsh+set}" = set; then : 6735 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 6736$as_echo "$tclsh_name" >&6; } 6737else 6738 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6739$as_echo "no" >&6; } 6740fi 6741 6742 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6743set dummy $tclsh_name; ac_word=$2 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745$as_echo_n "checking for $ac_word... " >&6; } 6746if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 case $vi_cv_path_tcl in 6750 [\\/]* | ?:[\\/]*) 6751 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6752 ;; 6753 *) 6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755for as_dir in $PATH 6756do 6757 IFS=$as_save_IFS 6758 test -z "$as_dir" && as_dir=. 6759 for ac_exec_ext in '' $ac_executable_extensions; do 6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6761 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6763 break 2 6764 fi 6765done 6766 done 6767IFS=$as_save_IFS 6768 6769 ;; 6770esac 6771fi 6772vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6773if test -n "$vi_cv_path_tcl"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6775$as_echo "$vi_cv_path_tcl" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782 6783 6784 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 6785 tclsh_name="tclsh8.4" 6786 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6787set dummy $tclsh_name; ac_word=$2 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6789$as_echo_n "checking for $ac_word... " >&6; } 6790if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6791 $as_echo_n "(cached) " >&6 6792else 6793 case $vi_cv_path_tcl in 6794 [\\/]* | ?:[\\/]*) 6795 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6796 ;; 6797 *) 6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799for as_dir in $PATH 6800do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6805 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809done 6810 done 6811IFS=$as_save_IFS 6812 6813 ;; 6814esac 6815fi 6816vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6817if test -n "$vi_cv_path_tcl"; then 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6819$as_echo "$vi_cv_path_tcl" >&6; } 6820else 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6822$as_echo "no" >&6; } 6823fi 6824 6825 6826 fi 6827 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 6828 tclsh_name="tclsh8.2" 6829 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6830set dummy $tclsh_name; ac_word=$2 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6832$as_echo_n "checking for $ac_word... " >&6; } 6833if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 case $vi_cv_path_tcl in 6837 [\\/]* | ?:[\\/]*) 6838 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6839 ;; 6840 *) 6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6842for as_dir in $PATH 6843do 6844 IFS=$as_save_IFS 6845 test -z "$as_dir" && as_dir=. 6846 for ac_exec_ext in '' $ac_executable_extensions; do 6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6848 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6850 break 2 6851 fi 6852done 6853 done 6854IFS=$as_save_IFS 6855 6856 ;; 6857esac 6858fi 6859vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6860if test -n "$vi_cv_path_tcl"; then 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6862$as_echo "$vi_cv_path_tcl" >&6; } 6863else 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6865$as_echo "no" >&6; } 6866fi 6867 6868 6869 fi 6870 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 6871 tclsh_name="tclsh8.0" 6872 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6873set dummy $tclsh_name; ac_word=$2 6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6875$as_echo_n "checking for $ac_word... " >&6; } 6876if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6877 $as_echo_n "(cached) " >&6 6878else 6879 case $vi_cv_path_tcl in 6880 [\\/]* | ?:[\\/]*) 6881 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6882 ;; 6883 *) 6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6885for as_dir in $PATH 6886do 6887 IFS=$as_save_IFS 6888 test -z "$as_dir" && as_dir=. 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6891 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899 ;; 6900esac 6901fi 6902vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6903if test -n "$vi_cv_path_tcl"; then 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6905$as_echo "$vi_cv_path_tcl" >&6; } 6906else 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6908$as_echo "no" >&6; } 6909fi 6910 6911 6912 fi 6913 if test "X$vi_cv_path_tcl" = "X"; then 6914 tclsh_name="tclsh" 6915 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6916set dummy $tclsh_name; ac_word=$2 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6918$as_echo_n "checking for $ac_word... " >&6; } 6919if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 case $vi_cv_path_tcl in 6923 [\\/]* | ?:[\\/]*) 6924 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6925 ;; 6926 *) 6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6928for as_dir in $PATH 6929do 6930 IFS=$as_save_IFS 6931 test -z "$as_dir" && as_dir=. 6932 for ac_exec_ext in '' $ac_executable_extensions; do 6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6934 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6936 break 2 6937 fi 6938done 6939 done 6940IFS=$as_save_IFS 6941 6942 ;; 6943esac 6944fi 6945vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6946if test -n "$vi_cv_path_tcl"; then 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6948$as_echo "$vi_cv_path_tcl" >&6; } 6949else 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6951$as_echo "no" >&6; } 6952fi 6953 6954 6955 fi 6956 if test "X$vi_cv_path_tcl" != "X"; then 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 6958$as_echo_n "checking Tcl version... " >&6; } 6959 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 6960 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6962$as_echo "$tclver - OK" >&6; }; 6963 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 -` 6964 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 6965 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6967$as_echo_n "checking for location of Tcl include... " >&6; } 6968 if test "x$MACOSX" != "xyes"; then 6969 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6970 else 6971 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6972 fi 6973 TCL_INC= 6974 for try in $tclinc; do 6975 if test -f "$try/tcl.h"; then 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6977$as_echo "$try/tcl.h" >&6; } 6978 TCL_INC=$try 6979 break 6980 fi 6981 done 6982 if test -z "$TCL_INC"; then 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6984$as_echo "<not found>" >&6; } 6985 SKIP_TCL=YES 6986 fi 6987 if test -z "$SKIP_TCL"; then 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6989$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6990 if test "x$MACOSX" != "xyes"; then 6991 tclcnf=`echo $tclinc | sed s/include/lib/g` 6992 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 6993 else 6994 tclcnf="/System/Library/Frameworks/Tcl.framework" 6995 fi 6996 for try in $tclcnf; do 6997 if test -f "$try/tclConfig.sh"; then 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 6999$as_echo "$try/tclConfig.sh" >&6; } 7000 . "$try/tclConfig.sh" 7001 if test "$enable_tclinterp" = "dynamic"; then 7002 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 7003 else 7004 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 7005 fi 7006 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'` 7007 break 7008 fi 7009 done 7010 if test -z "$TCL_LIBS"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7012$as_echo "<not found>" >&6; } 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7014$as_echo_n "checking for Tcl library by myself... " >&6; } 7015 tcllib=`echo $tclinc | sed s/include/lib/g` 7016 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7017 for ext in .so .a ; do 7018 for ver in "" $tclver ; do 7019 for try in $tcllib ; do 7020 trylib=tcl$ver$ext 7021 if test -f "$try/lib$trylib" ; then 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7023$as_echo "$try/lib$trylib" >&6; } 7024 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7025 if test "`(uname) 2>/dev/null`" = SunOS && 7026 uname -r | grep '^5' >/dev/null; then 7027 TCL_LIBS="$TCL_LIBS -R $try" 7028 fi 7029 break 3 7030 fi 7031 done 7032 done 7033 done 7034 if test -z "$TCL_LIBS"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7036$as_echo "<not found>" >&6; } 7037 SKIP_TCL=YES 7038 fi 7039 fi 7040 if test -z "$SKIP_TCL"; then 7041 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7042 7043 TCL_SRC=if_tcl.c 7044 TCL_OBJ=objects/if_tcl.o 7045 TCL_PRO=if_tcl.pro 7046 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7047 fi 7048 fi 7049 else 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7051$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7052 fi 7053 fi 7054 if test "$enable_tclinterp" = "dynamic"; then 7055 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7056 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7057 7058 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7059 fi 7060 fi 7061 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7062 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7063 fi 7064fi 7065 7066 7067 7068 7069 7070 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7072$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7073# Check whether --enable-rubyinterp was given. 7074if test "${enable_rubyinterp+set}" = set; then : 7075 enableval=$enable_rubyinterp; 7076else 7077 enable_rubyinterp="no" 7078fi 7079 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7081$as_echo "$enable_rubyinterp" >&6; } 7082if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7083 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7084 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7085 fi 7086 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7088$as_echo_n "checking --with-ruby-command argument... " >&6; } 7089 7090 7091# Check whether --with-ruby-command was given. 7092if test "${with_ruby_command+set}" = set; then : 7093 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7094$as_echo "$RUBY_CMD" >&6; } 7095else 7096 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7097$as_echo "defaulting to $RUBY_CMD" >&6; } 7098fi 7099 7100 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7101set dummy $RUBY_CMD; ac_word=$2 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7103$as_echo_n "checking for $ac_word... " >&6; } 7104if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 case $vi_cv_path_ruby in 7108 [\\/]* | ?:[\\/]*) 7109 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7110 ;; 7111 *) 7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7113for as_dir in $PATH 7114do 7115 IFS=$as_save_IFS 7116 test -z "$as_dir" && as_dir=. 7117 for ac_exec_ext in '' $ac_executable_extensions; do 7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7119 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7121 break 2 7122 fi 7123done 7124 done 7125IFS=$as_save_IFS 7126 7127 ;; 7128esac 7129fi 7130vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7131if test -n "$vi_cv_path_ruby"; then 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7133$as_echo "$vi_cv_path_ruby" >&6; } 7134else 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7136$as_echo "no" >&6; } 7137fi 7138 7139 7140 if test "X$vi_cv_path_ruby" != "X"; then 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7142$as_echo_n "checking Ruby version... " >&6; } 7143 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7145$as_echo "OK" >&6; } 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7147$as_echo_n "checking Ruby rbconfig... " >&6; } 7148 ruby_rbconfig="RbConfig" 7149 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7150 ruby_rbconfig="Config" 7151 fi 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7153$as_echo "$ruby_rbconfig" >&6; } 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7155$as_echo_n "checking Ruby header files... " >&6; } 7156 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7157 if test "X$rubyhdrdir" != "X"; then 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7159$as_echo "$rubyhdrdir" >&6; } 7160 RUBY_CFLAGS="-I$rubyhdrdir" 7161 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7162 if test -d "$rubyarchdir"; then 7163 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7164 fi 7165 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7166 if test "X$rubyversion" = "X"; then 7167 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7168 fi 7169 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7170 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7171 if test "X$rubylibs" != "X"; then 7172 RUBY_LIBS="$rubylibs" 7173 fi 7174 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7175 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7176 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7177 if test -f "$rubylibdir/$librubya"; then 7178 librubyarg="$librubyarg" 7179 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7180 elif test "$librubyarg" = "libruby.a"; then 7181 librubyarg="-lruby" 7182 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7183 fi 7184 7185 if test "X$librubyarg" != "X"; then 7186 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7187 fi 7188 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7189 if test "X$rubyldflags" != "X"; then 7190 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7191 if test "X$rubyldflags" != "X"; then 7192 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7193 LDFLAGS="$rubyldflags $LDFLAGS" 7194 fi 7195 fi 7196 fi 7197 RUBY_SRC="if_ruby.c" 7198 RUBY_OBJ="objects/if_ruby.o" 7199 RUBY_PRO="if_ruby.pro" 7200 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7201 7202 if test "$enable_rubyinterp" = "dynamic"; then 7203 libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7204 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7205 7206 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7207 RUBY_LIBS= 7208 fi 7209 else 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7211$as_echo "not found; disabling Ruby" >&6; } 7212 fi 7213 else 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7215$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7216 fi 7217 fi 7218 7219 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7220 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7221 fi 7222fi 7223 7224 7225 7226 7227 7228 7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7230$as_echo_n "checking --enable-cscope argument... " >&6; } 7231# Check whether --enable-cscope was given. 7232if test "${enable_cscope+set}" = set; then : 7233 enableval=$enable_cscope; 7234else 7235 enable_cscope="no" 7236fi 7237 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7239$as_echo "$enable_cscope" >&6; } 7240if test "$enable_cscope" = "yes"; then 7241 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7242 7243fi 7244 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7246$as_echo_n "checking --enable-workshop argument... " >&6; } 7247# Check whether --enable-workshop was given. 7248if test "${enable_workshop+set}" = set; then : 7249 enableval=$enable_workshop; 7250else 7251 enable_workshop="no" 7252fi 7253 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7255$as_echo "$enable_workshop" >&6; } 7256if test "$enable_workshop" = "yes"; then 7257 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7258 7259 WORKSHOP_SRC="workshop.c integration.c" 7260 7261 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7262 7263 if test "${enable_gui-xxx}" = xxx; then 7264 enable_gui=motif 7265 fi 7266fi 7267 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7269$as_echo_n "checking --disable-netbeans argument... " >&6; } 7270# Check whether --enable-netbeans was given. 7271if test "${enable_netbeans+set}" = set; then : 7272 enableval=$enable_netbeans; 7273else 7274 enable_netbeans="yes" 7275fi 7276 7277if test "$enable_netbeans" = "yes"; then 7278 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7280$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7281 enable_netbeans="no" 7282 else 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7284$as_echo "no" >&6; } 7285 fi 7286else 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7288$as_echo "yes" >&6; } 7289fi 7290 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7292$as_echo_n "checking --disable-channel argument... " >&6; } 7293# Check whether --enable-channel was given. 7294if test "${enable_channel+set}" = set; then : 7295 enableval=$enable_channel; 7296else 7297 enable_channel="yes" 7298fi 7299 7300if test "$enable_channel" = "yes"; then 7301 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7303$as_echo "cannot use channels with tiny or small features" >&6; } 7304 enable_channel="no" 7305 else 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7307$as_echo "no" >&6; } 7308 fi 7309else 7310 if test "$enable_netbeans" = "yes"; then 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7312$as_echo "yes, netbeans also disabled" >&6; } 7313 enable_netbeans="no" 7314 else 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7316$as_echo "yes" >&6; } 7317 fi 7318fi 7319 7320if test "$enable_channel" = "yes"; then 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7322$as_echo_n "checking for socket in -lsocket... " >&6; } 7323if ${ac_cv_lib_socket_socket+:} false; then : 7324 $as_echo_n "(cached) " >&6 7325else 7326 ac_check_lib_save_LIBS=$LIBS 7327LIBS="-lsocket $LIBS" 7328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329/* end confdefs.h. */ 7330 7331/* Override any GCC internal prototype to avoid an error. 7332 Use char because int might match the return type of a GCC 7333 builtin and then its argument prototype would still apply. */ 7334#ifdef __cplusplus 7335extern "C" 7336#endif 7337char socket (); 7338int 7339main () 7340{ 7341return socket (); 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346if ac_fn_c_try_link "$LINENO"; then : 7347 ac_cv_lib_socket_socket=yes 7348else 7349 ac_cv_lib_socket_socket=no 7350fi 7351rm -f core conftest.err conftest.$ac_objext \ 7352 conftest$ac_exeext conftest.$ac_ext 7353LIBS=$ac_check_lib_save_LIBS 7354fi 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7356$as_echo "$ac_cv_lib_socket_socket" >&6; } 7357if test "x$ac_cv_lib_socket_socket" = xyes; then : 7358 cat >>confdefs.h <<_ACEOF 7359#define HAVE_LIBSOCKET 1 7360_ACEOF 7361 7362 LIBS="-lsocket $LIBS" 7363 7364fi 7365 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7367$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7368if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7369 $as_echo_n "(cached) " >&6 7370else 7371 ac_check_lib_save_LIBS=$LIBS 7372LIBS="-lnsl $LIBS" 7373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7374/* end confdefs.h. */ 7375 7376/* Override any GCC internal prototype to avoid an error. 7377 Use char because int might match the return type of a GCC 7378 builtin and then its argument prototype would still apply. */ 7379#ifdef __cplusplus 7380extern "C" 7381#endif 7382char gethostbyname (); 7383int 7384main () 7385{ 7386return gethostbyname (); 7387 ; 7388 return 0; 7389} 7390_ACEOF 7391if ac_fn_c_try_link "$LINENO"; then : 7392 ac_cv_lib_nsl_gethostbyname=yes 7393else 7394 ac_cv_lib_nsl_gethostbyname=no 7395fi 7396rm -f core conftest.err conftest.$ac_objext \ 7397 conftest$ac_exeext conftest.$ac_ext 7398LIBS=$ac_check_lib_save_LIBS 7399fi 7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7401$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7402if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7403 cat >>confdefs.h <<_ACEOF 7404#define HAVE_LIBNSL 1 7405_ACEOF 7406 7407 LIBS="-lnsl $LIBS" 7408 7409fi 7410 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7412$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414/* end confdefs.h. */ 7415 7416#include <stdio.h> 7417#include <stdlib.h> 7418#include <stdarg.h> 7419#include <fcntl.h> 7420#include <netdb.h> 7421#include <netinet/in.h> 7422#include <errno.h> 7423#include <sys/types.h> 7424#include <sys/socket.h> 7425 /* Check bitfields */ 7426 struct nbbuf { 7427 unsigned int initDone:1; 7428 unsigned short signmaplen; 7429 }; 7430 7431int 7432main () 7433{ 7434 7435 /* Check creating a socket. */ 7436 struct sockaddr_in server; 7437 (void)socket(AF_INET, SOCK_STREAM, 0); 7438 (void)htons(100); 7439 (void)gethostbyname("microsoft.com"); 7440 if (errno == ECONNREFUSED) 7441 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7442 7443 ; 7444 return 0; 7445} 7446_ACEOF 7447if ac_fn_c_try_link "$LINENO"; then : 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7449$as_echo "yes" >&6; } 7450else 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7452$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7453fi 7454rm -f core conftest.err conftest.$ac_objext \ 7455 conftest$ac_exeext conftest.$ac_ext 7456fi 7457if test "$enable_netbeans" = "yes"; then 7458 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7459 7460 NETBEANS_SRC="netbeans.c" 7461 7462 NETBEANS_OBJ="objects/netbeans.o" 7463 7464fi 7465if test "$enable_channel" = "yes"; then 7466 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7467 7468 CHANNEL_SRC="channel.c" 7469 7470 CHANNEL_OBJ="objects/channel.o" 7471 7472fi 7473 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5 7475$as_echo_n "checking --enable-terminal argument... " >&6; } 7476# Check whether --enable-terminal was given. 7477if test "${enable_terminal+set}" = set; then : 7478 enableval=$enable_terminal; enable_terminal="yes" 7479else 7480 enable_terminal="auto" 7481fi 7482 7483if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then 7484 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5 7486$as_echo "cannot use terminal emulator with tiny or small features" >&6; } 7487 enable_terminal="no" 7488 else 7489 if test "$enable_terminal" = "auto"; then 7490 enable_terminal="yes" 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5 7492$as_echo "defaulting to yes" >&6; } 7493 else 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7495$as_echo "yes" >&6; } 7496 fi 7497 fi 7498else 7499 if test "$enable_terminal" = "auto"; then 7500 enable_terminal="no" 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5 7502$as_echo "defaulting to no" >&6; } 7503 else 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7505$as_echo "no" >&6; } 7506 fi 7507fi 7508if test "$enable_terminal" = "yes"; then 7509 $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h 7510 7511 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" 7512 7513 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" 7514 7515fi 7516 7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7518$as_echo_n "checking --enable-multibyte argument... " >&6; } 7519# Check whether --enable-multibyte was given. 7520if test "${enable_multibyte+set}" = set; then : 7521 enableval=$enable_multibyte; 7522else 7523 enable_multibyte="no" 7524fi 7525 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7527$as_echo "$enable_multibyte" >&6; } 7528if test "$enable_multibyte" = "yes"; then 7529 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7530 7531fi 7532 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7534$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7535# Check whether --enable-hangulinput was given. 7536if test "${enable_hangulinput+set}" = set; then : 7537 enableval=$enable_hangulinput; 7538else 7539 enable_hangulinput="no" 7540fi 7541 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7543$as_echo "$enable_hangulinput" >&6; } 7544 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7546$as_echo_n "checking --enable-xim argument... " >&6; } 7547# Check whether --enable-xim was given. 7548if test "${enable_xim+set}" = set; then : 7549 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7550$as_echo "$enable_xim" >&6; } 7551else 7552 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7553$as_echo "defaulting to auto" >&6; } 7554fi 7555 7556 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7558$as_echo_n "checking --enable-fontset argument... " >&6; } 7559# Check whether --enable-fontset was given. 7560if test "${enable_fontset+set}" = set; then : 7561 enableval=$enable_fontset; 7562else 7563 enable_fontset="no" 7564fi 7565 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7567$as_echo "$enable_fontset" >&6; } 7568 7569test -z "$with_x" && with_x=yes 7570test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7571if test "$with_x" = no; then 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7573$as_echo "defaulting to: don't HAVE_X11" >&6; } 7574else 7575 7576 # Extract the first word of "xmkmf", so it can be a program name with args. 7577set dummy xmkmf; ac_word=$2 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7579$as_echo_n "checking for $ac_word... " >&6; } 7580if ${ac_cv_path_xmkmfpath+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 case $xmkmfpath in 7584 [\\/]* | ?:[\\/]*) 7585 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 7586 ;; 7587 *) 7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7589for as_dir in $PATH 7590do 7591 IFS=$as_save_IFS 7592 test -z "$as_dir" && as_dir=. 7593 for ac_exec_ext in '' $ac_executable_extensions; do 7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7595 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7597 break 2 7598 fi 7599done 7600 done 7601IFS=$as_save_IFS 7602 7603 ;; 7604esac 7605fi 7606xmkmfpath=$ac_cv_path_xmkmfpath 7607if test -n "$xmkmfpath"; then 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 7609$as_echo "$xmkmfpath" >&6; } 7610else 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7612$as_echo "no" >&6; } 7613fi 7614 7615 7616 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7618$as_echo_n "checking for X... " >&6; } 7619 7620 7621# Check whether --with-x was given. 7622if test "${with_x+set}" = set; then : 7623 withval=$with_x; 7624fi 7625 7626# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7627if test "x$with_x" = xno; then 7628 # The user explicitly disabled X. 7629 have_x=disabled 7630else 7631 case $x_includes,$x_libraries in #( 7632 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7633 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 # One or both of the vars are not set, and there is no cached value. 7637ac_x_includes=no ac_x_libraries=no 7638rm -f -r conftest.dir 7639if mkdir conftest.dir; then 7640 cd conftest.dir 7641 cat >Imakefile <<'_ACEOF' 7642incroot: 7643 @echo incroot='${INCROOT}' 7644usrlibdir: 7645 @echo usrlibdir='${USRLIBDIR}' 7646libdir: 7647 @echo libdir='${LIBDIR}' 7648_ACEOF 7649 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7650 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7651 for ac_var in incroot usrlibdir libdir; do 7652 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7653 done 7654 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7655 for ac_extension in a so sl dylib la dll; do 7656 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7657 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7658 ac_im_usrlibdir=$ac_im_libdir; break 7659 fi 7660 done 7661 # Screen out bogus values from the imake configuration. They are 7662 # bogus both because they are the default anyway, and because 7663 # using them would break gcc on systems where it needs fixed includes. 7664 case $ac_im_incroot in 7665 /usr/include) ac_x_includes= ;; 7666 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7667 esac 7668 case $ac_im_usrlibdir in 7669 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7670 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7671 esac 7672 fi 7673 cd .. 7674 rm -f -r conftest.dir 7675fi 7676 7677# Standard set of common directories for X headers. 7678# Check X11 before X11Rn because it is often a symlink to the current release. 7679ac_x_header_dirs=' 7680/usr/X11/include 7681/usr/X11R7/include 7682/usr/X11R6/include 7683/usr/X11R5/include 7684/usr/X11R4/include 7685 7686/usr/include/X11 7687/usr/include/X11R7 7688/usr/include/X11R6 7689/usr/include/X11R5 7690/usr/include/X11R4 7691 7692/usr/local/X11/include 7693/usr/local/X11R7/include 7694/usr/local/X11R6/include 7695/usr/local/X11R5/include 7696/usr/local/X11R4/include 7697 7698/usr/local/include/X11 7699/usr/local/include/X11R7 7700/usr/local/include/X11R6 7701/usr/local/include/X11R5 7702/usr/local/include/X11R4 7703 7704/usr/X386/include 7705/usr/x386/include 7706/usr/XFree86/include/X11 7707 7708/usr/include 7709/usr/local/include 7710/usr/unsupported/include 7711/usr/athena/include 7712/usr/local/x11r5/include 7713/usr/lpp/Xamples/include 7714 7715/usr/openwin/include 7716/usr/openwin/share/include' 7717 7718if test "$ac_x_includes" = no; then 7719 # Guess where to find include files, by looking for Xlib.h. 7720 # First, try using that file with no special directory specified. 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723#include <X11/Xlib.h> 7724_ACEOF 7725if ac_fn_c_try_cpp "$LINENO"; then : 7726 # We can compile using X headers with no special include directory. 7727ac_x_includes= 7728else 7729 for ac_dir in $ac_x_header_dirs; do 7730 if test -r "$ac_dir/X11/Xlib.h"; then 7731 ac_x_includes=$ac_dir 7732 break 7733 fi 7734done 7735fi 7736rm -f conftest.err conftest.i conftest.$ac_ext 7737fi # $ac_x_includes = no 7738 7739if test "$ac_x_libraries" = no; then 7740 # Check for the libraries. 7741 # See if we find them without any special options. 7742 # Don't add to $LIBS permanently. 7743 ac_save_LIBS=$LIBS 7744 LIBS="-lX11 $LIBS" 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747#include <X11/Xlib.h> 7748int 7749main () 7750{ 7751XrmInitialize () 7752 ; 7753 return 0; 7754} 7755_ACEOF 7756if ac_fn_c_try_link "$LINENO"; then : 7757 LIBS=$ac_save_LIBS 7758# We can link X programs with no special library path. 7759ac_x_libraries= 7760else 7761 LIBS=$ac_save_LIBS 7762for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7763do 7764 # Don't even attempt the hair of trying to link an X program! 7765 for ac_extension in a so sl dylib la dll; do 7766 if test -r "$ac_dir/libX11.$ac_extension"; then 7767 ac_x_libraries=$ac_dir 7768 break 2 7769 fi 7770 done 7771done 7772fi 7773rm -f core conftest.err conftest.$ac_objext \ 7774 conftest$ac_exeext conftest.$ac_ext 7775fi # $ac_x_libraries = no 7776 7777case $ac_x_includes,$ac_x_libraries in #( 7778 no,* | *,no | *\'*) 7779 # Didn't find X, or a directory has "'" in its name. 7780 ac_cv_have_x="have_x=no";; #( 7781 *) 7782 # Record where we found X for the cache. 7783 ac_cv_have_x="have_x=yes\ 7784 ac_x_includes='$ac_x_includes'\ 7785 ac_x_libraries='$ac_x_libraries'" 7786esac 7787fi 7788;; #( 7789 *) have_x=yes;; 7790 esac 7791 eval "$ac_cv_have_x" 7792fi # $with_x != no 7793 7794if test "$have_x" != yes; then 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7796$as_echo "$have_x" >&6; } 7797 no_x=yes 7798else 7799 # If each of the values was on the command line, it overrides each guess. 7800 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7801 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7802 # Update the cache value to reflect the command line values. 7803 ac_cv_have_x="have_x=yes\ 7804 ac_x_includes='$x_includes'\ 7805 ac_x_libraries='$x_libraries'" 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7807$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7808fi 7809 7810if test "$no_x" = yes; then 7811 # Not all programs may use this symbol, but it does not hurt to define it. 7812 7813$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 7814 7815 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7816else 7817 if test -n "$x_includes"; then 7818 X_CFLAGS="$X_CFLAGS -I$x_includes" 7819 fi 7820 7821 # It would also be nice to do this for all -L options, not just this one. 7822 if test -n "$x_libraries"; then 7823 X_LIBS="$X_LIBS -L$x_libraries" 7824 # For Solaris; some versions of Sun CC require a space after -R and 7825 # others require no space. Words are not sufficient . . . . 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 7827$as_echo_n "checking whether -R must be followed by a space... " >&6; } 7828 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7829 ac_xsave_c_werror_flag=$ac_c_werror_flag 7830 ac_c_werror_flag=yes 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832/* end confdefs.h. */ 7833 7834int 7835main () 7836{ 7837 7838 ; 7839 return 0; 7840} 7841_ACEOF 7842if ac_fn_c_try_link "$LINENO"; then : 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7844$as_echo "no" >&6; } 7845 X_LIBS="$X_LIBS -R$x_libraries" 7846else 7847 LIBS="$ac_xsave_LIBS -R $x_libraries" 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850 7851int 7852main () 7853{ 7854 7855 ; 7856 return 0; 7857} 7858_ACEOF 7859if ac_fn_c_try_link "$LINENO"; then : 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7861$as_echo "yes" >&6; } 7862 X_LIBS="$X_LIBS -R $x_libraries" 7863else 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 7865$as_echo "neither works" >&6; } 7866fi 7867rm -f core conftest.err conftest.$ac_objext \ 7868 conftest$ac_exeext conftest.$ac_ext 7869fi 7870rm -f core conftest.err conftest.$ac_objext \ 7871 conftest$ac_exeext conftest.$ac_ext 7872 ac_c_werror_flag=$ac_xsave_c_werror_flag 7873 LIBS=$ac_xsave_LIBS 7874 fi 7875 7876 # Check for system-dependent libraries X programs must link with. 7877 # Do this before checking for the system-independent R6 libraries 7878 # (-lICE), since we may need -lsocket or whatever for X linking. 7879 7880 if test "$ISC" = yes; then 7881 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7882 else 7883 # Martyn Johnson says this is needed for Ultrix, if the X 7884 # libraries were built with DECnet support. And Karl Berry says 7885 # the Alpha needs dnet_stub (dnet does not exist). 7886 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888/* end confdefs.h. */ 7889 7890/* Override any GCC internal prototype to avoid an error. 7891 Use char because int might match the return type of a GCC 7892 builtin and then its argument prototype would still apply. */ 7893#ifdef __cplusplus 7894extern "C" 7895#endif 7896char XOpenDisplay (); 7897int 7898main () 7899{ 7900return XOpenDisplay (); 7901 ; 7902 return 0; 7903} 7904_ACEOF 7905if ac_fn_c_try_link "$LINENO"; then : 7906 7907else 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 7909$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7910if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 7911 $as_echo_n "(cached) " >&6 7912else 7913 ac_check_lib_save_LIBS=$LIBS 7914LIBS="-ldnet $LIBS" 7915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917 7918/* Override any GCC internal prototype to avoid an error. 7919 Use char because int might match the return type of a GCC 7920 builtin and then its argument prototype would still apply. */ 7921#ifdef __cplusplus 7922extern "C" 7923#endif 7924char dnet_ntoa (); 7925int 7926main () 7927{ 7928return dnet_ntoa (); 7929 ; 7930 return 0; 7931} 7932_ACEOF 7933if ac_fn_c_try_link "$LINENO"; then : 7934 ac_cv_lib_dnet_dnet_ntoa=yes 7935else 7936 ac_cv_lib_dnet_dnet_ntoa=no 7937fi 7938rm -f core conftest.err conftest.$ac_objext \ 7939 conftest$ac_exeext conftest.$ac_ext 7940LIBS=$ac_check_lib_save_LIBS 7941fi 7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7943$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7944if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 7945 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7946fi 7947 7948 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 7950$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 7951if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 7952 $as_echo_n "(cached) " >&6 7953else 7954 ac_check_lib_save_LIBS=$LIBS 7955LIBS="-ldnet_stub $LIBS" 7956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957/* end confdefs.h. */ 7958 7959/* Override any GCC internal prototype to avoid an error. 7960 Use char because int might match the return type of a GCC 7961 builtin and then its argument prototype would still apply. */ 7962#ifdef __cplusplus 7963extern "C" 7964#endif 7965char dnet_ntoa (); 7966int 7967main () 7968{ 7969return dnet_ntoa (); 7970 ; 7971 return 0; 7972} 7973_ACEOF 7974if ac_fn_c_try_link "$LINENO"; then : 7975 ac_cv_lib_dnet_stub_dnet_ntoa=yes 7976else 7977 ac_cv_lib_dnet_stub_dnet_ntoa=no 7978fi 7979rm -f core conftest.err conftest.$ac_objext \ 7980 conftest$ac_exeext conftest.$ac_ext 7981LIBS=$ac_check_lib_save_LIBS 7982fi 7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 7984$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 7985if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 7986 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 7987fi 7988 7989 fi 7990fi 7991rm -f core conftest.err conftest.$ac_objext \ 7992 conftest$ac_exeext conftest.$ac_ext 7993 LIBS="$ac_xsave_LIBS" 7994 7995 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 7996 # to get the SysV transport functions. 7997 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 7998 # needs -lnsl. 7999 # The nsl library prevents programs from opening the X display 8000 # on Irix 5.2, according to T.E. Dickey. 8001 # The functions gethostbyname, getservbyname, and inet_addr are 8002 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8003 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8004if test "x$ac_cv_func_gethostbyname" = xyes; then : 8005 8006fi 8007 8008 if test $ac_cv_func_gethostbyname = no; then 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8010$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8011if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 ac_check_lib_save_LIBS=$LIBS 8015LIBS="-lnsl $LIBS" 8016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018 8019/* Override any GCC internal prototype to avoid an error. 8020 Use char because int might match the return type of a GCC 8021 builtin and then its argument prototype would still apply. */ 8022#ifdef __cplusplus 8023extern "C" 8024#endif 8025char gethostbyname (); 8026int 8027main () 8028{ 8029return gethostbyname (); 8030 ; 8031 return 0; 8032} 8033_ACEOF 8034if ac_fn_c_try_link "$LINENO"; then : 8035 ac_cv_lib_nsl_gethostbyname=yes 8036else 8037 ac_cv_lib_nsl_gethostbyname=no 8038fi 8039rm -f core conftest.err conftest.$ac_objext \ 8040 conftest$ac_exeext conftest.$ac_ext 8041LIBS=$ac_check_lib_save_LIBS 8042fi 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8044$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8045if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8047fi 8048 8049 if test $ac_cv_lib_nsl_gethostbyname = no; then 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8051$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8052if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 ac_check_lib_save_LIBS=$LIBS 8056LIBS="-lbsd $LIBS" 8057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8058/* end confdefs.h. */ 8059 8060/* Override any GCC internal prototype to avoid an error. 8061 Use char because int might match the return type of a GCC 8062 builtin and then its argument prototype would still apply. */ 8063#ifdef __cplusplus 8064extern "C" 8065#endif 8066char gethostbyname (); 8067int 8068main () 8069{ 8070return gethostbyname (); 8071 ; 8072 return 0; 8073} 8074_ACEOF 8075if ac_fn_c_try_link "$LINENO"; then : 8076 ac_cv_lib_bsd_gethostbyname=yes 8077else 8078 ac_cv_lib_bsd_gethostbyname=no 8079fi 8080rm -f core conftest.err conftest.$ac_objext \ 8081 conftest$ac_exeext conftest.$ac_ext 8082LIBS=$ac_check_lib_save_LIBS 8083fi 8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8085$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8086if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8087 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8088fi 8089 8090 fi 8091 fi 8092 8093 # [email protected] says without -lsocket, 8094 # socket/setsockopt and other routines are undefined under SCO ODT 8095 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8096 # on later versions), says Simon Leinen: it contains gethostby* 8097 # variants that don't use the name server (or something). -lsocket 8098 # must be given before -lnsl if both are needed. We assume that 8099 # if connect needs -lnsl, so does gethostbyname. 8100 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8101if test "x$ac_cv_func_connect" = xyes; then : 8102 8103fi 8104 8105 if test $ac_cv_func_connect = no; then 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8107$as_echo_n "checking for connect in -lsocket... " >&6; } 8108if ${ac_cv_lib_socket_connect+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 ac_check_lib_save_LIBS=$LIBS 8112LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8114/* end confdefs.h. */ 8115 8116/* Override any GCC internal prototype to avoid an error. 8117 Use char because int might match the return type of a GCC 8118 builtin and then its argument prototype would still apply. */ 8119#ifdef __cplusplus 8120extern "C" 8121#endif 8122char connect (); 8123int 8124main () 8125{ 8126return connect (); 8127 ; 8128 return 0; 8129} 8130_ACEOF 8131if ac_fn_c_try_link "$LINENO"; then : 8132 ac_cv_lib_socket_connect=yes 8133else 8134 ac_cv_lib_socket_connect=no 8135fi 8136rm -f core conftest.err conftest.$ac_objext \ 8137 conftest$ac_exeext conftest.$ac_ext 8138LIBS=$ac_check_lib_save_LIBS 8139fi 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8141$as_echo "$ac_cv_lib_socket_connect" >&6; } 8142if test "x$ac_cv_lib_socket_connect" = xyes; then : 8143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8144fi 8145 8146 fi 8147 8148 # Guillermo Gomez says -lposix is necessary on A/UX. 8149 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8150if test "x$ac_cv_func_remove" = xyes; then : 8151 8152fi 8153 8154 if test $ac_cv_func_remove = no; then 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8156$as_echo_n "checking for remove in -lposix... " >&6; } 8157if ${ac_cv_lib_posix_remove+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 ac_check_lib_save_LIBS=$LIBS 8161LIBS="-lposix $LIBS" 8162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8163/* end confdefs.h. */ 8164 8165/* Override any GCC internal prototype to avoid an error. 8166 Use char because int might match the return type of a GCC 8167 builtin and then its argument prototype would still apply. */ 8168#ifdef __cplusplus 8169extern "C" 8170#endif 8171char remove (); 8172int 8173main () 8174{ 8175return remove (); 8176 ; 8177 return 0; 8178} 8179_ACEOF 8180if ac_fn_c_try_link "$LINENO"; then : 8181 ac_cv_lib_posix_remove=yes 8182else 8183 ac_cv_lib_posix_remove=no 8184fi 8185rm -f core conftest.err conftest.$ac_objext \ 8186 conftest$ac_exeext conftest.$ac_ext 8187LIBS=$ac_check_lib_save_LIBS 8188fi 8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8190$as_echo "$ac_cv_lib_posix_remove" >&6; } 8191if test "x$ac_cv_lib_posix_remove" = xyes; then : 8192 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8193fi 8194 8195 fi 8196 8197 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8198 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8199if test "x$ac_cv_func_shmat" = xyes; then : 8200 8201fi 8202 8203 if test $ac_cv_func_shmat = no; then 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8205$as_echo_n "checking for shmat in -lipc... " >&6; } 8206if ${ac_cv_lib_ipc_shmat+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 ac_check_lib_save_LIBS=$LIBS 8210LIBS="-lipc $LIBS" 8211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8212/* end confdefs.h. */ 8213 8214/* Override any GCC internal prototype to avoid an error. 8215 Use char because int might match the return type of a GCC 8216 builtin and then its argument prototype would still apply. */ 8217#ifdef __cplusplus 8218extern "C" 8219#endif 8220char shmat (); 8221int 8222main () 8223{ 8224return shmat (); 8225 ; 8226 return 0; 8227} 8228_ACEOF 8229if ac_fn_c_try_link "$LINENO"; then : 8230 ac_cv_lib_ipc_shmat=yes 8231else 8232 ac_cv_lib_ipc_shmat=no 8233fi 8234rm -f core conftest.err conftest.$ac_objext \ 8235 conftest$ac_exeext conftest.$ac_ext 8236LIBS=$ac_check_lib_save_LIBS 8237fi 8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8239$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8240if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8241 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8242fi 8243 8244 fi 8245 fi 8246 8247 # Check for libraries that X11R6 Xt/Xaw programs need. 8248 ac_save_LDFLAGS=$LDFLAGS 8249 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8250 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8251 # check for ICE first), but we must link in the order -lSM -lICE or 8252 # we get undefined symbols. So assume we have SM if we have ICE. 8253 # These have to be linked with before -lX11, unlike the other 8254 # libraries we check for below, so use a different variable. 8255 # John Interrante, Karl Berry 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8257$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8258if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8259 $as_echo_n "(cached) " >&6 8260else 8261 ac_check_lib_save_LIBS=$LIBS 8262LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8264/* end confdefs.h. */ 8265 8266/* Override any GCC internal prototype to avoid an error. 8267 Use char because int might match the return type of a GCC 8268 builtin and then its argument prototype would still apply. */ 8269#ifdef __cplusplus 8270extern "C" 8271#endif 8272char IceConnectionNumber (); 8273int 8274main () 8275{ 8276return IceConnectionNumber (); 8277 ; 8278 return 0; 8279} 8280_ACEOF 8281if ac_fn_c_try_link "$LINENO"; then : 8282 ac_cv_lib_ICE_IceConnectionNumber=yes 8283else 8284 ac_cv_lib_ICE_IceConnectionNumber=no 8285fi 8286rm -f core conftest.err conftest.$ac_objext \ 8287 conftest$ac_exeext conftest.$ac_ext 8288LIBS=$ac_check_lib_save_LIBS 8289fi 8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8291$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8292if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8293 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8294fi 8295 8296 LDFLAGS=$ac_save_LDFLAGS 8297 8298fi 8299 8300 8301 if test "$zOSUnix" = "yes"; then 8302 CFLAGS="$CFLAGS -W c,dll" 8303 LDFLAGS="$LDFLAGS -W l,dll" 8304 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8305 fi 8306 8307 8308 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8309 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8311$as_echo "Corrected X libraries to $x_libraries" >&6; } 8312 X_LIBS="$X_LIBS -L$x_libraries" 8313 if test "`(uname) 2>/dev/null`" = SunOS && 8314 uname -r | grep '^5' >/dev/null; then 8315 X_LIBS="$X_LIBS -R $x_libraries" 8316 fi 8317 fi 8318 8319 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8320 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8322$as_echo "Corrected X includes to $x_includes" >&6; } 8323 X_CFLAGS="$X_CFLAGS -I$x_includes" 8324 fi 8325 8326 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8327 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8328 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8329 8330 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8332$as_echo_n "checking if X11 header files can be found... " >&6; } 8333 cflags_save=$CFLAGS 8334 CFLAGS="$CFLAGS $X_CFLAGS" 8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8336/* end confdefs.h. */ 8337#include <X11/Xlib.h> 8338#include <X11/Intrinsic.h> 8339int 8340main () 8341{ 8342 8343 ; 8344 return 0; 8345} 8346_ACEOF 8347if ac_fn_c_try_compile "$LINENO"; then : 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8349$as_echo "yes" >&6; } 8350else 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8352$as_echo "no" >&6; }; no_x=yes 8353fi 8354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8355 CFLAGS=$cflags_save 8356 8357 if test "${no_x-no}" = yes; then 8358 with_x=no 8359 else 8360 $as_echo "#define HAVE_X11 1" >>confdefs.h 8361 8362 X_LIB="-lXt -lX11"; 8363 8364 8365 ac_save_LDFLAGS="$LDFLAGS" 8366 LDFLAGS="-L$x_libraries $LDFLAGS" 8367 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8369$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8370if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 ac_check_lib_save_LIBS=$LIBS 8374LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8376/* end confdefs.h. */ 8377 8378/* Override any GCC internal prototype to avoid an error. 8379 Use char because int might match the return type of a GCC 8380 builtin and then its argument prototype would still apply. */ 8381#ifdef __cplusplus 8382extern "C" 8383#endif 8384char _XdmcpAuthDoIt (); 8385int 8386main () 8387{ 8388return _XdmcpAuthDoIt (); 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393if ac_fn_c_try_link "$LINENO"; then : 8394 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8395else 8396 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8397fi 8398rm -f core conftest.err conftest.$ac_objext \ 8399 conftest$ac_exeext conftest.$ac_ext 8400LIBS=$ac_check_lib_save_LIBS 8401fi 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8403$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8404if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8406fi 8407 8408 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8410$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8411if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 ac_check_lib_save_LIBS=$LIBS 8415LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418 8419/* Override any GCC internal prototype to avoid an error. 8420 Use char because int might match the return type of a GCC 8421 builtin and then its argument prototype would still apply. */ 8422#ifdef __cplusplus 8423extern "C" 8424#endif 8425char IceOpenConnection (); 8426int 8427main () 8428{ 8429return IceOpenConnection (); 8430 ; 8431 return 0; 8432} 8433_ACEOF 8434if ac_fn_c_try_link "$LINENO"; then : 8435 ac_cv_lib_ICE_IceOpenConnection=yes 8436else 8437 ac_cv_lib_ICE_IceOpenConnection=no 8438fi 8439rm -f core conftest.err conftest.$ac_objext \ 8440 conftest$ac_exeext conftest.$ac_ext 8441LIBS=$ac_check_lib_save_LIBS 8442fi 8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8444$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8445if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8447fi 8448 8449 8450 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8452$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8453if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 ac_check_lib_save_LIBS=$LIBS 8457LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8459/* end confdefs.h. */ 8460 8461/* Override any GCC internal prototype to avoid an error. 8462 Use char because int might match the return type of a GCC 8463 builtin and then its argument prototype would still apply. */ 8464#ifdef __cplusplus 8465extern "C" 8466#endif 8467char XpmCreatePixmapFromData (); 8468int 8469main () 8470{ 8471return XpmCreatePixmapFromData (); 8472 ; 8473 return 0; 8474} 8475_ACEOF 8476if ac_fn_c_try_link "$LINENO"; then : 8477 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8478else 8479 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8480fi 8481rm -f core conftest.err conftest.$ac_objext \ 8482 conftest$ac_exeext conftest.$ac_ext 8483LIBS=$ac_check_lib_save_LIBS 8484fi 8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8486$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8487if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8488 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8489fi 8490 8491 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8493$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8494 cflags_save=$CFLAGS 8495 if test "$GCC" = yes; then 8496 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8497 else 8498 CFLAGS="$CFLAGS $X_CFLAGS" 8499 fi 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502#include <X11/Xlib.h> 8503int 8504main () 8505{ 8506 8507 ; 8508 return 0; 8509} 8510_ACEOF 8511if ac_fn_c_try_compile "$LINENO"; then : 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8513$as_echo "no" >&6; } 8514else 8515 CFLAGS="$CFLAGS -Wno-implicit-int" 8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8517/* end confdefs.h. */ 8518#include <X11/Xlib.h> 8519int 8520main () 8521{ 8522 8523 ; 8524 return 0; 8525} 8526_ACEOF 8527if ac_fn_c_try_compile "$LINENO"; then : 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8529$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8530else 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8532$as_echo "test failed" >&6; } 8533 8534fi 8535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8536 8537fi 8538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8539 CFLAGS=$cflags_save 8540 8541 LDFLAGS="$ac_save_LDFLAGS" 8542 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8544$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8545 if ${ac_cv_small_wchar_t+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 if test "$cross_compiling" = yes; then : 8549 as_fn_error $? "failed to compile test program" "$LINENO" 5 8550else 8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553 8554#include <X11/Xlib.h> 8555#if STDC_HEADERS 8556# include <stdlib.h> 8557# include <stddef.h> 8558#endif 8559 main() 8560 { 8561 if (sizeof(wchar_t) <= 2) 8562 exit(1); 8563 exit(0); 8564 } 8565_ACEOF 8566if ac_fn_c_try_run "$LINENO"; then : 8567 ac_cv_small_wchar_t="no" 8568else 8569 ac_cv_small_wchar_t="yes" 8570fi 8571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8572 conftest.$ac_objext conftest.beam conftest.$ac_ext 8573fi 8574 8575fi 8576 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8578$as_echo "$ac_cv_small_wchar_t" >&6; } 8579 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8580 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 8581 8582 fi 8583 8584 fi 8585fi 8586 8587test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 8588 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 8590$as_echo_n "checking --enable-gui argument... " >&6; } 8591# Check whether --enable-gui was given. 8592if test "${enable_gui+set}" = set; then : 8593 enableval=$enable_gui; 8594else 8595 enable_gui="auto" 8596fi 8597 8598 8599enable_gui_canon=`echo "_$enable_gui" | \ 8600 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 8601 8602SKIP_GTK2=YES 8603SKIP_GTK3=YES 8604SKIP_GNOME=YES 8605SKIP_MOTIF=YES 8606SKIP_ATHENA=YES 8607SKIP_NEXTAW=YES 8608SKIP_PHOTON=YES 8609SKIP_CARBON=YES 8610GUITYPE=NONE 8611 8612if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 8613 SKIP_PHOTON= 8614 case "$enable_gui_canon" in 8615 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8616$as_echo "no GUI support" >&6; } 8617 SKIP_PHOTON=YES ;; 8618 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8619$as_echo "yes - automatic GUI support" >&6; } ;; 8620 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 8621$as_echo "auto - automatic GUI support" >&6; } ;; 8622 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 8623$as_echo "Photon GUI support" >&6; } ;; 8624 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8625$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8626 SKIP_PHOTON=YES ;; 8627 esac 8628 8629elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 8630 SKIP_CARBON= 8631 case "$enable_gui_canon" in 8632 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8633$as_echo "no GUI support" >&6; } 8634 SKIP_CARBON=YES ;; 8635 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8636$as_echo "yes - automatic GUI support" >&6; } ;; 8637 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 8638$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 8639 SKIP_CARBON=YES ;; 8640 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 8641$as_echo "Carbon GUI support" >&6; } ;; 8642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8643$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8644 SKIP_CARBON=YES ;; 8645 esac 8646 8647else 8648 8649 case "$enable_gui_canon" in 8650 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8651$as_echo "no GUI support" >&6; } ;; 8652 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 8653$as_echo "yes/auto - automatic GUI support" >&6; } 8654 SKIP_GTK2= 8655 SKIP_GNOME= 8656 SKIP_MOTIF= 8657 SKIP_ATHENA= 8658 SKIP_NEXTAW= 8659 SKIP_CARBON=;; 8660 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 8661$as_echo "GTK+ 2.x GUI support" >&6; } 8662 SKIP_GTK2=;; 8663 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 8664$as_echo "GNOME 2.x GUI support" >&6; } 8665 SKIP_GNOME= 8666 SKIP_GTK2=;; 8667 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 8668$as_echo "GTK+ 3.x GUI support" >&6; } 8669 SKIP_GTK3=;; 8670 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 8671$as_echo "Motif GUI support" >&6; } 8672 SKIP_MOTIF=;; 8673 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 8674$as_echo "Athena GUI support" >&6; } 8675 SKIP_ATHENA=;; 8676 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 8677$as_echo "neXtaw GUI support" >&6; } 8678 SKIP_NEXTAW=;; 8679 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8680$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 8681 esac 8682 8683fi 8684 8685if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 8686 -a "$enable_gui_canon" != "gnome2"; then 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 8688$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 8689 # Check whether --enable-gtk2-check was given. 8690if test "${enable_gtk2_check+set}" = set; then : 8691 enableval=$enable_gtk2_check; 8692else 8693 enable_gtk2_check="yes" 8694fi 8695 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 8697$as_echo "$enable_gtk2_check" >&6; } 8698 if test "x$enable_gtk2_check" = "xno"; then 8699 SKIP_GTK2=YES 8700 SKIP_GNOME=YES 8701 fi 8702fi 8703 8704if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 8706$as_echo_n "checking whether or not to look for GNOME... " >&6; } 8707 # Check whether --enable-gnome-check was given. 8708if test "${enable_gnome_check+set}" = set; then : 8709 enableval=$enable_gnome_check; 8710else 8711 enable_gnome_check="no" 8712fi 8713 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 8715$as_echo "$enable_gnome_check" >&6; } 8716 if test "x$enable_gnome_check" = "xno"; then 8717 SKIP_GNOME=YES 8718 fi 8719fi 8720 8721if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 8723$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 8724 # Check whether --enable-gtk3-check was given. 8725if test "${enable_gtk3_check+set}" = set; then : 8726 enableval=$enable_gtk3_check; 8727else 8728 enable_gtk3_check="yes" 8729fi 8730 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 8732$as_echo "$enable_gtk3_check" >&6; } 8733 if test "x$enable_gtk3_check" = "xno"; then 8734 SKIP_GTK3=YES 8735 fi 8736fi 8737 8738if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 8740$as_echo_n "checking whether or not to look for Motif... " >&6; } 8741 # Check whether --enable-motif-check was given. 8742if test "${enable_motif_check+set}" = set; then : 8743 enableval=$enable_motif_check; 8744else 8745 enable_motif_check="yes" 8746fi 8747 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 8749$as_echo "$enable_motif_check" >&6; } 8750 if test "x$enable_motif_check" = "xno"; then 8751 SKIP_MOTIF=YES 8752 fi 8753fi 8754 8755if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 8757$as_echo_n "checking whether or not to look for Athena... " >&6; } 8758 # Check whether --enable-athena-check was given. 8759if test "${enable_athena_check+set}" = set; then : 8760 enableval=$enable_athena_check; 8761else 8762 enable_athena_check="yes" 8763fi 8764 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 8766$as_echo "$enable_athena_check" >&6; } 8767 if test "x$enable_athena_check" = "xno"; then 8768 SKIP_ATHENA=YES 8769 fi 8770fi 8771 8772if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 8774$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 8775 # Check whether --enable-nextaw-check was given. 8776if test "${enable_nextaw_check+set}" = set; then : 8777 enableval=$enable_nextaw_check; 8778else 8779 enable_nextaw_check="yes" 8780fi 8781 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 8783$as_echo "$enable_nextaw_check" >&6; }; 8784 if test "x$enable_nextaw_check" = "xno"; then 8785 SKIP_NEXTAW=YES 8786 fi 8787fi 8788 8789if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 8791$as_echo_n "checking whether or not to look for Carbon... " >&6; } 8792 # Check whether --enable-carbon-check was given. 8793if test "${enable_carbon_check+set}" = set; then : 8794 enableval=$enable_carbon_check; 8795else 8796 enable_carbon_check="yes" 8797fi 8798 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 8800$as_echo "$enable_carbon_check" >&6; }; 8801 if test "x$enable_carbon_check" = "xno"; then 8802 SKIP_CARBON=YES 8803 fi 8804fi 8805 8806 8807if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 8809$as_echo_n "checking for Carbon GUI... " >&6; } 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8811$as_echo "yes" >&6; }; 8812 GUITYPE=CARBONGUI 8813 if test "$VIMNAME" = "vim"; then 8814 VIMNAME=Vim 8815 fi 8816 8817 if test "x$MACARCH" = "xboth"; then 8818 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 8819 else 8820 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 8821 fi 8822 8823 if test x$prefix = xNONE; then 8824 prefix=/Applications 8825 fi 8826 8827 datadir='${prefix}/Vim.app/Contents/Resources' 8828 8829 SKIP_GTK2=YES; 8830 SKIP_GNOME=YES; 8831 SKIP_MOTIF=YES; 8832 SKIP_ATHENA=YES; 8833 SKIP_NEXTAW=YES; 8834 SKIP_PHOTON=YES; 8835 SKIP_CARBON=YES 8836fi 8837 8838 8839 8840 8841 8842 8843 8844 8845if test -z "$SKIP_GTK2"; then 8846 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 8848$as_echo_n "checking --disable-gtktest argument... " >&6; } 8849 # Check whether --enable-gtktest was given. 8850if test "${enable_gtktest+set}" = set; then : 8851 enableval=$enable_gtktest; 8852else 8853 enable_gtktest=yes 8854fi 8855 8856 if test "x$enable_gtktest" = "xyes" ; then 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 8858$as_echo "gtk test enabled" >&6; } 8859 else 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 8861$as_echo "gtk test disabled" >&6; } 8862 fi 8863 8864 if test "X$PKG_CONFIG" = "X"; then 8865 # Extract the first word of "pkg-config", so it can be a program name with args. 8866set dummy pkg-config; ac_word=$2 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8868$as_echo_n "checking for $ac_word... " >&6; } 8869if ${ac_cv_path_PKG_CONFIG+:} false; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 case $PKG_CONFIG in 8873 [\\/]* | ?:[\\/]*) 8874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8875 ;; 8876 *) 8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8878for as_dir in $PATH 8879do 8880 IFS=$as_save_IFS 8881 test -z "$as_dir" && as_dir=. 8882 for ac_exec_ext in '' $ac_executable_extensions; do 8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8886 break 2 8887 fi 8888done 8889 done 8890IFS=$as_save_IFS 8891 8892 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8893 ;; 8894esac 8895fi 8896PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8897if test -n "$PKG_CONFIG"; then 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8899$as_echo "$PKG_CONFIG" >&6; } 8900else 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8902$as_echo "no" >&6; } 8903fi 8904 8905 8906 fi 8907 8908 if test "x$PKG_CONFIG" != "xno"; then 8909 8910 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8911 { 8912 no_gtk="" 8913 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8914 && $PKG_CONFIG --exists gtk+-2.0; then 8915 { 8916 min_gtk_version=2.2.0 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8918$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8919 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8920 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8921 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8922 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8923 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8924 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8925 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8926 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8927 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8928 } 8929 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8930 && $PKG_CONFIG --exists gtk+-3.0; then 8931 { 8932 min_gtk_version=2.2.0 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8934$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8935 8936 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 8937 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 8938 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 8939 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8940 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8941 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8942 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8943 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8944 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8945 } 8946 else 8947 no_gtk=yes 8948 fi 8949 8950 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8951 { 8952 ac_save_CFLAGS="$CFLAGS" 8953 ac_save_LIBS="$LIBS" 8954 CFLAGS="$CFLAGS $GTK_CFLAGS" 8955 LIBS="$LIBS $GTK_LIBS" 8956 8957 rm -f conf.gtktest 8958 if test "$cross_compiling" = yes; then : 8959 echo $ac_n "cross compiling; assumed OK... $ac_c" 8960else 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963 8964#include <gtk/gtk.h> 8965#include <stdio.h> 8966#if STDC_HEADERS 8967# include <stdlib.h> 8968# include <stddef.h> 8969#endif 8970 8971int 8972main () 8973{ 8974int major, minor, micro; 8975char *tmp_version; 8976 8977system ("touch conf.gtktest"); 8978 8979/* HP/UX 9 (%@#!) writes to sscanf strings */ 8980tmp_version = g_strdup("$min_gtk_version"); 8981if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 8982 printf("%s, bad version string\n", "$min_gtk_version"); 8983 exit(1); 8984 } 8985 8986if ((gtk_major_version > major) || 8987 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8988 ((gtk_major_version == major) && (gtk_minor_version == minor) && 8989 (gtk_micro_version >= micro))) 8990{ 8991 return 0; 8992} 8993return 1; 8994} 8995 8996_ACEOF 8997if ac_fn_c_try_run "$LINENO"; then : 8998 8999else 9000 no_gtk=yes 9001fi 9002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9003 conftest.$ac_objext conftest.beam conftest.$ac_ext 9004fi 9005 9006 CFLAGS="$ac_save_CFLAGS" 9007 LIBS="$ac_save_LIBS" 9008 } 9009 fi 9010 if test "x$no_gtk" = x ; then 9011 if test "x$enable_gtktest" = "xyes"; then 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9013$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9014 else 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9016$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9017 fi 9018 GUI_LIB_LOC="$GTK_LIBDIR" 9019 GTK_LIBNAME="$GTK_LIBS" 9020 GUI_INC_LOC="$GTK_CFLAGS" 9021 else 9022 { 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9024$as_echo "no" >&6; } 9025 GTK_CFLAGS="" 9026 GTK_LIBS="" 9027 : 9028 } 9029 fi 9030 } 9031 else 9032 GTK_CFLAGS="" 9033 GTK_LIBS="" 9034 : 9035 fi 9036 9037 9038 rm -f conf.gtktest 9039 9040 if test "x$GTK_CFLAGS" != "x"; then 9041 SKIP_GTK3=YES 9042 SKIP_ATHENA=YES 9043 SKIP_NEXTAW=YES 9044 SKIP_MOTIF=YES 9045 GUITYPE=GTK 9046 9047 fi 9048 fi 9049 if test "x$GUITYPE" = "xGTK"; then 9050 if test -z "$SKIP_GNOME"; then 9051 { 9052 9053 9054 9055 9056 9057 9058# Check whether --with-gnome-includes was given. 9059if test "${with_gnome_includes+set}" = set; then : 9060 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9061 9062fi 9063 9064 9065 9066# Check whether --with-gnome-libs was given. 9067if test "${with_gnome_libs+set}" = set; then : 9068 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9069 9070fi 9071 9072 9073 9074# Check whether --with-gnome was given. 9075if test "${with_gnome+set}" = set; then : 9076 withval=$with_gnome; if test x$withval = xyes; then 9077 want_gnome=yes 9078 have_gnome=yes 9079 else 9080 if test "x$withval" = xno; then 9081 want_gnome=no 9082 else 9083 want_gnome=yes 9084 LDFLAGS="$LDFLAGS -L$withval/lib" 9085 CFLAGS="$CFLAGS -I$withval/include" 9086 gnome_prefix=$withval/lib 9087 fi 9088 fi 9089else 9090 want_gnome=yes 9091fi 9092 9093 9094 if test "x$want_gnome" = xyes; then 9095 { 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9097$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9098 if $PKG_CONFIG --exists libgnomeui-2.0; then 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9100$as_echo "yes" >&6; } 9101 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9102 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9103 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9104 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9106$as_echo_n "checking for FreeBSD... " >&6; } 9107 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9109$as_echo "yes" >&6; } 9110 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9111 GNOME_LIBS="$GNOME_LIBS -pthread" 9112 else 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9114$as_echo "no" >&6; } 9115 fi 9116 have_gnome=yes 9117 else 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9119$as_echo "not found" >&6; } 9120 if test "x" = xfail; then 9121 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9122 fi 9123 fi 9124 } 9125 fi 9126 9127 if test "x$have_gnome" = xyes ; then 9128 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9129 9130 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9131 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9132 fi 9133 } 9134 fi 9135 fi 9136fi 9137 9138 9139if test -z "$SKIP_GTK3"; then 9140 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9142$as_echo_n "checking --disable-gtktest argument... " >&6; } 9143 # Check whether --enable-gtktest was given. 9144if test "${enable_gtktest+set}" = set; then : 9145 enableval=$enable_gtktest; 9146else 9147 enable_gtktest=yes 9148fi 9149 9150 if test "x$enable_gtktest" = "xyes" ; then 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9152$as_echo "gtk test enabled" >&6; } 9153 else 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9155$as_echo "gtk test disabled" >&6; } 9156 fi 9157 9158 if test "X$PKG_CONFIG" = "X"; then 9159 # Extract the first word of "pkg-config", so it can be a program name with args. 9160set dummy pkg-config; ac_word=$2 9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9162$as_echo_n "checking for $ac_word... " >&6; } 9163if ${ac_cv_path_PKG_CONFIG+:} false; then : 9164 $as_echo_n "(cached) " >&6 9165else 9166 case $PKG_CONFIG in 9167 [\\/]* | ?:[\\/]*) 9168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9169 ;; 9170 *) 9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9172for as_dir in $PATH 9173do 9174 IFS=$as_save_IFS 9175 test -z "$as_dir" && as_dir=. 9176 for ac_exec_ext in '' $ac_executable_extensions; do 9177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9180 break 2 9181 fi 9182done 9183 done 9184IFS=$as_save_IFS 9185 9186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9187 ;; 9188esac 9189fi 9190PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9191if test -n "$PKG_CONFIG"; then 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9193$as_echo "$PKG_CONFIG" >&6; } 9194else 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9196$as_echo "no" >&6; } 9197fi 9198 9199 9200 fi 9201 9202 if test "x$PKG_CONFIG" != "xno"; then 9203 9204 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9205 { 9206 no_gtk="" 9207 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9208 && $PKG_CONFIG --exists gtk+-2.0; then 9209 { 9210 min_gtk_version=3.0.0 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9212$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9213 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9214 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9215 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9216 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9217 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9218 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9219 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9220 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9221 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9222 } 9223 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9224 && $PKG_CONFIG --exists gtk+-3.0; then 9225 { 9226 min_gtk_version=3.0.0 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9228$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9229 9230 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9231 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9232 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9233 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9234 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9235 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9236 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9237 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9238 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9239 } 9240 else 9241 no_gtk=yes 9242 fi 9243 9244 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9245 { 9246 ac_save_CFLAGS="$CFLAGS" 9247 ac_save_LIBS="$LIBS" 9248 CFLAGS="$CFLAGS $GTK_CFLAGS" 9249 LIBS="$LIBS $GTK_LIBS" 9250 9251 rm -f conf.gtktest 9252 if test "$cross_compiling" = yes; then : 9253 echo $ac_n "cross compiling; assumed OK... $ac_c" 9254else 9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9256/* end confdefs.h. */ 9257 9258#include <gtk/gtk.h> 9259#include <stdio.h> 9260#if STDC_HEADERS 9261# include <stdlib.h> 9262# include <stddef.h> 9263#endif 9264 9265int 9266main () 9267{ 9268int major, minor, micro; 9269char *tmp_version; 9270 9271system ("touch conf.gtktest"); 9272 9273/* HP/UX 9 (%@#!) writes to sscanf strings */ 9274tmp_version = g_strdup("$min_gtk_version"); 9275if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9276 printf("%s, bad version string\n", "$min_gtk_version"); 9277 exit(1); 9278 } 9279 9280if ((gtk_major_version > major) || 9281 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9282 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9283 (gtk_micro_version >= micro))) 9284{ 9285 return 0; 9286} 9287return 1; 9288} 9289 9290_ACEOF 9291if ac_fn_c_try_run "$LINENO"; then : 9292 9293else 9294 no_gtk=yes 9295fi 9296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9297 conftest.$ac_objext conftest.beam conftest.$ac_ext 9298fi 9299 9300 CFLAGS="$ac_save_CFLAGS" 9301 LIBS="$ac_save_LIBS" 9302 } 9303 fi 9304 if test "x$no_gtk" = x ; then 9305 if test "x$enable_gtktest" = "xyes"; then 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9307$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9308 else 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9310$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9311 fi 9312 GUI_LIB_LOC="$GTK_LIBDIR" 9313 GTK_LIBNAME="$GTK_LIBS" 9314 GUI_INC_LOC="$GTK_CFLAGS" 9315 else 9316 { 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9318$as_echo "no" >&6; } 9319 GTK_CFLAGS="" 9320 GTK_LIBS="" 9321 : 9322 } 9323 fi 9324 } 9325 else 9326 GTK_CFLAGS="" 9327 GTK_LIBS="" 9328 : 9329 fi 9330 9331 9332 rm -f conf.gtktest 9333 9334 if test "x$GTK_CFLAGS" != "x"; then 9335 SKIP_GTK2=YES 9336 SKIP_GNOME=YES 9337 SKIP_ATHENA=YES 9338 SKIP_NEXTAW=YES 9339 SKIP_MOTIF=YES 9340 GUITYPE=GTK 9341 9342 $as_echo "#define USE_GTK3 1" >>confdefs.h 9343 9344 fi 9345 fi 9346fi 9347 9348if test "x$GUITYPE" = "xGTK"; then 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9350$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9351 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9352 if test "x$gdk_pixbuf_version" != x ; then 9353 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9354 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9355 if test "x$gdk_pixbuf_version_minor" != x -a \ 9356 $gdk_pixbuf_version_minor -ge 31 ; then 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9358$as_echo "OK." >&6; } 9359 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9360set dummy glib-compile-resources; ac_word=$2 9361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9362$as_echo_n "checking for $ac_word... " >&6; } 9363if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9364 $as_echo_n "(cached) " >&6 9365else 9366 case $GLIB_COMPILE_RESOURCES in 9367 [\\/]* | ?:[\\/]*) 9368 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9369 ;; 9370 *) 9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9372for as_dir in $PATH 9373do 9374 IFS=$as_save_IFS 9375 test -z "$as_dir" && as_dir=. 9376 for ac_exec_ext in '' $ac_executable_extensions; do 9377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9378 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9380 break 2 9381 fi 9382done 9383 done 9384IFS=$as_save_IFS 9385 9386 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9387 ;; 9388esac 9389fi 9390GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9391if test -n "$GLIB_COMPILE_RESOURCES"; then 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9393$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9394else 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9396$as_echo "no" >&6; } 9397fi 9398 9399 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9401$as_echo_n "checking glib-compile-resources... " >&6; } 9402 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9403 GLIB_COMPILE_RESOURCES="" 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9405$as_echo "cannot be found in PATH." >&6; } 9406 else 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9408$as_echo "usable." >&6; } 9409 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9410 9411 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9412 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9413 fi 9414 else 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9416$as_echo "not usable." >&6; } 9417 fi 9418 else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9420$as_echo "cannot obtain from pkg_config." >&6; } 9421 fi 9422 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 9424$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 9425 # Check whether --enable-icon_cache_update was given. 9426if test "${enable_icon_cache_update+set}" = set; then : 9427 enableval=$enable_icon_cache_update; 9428else 9429 enable_icon_cache_update="yes" 9430fi 9431 9432 if test "$enable_icon_cache_update" = "yes"; then 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9434$as_echo "not set" >&6; } 9435 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 9436set dummy gtk-update-icon-cache; ac_word=$2 9437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9438$as_echo_n "checking for $ac_word... " >&6; } 9439if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 case $GTK_UPDATE_ICON_CACHE in 9443 [\\/]* | ?:[\\/]*) 9444 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 9445 ;; 9446 *) 9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9448for as_dir in $PATH 9449do 9450 IFS=$as_save_IFS 9451 test -z "$as_dir" && as_dir=. 9452 for ac_exec_ext in '' $ac_executable_extensions; do 9453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9454 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9456 break 2 9457 fi 9458done 9459 done 9460IFS=$as_save_IFS 9461 9462 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 9463 ;; 9464esac 9465fi 9466GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 9467if test -n "$GTK_UPDATE_ICON_CACHE"; then 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 9469$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 9470else 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9472$as_echo "no" >&6; } 9473fi 9474 9475 9476 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9478$as_echo "not found in PATH." >&6; } 9479 fi 9480 else 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9482$as_echo "update disabled" >&6; } 9483 fi 9484 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 9486$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 9487 # Check whether --enable-desktop_database_update was given. 9488if test "${enable_desktop_database_update+set}" = set; then : 9489 enableval=$enable_desktop_database_update; 9490else 9491 enable_desktop_database_update="yes" 9492fi 9493 9494 if test "$enable_desktop_database_update" = "yes"; then 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9496$as_echo "not set" >&6; } 9497 # Extract the first word of "update-desktop-database", so it can be a program name with args. 9498set dummy update-desktop-database; ac_word=$2 9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9500$as_echo_n "checking for $ac_word... " >&6; } 9501if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 9502 $as_echo_n "(cached) " >&6 9503else 9504 case $UPDATE_DESKTOP_DATABASE in 9505 [\\/]* | ?:[\\/]*) 9506 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 9507 ;; 9508 *) 9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9510for as_dir in $PATH 9511do 9512 IFS=$as_save_IFS 9513 test -z "$as_dir" && as_dir=. 9514 for ac_exec_ext in '' $ac_executable_extensions; do 9515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9516 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 9517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9518 break 2 9519 fi 9520done 9521 done 9522IFS=$as_save_IFS 9523 9524 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 9525 ;; 9526esac 9527fi 9528UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 9529if test -n "$UPDATE_DESKTOP_DATABASE"; then 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 9531$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 9532else 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9534$as_echo "no" >&6; } 9535fi 9536 9537 9538 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9540$as_echo "not found in PATH." >&6; } 9541 fi 9542 else 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9544$as_echo "update disabled" >&6; } 9545 fi 9546fi 9547 9548 9549 9550 9551 9552 9553 9554if test -z "$SKIP_MOTIF"; then 9555 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" 9556 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 9557 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 9559$as_echo_n "checking for location of Motif GUI includes... " >&6; } 9560 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 9561 GUI_INC_LOC= 9562 for try in $gui_includes; do 9563 if test -f "$try/Xm/Xm.h"; then 9564 GUI_INC_LOC=$try 9565 fi 9566 done 9567 if test -n "$GUI_INC_LOC"; then 9568 if test "$GUI_INC_LOC" = /usr/include; then 9569 GUI_INC_LOC= 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9571$as_echo "in default path" >&6; } 9572 else 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 9574$as_echo "$GUI_INC_LOC" >&6; } 9575 fi 9576 else 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9578$as_echo "<not found>" >&6; } 9579 SKIP_MOTIF=YES 9580 fi 9581fi 9582 9583 9584if test -z "$SKIP_MOTIF"; then 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 9586$as_echo_n "checking --with-motif-lib argument... " >&6; } 9587 9588# Check whether --with-motif-lib was given. 9589if test "${with_motif_lib+set}" = set; then : 9590 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 9591fi 9592 9593 9594 if test -n "$MOTIF_LIBNAME"; then 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 9596$as_echo "$MOTIF_LIBNAME" >&6; } 9597 GUI_LIB_LOC= 9598 else 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9600$as_echo "no" >&6; } 9601 9602 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 9603 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 9605$as_echo_n "checking for location of Motif GUI libs... " >&6; } 9606 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" 9607 GUI_LIB_LOC= 9608 for try in $gui_libs; do 9609 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 9610 if test -f "$libtry"; then 9611 GUI_LIB_LOC=$try 9612 fi 9613 done 9614 done 9615 if test -n "$GUI_LIB_LOC"; then 9616 if test "$GUI_LIB_LOC" = /usr/lib \ 9617 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 9618 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 9619 GUI_LIB_LOC= 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9621$as_echo "in default path" >&6; } 9622 else 9623 if test -n "$GUI_LIB_LOC"; then 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 9625$as_echo "$GUI_LIB_LOC" >&6; } 9626 if test "`(uname) 2>/dev/null`" = SunOS && 9627 uname -r | grep '^5' >/dev/null; then 9628 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 9629 fi 9630 fi 9631 fi 9632 MOTIF_LIBNAME=-lXm 9633 else 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9635$as_echo "<not found>" >&6; } 9636 SKIP_MOTIF=YES 9637 fi 9638 fi 9639fi 9640 9641if test -z "$SKIP_MOTIF"; then 9642 SKIP_ATHENA=YES 9643 SKIP_NEXTAW=YES 9644 GUITYPE=MOTIF 9645 9646fi 9647 9648 9649GUI_X_LIBS= 9650 9651if test -z "$SKIP_ATHENA"; then 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 9653$as_echo_n "checking if Athena header files can be found... " >&6; } 9654 cflags_save=$CFLAGS 9655 CFLAGS="$CFLAGS $X_CFLAGS" 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658 9659#include <X11/Intrinsic.h> 9660#include <X11/Xaw/Paned.h> 9661int 9662main () 9663{ 9664 9665 ; 9666 return 0; 9667} 9668_ACEOF 9669if ac_fn_c_try_compile "$LINENO"; then : 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9671$as_echo "yes" >&6; } 9672else 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9674$as_echo "no" >&6; }; SKIP_ATHENA=YES 9675fi 9676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9677 CFLAGS=$cflags_save 9678fi 9679 9680if test -z "$SKIP_ATHENA"; then 9681 GUITYPE=ATHENA 9682fi 9683 9684if test -z "$SKIP_NEXTAW"; then 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 9686$as_echo_n "checking if neXtaw header files can be found... " >&6; } 9687 cflags_save=$CFLAGS 9688 CFLAGS="$CFLAGS $X_CFLAGS" 9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9690/* end confdefs.h. */ 9691 9692#include <X11/Intrinsic.h> 9693#include <X11/neXtaw/Paned.h> 9694int 9695main () 9696{ 9697 9698 ; 9699 return 0; 9700} 9701_ACEOF 9702if ac_fn_c_try_compile "$LINENO"; then : 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9704$as_echo "yes" >&6; } 9705else 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9707$as_echo "no" >&6; }; SKIP_NEXTAW=YES 9708fi 9709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9710 CFLAGS=$cflags_save 9711fi 9712 9713if test -z "$SKIP_NEXTAW"; then 9714 GUITYPE=NEXTAW 9715fi 9716 9717if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9718 if test -n "$GUI_INC_LOC"; then 9719 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9720 fi 9721 if test -n "$GUI_LIB_LOC"; then 9722 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9723 fi 9724 9725 ldflags_save=$LDFLAGS 9726 LDFLAGS="$X_LIBS $LDFLAGS" 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 9728$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 9729if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 9730 $as_echo_n "(cached) " >&6 9731else 9732 ac_check_lib_save_LIBS=$LIBS 9733LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9735/* end confdefs.h. */ 9736 9737/* Override any GCC internal prototype to avoid an error. 9738 Use char because int might match the return type of a GCC 9739 builtin and then its argument prototype would still apply. */ 9740#ifdef __cplusplus 9741extern "C" 9742#endif 9743char XShapeQueryExtension (); 9744int 9745main () 9746{ 9747return XShapeQueryExtension (); 9748 ; 9749 return 0; 9750} 9751_ACEOF 9752if ac_fn_c_try_link "$LINENO"; then : 9753 ac_cv_lib_Xext_XShapeQueryExtension=yes 9754else 9755 ac_cv_lib_Xext_XShapeQueryExtension=no 9756fi 9757rm -f core conftest.err conftest.$ac_objext \ 9758 conftest$ac_exeext conftest.$ac_ext 9759LIBS=$ac_check_lib_save_LIBS 9760fi 9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9762$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 9763if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 9764 GUI_X_LIBS="-lXext" 9765fi 9766 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 9768$as_echo_n "checking for wslen in -lw... " >&6; } 9769if ${ac_cv_lib_w_wslen+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771else 9772 ac_check_lib_save_LIBS=$LIBS 9773LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776 9777/* Override any GCC internal prototype to avoid an error. 9778 Use char because int might match the return type of a GCC 9779 builtin and then its argument prototype would still apply. */ 9780#ifdef __cplusplus 9781extern "C" 9782#endif 9783char wslen (); 9784int 9785main () 9786{ 9787return wslen (); 9788 ; 9789 return 0; 9790} 9791_ACEOF 9792if ac_fn_c_try_link "$LINENO"; then : 9793 ac_cv_lib_w_wslen=yes 9794else 9795 ac_cv_lib_w_wslen=no 9796fi 9797rm -f core conftest.err conftest.$ac_objext \ 9798 conftest$ac_exeext conftest.$ac_ext 9799LIBS=$ac_check_lib_save_LIBS 9800fi 9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 9802$as_echo "$ac_cv_lib_w_wslen" >&6; } 9803if test "x$ac_cv_lib_w_wslen" = xyes; then : 9804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9805fi 9806 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 9808$as_echo_n "checking for dlsym in -ldl... " >&6; } 9809if ${ac_cv_lib_dl_dlsym+:} false; then : 9810 $as_echo_n "(cached) " >&6 9811else 9812 ac_check_lib_save_LIBS=$LIBS 9813LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9815/* end confdefs.h. */ 9816 9817/* Override any GCC internal prototype to avoid an error. 9818 Use char because int might match the return type of a GCC 9819 builtin and then its argument prototype would still apply. */ 9820#ifdef __cplusplus 9821extern "C" 9822#endif 9823char dlsym (); 9824int 9825main () 9826{ 9827return dlsym (); 9828 ; 9829 return 0; 9830} 9831_ACEOF 9832if ac_fn_c_try_link "$LINENO"; then : 9833 ac_cv_lib_dl_dlsym=yes 9834else 9835 ac_cv_lib_dl_dlsym=no 9836fi 9837rm -f core conftest.err conftest.$ac_objext \ 9838 conftest$ac_exeext conftest.$ac_ext 9839LIBS=$ac_check_lib_save_LIBS 9840fi 9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 9842$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 9843if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 9844 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9845fi 9846 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 9848$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 9849if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 9850 $as_echo_n "(cached) " >&6 9851else 9852 ac_check_lib_save_LIBS=$LIBS 9853LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9855/* end confdefs.h. */ 9856 9857/* Override any GCC internal prototype to avoid an error. 9858 Use char because int might match the return type of a GCC 9859 builtin and then its argument prototype would still apply. */ 9860#ifdef __cplusplus 9861extern "C" 9862#endif 9863char XmuCreateStippledPixmap (); 9864int 9865main () 9866{ 9867return XmuCreateStippledPixmap (); 9868 ; 9869 return 0; 9870} 9871_ACEOF 9872if ac_fn_c_try_link "$LINENO"; then : 9873 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 9874else 9875 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 9876fi 9877rm -f core conftest.err conftest.$ac_objext \ 9878 conftest$ac_exeext conftest.$ac_ext 9879LIBS=$ac_check_lib_save_LIBS 9880fi 9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 9882$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 9883if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 9884 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 9885fi 9886 9887 if test -z "$SKIP_MOTIF"; then 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 9889$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 9890if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 9891 $as_echo_n "(cached) " >&6 9892else 9893 ac_check_lib_save_LIBS=$LIBS 9894LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896/* end confdefs.h. */ 9897 9898/* Override any GCC internal prototype to avoid an error. 9899 Use char because int might match the return type of a GCC 9900 builtin and then its argument prototype would still apply. */ 9901#ifdef __cplusplus 9902extern "C" 9903#endif 9904char XpEndJob (); 9905int 9906main () 9907{ 9908return XpEndJob (); 9909 ; 9910 return 0; 9911} 9912_ACEOF 9913if ac_fn_c_try_link "$LINENO"; then : 9914 ac_cv_lib_Xp_XpEndJob=yes 9915else 9916 ac_cv_lib_Xp_XpEndJob=no 9917fi 9918rm -f core conftest.err conftest.$ac_objext \ 9919 conftest$ac_exeext conftest.$ac_ext 9920LIBS=$ac_check_lib_save_LIBS 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 9923$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 9924if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 9925 GUI_X_LIBS="-lXp $GUI_X_LIBS" 9926fi 9927 9928 fi 9929 LDFLAGS=$ldflags_save 9930 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 9932$as_echo_n "checking for extra X11 defines... " >&6; } 9933 NARROW_PROTO= 9934 rm -fr conftestdir 9935 if mkdir conftestdir; then 9936 cd conftestdir 9937 cat > Imakefile <<'EOF' 9938acfindx: 9939 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 9940EOF 9941 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9942 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9943 fi 9944 cd .. 9945 rm -fr conftestdir 9946 fi 9947 if test -z "$NARROW_PROTO"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9949$as_echo "no" >&6; } 9950 else 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 9952$as_echo "$NARROW_PROTO" >&6; } 9953 fi 9954 9955fi 9956 9957if test "$enable_xsmp" = "yes"; then 9958 cppflags_save=$CPPFLAGS 9959 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9960 for ac_header in X11/SM/SMlib.h 9961do : 9962 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 9963if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 9964 cat >>confdefs.h <<_ACEOF 9965#define HAVE_X11_SM_SMLIB_H 1 9966_ACEOF 9967 9968fi 9969 9970done 9971 9972 CPPFLAGS=$cppflags_save 9973fi 9974 9975 9976if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 9977 cppflags_save=$CPPFLAGS 9978 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9979 for ac_header in X11/xpm.h X11/Sunkeysym.h 9980do : 9981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9982ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9983if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9984 cat >>confdefs.h <<_ACEOF 9985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9986_ACEOF 9987 9988fi 9989 9990done 9991 9992 9993 if test ! "$enable_xim" = "no"; then 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 9995$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9997/* end confdefs.h. */ 9998#include <X11/Xlib.h> 9999_ACEOF 10000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10001 $EGREP "XIMText" >/dev/null 2>&1; then : 10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10003$as_echo "yes" >&6; } 10004else 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 10006$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 10007fi 10008rm -f conftest* 10009 10010 fi 10011 CPPFLAGS=$cppflags_save 10012 10013 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 10014 -a "x$GUITYPE" != "xNONE" ; then 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 10016$as_echo "X GUI selected; xim has been enabled" >&6; } 10017 enable_xim="yes" 10018 fi 10019fi 10020 10021if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 10022 cppflags_save=$CPPFLAGS 10023 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 10025$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10027/* end confdefs.h. */ 10028 10029#include <X11/Intrinsic.h> 10030#include <X11/Xmu/Editres.h> 10031int 10032main () 10033{ 10034int i; i = 0; 10035 ; 10036 return 0; 10037} 10038_ACEOF 10039if ac_fn_c_try_compile "$LINENO"; then : 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10041$as_echo "yes" >&6; } 10042 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10043 10044else 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10046$as_echo "no" >&6; } 10047fi 10048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10049 CPPFLAGS=$cppflags_save 10050fi 10051 10052if test -z "$SKIP_MOTIF"; then 10053 cppflags_save=$CPPFLAGS 10054 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10055 if test "$zOSUnix" = "yes"; then 10056 xmheader="Xm/Xm.h" 10057 else 10058 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10059 Xm/UnhighlightT.h Xm/Notebook.h" 10060 fi 10061 for ac_header in $xmheader 10062do : 10063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10064ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10066 cat >>confdefs.h <<_ACEOF 10067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10068_ACEOF 10069 10070fi 10071 10072done 10073 10074 10075 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10077$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10079/* end confdefs.h. */ 10080#include <Xm/XpmP.h> 10081int 10082main () 10083{ 10084XpmAttributes_21 attr; 10085 ; 10086 return 0; 10087} 10088_ACEOF 10089if ac_fn_c_try_compile "$LINENO"; then : 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10091$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10092 10093else 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10095$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10096 10097 10098fi 10099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10100 else 10101 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10102 10103 fi 10104 CPPFLAGS=$cppflags_save 10105fi 10106 10107if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10109$as_echo "no GUI selected; xim has been disabled" >&6; } 10110 enable_xim="no" 10111fi 10112if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10114$as_echo "no GUI selected; fontset has been disabled" >&6; } 10115 enable_fontset="no" 10116fi 10117if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10119$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10120 enable_fontset="no" 10121fi 10122 10123if test -z "$SKIP_PHOTON"; then 10124 GUITYPE=PHOTONGUI 10125fi 10126 10127 10128 10129 10130 10131 10132if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10133 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10134fi 10135 10136if test "$enable_xim" = "yes"; then 10137 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10138 10139fi 10140if test "$enable_fontset" = "yes"; then 10141 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10142 10143fi 10144 10145 10146 10147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10148$as_echo_n "checking for /proc link to executable... " >&6; } 10149if test -L "/proc/self/exe"; then 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10151$as_echo "/proc/self/exe" >&6; } 10152 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10153 10154elif test -L "/proc/self/path/a.out"; then 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10156$as_echo "/proc/self/path/a.out" >&6; } 10157 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10158 10159elif test -L "/proc/curproc/file"; then 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10161$as_echo "/proc/curproc/file" >&6; } 10162 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10163 10164else 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10166$as_echo "no" >&6; } 10167fi 10168 10169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10170$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10171case `uname` in 10172 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10173$as_echo "yes" >&6; } 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10175$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10176 if test "x$with_x" = "xno" ; then 10177 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10179$as_echo "yes" >&6; } 10180 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10181 10182 else 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10184$as_echo "no - using X11" >&6; } 10185 fi ;; 10186 10187 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10188$as_echo "no" >&6; };; 10189esac 10190 10191if test "$enable_hangulinput" = "yes"; then 10192 if test "x$GUITYPE" = "xNONE"; then 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 10194$as_echo "no GUI selected; hangul input has been disabled" >&6; } 10195 enable_hangulinput=no 10196 else 10197 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 10198 10199 HANGULIN_SRC=hangulin.c 10200 10201 HANGULIN_OBJ=objects/hangulin.o 10202 10203 fi 10204fi 10205 10206 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10208$as_echo_n "checking whether toupper is broken... " >&6; } 10209if ${vim_cv_toupper_broken+:} false; then : 10210 $as_echo_n "(cached) " >&6 10211else 10212 10213 if test "$cross_compiling" = yes; then : 10214 10215 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10216 10217else 10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10219/* end confdefs.h. */ 10220 10221#include "confdefs.h" 10222#include <ctype.h> 10223#if STDC_HEADERS 10224# include <stdlib.h> 10225# include <stddef.h> 10226#endif 10227main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10228 10229_ACEOF 10230if ac_fn_c_try_run "$LINENO"; then : 10231 10232 vim_cv_toupper_broken=yes 10233 10234else 10235 10236 vim_cv_toupper_broken=no 10237 10238fi 10239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10240 conftest.$ac_objext conftest.beam conftest.$ac_ext 10241fi 10242 10243fi 10244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10245$as_echo "$vim_cv_toupper_broken" >&6; } 10246 10247if test "x$vim_cv_toupper_broken" = "xyes" ; then 10248 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10249 10250fi 10251 10252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10253$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10255/* end confdefs.h. */ 10256#include <stdio.h> 10257int 10258main () 10259{ 10260printf("(" __DATE__ " " __TIME__ ")"); 10261 ; 10262 return 0; 10263} 10264_ACEOF 10265if ac_fn_c_try_compile "$LINENO"; then : 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10267$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10268 10269else 10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10271$as_echo "no" >&6; } 10272fi 10273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10274 10275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10276$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10278/* end confdefs.h. */ 10279#include <stdio.h> 10280int 10281main () 10282{ 10283int x __attribute__((unused)); 10284 ; 10285 return 0; 10286} 10287_ACEOF 10288if ac_fn_c_try_compile "$LINENO"; then : 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10290$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10291 10292else 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10294$as_echo "no" >&6; } 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10297 10298ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10299if test "x$ac_cv_header_elf_h" = xyes; then : 10300 HAS_ELF=1 10301fi 10302 10303 10304if test "$HAS_ELF" = 1; then 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10306$as_echo_n "checking for main in -lelf... " >&6; } 10307if ${ac_cv_lib_elf_main+:} false; then : 10308 $as_echo_n "(cached) " >&6 10309else 10310 ac_check_lib_save_LIBS=$LIBS 10311LIBS="-lelf $LIBS" 10312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313/* end confdefs.h. */ 10314 10315 10316int 10317main () 10318{ 10319return main (); 10320 ; 10321 return 0; 10322} 10323_ACEOF 10324if ac_fn_c_try_link "$LINENO"; then : 10325 ac_cv_lib_elf_main=yes 10326else 10327 ac_cv_lib_elf_main=no 10328fi 10329rm -f core conftest.err conftest.$ac_objext \ 10330 conftest$ac_exeext conftest.$ac_ext 10331LIBS=$ac_check_lib_save_LIBS 10332fi 10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10334$as_echo "$ac_cv_lib_elf_main" >&6; } 10335if test "x$ac_cv_lib_elf_main" = xyes; then : 10336 cat >>confdefs.h <<_ACEOF 10337#define HAVE_LIBELF 1 10338_ACEOF 10339 10340 LIBS="-lelf $LIBS" 10341 10342fi 10343 10344fi 10345 10346ac_header_dirent=no 10347for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10348 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10350$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10351if eval \${$as_ac_Header+:} false; then : 10352 $as_echo_n "(cached) " >&6 10353else 10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10355/* end confdefs.h. */ 10356#include <sys/types.h> 10357#include <$ac_hdr> 10358 10359int 10360main () 10361{ 10362if ((DIR *) 0) 10363return 0; 10364 ; 10365 return 0; 10366} 10367_ACEOF 10368if ac_fn_c_try_compile "$LINENO"; then : 10369 eval "$as_ac_Header=yes" 10370else 10371 eval "$as_ac_Header=no" 10372fi 10373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10374fi 10375eval ac_res=\$$as_ac_Header 10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10377$as_echo "$ac_res" >&6; } 10378if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10379 cat >>confdefs.h <<_ACEOF 10380#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10381_ACEOF 10382 10383ac_header_dirent=$ac_hdr; break 10384fi 10385 10386done 10387# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10388if test $ac_header_dirent = dirent.h; then 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10390$as_echo_n "checking for library containing opendir... " >&6; } 10391if ${ac_cv_search_opendir+:} false; then : 10392 $as_echo_n "(cached) " >&6 10393else 10394 ac_func_search_save_LIBS=$LIBS 10395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397 10398/* Override any GCC internal prototype to avoid an error. 10399 Use char because int might match the return type of a GCC 10400 builtin and then its argument prototype would still apply. */ 10401#ifdef __cplusplus 10402extern "C" 10403#endif 10404char opendir (); 10405int 10406main () 10407{ 10408return opendir (); 10409 ; 10410 return 0; 10411} 10412_ACEOF 10413for ac_lib in '' dir; do 10414 if test -z "$ac_lib"; then 10415 ac_res="none required" 10416 else 10417 ac_res=-l$ac_lib 10418 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10419 fi 10420 if ac_fn_c_try_link "$LINENO"; then : 10421 ac_cv_search_opendir=$ac_res 10422fi 10423rm -f core conftest.err conftest.$ac_objext \ 10424 conftest$ac_exeext 10425 if ${ac_cv_search_opendir+:} false; then : 10426 break 10427fi 10428done 10429if ${ac_cv_search_opendir+:} false; then : 10430 10431else 10432 ac_cv_search_opendir=no 10433fi 10434rm conftest.$ac_ext 10435LIBS=$ac_func_search_save_LIBS 10436fi 10437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10438$as_echo "$ac_cv_search_opendir" >&6; } 10439ac_res=$ac_cv_search_opendir 10440if test "$ac_res" != no; then : 10441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10442 10443fi 10444 10445else 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10447$as_echo_n "checking for library containing opendir... " >&6; } 10448if ${ac_cv_search_opendir+:} false; then : 10449 $as_echo_n "(cached) " >&6 10450else 10451 ac_func_search_save_LIBS=$LIBS 10452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10453/* end confdefs.h. */ 10454 10455/* Override any GCC internal prototype to avoid an error. 10456 Use char because int might match the return type of a GCC 10457 builtin and then its argument prototype would still apply. */ 10458#ifdef __cplusplus 10459extern "C" 10460#endif 10461char opendir (); 10462int 10463main () 10464{ 10465return opendir (); 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470for ac_lib in '' x; do 10471 if test -z "$ac_lib"; then 10472 ac_res="none required" 10473 else 10474 ac_res=-l$ac_lib 10475 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10476 fi 10477 if ac_fn_c_try_link "$LINENO"; then : 10478 ac_cv_search_opendir=$ac_res 10479fi 10480rm -f core conftest.err conftest.$ac_objext \ 10481 conftest$ac_exeext 10482 if ${ac_cv_search_opendir+:} false; then : 10483 break 10484fi 10485done 10486if ${ac_cv_search_opendir+:} false; then : 10487 10488else 10489 ac_cv_search_opendir=no 10490fi 10491rm conftest.$ac_ext 10492LIBS=$ac_func_search_save_LIBS 10493fi 10494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10495$as_echo "$ac_cv_search_opendir" >&6; } 10496ac_res=$ac_cv_search_opendir 10497if test "$ac_res" != no; then : 10498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10499 10500fi 10501 10502fi 10503 10504 10505if test $ac_cv_header_sys_wait_h = no; then 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 10507$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10509/* end confdefs.h. */ 10510#include <sys/wait.h> 10511int 10512main () 10513{ 10514union wait xx, yy; xx = yy 10515 ; 10516 return 0; 10517} 10518_ACEOF 10519if ac_fn_c_try_compile "$LINENO"; then : 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10521$as_echo "yes" >&6; } 10522 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10523 10524 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 10525 10526else 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10528$as_echo "no" >&6; } 10529fi 10530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10531fi 10532 10533for ac_header in stdint.h stdlib.h string.h \ 10534 sys/select.h sys/utsname.h termcap.h fcntl.h \ 10535 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 10536 termio.h iconv.h inttypes.h langinfo.h math.h \ 10537 unistd.h stropts.h errno.h sys/resource.h \ 10538 sys/systeminfo.h locale.h sys/stream.h termios.h \ 10539 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 10540 utime.h sys/param.h libintl.h libgen.h \ 10541 util/debug.h util/msg18n.h frame.h sys/acl.h \ 10542 sys/access.h sys/sysinfo.h wchar.h wctype.h 10543do : 10544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10545ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10547 cat >>confdefs.h <<_ACEOF 10548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10549_ACEOF 10550 10551fi 10552 10553done 10554 10555 10556for ac_header in sys/ptem.h 10557do : 10558 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 10559# include <sys/stream.h> 10560#endif 10561" 10562if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 10563 cat >>confdefs.h <<_ACEOF 10564#define HAVE_SYS_PTEM_H 1 10565_ACEOF 10566 10567fi 10568 10569done 10570 10571 10572for ac_header in sys/sysctl.h 10573do : 10574 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 10575# include <sys/param.h> 10576#endif 10577" 10578if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 10579 cat >>confdefs.h <<_ACEOF 10580#define HAVE_SYS_SYSCTL_H 1 10581_ACEOF 10582 10583fi 10584 10585done 10586 10587 10588 10589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 10590$as_echo_n "checking for pthread_np.h... " >&6; } 10591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10592/* end confdefs.h. */ 10593 10594#include <pthread.h> 10595#include <pthread_np.h> 10596int 10597main () 10598{ 10599int i; i = 0; 10600 ; 10601 return 0; 10602} 10603_ACEOF 10604if ac_fn_c_try_compile "$LINENO"; then : 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10606$as_echo "yes" >&6; } 10607 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 10608 10609else 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10611$as_echo "no" >&6; } 10612fi 10613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10614 10615for ac_header in strings.h 10616do : 10617 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 10618if test "x$ac_cv_header_strings_h" = xyes; then : 10619 cat >>confdefs.h <<_ACEOF 10620#define HAVE_STRINGS_H 1 10621_ACEOF 10622 10623fi 10624 10625done 10626 10627if test "x$MACOSX" = "xyes"; then 10628 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10629 10630else 10631 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 10633$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 10634cppflags_save=$CPPFLAGS 10635CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10637/* end confdefs.h. */ 10638 10639#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 10640# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 10641 /* but don't do it on AIX 5.1 (Uribarri) */ 10642#endif 10643#ifdef HAVE_XM_XM_H 10644# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 10645#endif 10646#ifdef HAVE_STRING_H 10647# include <string.h> 10648#endif 10649#if defined(HAVE_STRINGS_H) 10650# include <strings.h> 10651#endif 10652 10653int 10654main () 10655{ 10656int i; i = 0; 10657 ; 10658 return 0; 10659} 10660_ACEOF 10661if ac_fn_c_try_compile "$LINENO"; then : 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10663$as_echo "yes" >&6; } 10664else 10665 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10666 10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10668$as_echo "no" >&6; } 10669fi 10670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10671CPPFLAGS=$cppflags_save 10672fi 10673 10674if test $ac_cv_c_compiler_gnu = yes; then 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 10676$as_echo_n "checking whether $CC needs -traditional... " >&6; } 10677if ${ac_cv_prog_gcc_traditional+:} false; then : 10678 $as_echo_n "(cached) " >&6 10679else 10680 ac_pattern="Autoconf.*'x'" 10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10682/* end confdefs.h. */ 10683#include <sgtty.h> 10684Autoconf TIOCGETP 10685_ACEOF 10686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10687 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10688 ac_cv_prog_gcc_traditional=yes 10689else 10690 ac_cv_prog_gcc_traditional=no 10691fi 10692rm -f conftest* 10693 10694 10695 if test $ac_cv_prog_gcc_traditional = no; then 10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10697/* end confdefs.h. */ 10698#include <termio.h> 10699Autoconf TCGETA 10700_ACEOF 10701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10702 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10703 ac_cv_prog_gcc_traditional=yes 10704fi 10705rm -f conftest* 10706 10707 fi 10708fi 10709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 10710$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 10711 if test $ac_cv_prog_gcc_traditional = yes; then 10712 CC="$CC -traditional" 10713 fi 10714fi 10715 10716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10717$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10718if ${ac_cv_c_const+:} false; then : 10719 $as_echo_n "(cached) " >&6 10720else 10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10722/* end confdefs.h. */ 10723 10724int 10725main () 10726{ 10727 10728#ifndef __cplusplus 10729 /* Ultrix mips cc rejects this sort of thing. */ 10730 typedef int charset[2]; 10731 const charset cs = { 0, 0 }; 10732 /* SunOS 4.1.1 cc rejects this. */ 10733 char const *const *pcpcc; 10734 char **ppc; 10735 /* NEC SVR4.0.2 mips cc rejects this. */ 10736 struct point {int x, y;}; 10737 static struct point const zero = {0,0}; 10738 /* AIX XL C 1.02.0.0 rejects this. 10739 It does not let you subtract one const X* pointer from another in 10740 an arm of an if-expression whose if-part is not a constant 10741 expression */ 10742 const char *g = "string"; 10743 pcpcc = &g + (g ? g-g : 0); 10744 /* HPUX 7.0 cc rejects these. */ 10745 ++pcpcc; 10746 ppc = (char**) pcpcc; 10747 pcpcc = (char const *const *) ppc; 10748 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10749 char tx; 10750 char *t = &tx; 10751 char const *s = 0 ? (char *) 0 : (char const *) 0; 10752 10753 *t++ = 0; 10754 if (s) return 0; 10755 } 10756 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10757 int x[] = {25, 17}; 10758 const int *foo = &x[0]; 10759 ++foo; 10760 } 10761 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10762 typedef const int *iptr; 10763 iptr p = 0; 10764 ++p; 10765 } 10766 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10767 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10768 struct s { int j; const int *ap[3]; } bx; 10769 struct s *b = &bx; b->j = 5; 10770 } 10771 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10772 const int foo = 10; 10773 if (!foo) return 0; 10774 } 10775 return !cs[0] && !zero.x; 10776#endif 10777 10778 ; 10779 return 0; 10780} 10781_ACEOF 10782if ac_fn_c_try_compile "$LINENO"; then : 10783 ac_cv_c_const=yes 10784else 10785 ac_cv_c_const=no 10786fi 10787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10788fi 10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10790$as_echo "$ac_cv_c_const" >&6; } 10791if test $ac_cv_c_const = no; then 10792 10793$as_echo "#define const /**/" >>confdefs.h 10794 10795fi 10796 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 10798$as_echo_n "checking for working volatile... " >&6; } 10799if ${ac_cv_c_volatile+:} false; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10803/* end confdefs.h. */ 10804 10805int 10806main () 10807{ 10808 10809volatile int x; 10810int * volatile y = (int *) 0; 10811return !x && !y; 10812 ; 10813 return 0; 10814} 10815_ACEOF 10816if ac_fn_c_try_compile "$LINENO"; then : 10817 ac_cv_c_volatile=yes 10818else 10819 ac_cv_c_volatile=no 10820fi 10821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10822fi 10823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 10824$as_echo "$ac_cv_c_volatile" >&6; } 10825if test $ac_cv_c_volatile = no; then 10826 10827$as_echo "#define volatile /**/" >>confdefs.h 10828 10829fi 10830 10831ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10832if test "x$ac_cv_type_mode_t" = xyes; then : 10833 10834else 10835 10836cat >>confdefs.h <<_ACEOF 10837#define mode_t int 10838_ACEOF 10839 10840fi 10841 10842ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10843if test "x$ac_cv_type_off_t" = xyes; then : 10844 10845else 10846 10847cat >>confdefs.h <<_ACEOF 10848#define off_t long int 10849_ACEOF 10850 10851fi 10852 10853ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10854if test "x$ac_cv_type_pid_t" = xyes; then : 10855 10856else 10857 10858cat >>confdefs.h <<_ACEOF 10859#define pid_t int 10860_ACEOF 10861 10862fi 10863 10864ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10865if test "x$ac_cv_type_size_t" = xyes; then : 10866 10867else 10868 10869cat >>confdefs.h <<_ACEOF 10870#define size_t unsigned int 10871_ACEOF 10872 10873fi 10874 10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10876$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10877if ${ac_cv_type_uid_t+:} false; then : 10878 $as_echo_n "(cached) " >&6 10879else 10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10881/* end confdefs.h. */ 10882#include <sys/types.h> 10883 10884_ACEOF 10885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10886 $EGREP "uid_t" >/dev/null 2>&1; then : 10887 ac_cv_type_uid_t=yes 10888else 10889 ac_cv_type_uid_t=no 10890fi 10891rm -f conftest* 10892 10893fi 10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10895$as_echo "$ac_cv_type_uid_t" >&6; } 10896if test $ac_cv_type_uid_t = no; then 10897 10898$as_echo "#define uid_t int" >>confdefs.h 10899 10900 10901$as_echo "#define gid_t int" >>confdefs.h 10902 10903fi 10904 10905ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 10906case $ac_cv_c_uint32_t in #( 10907 no|yes) ;; #( 10908 *) 10909 10910$as_echo "#define _UINT32_T 1" >>confdefs.h 10911 10912 10913cat >>confdefs.h <<_ACEOF 10914#define uint32_t $ac_cv_c_uint32_t 10915_ACEOF 10916;; 10917 esac 10918 10919 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 10921$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 10922if ${ac_cv_header_time+:} false; then : 10923 $as_echo_n "(cached) " >&6 10924else 10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10926/* end confdefs.h. */ 10927#include <sys/types.h> 10928#include <sys/time.h> 10929#include <time.h> 10930 10931int 10932main () 10933{ 10934if ((struct tm *) 0) 10935return 0; 10936 ; 10937 return 0; 10938} 10939_ACEOF 10940if ac_fn_c_try_compile "$LINENO"; then : 10941 ac_cv_header_time=yes 10942else 10943 ac_cv_header_time=no 10944fi 10945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10946fi 10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 10948$as_echo "$ac_cv_header_time" >&6; } 10949if test $ac_cv_header_time = yes; then 10950 10951$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 10952 10953fi 10954 10955ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 10956if test "x$ac_cv_type_ino_t" = xyes; then : 10957 10958else 10959 10960cat >>confdefs.h <<_ACEOF 10961#define ino_t long 10962_ACEOF 10963 10964fi 10965 10966ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 10967if test "x$ac_cv_type_dev_t" = xyes; then : 10968 10969else 10970 10971cat >>confdefs.h <<_ACEOF 10972#define dev_t unsigned 10973_ACEOF 10974 10975fi 10976 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10978$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10979if ${ac_cv_c_bigendian+:} false; then : 10980 $as_echo_n "(cached) " >&6 10981else 10982 ac_cv_c_bigendian=unknown 10983 # See if we're dealing with a universal compiler. 10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10985/* end confdefs.h. */ 10986#ifndef __APPLE_CC__ 10987 not a universal capable compiler 10988 #endif 10989 typedef int dummy; 10990 10991_ACEOF 10992if ac_fn_c_try_compile "$LINENO"; then : 10993 10994 # Check for potential -arch flags. It is not universal unless 10995 # there are at least two -arch flags with different values. 10996 ac_arch= 10997 ac_prev= 10998 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10999 if test -n "$ac_prev"; then 11000 case $ac_word in 11001 i?86 | x86_64 | ppc | ppc64) 11002 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11003 ac_arch=$ac_word 11004 else 11005 ac_cv_c_bigendian=universal 11006 break 11007 fi 11008 ;; 11009 esac 11010 ac_prev= 11011 elif test "x$ac_word" = "x-arch"; then 11012 ac_prev=arch 11013 fi 11014 done 11015fi 11016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11017 if test $ac_cv_c_bigendian = unknown; then 11018 # See if sys/param.h defines the BYTE_ORDER macro. 11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11020/* end confdefs.h. */ 11021#include <sys/types.h> 11022 #include <sys/param.h> 11023 11024int 11025main () 11026{ 11027#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11028 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11029 && LITTLE_ENDIAN) 11030 bogus endian macros 11031 #endif 11032 11033 ; 11034 return 0; 11035} 11036_ACEOF 11037if ac_fn_c_try_compile "$LINENO"; then : 11038 # It does; now see whether it defined to BIG_ENDIAN or not. 11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041#include <sys/types.h> 11042 #include <sys/param.h> 11043 11044int 11045main () 11046{ 11047#if BYTE_ORDER != BIG_ENDIAN 11048 not big endian 11049 #endif 11050 11051 ; 11052 return 0; 11053} 11054_ACEOF 11055if ac_fn_c_try_compile "$LINENO"; then : 11056 ac_cv_c_bigendian=yes 11057else 11058 ac_cv_c_bigendian=no 11059fi 11060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11061fi 11062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11063 fi 11064 if test $ac_cv_c_bigendian = unknown; then 11065 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11067/* end confdefs.h. */ 11068#include <limits.h> 11069 11070int 11071main () 11072{ 11073#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11074 bogus endian macros 11075 #endif 11076 11077 ; 11078 return 0; 11079} 11080_ACEOF 11081if ac_fn_c_try_compile "$LINENO"; then : 11082 # It does; now see whether it defined to _BIG_ENDIAN or not. 11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11084/* end confdefs.h. */ 11085#include <limits.h> 11086 11087int 11088main () 11089{ 11090#ifndef _BIG_ENDIAN 11091 not big endian 11092 #endif 11093 11094 ; 11095 return 0; 11096} 11097_ACEOF 11098if ac_fn_c_try_compile "$LINENO"; then : 11099 ac_cv_c_bigendian=yes 11100else 11101 ac_cv_c_bigendian=no 11102fi 11103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11104fi 11105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11106 fi 11107 if test $ac_cv_c_bigendian = unknown; then 11108 # Compile a test program. 11109 if test "$cross_compiling" = yes; then : 11110 # Try to guess by grepping values from an object file. 11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11112/* end confdefs.h. */ 11113short int ascii_mm[] = 11114 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11115 short int ascii_ii[] = 11116 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11117 int use_ascii (int i) { 11118 return ascii_mm[i] + ascii_ii[i]; 11119 } 11120 short int ebcdic_ii[] = 11121 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11122 short int ebcdic_mm[] = 11123 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11124 int use_ebcdic (int i) { 11125 return ebcdic_mm[i] + ebcdic_ii[i]; 11126 } 11127 extern int foo; 11128 11129int 11130main () 11131{ 11132return use_ascii (foo) == use_ebcdic (foo); 11133 ; 11134 return 0; 11135} 11136_ACEOF 11137if ac_fn_c_try_compile "$LINENO"; then : 11138 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11139 ac_cv_c_bigendian=yes 11140 fi 11141 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11142 if test "$ac_cv_c_bigendian" = unknown; then 11143 ac_cv_c_bigendian=no 11144 else 11145 # finding both strings is unlikely to happen, but who knows? 11146 ac_cv_c_bigendian=unknown 11147 fi 11148 fi 11149fi 11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11151else 11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11153/* end confdefs.h. */ 11154$ac_includes_default 11155int 11156main () 11157{ 11158 11159 /* Are we little or big endian? From Harbison&Steele. */ 11160 union 11161 { 11162 long int l; 11163 char c[sizeof (long int)]; 11164 } u; 11165 u.l = 1; 11166 return u.c[sizeof (long int) - 1] == 1; 11167 11168 ; 11169 return 0; 11170} 11171_ACEOF 11172if ac_fn_c_try_run "$LINENO"; then : 11173 ac_cv_c_bigendian=no 11174else 11175 ac_cv_c_bigendian=yes 11176fi 11177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11178 conftest.$ac_objext conftest.beam conftest.$ac_ext 11179fi 11180 11181 fi 11182fi 11183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11184$as_echo "$ac_cv_c_bigendian" >&6; } 11185 case $ac_cv_c_bigendian in #( 11186 yes) 11187 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11188;; #( 11189 no) 11190 ;; #( 11191 universal) 11192 11193$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11194 11195 ;; #( 11196 *) 11197 as_fn_error $? "unknown endianness 11198 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11199 esac 11200 11201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11202$as_echo_n "checking for inline... " >&6; } 11203if ${ac_cv_c_inline+:} false; then : 11204 $as_echo_n "(cached) " >&6 11205else 11206 ac_cv_c_inline=no 11207for ac_kw in inline __inline__ __inline; do 11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11209/* end confdefs.h. */ 11210#ifndef __cplusplus 11211typedef int foo_t; 11212static $ac_kw foo_t static_foo () {return 0; } 11213$ac_kw foo_t foo () {return 0; } 11214#endif 11215 11216_ACEOF 11217if ac_fn_c_try_compile "$LINENO"; then : 11218 ac_cv_c_inline=$ac_kw 11219fi 11220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11221 test "$ac_cv_c_inline" != no && break 11222done 11223 11224fi 11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11226$as_echo "$ac_cv_c_inline" >&6; } 11227 11228case $ac_cv_c_inline in 11229 inline | yes) ;; 11230 *) 11231 case $ac_cv_c_inline in 11232 no) ac_val=;; 11233 *) ac_val=$ac_cv_c_inline;; 11234 esac 11235 cat >>confdefs.h <<_ACEOF 11236#ifndef __cplusplus 11237#define inline $ac_val 11238#endif 11239_ACEOF 11240 ;; 11241esac 11242 11243 11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11245$as_echo_n "checking for rlim_t... " >&6; } 11246if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11248$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11249else 11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11251/* end confdefs.h. */ 11252 11253#include <sys/types.h> 11254#if STDC_HEADERS 11255# include <stdlib.h> 11256# include <stddef.h> 11257#endif 11258#ifdef HAVE_SYS_RESOURCE_H 11259# include <sys/resource.h> 11260#endif 11261 11262_ACEOF 11263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11264 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11265 ac_cv_type_rlim_t=yes 11266else 11267 ac_cv_type_rlim_t=no 11268fi 11269rm -f conftest* 11270 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11272$as_echo "$ac_cv_type_rlim_t" >&6; } 11273fi 11274if test $ac_cv_type_rlim_t = no; then 11275 cat >> confdefs.h <<\EOF 11276#define rlim_t unsigned long 11277EOF 11278fi 11279 11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11281$as_echo_n "checking for stack_t... " >&6; } 11282if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11284$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11285else 11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11287/* end confdefs.h. */ 11288 11289#include <sys/types.h> 11290#if STDC_HEADERS 11291# include <stdlib.h> 11292# include <stddef.h> 11293#endif 11294#include <signal.h> 11295 11296_ACEOF 11297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11298 $EGREP "stack_t" >/dev/null 2>&1; then : 11299 ac_cv_type_stack_t=yes 11300else 11301 ac_cv_type_stack_t=no 11302fi 11303rm -f conftest* 11304 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11306$as_echo "$ac_cv_type_stack_t" >&6; } 11307fi 11308if test $ac_cv_type_stack_t = no; then 11309 cat >> confdefs.h <<\EOF 11310#define stack_t struct sigaltstack 11311EOF 11312fi 11313 11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11315$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11317/* end confdefs.h. */ 11318 11319#include <sys/types.h> 11320#if STDC_HEADERS 11321# include <stdlib.h> 11322# include <stddef.h> 11323#endif 11324#include <signal.h> 11325#include "confdefs.h" 11326 11327int 11328main () 11329{ 11330stack_t sigstk; sigstk.ss_base = 0; 11331 ; 11332 return 0; 11333} 11334_ACEOF 11335if ac_fn_c_try_compile "$LINENO"; then : 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11337$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11338 11339else 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11341$as_echo "no" >&6; } 11342fi 11343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11344 11345olibs="$LIBS" 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11347$as_echo_n "checking --with-tlib argument... " >&6; } 11348 11349# Check whether --with-tlib was given. 11350if test "${with_tlib+set}" = set; then : 11351 withval=$with_tlib; 11352fi 11353 11354if test -n "$with_tlib"; then 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11356$as_echo "$with_tlib" >&6; } 11357 LIBS="$LIBS -l$with_tlib" 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11359$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11361/* end confdefs.h. */ 11362 11363int 11364main () 11365{ 11366 11367 ; 11368 return 0; 11369} 11370_ACEOF 11371if ac_fn_c_try_link "$LINENO"; then : 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11373$as_echo "OK" >&6; } 11374else 11375 as_fn_error $? "FAILED" "$LINENO" 5 11376fi 11377rm -f core conftest.err conftest.$ac_objext \ 11378 conftest$ac_exeext conftest.$ac_ext 11379 olibs="$LIBS" 11380else 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11382$as_echo "empty: automatic terminal library selection" >&6; } 11383 case "`uname -s 2>/dev/null`" in 11384 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11385 *) tlibs="tinfo ncurses termlib termcap curses";; 11386 esac 11387 for libname in $tlibs; do 11388 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11390$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11391if eval \${$as_ac_Lib+:} false; then : 11392 $as_echo_n "(cached) " >&6 11393else 11394 ac_check_lib_save_LIBS=$LIBS 11395LIBS="-l${libname} $LIBS" 11396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398 11399/* Override any GCC internal prototype to avoid an error. 11400 Use char because int might match the return type of a GCC 11401 builtin and then its argument prototype would still apply. */ 11402#ifdef __cplusplus 11403extern "C" 11404#endif 11405char tgetent (); 11406int 11407main () 11408{ 11409return tgetent (); 11410 ; 11411 return 0; 11412} 11413_ACEOF 11414if ac_fn_c_try_link "$LINENO"; then : 11415 eval "$as_ac_Lib=yes" 11416else 11417 eval "$as_ac_Lib=no" 11418fi 11419rm -f core conftest.err conftest.$ac_objext \ 11420 conftest$ac_exeext conftest.$ac_ext 11421LIBS=$ac_check_lib_save_LIBS 11422fi 11423eval ac_res=\$$as_ac_Lib 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11425$as_echo "$ac_res" >&6; } 11426if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11427 cat >>confdefs.h <<_ACEOF 11428#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 11429_ACEOF 11430 11431 LIBS="-l${libname} $LIBS" 11432 11433fi 11434 11435 if test "x$olibs" != "x$LIBS"; then 11436 if test "$cross_compiling" = yes; then : 11437 res="FAIL" 11438else 11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11440/* end confdefs.h. */ 11441 11442#ifdef HAVE_TERMCAP_H 11443# include <termcap.h> 11444#endif 11445#if STDC_HEADERS 11446# include <stdlib.h> 11447# include <stddef.h> 11448#endif 11449main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 11450_ACEOF 11451if ac_fn_c_try_run "$LINENO"; then : 11452 res="OK" 11453else 11454 res="FAIL" 11455fi 11456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11457 conftest.$ac_objext conftest.beam conftest.$ac_ext 11458fi 11459 11460 if test "$res" = "OK"; then 11461 break 11462 fi 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 11464$as_echo "$libname library is not usable" >&6; } 11465 LIBS="$olibs" 11466 fi 11467 done 11468 if test "x$olibs" = "x$LIBS"; then 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 11470$as_echo "no terminal library found" >&6; } 11471 fi 11472fi 11473 11474if test "x$olibs" = "x$LIBS"; then 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 11476$as_echo_n "checking for tgetent()... " >&6; } 11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478/* end confdefs.h. */ 11479 11480int 11481main () 11482{ 11483char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 11484 ; 11485 return 0; 11486} 11487_ACEOF 11488if ac_fn_c_try_link "$LINENO"; then : 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11490$as_echo "yes" >&6; } 11491else 11492 as_fn_error $? "NOT FOUND! 11493 You need to install a terminal library; for example ncurses. 11494 Or specify the name of the library with --with-tlib." "$LINENO" 5 11495fi 11496rm -f core conftest.err conftest.$ac_objext \ 11497 conftest$ac_exeext conftest.$ac_ext 11498fi 11499 11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 11501$as_echo_n "checking whether we talk terminfo... " >&6; } 11502if ${vim_cv_terminfo+:} false; then : 11503 $as_echo_n "(cached) " >&6 11504else 11505 11506 if test "$cross_compiling" = yes; then : 11507 11508 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 11509 11510else 11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11512/* end confdefs.h. */ 11513 11514#include "confdefs.h" 11515#ifdef HAVE_TERMCAP_H 11516# include <termcap.h> 11517#endif 11518#ifdef HAVE_STRING_H 11519# include <string.h> 11520#endif 11521#if STDC_HEADERS 11522# include <stdlib.h> 11523# include <stddef.h> 11524#endif 11525main() 11526{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 11527 11528_ACEOF 11529if ac_fn_c_try_run "$LINENO"; then : 11530 11531 vim_cv_terminfo=no 11532 11533else 11534 11535 vim_cv_terminfo=yes 11536 11537fi 11538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11539 conftest.$ac_objext conftest.beam conftest.$ac_ext 11540fi 11541 11542 11543fi 11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 11545$as_echo "$vim_cv_terminfo" >&6; } 11546 11547if test "x$vim_cv_terminfo" = "xyes" ; then 11548 $as_echo "#define TERMINFO 1" >>confdefs.h 11549 11550fi 11551 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 11553$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 11554if ${vim_cv_tgent+:} false; then : 11555 $as_echo_n "(cached) " >&6 11556else 11557 11558 if test "$cross_compiling" = yes; then : 11559 11560 as_fn_error $? "failed to compile test program." "$LINENO" 5 11561 11562else 11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11564/* end confdefs.h. */ 11565 11566#include "confdefs.h" 11567#ifdef HAVE_TERMCAP_H 11568# include <termcap.h> 11569#endif 11570#if STDC_HEADERS 11571# include <stdlib.h> 11572# include <stddef.h> 11573#endif 11574main() 11575{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 11576 11577_ACEOF 11578if ac_fn_c_try_run "$LINENO"; then : 11579 11580 vim_cv_tgent=zero 11581 11582else 11583 11584 vim_cv_tgent=non-zero 11585 11586fi 11587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11588 conftest.$ac_objext conftest.beam conftest.$ac_ext 11589fi 11590 11591 11592fi 11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 11594$as_echo "$vim_cv_tgent" >&6; } 11595 11596if test "x$vim_cv_tgent" = "xzero" ; then 11597 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 11598 11599fi 11600 11601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 11602$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 11603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11604/* end confdefs.h. */ 11605 11606#ifdef HAVE_TERMCAP_H 11607# include <termcap.h> 11608#endif 11609 11610int 11611main () 11612{ 11613ospeed = 20000 11614 ; 11615 return 0; 11616} 11617_ACEOF 11618if ac_fn_c_try_link "$LINENO"; then : 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11620$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 11621 11622else 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11624$as_echo "no" >&6; } 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 11626$as_echo_n "checking whether ospeed can be extern... " >&6; } 11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11628/* end confdefs.h. */ 11629 11630#ifdef HAVE_TERMCAP_H 11631# include <termcap.h> 11632#endif 11633extern short ospeed; 11634 11635int 11636main () 11637{ 11638ospeed = 20000 11639 ; 11640 return 0; 11641} 11642_ACEOF 11643if ac_fn_c_try_link "$LINENO"; then : 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11645$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 11646 11647else 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11649$as_echo "no" >&6; } 11650fi 11651rm -f core conftest.err conftest.$ac_objext \ 11652 conftest$ac_exeext conftest.$ac_ext 11653 11654fi 11655rm -f core conftest.err conftest.$ac_objext \ 11656 conftest$ac_exeext conftest.$ac_ext 11657 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 11659$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 11660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11661/* end confdefs.h. */ 11662 11663#ifdef HAVE_TERMCAP_H 11664# include <termcap.h> 11665#endif 11666 11667int 11668main () 11669{ 11670if (UP == 0 && BC == 0) PC = 1 11671 ; 11672 return 0; 11673} 11674_ACEOF 11675if ac_fn_c_try_link "$LINENO"; then : 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11677$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 11678 11679else 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11681$as_echo "no" >&6; } 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 11683$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11685/* end confdefs.h. */ 11686 11687#ifdef HAVE_TERMCAP_H 11688# include <termcap.h> 11689#endif 11690extern char *UP, *BC, PC; 11691 11692int 11693main () 11694{ 11695if (UP == 0 && BC == 0) PC = 1 11696 ; 11697 return 0; 11698} 11699_ACEOF 11700if ac_fn_c_try_link "$LINENO"; then : 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11702$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 11703 11704else 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11706$as_echo "no" >&6; } 11707fi 11708rm -f core conftest.err conftest.$ac_objext \ 11709 conftest$ac_exeext conftest.$ac_ext 11710 11711fi 11712rm -f core conftest.err conftest.$ac_objext \ 11713 conftest$ac_exeext conftest.$ac_ext 11714 11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 11716$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 11717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11718/* end confdefs.h. */ 11719 11720#ifdef HAVE_TERMCAP_H 11721# include <termcap.h> 11722#endif 11723 11724int 11725main () 11726{ 11727extern int xx(); tputs("test", 1, (outfuntype)xx) 11728 ; 11729 return 0; 11730} 11731_ACEOF 11732if ac_fn_c_try_compile "$LINENO"; then : 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11734$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 11735 11736else 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11738$as_echo "no" >&6; } 11739fi 11740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11741 11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 11743$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 11744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11745/* end confdefs.h. */ 11746 11747#include <sys/types.h> 11748#include <sys/time.h> 11749#include <sys/select.h> 11750int 11751main () 11752{ 11753 11754 ; 11755 return 0; 11756} 11757_ACEOF 11758if ac_fn_c_try_compile "$LINENO"; then : 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11760$as_echo "yes" >&6; } 11761 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 11762 11763else 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11765$as_echo "no" >&6; } 11766fi 11767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11768 11769 11770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 11771$as_echo_n "checking for /dev/ptc... " >&6; } 11772if test -r /dev/ptc; then 11773 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 11774 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11776$as_echo "yes" >&6; } 11777else 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11779$as_echo "no" >&6; } 11780fi 11781 11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 11783$as_echo_n "checking for SVR4 ptys... " >&6; } 11784if test -c /dev/ptmx ; then 11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11786/* end confdefs.h. */ 11787 11788int 11789main () 11790{ 11791ptsname(0);grantpt(0);unlockpt(0); 11792 ; 11793 return 0; 11794} 11795_ACEOF 11796if ac_fn_c_try_link "$LINENO"; then : 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11798$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 11799 11800else 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11802$as_echo "no" >&6; } 11803fi 11804rm -f core conftest.err conftest.$ac_objext \ 11805 conftest$ac_exeext conftest.$ac_ext 11806else 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11808$as_echo "no" >&6; } 11809fi 11810 11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 11812$as_echo_n "checking for ptyranges... " >&6; } 11813if test -d /dev/ptym ; then 11814 pdir='/dev/ptym' 11815else 11816 pdir='/dev' 11817fi 11818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11819/* end confdefs.h. */ 11820#ifdef M_UNIX 11821 yes; 11822#endif 11823 11824_ACEOF 11825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11826 $EGREP "yes" >/dev/null 2>&1; then : 11827 ptys=`echo /dev/ptyp??` 11828else 11829 ptys=`echo $pdir/pty??` 11830fi 11831rm -f conftest* 11832 11833if test "$ptys" != "$pdir/pty??" ; then 11834 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 11835 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 11836 cat >>confdefs.h <<_ACEOF 11837#define PTYRANGE0 "$p0" 11838_ACEOF 11839 11840 cat >>confdefs.h <<_ACEOF 11841#define PTYRANGE1 "$p1" 11842_ACEOF 11843 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 11845$as_echo "$p0 / $p1" >&6; } 11846else 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 11848$as_echo "don't know" >&6; } 11849fi 11850 11851rm -f conftest_grp 11852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 11853$as_echo_n "checking default tty permissions/group... " >&6; } 11854if ${vim_cv_tty_group+:} false; then : 11855 $as_echo_n "(cached) " >&6 11856else 11857 11858 if test "$cross_compiling" = yes; then : 11859 11860 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 11861 11862else 11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11864/* end confdefs.h. */ 11865 11866#include "confdefs.h" 11867#include <sys/types.h> 11868#if STDC_HEADERS 11869# include <stdlib.h> 11870# include <stddef.h> 11871#endif 11872#ifdef HAVE_UNISTD_H 11873#include <unistd.h> 11874#endif 11875#include <sys/stat.h> 11876#include <stdio.h> 11877main() 11878{ 11879 struct stat sb; 11880 char *x,*ttyname(); 11881 int om, m; 11882 FILE *fp; 11883 11884 if (!(x = ttyname(0))) exit(1); 11885 if (stat(x, &sb)) exit(1); 11886 om = sb.st_mode; 11887 if (om & 002) exit(0); 11888 m = system("mesg y"); 11889 if (m == -1 || m == 127) exit(1); 11890 if (stat(x, &sb)) exit(1); 11891 m = sb.st_mode; 11892 if (chmod(x, om)) exit(1); 11893 if (m & 002) exit(0); 11894 if (sb.st_gid == getgid()) exit(1); 11895 if (!(fp=fopen("conftest_grp", "w"))) 11896 exit(1); 11897 fprintf(fp, "%d\n", sb.st_gid); 11898 fclose(fp); 11899 exit(0); 11900} 11901 11902_ACEOF 11903if ac_fn_c_try_run "$LINENO"; then : 11904 11905 if test -f conftest_grp; then 11906 vim_cv_tty_group=`cat conftest_grp` 11907 if test "x$vim_cv_tty_mode" = "x" ; then 11908 vim_cv_tty_mode=0620 11909 fi 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 11911$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 11912 else 11913 vim_cv_tty_group=world 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 11915$as_echo "ptys are world accessible" >&6; } 11916 fi 11917 11918else 11919 11920 vim_cv_tty_group=world 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 11922$as_echo "can't determine - assume ptys are world accessible" >&6; } 11923 11924fi 11925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11926 conftest.$ac_objext conftest.beam conftest.$ac_ext 11927fi 11928 11929 11930fi 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 11932$as_echo "$vim_cv_tty_group" >&6; } 11933rm -f conftest_grp 11934 11935if test "x$vim_cv_tty_group" != "xworld" ; then 11936 cat >>confdefs.h <<_ACEOF 11937#define PTYGROUP $vim_cv_tty_group 11938_ACEOF 11939 11940 if test "x$vim_cv_tty_mode" = "x" ; then 11941 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 11942 else 11943 $as_echo "#define PTYMODE 0620" >>confdefs.h 11944 11945 fi 11946fi 11947 11948 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11950$as_echo_n "checking return type of signal handlers... " >&6; } 11951if ${ac_cv_type_signal+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953else 11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11955/* end confdefs.h. */ 11956#include <sys/types.h> 11957#include <signal.h> 11958 11959int 11960main () 11961{ 11962return *(signal (0, 0)) (0) == 1; 11963 ; 11964 return 0; 11965} 11966_ACEOF 11967if ac_fn_c_try_compile "$LINENO"; then : 11968 ac_cv_type_signal=int 11969else 11970 ac_cv_type_signal=void 11971fi 11972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11973fi 11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11975$as_echo "$ac_cv_type_signal" >&6; } 11976 11977cat >>confdefs.h <<_ACEOF 11978#define RETSIGTYPE $ac_cv_type_signal 11979_ACEOF 11980 11981 11982 11983if test $ac_cv_type_signal = void; then 11984 $as_echo "#define SIGRETURN return" >>confdefs.h 11985 11986else 11987 $as_echo "#define SIGRETURN return 0" >>confdefs.h 11988 11989fi 11990 11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 11992$as_echo_n "checking for struct sigcontext... " >&6; } 11993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11994/* end confdefs.h. */ 11995 11996#include <signal.h> 11997test_sig() 11998{ 11999 struct sigcontext *scont; 12000 scont = (struct sigcontext *)0; 12001 return 1; 12002} 12003int 12004main () 12005{ 12006 12007 ; 12008 return 0; 12009} 12010_ACEOF 12011if ac_fn_c_try_compile "$LINENO"; then : 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12013$as_echo "yes" >&6; } 12014 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 12015 12016else 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12018$as_echo "no" >&6; } 12019fi 12020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12021 12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 12023$as_echo_n "checking getcwd implementation is broken... " >&6; } 12024if ${vim_cv_getcwd_broken+:} false; then : 12025 $as_echo_n "(cached) " >&6 12026else 12027 12028 if test "$cross_compiling" = yes; then : 12029 12030 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 12031 12032else 12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12034/* end confdefs.h. */ 12035 12036#include "confdefs.h" 12037#ifdef HAVE_UNISTD_H 12038#include <unistd.h> 12039#endif 12040char *dagger[] = { "IFS=pwd", 0 }; 12041main() 12042{ 12043 char buffer[500]; 12044 extern char **environ; 12045 environ = dagger; 12046 return getcwd(buffer, 500) ? 0 : 1; 12047} 12048 12049_ACEOF 12050if ac_fn_c_try_run "$LINENO"; then : 12051 12052 vim_cv_getcwd_broken=no 12053 12054else 12055 12056 vim_cv_getcwd_broken=yes 12057 12058fi 12059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12060 conftest.$ac_objext conftest.beam conftest.$ac_ext 12061fi 12062 12063 12064fi 12065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12066$as_echo "$vim_cv_getcwd_broken" >&6; } 12067 12068if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12069 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12070 12071fi 12072 12073for ac_func in fchdir fchown fsync getcwd getpseudotty \ 12074 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \ 12075 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12076 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12077 sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \ 12078 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 12079 usleep utime utimes 12080do : 12081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12082ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12083if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12084 cat >>confdefs.h <<_ACEOF 12085#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12086_ACEOF 12087 12088fi 12089done 12090 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12092$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12093if ${ac_cv_sys_largefile_source+:} false; then : 12094 $as_echo_n "(cached) " >&6 12095else 12096 while :; do 12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098/* end confdefs.h. */ 12099#include <sys/types.h> /* for off_t */ 12100 #include <stdio.h> 12101int 12102main () 12103{ 12104int (*fp) (FILE *, off_t, int) = fseeko; 12105 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12106 ; 12107 return 0; 12108} 12109_ACEOF 12110if ac_fn_c_try_link "$LINENO"; then : 12111 ac_cv_sys_largefile_source=no; break 12112fi 12113rm -f core conftest.err conftest.$ac_objext \ 12114 conftest$ac_exeext conftest.$ac_ext 12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12116/* end confdefs.h. */ 12117#define _LARGEFILE_SOURCE 1 12118#include <sys/types.h> /* for off_t */ 12119 #include <stdio.h> 12120int 12121main () 12122{ 12123int (*fp) (FILE *, off_t, int) = fseeko; 12124 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12125 ; 12126 return 0; 12127} 12128_ACEOF 12129if ac_fn_c_try_link "$LINENO"; then : 12130 ac_cv_sys_largefile_source=1; break 12131fi 12132rm -f core conftest.err conftest.$ac_objext \ 12133 conftest$ac_exeext conftest.$ac_ext 12134 ac_cv_sys_largefile_source=unknown 12135 break 12136done 12137fi 12138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12139$as_echo "$ac_cv_sys_largefile_source" >&6; } 12140case $ac_cv_sys_largefile_source in #( 12141 no | unknown) ;; 12142 *) 12143cat >>confdefs.h <<_ACEOF 12144#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12145_ACEOF 12146;; 12147esac 12148rm -rf conftest* 12149 12150# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12151# in glibc 2.1.3, but that breaks too many other things. 12152# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12153if test $ac_cv_sys_largefile_source != unknown; then 12154 12155$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12156 12157fi 12158 12159 12160# Check whether --enable-largefile was given. 12161if test "${enable_largefile+set}" = set; then : 12162 enableval=$enable_largefile; 12163fi 12164 12165if test "$enable_largefile" != no; then 12166 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12168$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12169if ${ac_cv_sys_largefile_CC+:} false; then : 12170 $as_echo_n "(cached) " >&6 12171else 12172 ac_cv_sys_largefile_CC=no 12173 if test "$GCC" != yes; then 12174 ac_save_CC=$CC 12175 while :; do 12176 # IRIX 6.2 and later do not support large files by default, 12177 # so use the C compiler's -n32 option if that helps. 12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12179/* end confdefs.h. */ 12180#include <sys/types.h> 12181 /* Check that off_t can represent 2**63 - 1 correctly. 12182 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12183 since some C++ compilers masquerading as C compilers 12184 incorrectly reject 9223372036854775807. */ 12185#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12187 && LARGE_OFF_T % 2147483647 == 1) 12188 ? 1 : -1]; 12189int 12190main () 12191{ 12192 12193 ; 12194 return 0; 12195} 12196_ACEOF 12197 if ac_fn_c_try_compile "$LINENO"; then : 12198 break 12199fi 12200rm -f core conftest.err conftest.$ac_objext 12201 CC="$CC -n32" 12202 if ac_fn_c_try_compile "$LINENO"; then : 12203 ac_cv_sys_largefile_CC=' -n32'; break 12204fi 12205rm -f core conftest.err conftest.$ac_objext 12206 break 12207 done 12208 CC=$ac_save_CC 12209 rm -f conftest.$ac_ext 12210 fi 12211fi 12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12213$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12214 if test "$ac_cv_sys_largefile_CC" != no; then 12215 CC=$CC$ac_cv_sys_largefile_CC 12216 fi 12217 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12219$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12220if ${ac_cv_sys_file_offset_bits+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222else 12223 while :; do 12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226#include <sys/types.h> 12227 /* Check that off_t can represent 2**63 - 1 correctly. 12228 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12229 since some C++ compilers masquerading as C compilers 12230 incorrectly reject 9223372036854775807. */ 12231#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12233 && LARGE_OFF_T % 2147483647 == 1) 12234 ? 1 : -1]; 12235int 12236main () 12237{ 12238 12239 ; 12240 return 0; 12241} 12242_ACEOF 12243if ac_fn_c_try_compile "$LINENO"; then : 12244 ac_cv_sys_file_offset_bits=no; break 12245fi 12246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12248/* end confdefs.h. */ 12249#define _FILE_OFFSET_BITS 64 12250#include <sys/types.h> 12251 /* Check that off_t can represent 2**63 - 1 correctly. 12252 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12253 since some C++ compilers masquerading as C compilers 12254 incorrectly reject 9223372036854775807. */ 12255#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12256 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12257 && LARGE_OFF_T % 2147483647 == 1) 12258 ? 1 : -1]; 12259int 12260main () 12261{ 12262 12263 ; 12264 return 0; 12265} 12266_ACEOF 12267if ac_fn_c_try_compile "$LINENO"; then : 12268 ac_cv_sys_file_offset_bits=64; break 12269fi 12270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12271 ac_cv_sys_file_offset_bits=unknown 12272 break 12273done 12274fi 12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12276$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12277case $ac_cv_sys_file_offset_bits in #( 12278 no | unknown) ;; 12279 *) 12280cat >>confdefs.h <<_ACEOF 12281#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12282_ACEOF 12283;; 12284esac 12285rm -rf conftest* 12286 if test $ac_cv_sys_file_offset_bits = unknown; then 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12288$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12289if ${ac_cv_sys_large_files+:} false; then : 12290 $as_echo_n "(cached) " >&6 12291else 12292 while :; do 12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12294/* end confdefs.h. */ 12295#include <sys/types.h> 12296 /* Check that off_t can represent 2**63 - 1 correctly. 12297 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12298 since some C++ compilers masquerading as C compilers 12299 incorrectly reject 9223372036854775807. */ 12300#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12302 && LARGE_OFF_T % 2147483647 == 1) 12303 ? 1 : -1]; 12304int 12305main () 12306{ 12307 12308 ; 12309 return 0; 12310} 12311_ACEOF 12312if ac_fn_c_try_compile "$LINENO"; then : 12313 ac_cv_sys_large_files=no; break 12314fi 12315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12317/* end confdefs.h. */ 12318#define _LARGE_FILES 1 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 12336if ac_fn_c_try_compile "$LINENO"; then : 12337 ac_cv_sys_large_files=1; break 12338fi 12339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12340 ac_cv_sys_large_files=unknown 12341 break 12342done 12343fi 12344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12345$as_echo "$ac_cv_sys_large_files" >&6; } 12346case $ac_cv_sys_large_files in #( 12347 no | unknown) ;; 12348 *) 12349cat >>confdefs.h <<_ACEOF 12350#define _LARGE_FILES $ac_cv_sys_large_files 12351_ACEOF 12352;; 12353esac 12354rm -rf conftest* 12355 fi 12356 12357 12358fi 12359 12360 12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 12362$as_echo_n "checking for st_blksize... " >&6; } 12363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12364/* end confdefs.h. */ 12365#include <sys/types.h> 12366#include <sys/stat.h> 12367int 12368main () 12369{ 12370 struct stat st; 12371 int n; 12372 12373 stat("/", &st); 12374 n = (int)st.st_blksize; 12375 ; 12376 return 0; 12377} 12378_ACEOF 12379if ac_fn_c_try_compile "$LINENO"; then : 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12381$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12382 12383else 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12385$as_echo "no" >&6; } 12386fi 12387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12388 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 12390$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 12391if ${vim_cv_stat_ignores_slash+:} false; then : 12392 $as_echo_n "(cached) " >&6 12393else 12394 12395 if test "$cross_compiling" = yes; then : 12396 12397 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 12398 12399else 12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12401/* end confdefs.h. */ 12402 12403#include "confdefs.h" 12404#if STDC_HEADERS 12405# include <stdlib.h> 12406# include <stddef.h> 12407#endif 12408#include <sys/types.h> 12409#include <sys/stat.h> 12410main() {struct stat st; exit(stat("configure/", &st) != 0); } 12411 12412_ACEOF 12413if ac_fn_c_try_run "$LINENO"; then : 12414 12415 vim_cv_stat_ignores_slash=yes 12416 12417else 12418 12419 vim_cv_stat_ignores_slash=no 12420 12421fi 12422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12423 conftest.$ac_objext conftest.beam conftest.$ac_ext 12424fi 12425 12426 12427fi 12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 12429$as_echo "$vim_cv_stat_ignores_slash" >&6; } 12430 12431if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 12432 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 12433 12434fi 12435 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 12437$as_echo_n "checking for iconv_open()... " >&6; } 12438save_LIBS="$LIBS" 12439LIBS="$LIBS -liconv" 12440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12441/* end confdefs.h. */ 12442 12443#ifdef HAVE_ICONV_H 12444# include <iconv.h> 12445#endif 12446 12447int 12448main () 12449{ 12450iconv_open("fr", "to"); 12451 ; 12452 return 0; 12453} 12454_ACEOF 12455if ac_fn_c_try_link "$LINENO"; then : 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 12457$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12458 12459else 12460 LIBS="$save_LIBS" 12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12462/* end confdefs.h. */ 12463 12464#ifdef HAVE_ICONV_H 12465# include <iconv.h> 12466#endif 12467 12468int 12469main () 12470{ 12471iconv_open("fr", "to"); 12472 ; 12473 return 0; 12474} 12475_ACEOF 12476if ac_fn_c_try_link "$LINENO"; then : 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12478$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12479 12480else 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12482$as_echo "no" >&6; } 12483fi 12484rm -f core conftest.err conftest.$ac_objext \ 12485 conftest$ac_exeext conftest.$ac_ext 12486fi 12487rm -f core conftest.err conftest.$ac_objext \ 12488 conftest$ac_exeext conftest.$ac_ext 12489 12490 12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 12492$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 12493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12494/* end confdefs.h. */ 12495 12496#ifdef HAVE_LANGINFO_H 12497# include <langinfo.h> 12498#endif 12499 12500int 12501main () 12502{ 12503char *cs = nl_langinfo(CODESET); 12504 ; 12505 return 0; 12506} 12507_ACEOF 12508if ac_fn_c_try_link "$LINENO"; then : 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12510$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 12511 12512else 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12514$as_echo "no" >&6; } 12515fi 12516rm -f core conftest.err conftest.$ac_objext \ 12517 conftest$ac_exeext conftest.$ac_ext 12518 12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 12520$as_echo_n "checking for strtod in -lm... " >&6; } 12521if ${ac_cv_lib_m_strtod+:} false; then : 12522 $as_echo_n "(cached) " >&6 12523else 12524 ac_check_lib_save_LIBS=$LIBS 12525LIBS="-lm $LIBS" 12526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12527/* end confdefs.h. */ 12528 12529/* Override any GCC internal prototype to avoid an error. 12530 Use char because int might match the return type of a GCC 12531 builtin and then its argument prototype would still apply. */ 12532#ifdef __cplusplus 12533extern "C" 12534#endif 12535char strtod (); 12536int 12537main () 12538{ 12539return strtod (); 12540 ; 12541 return 0; 12542} 12543_ACEOF 12544if ac_fn_c_try_link "$LINENO"; then : 12545 ac_cv_lib_m_strtod=yes 12546else 12547 ac_cv_lib_m_strtod=no 12548fi 12549rm -f core conftest.err conftest.$ac_objext \ 12550 conftest$ac_exeext conftest.$ac_ext 12551LIBS=$ac_check_lib_save_LIBS 12552fi 12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 12554$as_echo "$ac_cv_lib_m_strtod" >&6; } 12555if test "x$ac_cv_lib_m_strtod" = xyes; then : 12556 cat >>confdefs.h <<_ACEOF 12557#define HAVE_LIBM 1 12558_ACEOF 12559 12560 LIBS="-lm $LIBS" 12561 12562fi 12563 12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 12565$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 12566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12567/* end confdefs.h. */ 12568 12569#ifdef HAVE_MATH_H 12570# include <math.h> 12571#endif 12572#if STDC_HEADERS 12573# include <stdlib.h> 12574# include <stddef.h> 12575#endif 12576 12577int 12578main () 12579{ 12580char *s; double d; 12581 d = strtod("1.1", &s); 12582 d = fabs(1.11); 12583 d = ceil(1.11); 12584 d = floor(1.11); 12585 d = log10(1.11); 12586 d = pow(1.11, 2.22); 12587 d = sqrt(1.11); 12588 d = sin(1.11); 12589 d = cos(1.11); 12590 d = atan(1.11); 12591 12592 ; 12593 return 0; 12594} 12595_ACEOF 12596if ac_fn_c_try_link "$LINENO"; then : 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12598$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 12599 12600else 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12602$as_echo "no" >&6; } 12603fi 12604rm -f core conftest.err conftest.$ac_objext \ 12605 conftest$ac_exeext conftest.$ac_ext 12606 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 12608$as_echo_n "checking for isinf()... " >&6; } 12609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12610/* end confdefs.h. */ 12611 12612#ifdef HAVE_MATH_H 12613# include <math.h> 12614#endif 12615#if STDC_HEADERS 12616# include <stdlib.h> 12617# include <stddef.h> 12618#endif 12619 12620int 12621main () 12622{ 12623int r = isinf(1.11); 12624 ; 12625 return 0; 12626} 12627_ACEOF 12628if ac_fn_c_try_link "$LINENO"; then : 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12630$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 12631 12632else 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12634$as_echo "no" >&6; } 12635fi 12636rm -f core conftest.err conftest.$ac_objext \ 12637 conftest$ac_exeext conftest.$ac_ext 12638 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 12640$as_echo_n "checking for isnan()... " >&6; } 12641cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12642/* end confdefs.h. */ 12643 12644#ifdef HAVE_MATH_H 12645# include <math.h> 12646#endif 12647#if STDC_HEADERS 12648# include <stdlib.h> 12649# include <stddef.h> 12650#endif 12651 12652int 12653main () 12654{ 12655int r = isnan(1.11); 12656 ; 12657 return 0; 12658} 12659_ACEOF 12660if ac_fn_c_try_link "$LINENO"; then : 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12662$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 12663 12664else 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12666$as_echo "no" >&6; } 12667fi 12668rm -f core conftest.err conftest.$ac_objext \ 12669 conftest$ac_exeext conftest.$ac_ext 12670 12671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 12672$as_echo_n "checking --disable-acl argument... " >&6; } 12673# Check whether --enable-acl was given. 12674if test "${enable_acl+set}" = set; then : 12675 enableval=$enable_acl; 12676else 12677 enable_acl="yes" 12678fi 12679 12680if test "$enable_acl" = "yes"; then 12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12682$as_echo "no" >&6; } 12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 12684$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 12685if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 12686 $as_echo_n "(cached) " >&6 12687else 12688 ac_check_lib_save_LIBS=$LIBS 12689LIBS="-lposix1e $LIBS" 12690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12691/* end confdefs.h. */ 12692 12693/* Override any GCC internal prototype to avoid an error. 12694 Use char because int might match the return type of a GCC 12695 builtin and then its argument prototype would still apply. */ 12696#ifdef __cplusplus 12697extern "C" 12698#endif 12699char acl_get_file (); 12700int 12701main () 12702{ 12703return acl_get_file (); 12704 ; 12705 return 0; 12706} 12707_ACEOF 12708if ac_fn_c_try_link "$LINENO"; then : 12709 ac_cv_lib_posix1e_acl_get_file=yes 12710else 12711 ac_cv_lib_posix1e_acl_get_file=no 12712fi 12713rm -f core conftest.err conftest.$ac_objext \ 12714 conftest$ac_exeext conftest.$ac_ext 12715LIBS=$ac_check_lib_save_LIBS 12716fi 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 12718$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 12719if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 12720 LIBS="$LIBS -lposix1e" 12721else 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 12723$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 12724if ${ac_cv_lib_acl_acl_get_file+:} false; then : 12725 $as_echo_n "(cached) " >&6 12726else 12727 ac_check_lib_save_LIBS=$LIBS 12728LIBS="-lacl $LIBS" 12729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12730/* end confdefs.h. */ 12731 12732/* Override any GCC internal prototype to avoid an error. 12733 Use char because int might match the return type of a GCC 12734 builtin and then its argument prototype would still apply. */ 12735#ifdef __cplusplus 12736extern "C" 12737#endif 12738char acl_get_file (); 12739int 12740main () 12741{ 12742return acl_get_file (); 12743 ; 12744 return 0; 12745} 12746_ACEOF 12747if ac_fn_c_try_link "$LINENO"; then : 12748 ac_cv_lib_acl_acl_get_file=yes 12749else 12750 ac_cv_lib_acl_acl_get_file=no 12751fi 12752rm -f core conftest.err conftest.$ac_objext \ 12753 conftest$ac_exeext conftest.$ac_ext 12754LIBS=$ac_check_lib_save_LIBS 12755fi 12756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 12757$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 12758if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 12759 LIBS="$LIBS -lacl" 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 12761$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 12762if ${ac_cv_lib_attr_fgetxattr+:} false; then : 12763 $as_echo_n "(cached) " >&6 12764else 12765 ac_check_lib_save_LIBS=$LIBS 12766LIBS="-lattr $LIBS" 12767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12768/* end confdefs.h. */ 12769 12770/* Override any GCC internal prototype to avoid an error. 12771 Use char because int might match the return type of a GCC 12772 builtin and then its argument prototype would still apply. */ 12773#ifdef __cplusplus 12774extern "C" 12775#endif 12776char fgetxattr (); 12777int 12778main () 12779{ 12780return fgetxattr (); 12781 ; 12782 return 0; 12783} 12784_ACEOF 12785if ac_fn_c_try_link "$LINENO"; then : 12786 ac_cv_lib_attr_fgetxattr=yes 12787else 12788 ac_cv_lib_attr_fgetxattr=no 12789fi 12790rm -f core conftest.err conftest.$ac_objext \ 12791 conftest$ac_exeext conftest.$ac_ext 12792LIBS=$ac_check_lib_save_LIBS 12793fi 12794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 12795$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 12796if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 12797 LIBS="$LIBS -lattr" 12798fi 12799 12800fi 12801 12802fi 12803 12804 12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 12806$as_echo_n "checking for POSIX ACL support... " >&6; } 12807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12808/* end confdefs.h. */ 12809 12810#include <sys/types.h> 12811#ifdef HAVE_SYS_ACL_H 12812# include <sys/acl.h> 12813#endif 12814acl_t acl; 12815int 12816main () 12817{ 12818acl = acl_get_file("foo", ACL_TYPE_ACCESS); 12819 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 12820 acl_free(acl); 12821 ; 12822 return 0; 12823} 12824_ACEOF 12825if ac_fn_c_try_link "$LINENO"; then : 12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12827$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 12828 12829else 12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12831$as_echo "no" >&6; } 12832fi 12833rm -f core conftest.err conftest.$ac_objext \ 12834 conftest$ac_exeext conftest.$ac_ext 12835 12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 12837$as_echo_n "checking for acl_get in -lsec... " >&6; } 12838if ${ac_cv_lib_sec_acl_get+:} false; then : 12839 $as_echo_n "(cached) " >&6 12840else 12841 ac_check_lib_save_LIBS=$LIBS 12842LIBS="-lsec $LIBS" 12843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12844/* end confdefs.h. */ 12845 12846/* Override any GCC internal prototype to avoid an error. 12847 Use char because int might match the return type of a GCC 12848 builtin and then its argument prototype would still apply. */ 12849#ifdef __cplusplus 12850extern "C" 12851#endif 12852char acl_get (); 12853int 12854main () 12855{ 12856return acl_get (); 12857 ; 12858 return 0; 12859} 12860_ACEOF 12861if ac_fn_c_try_link "$LINENO"; then : 12862 ac_cv_lib_sec_acl_get=yes 12863else 12864 ac_cv_lib_sec_acl_get=no 12865fi 12866rm -f core conftest.err conftest.$ac_objext \ 12867 conftest$ac_exeext conftest.$ac_ext 12868LIBS=$ac_check_lib_save_LIBS 12869fi 12870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 12871$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 12872if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 12873 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 12874 12875else 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 12877$as_echo_n "checking for Solaris ACL support... " >&6; } 12878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12879/* end confdefs.h. */ 12880 12881#ifdef HAVE_SYS_ACL_H 12882# include <sys/acl.h> 12883#endif 12884int 12885main () 12886{ 12887acl("foo", GETACLCNT, 0, NULL); 12888 12889 ; 12890 return 0; 12891} 12892_ACEOF 12893if ac_fn_c_try_link "$LINENO"; then : 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12895$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 12896 12897else 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12899$as_echo "no" >&6; } 12900fi 12901rm -f core conftest.err conftest.$ac_objext \ 12902 conftest$ac_exeext conftest.$ac_ext 12903fi 12904 12905 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 12907$as_echo_n "checking for AIX ACL support... " >&6; } 12908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12909/* end confdefs.h. */ 12910 12911#if STDC_HEADERS 12912# include <stdlib.h> 12913# include <stddef.h> 12914#endif 12915#ifdef HAVE_SYS_ACL_H 12916# include <sys/acl.h> 12917#endif 12918#ifdef HAVE_SYS_ACCESS_H 12919# include <sys/access.h> 12920#endif 12921#define _ALL_SOURCE 12922 12923#include <sys/stat.h> 12924 12925int aclsize; 12926struct acl *aclent; 12927int 12928main () 12929{ 12930aclsize = sizeof(struct acl); 12931 aclent = (void *)malloc(aclsize); 12932 statacl("foo", STX_NORMAL, aclent, aclsize); 12933 12934 ; 12935 return 0; 12936} 12937_ACEOF 12938if ac_fn_c_try_link "$LINENO"; then : 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12940$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 12941 12942else 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12944$as_echo "no" >&6; } 12945fi 12946rm -f core conftest.err conftest.$ac_objext \ 12947 conftest$ac_exeext conftest.$ac_ext 12948else 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12950$as_echo "yes" >&6; } 12951fi 12952 12953if test "x$GTK_CFLAGS" != "x"; then 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 12955$as_echo_n "checking for pango_shape_full... " >&6; } 12956 ac_save_CFLAGS="$CFLAGS" 12957 ac_save_LIBS="$LIBS" 12958 CFLAGS="$CFLAGS $GTK_CFLAGS" 12959 LIBS="$LIBS $GTK_LIBS" 12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12961/* end confdefs.h. */ 12962#include <gtk/gtk.h> 12963int 12964main () 12965{ 12966 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 12967 ; 12968 return 0; 12969} 12970_ACEOF 12971if ac_fn_c_try_link "$LINENO"; then : 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12973$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 12974 12975else 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12977$as_echo "no" >&6; } 12978fi 12979rm -f core conftest.err conftest.$ac_objext \ 12980 conftest$ac_exeext conftest.$ac_ext 12981 CFLAGS="$ac_save_CFLAGS" 12982 LIBS="$ac_save_LIBS" 12983fi 12984 12985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 12986$as_echo_n "checking --disable-gpm argument... " >&6; } 12987# Check whether --enable-gpm was given. 12988if test "${enable_gpm+set}" = set; then : 12989 enableval=$enable_gpm; 12990else 12991 enable_gpm="yes" 12992fi 12993 12994 12995if test "$enable_gpm" = "yes"; then 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12997$as_echo "no" >&6; } 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 12999$as_echo_n "checking for gpm... " >&6; } 13000if ${vi_cv_have_gpm+:} false; then : 13001 $as_echo_n "(cached) " >&6 13002else 13003 olibs="$LIBS" ; LIBS="-lgpm" 13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13005/* end confdefs.h. */ 13006#include <gpm.h> 13007 #include <linux/keyboard.h> 13008int 13009main () 13010{ 13011Gpm_GetLibVersion(NULL); 13012 ; 13013 return 0; 13014} 13015_ACEOF 13016if ac_fn_c_try_link "$LINENO"; then : 13017 vi_cv_have_gpm=yes 13018else 13019 vi_cv_have_gpm=no 13020fi 13021rm -f core conftest.err conftest.$ac_objext \ 13022 conftest$ac_exeext conftest.$ac_ext 13023 LIBS="$olibs" 13024 13025fi 13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 13027$as_echo "$vi_cv_have_gpm" >&6; } 13028 if test $vi_cv_have_gpm = yes; then 13029 LIBS="$LIBS -lgpm" 13030 $as_echo "#define HAVE_GPM 1" >>confdefs.h 13031 13032 fi 13033else 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13035$as_echo "yes" >&6; } 13036fi 13037 13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 13039$as_echo_n "checking --disable-sysmouse argument... " >&6; } 13040# Check whether --enable-sysmouse was given. 13041if test "${enable_sysmouse+set}" = set; then : 13042 enableval=$enable_sysmouse; 13043else 13044 enable_sysmouse="yes" 13045fi 13046 13047 13048if test "$enable_sysmouse" = "yes"; then 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13050$as_echo "no" >&6; } 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13052$as_echo_n "checking for sysmouse... " >&6; } 13053if ${vi_cv_have_sysmouse+:} false; then : 13054 $as_echo_n "(cached) " >&6 13055else 13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13057/* end confdefs.h. */ 13058#include <sys/consio.h> 13059 #include <signal.h> 13060 #include <sys/fbio.h> 13061int 13062main () 13063{ 13064struct mouse_info mouse; 13065 mouse.operation = MOUSE_MODE; 13066 mouse.operation = MOUSE_SHOW; 13067 mouse.u.mode.mode = 0; 13068 mouse.u.mode.signal = SIGUSR2; 13069 ; 13070 return 0; 13071} 13072_ACEOF 13073if ac_fn_c_try_link "$LINENO"; then : 13074 vi_cv_have_sysmouse=yes 13075else 13076 vi_cv_have_sysmouse=no 13077fi 13078rm -f core conftest.err conftest.$ac_objext \ 13079 conftest$ac_exeext conftest.$ac_ext 13080 13081fi 13082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13083$as_echo "$vi_cv_have_sysmouse" >&6; } 13084 if test $vi_cv_have_sysmouse = yes; then 13085 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13086 13087 fi 13088else 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13090$as_echo "yes" >&6; } 13091fi 13092 13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13094$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13096/* end confdefs.h. */ 13097#if HAVE_FCNTL_H 13098# include <fcntl.h> 13099#endif 13100int 13101main () 13102{ 13103 int flag = FD_CLOEXEC; 13104 ; 13105 return 0; 13106} 13107_ACEOF 13108if ac_fn_c_try_compile "$LINENO"; then : 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13110$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13111 13112else 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13114$as_echo "not usable" >&6; } 13115fi 13116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13117 13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13119$as_echo_n "checking for rename... " >&6; } 13120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13121/* end confdefs.h. */ 13122#include <stdio.h> 13123int 13124main () 13125{ 13126rename("this", "that") 13127 ; 13128 return 0; 13129} 13130_ACEOF 13131if ac_fn_c_try_link "$LINENO"; then : 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13133$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13134 13135else 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13137$as_echo "no" >&6; } 13138fi 13139rm -f core conftest.err conftest.$ac_objext \ 13140 conftest$ac_exeext conftest.$ac_ext 13141 13142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13143$as_echo_n "checking for sysctl... " >&6; } 13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146#include <sys/types.h> 13147#include <sys/sysctl.h> 13148int 13149main () 13150{ 13151 int mib[2], r; 13152 size_t len; 13153 13154 mib[0] = CTL_HW; 13155 mib[1] = HW_USERMEM; 13156 len = sizeof(r); 13157 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13158 13159 ; 13160 return 0; 13161} 13162_ACEOF 13163if ac_fn_c_try_compile "$LINENO"; then : 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13165$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13166 13167else 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13169$as_echo "not usable" >&6; } 13170fi 13171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13172 13173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13174$as_echo_n "checking for sysinfo... " >&6; } 13175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13176/* end confdefs.h. */ 13177#include <sys/types.h> 13178#include <sys/sysinfo.h> 13179int 13180main () 13181{ 13182 struct sysinfo sinfo; 13183 int t; 13184 13185 (void)sysinfo(&sinfo); 13186 t = sinfo.totalram; 13187 13188 ; 13189 return 0; 13190} 13191_ACEOF 13192if ac_fn_c_try_compile "$LINENO"; then : 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13194$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13195 13196else 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13198$as_echo "not usable" >&6; } 13199fi 13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13201 13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13203$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13205/* end confdefs.h. */ 13206#include <sys/types.h> 13207#include <sys/sysinfo.h> 13208int 13209main () 13210{ 13211 struct sysinfo sinfo; 13212 sinfo.mem_unit = 1; 13213 13214 ; 13215 return 0; 13216} 13217_ACEOF 13218if ac_fn_c_try_compile "$LINENO"; then : 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13220$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13221 13222else 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13224$as_echo "no" >&6; } 13225fi 13226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13227 13228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13229$as_echo_n "checking for sysconf... " >&6; } 13230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231/* end confdefs.h. */ 13232#include <unistd.h> 13233int 13234main () 13235{ 13236 (void)sysconf(_SC_PAGESIZE); 13237 (void)sysconf(_SC_PHYS_PAGES); 13238 13239 ; 13240 return 0; 13241} 13242_ACEOF 13243if ac_fn_c_try_compile "$LINENO"; then : 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13245$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13246 13247else 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13249$as_echo "not usable" >&6; } 13250fi 13251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13252 13253# The cast to long int works around a bug in the HP C Compiler 13254# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13255# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13256# This bug is HP SR number 8606223364. 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13258$as_echo_n "checking size of int... " >&6; } 13259if ${ac_cv_sizeof_int+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13263 13264else 13265 if test "$ac_cv_type_int" = yes; then 13266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13268as_fn_error 77 "cannot compute sizeof (int) 13269See \`config.log' for more details" "$LINENO" 5; } 13270 else 13271 ac_cv_sizeof_int=0 13272 fi 13273fi 13274 13275fi 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13277$as_echo "$ac_cv_sizeof_int" >&6; } 13278 13279 13280 13281cat >>confdefs.h <<_ACEOF 13282#define SIZEOF_INT $ac_cv_sizeof_int 13283_ACEOF 13284 13285 13286# The cast to long int works around a bug in the HP C Compiler 13287# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13288# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13289# This bug is HP SR number 8606223364. 13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13291$as_echo_n "checking size of long... " >&6; } 13292if ${ac_cv_sizeof_long+:} false; then : 13293 $as_echo_n "(cached) " >&6 13294else 13295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13296 13297else 13298 if test "$ac_cv_type_long" = yes; then 13299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13301as_fn_error 77 "cannot compute sizeof (long) 13302See \`config.log' for more details" "$LINENO" 5; } 13303 else 13304 ac_cv_sizeof_long=0 13305 fi 13306fi 13307 13308fi 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13310$as_echo "$ac_cv_sizeof_long" >&6; } 13311 13312 13313 13314cat >>confdefs.h <<_ACEOF 13315#define SIZEOF_LONG $ac_cv_sizeof_long 13316_ACEOF 13317 13318 13319# The cast to long int works around a bug in the HP C Compiler 13320# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13321# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13322# This bug is HP SR number 8606223364. 13323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13324$as_echo_n "checking size of time_t... " >&6; } 13325if ${ac_cv_sizeof_time_t+:} false; then : 13326 $as_echo_n "(cached) " >&6 13327else 13328 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 13329 13330else 13331 if test "$ac_cv_type_time_t" = yes; then 13332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13334as_fn_error 77 "cannot compute sizeof (time_t) 13335See \`config.log' for more details" "$LINENO" 5; } 13336 else 13337 ac_cv_sizeof_time_t=0 13338 fi 13339fi 13340 13341fi 13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 13343$as_echo "$ac_cv_sizeof_time_t" >&6; } 13344 13345 13346 13347cat >>confdefs.h <<_ACEOF 13348#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 13349_ACEOF 13350 13351 13352# The cast to long int works around a bug in the HP C Compiler 13353# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13354# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13355# This bug is HP SR number 8606223364. 13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 13357$as_echo_n "checking size of off_t... " >&6; } 13358if ${ac_cv_sizeof_off_t+:} false; then : 13359 $as_echo_n "(cached) " >&6 13360else 13361 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 13362 13363else 13364 if test "$ac_cv_type_off_t" = yes; then 13365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13367as_fn_error 77 "cannot compute sizeof (off_t) 13368See \`config.log' for more details" "$LINENO" 5; } 13369 else 13370 ac_cv_sizeof_off_t=0 13371 fi 13372fi 13373 13374fi 13375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 13376$as_echo "$ac_cv_sizeof_off_t" >&6; } 13377 13378 13379 13380cat >>confdefs.h <<_ACEOF 13381#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13382_ACEOF 13383 13384 13385 13386cat >>confdefs.h <<_ACEOF 13387#define VIM_SIZEOF_INT $ac_cv_sizeof_int 13388_ACEOF 13389 13390cat >>confdefs.h <<_ACEOF 13391#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 13392_ACEOF 13393 13394 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 13396$as_echo_n "checking uint32_t is 32 bits... " >&6; } 13397if test "$cross_compiling" = yes; then : 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 13399$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 13400else 13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13402/* end confdefs.h. */ 13403 13404#ifdef HAVE_STDINT_H 13405# include <stdint.h> 13406#endif 13407#ifdef HAVE_INTTYPES_H 13408# include <inttypes.h> 13409#endif 13410main() { 13411 uint32_t nr1 = (uint32_t)-1; 13412 uint32_t nr2 = (uint32_t)0xffffffffUL; 13413 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 13414 exit(0); 13415} 13416_ACEOF 13417if ac_fn_c_try_run "$LINENO"; then : 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13419$as_echo "ok" >&6; } 13420else 13421 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 13422fi 13423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13424 conftest.$ac_objext conftest.beam conftest.$ac_ext 13425fi 13426 13427 13428 13429bcopy_test_prog=' 13430#include "confdefs.h" 13431#ifdef HAVE_STRING_H 13432# include <string.h> 13433#endif 13434#if STDC_HEADERS 13435# include <stdlib.h> 13436# include <stddef.h> 13437#endif 13438main() { 13439 char buf[10]; 13440 strcpy(buf, "abcdefghi"); 13441 mch_memmove(buf, buf + 2, 3); 13442 if (strncmp(buf, "ababcf", 6)) 13443 exit(1); 13444 strcpy(buf, "abcdefghi"); 13445 mch_memmove(buf + 2, buf, 3); 13446 if (strncmp(buf, "cdedef", 6)) 13447 exit(1); 13448 exit(0); /* libc version works properly. */ 13449}' 13450 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 13452$as_echo_n "checking whether memmove handles overlaps... " >&6; } 13453if ${vim_cv_memmove_handles_overlap+:} false; then : 13454 $as_echo_n "(cached) " >&6 13455else 13456 13457 if test "$cross_compiling" = yes; then : 13458 13459 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 13460 13461else 13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13463/* end confdefs.h. */ 13464#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 13465_ACEOF 13466if ac_fn_c_try_run "$LINENO"; then : 13467 13468 vim_cv_memmove_handles_overlap=yes 13469 13470else 13471 13472 vim_cv_memmove_handles_overlap=no 13473 13474fi 13475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13476 conftest.$ac_objext conftest.beam conftest.$ac_ext 13477fi 13478 13479 13480fi 13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 13482$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 13483 13484if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 13485 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 13486 13487else 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 13489$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 13490if ${vim_cv_bcopy_handles_overlap+:} false; then : 13491 $as_echo_n "(cached) " >&6 13492else 13493 13494 if test "$cross_compiling" = yes; then : 13495 13496 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 13497 13498else 13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13500/* end confdefs.h. */ 13501#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 13502_ACEOF 13503if ac_fn_c_try_run "$LINENO"; then : 13504 13505 vim_cv_bcopy_handles_overlap=yes 13506 13507else 13508 13509 vim_cv_bcopy_handles_overlap=no 13510 13511fi 13512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13513 conftest.$ac_objext conftest.beam conftest.$ac_ext 13514fi 13515 13516 13517fi 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 13519$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 13520 13521 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 13522 $as_echo "#define USEBCOPY 1" >>confdefs.h 13523 13524 else 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 13526$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 13527if ${vim_cv_memcpy_handles_overlap+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529else 13530 13531 if test "$cross_compiling" = yes; then : 13532 13533 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 13534 13535else 13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13537/* end confdefs.h. */ 13538#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 13539_ACEOF 13540if ac_fn_c_try_run "$LINENO"; then : 13541 13542 vim_cv_memcpy_handles_overlap=yes 13543 13544else 13545 13546 vim_cv_memcpy_handles_overlap=no 13547 13548fi 13549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13550 conftest.$ac_objext conftest.beam conftest.$ac_ext 13551fi 13552 13553 13554fi 13555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 13556$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 13557 13558 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 13559 $as_echo "#define USEMEMCPY 1" >>confdefs.h 13560 13561 fi 13562 fi 13563fi 13564 13565 13566if test "x$with_x" = "xyes"; then 13567 cflags_save=$CFLAGS 13568 libs_save=$LIBS 13569 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 13570 CFLAGS="$CFLAGS $X_CFLAGS" 13571 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 13573$as_echo_n "checking whether X_LOCALE needed... " >&6; } 13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13575/* end confdefs.h. */ 13576#include <X11/Xlocale.h> 13577int 13578main () 13579{ 13580 13581 ; 13582 return 0; 13583} 13584_ACEOF 13585if ac_fn_c_try_compile "$LINENO"; then : 13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13587/* end confdefs.h. */ 13588 13589/* Override any GCC internal prototype to avoid an error. 13590 Use char because int might match the return type of a GCC 13591 builtin and then its argument prototype would still apply. */ 13592#ifdef __cplusplus 13593extern "C" 13594#endif 13595char _Xsetlocale (); 13596int 13597main () 13598{ 13599return _Xsetlocale (); 13600 ; 13601 return 0; 13602} 13603_ACEOF 13604if ac_fn_c_try_link "$LINENO"; then : 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13606$as_echo "yes" >&6; } 13607 $as_echo "#define X_LOCALE 1" >>confdefs.h 13608 13609else 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13611$as_echo "no" >&6; } 13612fi 13613rm -f core conftest.err conftest.$ac_objext \ 13614 conftest$ac_exeext conftest.$ac_ext 13615else 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13617$as_echo "no" >&6; } 13618fi 13619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13620 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 13622$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13624/* end confdefs.h. */ 13625 13626/* Override any GCC internal prototype to avoid an error. 13627 Use char because int might match the return type of a GCC 13628 builtin and then its argument prototype would still apply. */ 13629#ifdef __cplusplus 13630extern "C" 13631#endif 13632char Xutf8SetWMProperties (); 13633int 13634main () 13635{ 13636return Xutf8SetWMProperties (); 13637 ; 13638 return 0; 13639} 13640_ACEOF 13641if ac_fn_c_try_link "$LINENO"; then : 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13643$as_echo "yes" >&6; } 13644 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 13645 13646else 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13648$as_echo "no" >&6; } 13649fi 13650rm -f core conftest.err conftest.$ac_objext \ 13651 conftest$ac_exeext conftest.$ac_ext 13652 13653 CFLAGS=$cflags_save 13654 LIBS=$libs_save 13655fi 13656 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 13658$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 13659if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 13660 $as_echo_n "(cached) " >&6 13661else 13662 ac_check_lib_save_LIBS=$LIBS 13663LIBS="-lxpg4 $LIBS" 13664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13665/* end confdefs.h. */ 13666 13667/* Override any GCC internal prototype to avoid an error. 13668 Use char because int might match the return type of a GCC 13669 builtin and then its argument prototype would still apply. */ 13670#ifdef __cplusplus 13671extern "C" 13672#endif 13673char _xpg4_setrunelocale (); 13674int 13675main () 13676{ 13677return _xpg4_setrunelocale (); 13678 ; 13679 return 0; 13680} 13681_ACEOF 13682if ac_fn_c_try_link "$LINENO"; then : 13683 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 13684else 13685 ac_cv_lib_xpg4__xpg4_setrunelocale=no 13686fi 13687rm -f core conftest.err conftest.$ac_objext \ 13688 conftest$ac_exeext conftest.$ac_ext 13689LIBS=$ac_check_lib_save_LIBS 13690fi 13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 13692$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 13693if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 13694 LIBS="$LIBS -lxpg4" 13695fi 13696 13697 13698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 13699$as_echo_n "checking how to create tags... " >&6; } 13700test -f tags && mv tags tags.save 13701if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13702 TAGPRG="ctags -I INIT+ --fields=+S" 13703elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13704 TAGPRG="exctags -I INIT+ --fields=+S" 13705elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13706 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 13707else 13708 TAGPRG="ctags" 13709 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 13710 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 13711 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 13712 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 13713 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 13714 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 13715 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 13716fi 13717test -f tags.save && mv tags.save tags 13718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 13719$as_echo "$TAGPRG" >&6; } 13720 13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 13722$as_echo_n "checking how to run man with a section nr... " >&6; } 13723MANDEF="man" 13724(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 13725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 13726$as_echo "$MANDEF" >&6; } 13727if test "$MANDEF" = "man -s"; then 13728 $as_echo "#define USEMAN_S 1" >>confdefs.h 13729 13730fi 13731 13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 13733$as_echo_n "checking --disable-nls argument... " >&6; } 13734# Check whether --enable-nls was given. 13735if test "${enable_nls+set}" = set; then : 13736 enableval=$enable_nls; 13737else 13738 enable_nls="yes" 13739fi 13740 13741 13742if test "$enable_nls" = "yes"; then 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13744$as_echo "no" >&6; } 13745 13746 INSTALL_LANGS=install-languages 13747 13748 INSTALL_TOOL_LANGS=install-tool-languages 13749 13750 13751 # Extract the first word of "msgfmt", so it can be a program name with args. 13752set dummy msgfmt; ac_word=$2 13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13754$as_echo_n "checking for $ac_word... " >&6; } 13755if ${ac_cv_prog_MSGFMT+:} false; then : 13756 $as_echo_n "(cached) " >&6 13757else 13758 if test -n "$MSGFMT"; then 13759 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 13760else 13761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13762for as_dir in $PATH 13763do 13764 IFS=$as_save_IFS 13765 test -z "$as_dir" && as_dir=. 13766 for ac_exec_ext in '' $ac_executable_extensions; do 13767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13768 ac_cv_prog_MSGFMT="msgfmt" 13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13770 break 2 13771 fi 13772done 13773 done 13774IFS=$as_save_IFS 13775 13776fi 13777fi 13778MSGFMT=$ac_cv_prog_MSGFMT 13779if test -n "$MSGFMT"; then 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13781$as_echo "$MSGFMT" >&6; } 13782else 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13784$as_echo "no" >&6; } 13785fi 13786 13787 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 13789$as_echo_n "checking for NLS... " >&6; } 13790 if test -f po/Makefile; then 13791 have_gettext="no" 13792 if test -n "$MSGFMT"; then 13793 olibs=$LIBS 13794 LIBS="" 13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13796/* end confdefs.h. */ 13797#include <libintl.h> 13798int 13799main () 13800{ 13801gettext("Test"); 13802 ; 13803 return 0; 13804} 13805_ACEOF 13806if ac_fn_c_try_link "$LINENO"; then : 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 13808$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 13809else 13810 LIBS="-lintl" 13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13812/* end confdefs.h. */ 13813#include <libintl.h> 13814int 13815main () 13816{ 13817gettext("Test"); 13818 ; 13819 return 0; 13820} 13821_ACEOF 13822if ac_fn_c_try_link "$LINENO"; then : 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 13824$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 13825 LIBS="$olibs -lintl" 13826else 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 13828$as_echo "gettext() doesn't work" >&6; }; 13829 LIBS=$olibs 13830fi 13831rm -f core conftest.err conftest.$ac_objext \ 13832 conftest$ac_exeext conftest.$ac_ext 13833fi 13834rm -f core conftest.err conftest.$ac_objext \ 13835 conftest$ac_exeext conftest.$ac_ext 13836 else 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 13838$as_echo "msgfmt not found - disabled" >&6; }; 13839 fi 13840 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 13841 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13842 13843 MAKEMO=yes 13844 13845 for ac_func in bind_textdomain_codeset 13846do : 13847 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13848if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 13849 cat >>confdefs.h <<_ACEOF 13850#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13851_ACEOF 13852 13853fi 13854done 13855 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 13857$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13859/* end confdefs.h. */ 13860#include <libintl.h> 13861 extern int _nl_msg_cat_cntr; 13862int 13863main () 13864{ 13865++_nl_msg_cat_cntr; 13866 ; 13867 return 0; 13868} 13869_ACEOF 13870if ac_fn_c_try_link "$LINENO"; then : 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13872$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 13873 13874else 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13876$as_echo "no" >&6; } 13877fi 13878rm -f core conftest.err conftest.$ac_objext \ 13879 conftest$ac_exeext conftest.$ac_ext 13880 fi 13881 else 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 13883$as_echo "no \"po/Makefile\" - disabled" >&6; }; 13884 fi 13885else 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13887$as_echo "yes" >&6; } 13888fi 13889 13890ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13891if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13892 DLL=dlfcn.h 13893else 13894 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 13895if test "x$ac_cv_header_dl_h" = xyes; then : 13896 DLL=dl.h 13897fi 13898 13899 13900fi 13901 13902 13903if test x${DLL} = xdlfcn.h; then 13904 13905$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 13906 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 13908$as_echo_n "checking for dlopen()... " >&6; } 13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13910/* end confdefs.h. */ 13911 13912int 13913main () 13914{ 13915 13916 extern void* dlopen(); 13917 dlopen(); 13918 13919 ; 13920 return 0; 13921} 13922_ACEOF 13923if ac_fn_c_try_link "$LINENO"; then : 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13925$as_echo "yes" >&6; }; 13926 13927$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13928 13929else 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13931$as_echo "no" >&6; }; 13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 13933$as_echo_n "checking for dlopen() in -ldl... " >&6; } 13934 olibs=$LIBS 13935 LIBS="$LIBS -ldl" 13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13937/* end confdefs.h. */ 13938 13939int 13940main () 13941{ 13942 13943 extern void* dlopen(); 13944 dlopen(); 13945 13946 ; 13947 return 0; 13948} 13949_ACEOF 13950if ac_fn_c_try_link "$LINENO"; then : 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13952$as_echo "yes" >&6; }; 13953 13954$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13955 13956else 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13958$as_echo "no" >&6; }; 13959 LIBS=$olibs 13960fi 13961rm -f core conftest.err conftest.$ac_objext \ 13962 conftest$ac_exeext conftest.$ac_ext 13963fi 13964rm -f core conftest.err conftest.$ac_objext \ 13965 conftest$ac_exeext conftest.$ac_ext 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 13967$as_echo_n "checking for dlsym()... " >&6; } 13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13969/* end confdefs.h. */ 13970 13971int 13972main () 13973{ 13974 13975 extern void* dlsym(); 13976 dlsym(); 13977 13978 ; 13979 return 0; 13980} 13981_ACEOF 13982if ac_fn_c_try_link "$LINENO"; then : 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13984$as_echo "yes" >&6; }; 13985 13986$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13987 13988else 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13990$as_echo "no" >&6; }; 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 13992$as_echo_n "checking for dlsym() in -ldl... " >&6; } 13993 olibs=$LIBS 13994 LIBS="$LIBS -ldl" 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997 13998int 13999main () 14000{ 14001 14002 extern void* dlsym(); 14003 dlsym(); 14004 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; }; 14012 14013$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 14014 14015else 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14017$as_echo "no" >&6; }; 14018 LIBS=$olibs 14019fi 14020rm -f core conftest.err conftest.$ac_objext \ 14021 conftest$ac_exeext conftest.$ac_ext 14022fi 14023rm -f core conftest.err conftest.$ac_objext \ 14024 conftest$ac_exeext conftest.$ac_ext 14025elif test x${DLL} = xdl.h; then 14026 14027$as_echo "#define HAVE_DL_H 1" >>confdefs.h 14028 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 14030$as_echo_n "checking for shl_load()... " >&6; } 14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14032/* end confdefs.h. */ 14033 14034int 14035main () 14036{ 14037 14038 extern void* shl_load(); 14039 shl_load(); 14040 14041 ; 14042 return 0; 14043} 14044_ACEOF 14045if ac_fn_c_try_link "$LINENO"; then : 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14047$as_echo "yes" >&6; }; 14048 14049$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14050 14051else 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14053$as_echo "no" >&6; }; 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14055$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14056 olibs=$LIBS 14057 LIBS="$LIBS -ldld" 14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14059/* end confdefs.h. */ 14060 14061int 14062main () 14063{ 14064 14065 extern void* shl_load(); 14066 shl_load(); 14067 14068 ; 14069 return 0; 14070} 14071_ACEOF 14072if ac_fn_c_try_link "$LINENO"; then : 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14074$as_echo "yes" >&6; }; 14075 14076$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14077 14078else 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14080$as_echo "no" >&6; }; 14081 LIBS=$olibs 14082fi 14083rm -f core conftest.err conftest.$ac_objext \ 14084 conftest$ac_exeext conftest.$ac_ext 14085fi 14086rm -f core conftest.err conftest.$ac_objext \ 14087 conftest$ac_exeext conftest.$ac_ext 14088fi 14089for ac_header in setjmp.h 14090do : 14091 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14092if test "x$ac_cv_header_setjmp_h" = xyes; then : 14093 cat >>confdefs.h <<_ACEOF 14094#define HAVE_SETJMP_H 1 14095_ACEOF 14096 14097fi 14098 14099done 14100 14101 14102if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 14103 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14104 LIBS=`echo $LIBS | sed s/-ldl//` 14105 PERL_LIBS="$PERL_LIBS -ldl" 14106 fi 14107fi 14108 14109if test "x$MACOSX" = "xyes"; then 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5 14111$as_echo_n "checking whether we need -framework Cocoa... " >&6; } 14112 if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then 14113 LIBS=$"$LIBS -framework Cocoa" 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14115$as_echo "yes" >&6; } 14116 else 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14118$as_echo "no" >&6; } 14119 fi 14120 if test "x$features" = "xtiny"; then 14121 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14122 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14123 fi 14124fi 14125if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14126 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14127fi 14128 14129DEPEND_CFLAGS_FILTER= 14130if test "$GCC" = yes; then 14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14132$as_echo_n "checking for GCC 3 or later... " >&6; } 14133 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 14134 if test "$gccmajor" -gt "2"; then 14135 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14137$as_echo "yes" >&6; } 14138 else 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14140$as_echo "no" >&6; } 14141 fi 14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14143$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14144 if test "$gccmajor" -gt "3"; then 14145 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/'` 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14147$as_echo "yes" >&6; } 14148 else 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14150$as_echo "no" >&6; } 14151 fi 14152fi 14153 14154 14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14156$as_echo_n "checking linker --as-needed support... " >&6; } 14157LINK_AS_NEEDED= 14158# Check if linker supports --as-needed and --no-as-needed options 14159if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14160 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14161 LINK_AS_NEEDED=yes 14162fi 14163if test "$LINK_AS_NEEDED" = yes; then 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14165$as_echo "yes" >&6; } 14166else 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14168$as_echo "no" >&6; } 14169fi 14170 14171 14172# IBM z/OS reset CFLAGS for config.mk 14173if test "$zOSUnix" = "yes"; then 14174 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14175fi 14176 14177ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14178 14179cat >confcache <<\_ACEOF 14180# This file is a shell script that caches the results of configure 14181# tests run on this system so they can be shared between configure 14182# scripts and configure runs, see configure's option --config-cache. 14183# It is not useful on other systems. If it contains results you don't 14184# want to keep, you may remove or edit it. 14185# 14186# config.status only pays attention to the cache file if you give it 14187# the --recheck option to rerun configure. 14188# 14189# `ac_cv_env_foo' variables (set or unset) will be overridden when 14190# loading this file, other *unset* `ac_cv_foo' will be assigned the 14191# following values. 14192 14193_ACEOF 14194 14195# The following way of writing the cache mishandles newlines in values, 14196# but we know of no workaround that is simple, portable, and efficient. 14197# So, we kill variables containing newlines. 14198# Ultrix sh set writes to stderr and can't be redirected directly, 14199# and sets the high bit in the cache file unless we assign to the vars. 14200( 14201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14202 eval ac_val=\$$ac_var 14203 case $ac_val in #( 14204 *${as_nl}*) 14205 case $ac_var in #( 14206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14207$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14208 esac 14209 case $ac_var in #( 14210 _ | IFS | as_nl) ;; #( 14211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14212 *) { eval $ac_var=; unset $ac_var;} ;; 14213 esac ;; 14214 esac 14215 done 14216 14217 (set) 2>&1 | 14218 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14219 *${as_nl}ac_space=\ *) 14220 # `set' does not quote correctly, so add quotes: double-quote 14221 # substitution turns \\\\ into \\, and sed turns \\ into \. 14222 sed -n \ 14223 "s/'/'\\\\''/g; 14224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14225 ;; #( 14226 *) 14227 # `set' quotes correctly as required by POSIX, so do not add quotes. 14228 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14229 ;; 14230 esac | 14231 sort 14232) | 14233 sed ' 14234 /^ac_cv_env_/b end 14235 t clear 14236 :clear 14237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14238 t end 14239 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14240 :end' >>confcache 14241if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14242 if test -w "$cache_file"; then 14243 if test "x$cache_file" != "x/dev/null"; then 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14245$as_echo "$as_me: updating cache $cache_file" >&6;} 14246 if test ! -f "$cache_file" || test -h "$cache_file"; then 14247 cat confcache >"$cache_file" 14248 else 14249 case $cache_file in #( 14250 */* | ?:*) 14251 mv -f confcache "$cache_file"$$ && 14252 mv -f "$cache_file"$$ "$cache_file" ;; #( 14253 *) 14254 mv -f confcache "$cache_file" ;; 14255 esac 14256 fi 14257 fi 14258 else 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14260$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14261 fi 14262fi 14263rm -f confcache 14264 14265test "x$prefix" = xNONE && prefix=$ac_default_prefix 14266# Let make expand exec_prefix. 14267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14268 14269DEFS=-DHAVE_CONFIG_H 14270 14271ac_libobjs= 14272ac_ltlibobjs= 14273U= 14274for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14275 # 1. Remove the extension, and $U if already installed. 14276 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14277 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14278 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14279 # will be set to the directory where LIBOBJS objects are built. 14280 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14281 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14282done 14283LIBOBJS=$ac_libobjs 14284 14285LTLIBOBJS=$ac_ltlibobjs 14286 14287 14288 14289 14290: "${CONFIG_STATUS=./config.status}" 14291ac_write_fail=0 14292ac_clean_files_save=$ac_clean_files 14293ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14294{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14295$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14296as_write_fail=0 14297cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14298#! $SHELL 14299# Generated by $as_me. 14300# Run this file to recreate the current configuration. 14301# Compiler output produced by configure, useful for debugging 14302# configure, is in config.log if it exists. 14303 14304debug=false 14305ac_cs_recheck=false 14306ac_cs_silent=false 14307 14308SHELL=\${CONFIG_SHELL-$SHELL} 14309export SHELL 14310_ASEOF 14311cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14312## -------------------- ## 14313## M4sh Initialization. ## 14314## -------------------- ## 14315 14316# Be more Bourne compatible 14317DUALCASE=1; export DUALCASE # for MKS sh 14318if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14319 emulate sh 14320 NULLCMD=: 14321 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14322 # is contrary to our usage. Disable this feature. 14323 alias -g '${1+"$@"}'='"$@"' 14324 setopt NO_GLOB_SUBST 14325else 14326 case `(set -o) 2>/dev/null` in #( 14327 *posix*) : 14328 set -o posix ;; #( 14329 *) : 14330 ;; 14331esac 14332fi 14333 14334 14335as_nl=' 14336' 14337export as_nl 14338# Printing a long string crashes Solaris 7 /usr/bin/printf. 14339as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14340as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14341as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14342# Prefer a ksh shell builtin over an external printf program on Solaris, 14343# but without wasting forks for bash or zsh. 14344if test -z "$BASH_VERSION$ZSH_VERSION" \ 14345 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14346 as_echo='print -r --' 14347 as_echo_n='print -rn --' 14348elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14349 as_echo='printf %s\n' 14350 as_echo_n='printf %s' 14351else 14352 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14353 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14354 as_echo_n='/usr/ucb/echo -n' 14355 else 14356 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14357 as_echo_n_body='eval 14358 arg=$1; 14359 case $arg in #( 14360 *"$as_nl"*) 14361 expr "X$arg" : "X\\(.*\\)$as_nl"; 14362 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14363 esac; 14364 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14365 ' 14366 export as_echo_n_body 14367 as_echo_n='sh -c $as_echo_n_body as_echo' 14368 fi 14369 export as_echo_body 14370 as_echo='sh -c $as_echo_body as_echo' 14371fi 14372 14373# The user is always right. 14374if test "${PATH_SEPARATOR+set}" != set; then 14375 PATH_SEPARATOR=: 14376 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14377 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14378 PATH_SEPARATOR=';' 14379 } 14380fi 14381 14382 14383# IFS 14384# We need space, tab and new line, in precisely that order. Quoting is 14385# there to prevent editors from complaining about space-tab. 14386# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14387# splitting by setting IFS to empty value.) 14388IFS=" "" $as_nl" 14389 14390# Find who we are. Look in the path if we contain no directory separator. 14391as_myself= 14392case $0 in #(( 14393 *[\\/]* ) as_myself=$0 ;; 14394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14395for as_dir in $PATH 14396do 14397 IFS=$as_save_IFS 14398 test -z "$as_dir" && as_dir=. 14399 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14400 done 14401IFS=$as_save_IFS 14402 14403 ;; 14404esac 14405# We did not find ourselves, most probably we were run as `sh COMMAND' 14406# in which case we are not to be found in the path. 14407if test "x$as_myself" = x; then 14408 as_myself=$0 14409fi 14410if test ! -f "$as_myself"; then 14411 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14412 exit 1 14413fi 14414 14415# Unset variables that we do not need and which cause bugs (e.g. in 14416# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14417# suppresses any "Segmentation fault" message there. '((' could 14418# trigger a bug in pdksh 5.2.14. 14419for as_var in BASH_ENV ENV MAIL MAILPATH 14420do eval test x\${$as_var+set} = xset \ 14421 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14422done 14423PS1='$ ' 14424PS2='> ' 14425PS4='+ ' 14426 14427# NLS nuisances. 14428LC_ALL=C 14429export LC_ALL 14430LANGUAGE=C 14431export LANGUAGE 14432 14433# CDPATH. 14434(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14435 14436 14437# as_fn_error STATUS ERROR [LINENO LOG_FD] 14438# ---------------------------------------- 14439# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14440# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14441# script with STATUS, using 1 if that was 0. 14442as_fn_error () 14443{ 14444 as_status=$1; test $as_status -eq 0 && as_status=1 14445 if test "$4"; then 14446 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14447 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14448 fi 14449 $as_echo "$as_me: error: $2" >&2 14450 as_fn_exit $as_status 14451} # as_fn_error 14452 14453 14454# as_fn_set_status STATUS 14455# ----------------------- 14456# Set $? to STATUS, without forking. 14457as_fn_set_status () 14458{ 14459 return $1 14460} # as_fn_set_status 14461 14462# as_fn_exit STATUS 14463# ----------------- 14464# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14465as_fn_exit () 14466{ 14467 set +e 14468 as_fn_set_status $1 14469 exit $1 14470} # as_fn_exit 14471 14472# as_fn_unset VAR 14473# --------------- 14474# Portably unset VAR. 14475as_fn_unset () 14476{ 14477 { eval $1=; unset $1;} 14478} 14479as_unset=as_fn_unset 14480# as_fn_append VAR VALUE 14481# ---------------------- 14482# Append the text in VALUE to the end of the definition contained in VAR. Take 14483# advantage of any shell optimizations that allow amortized linear growth over 14484# repeated appends, instead of the typical quadratic growth present in naive 14485# implementations. 14486if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14487 eval 'as_fn_append () 14488 { 14489 eval $1+=\$2 14490 }' 14491else 14492 as_fn_append () 14493 { 14494 eval $1=\$$1\$2 14495 } 14496fi # as_fn_append 14497 14498# as_fn_arith ARG... 14499# ------------------ 14500# Perform arithmetic evaluation on the ARGs, and store the result in the 14501# global $as_val. Take advantage of shells that can avoid forks. The arguments 14502# must be portable across $(()) and expr. 14503if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14504 eval 'as_fn_arith () 14505 { 14506 as_val=$(( $* )) 14507 }' 14508else 14509 as_fn_arith () 14510 { 14511 as_val=`expr "$@" || test $? -eq 1` 14512 } 14513fi # as_fn_arith 14514 14515 14516if expr a : '\(a\)' >/dev/null 2>&1 && 14517 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14518 as_expr=expr 14519else 14520 as_expr=false 14521fi 14522 14523if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14524 as_basename=basename 14525else 14526 as_basename=false 14527fi 14528 14529if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14530 as_dirname=dirname 14531else 14532 as_dirname=false 14533fi 14534 14535as_me=`$as_basename -- "$0" || 14536$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14537 X"$0" : 'X\(//\)$' \| \ 14538 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14539$as_echo X/"$0" | 14540 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14541 s//\1/ 14542 q 14543 } 14544 /^X\/\(\/\/\)$/{ 14545 s//\1/ 14546 q 14547 } 14548 /^X\/\(\/\).*/{ 14549 s//\1/ 14550 q 14551 } 14552 s/.*/./; q'` 14553 14554# Avoid depending upon Character Ranges. 14555as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14556as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14557as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14558as_cr_digits='0123456789' 14559as_cr_alnum=$as_cr_Letters$as_cr_digits 14560 14561ECHO_C= ECHO_N= ECHO_T= 14562case `echo -n x` in #((((( 14563-n*) 14564 case `echo 'xy\c'` in 14565 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14566 xy) ECHO_C='\c';; 14567 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14568 ECHO_T=' ';; 14569 esac;; 14570*) 14571 ECHO_N='-n';; 14572esac 14573 14574rm -f conf$$ conf$$.exe conf$$.file 14575if test -d conf$$.dir; then 14576 rm -f conf$$.dir/conf$$.file 14577else 14578 rm -f conf$$.dir 14579 mkdir conf$$.dir 2>/dev/null 14580fi 14581if (echo >conf$$.file) 2>/dev/null; then 14582 if ln -s conf$$.file conf$$ 2>/dev/null; then 14583 as_ln_s='ln -s' 14584 # ... but there are two gotchas: 14585 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14586 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14587 # In both cases, we have to default to `cp -pR'. 14588 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14589 as_ln_s='cp -pR' 14590 elif ln conf$$.file conf$$ 2>/dev/null; then 14591 as_ln_s=ln 14592 else 14593 as_ln_s='cp -pR' 14594 fi 14595else 14596 as_ln_s='cp -pR' 14597fi 14598rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14599rmdir conf$$.dir 2>/dev/null 14600 14601 14602# as_fn_mkdir_p 14603# ------------- 14604# Create "$as_dir" as a directory, including parents if necessary. 14605as_fn_mkdir_p () 14606{ 14607 14608 case $as_dir in #( 14609 -*) as_dir=./$as_dir;; 14610 esac 14611 test -d "$as_dir" || eval $as_mkdir_p || { 14612 as_dirs= 14613 while :; do 14614 case $as_dir in #( 14615 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14616 *) as_qdir=$as_dir;; 14617 esac 14618 as_dirs="'$as_qdir' $as_dirs" 14619 as_dir=`$as_dirname -- "$as_dir" || 14620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14621 X"$as_dir" : 'X\(//\)[^/]' \| \ 14622 X"$as_dir" : 'X\(//\)$' \| \ 14623 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14624$as_echo X"$as_dir" | 14625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14626 s//\1/ 14627 q 14628 } 14629 /^X\(\/\/\)[^/].*/{ 14630 s//\1/ 14631 q 14632 } 14633 /^X\(\/\/\)$/{ 14634 s//\1/ 14635 q 14636 } 14637 /^X\(\/\).*/{ 14638 s//\1/ 14639 q 14640 } 14641 s/.*/./; q'` 14642 test -d "$as_dir" && break 14643 done 14644 test -z "$as_dirs" || eval "mkdir $as_dirs" 14645 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14646 14647 14648} # as_fn_mkdir_p 14649if mkdir -p . 2>/dev/null; then 14650 as_mkdir_p='mkdir -p "$as_dir"' 14651else 14652 test -d ./-p && rmdir ./-p 14653 as_mkdir_p=false 14654fi 14655 14656 14657# as_fn_executable_p FILE 14658# ----------------------- 14659# Test if FILE is an executable regular file. 14660as_fn_executable_p () 14661{ 14662 test -f "$1" && test -x "$1" 14663} # as_fn_executable_p 14664as_test_x='test -x' 14665as_executable_p=as_fn_executable_p 14666 14667# Sed expression to map a string onto a valid CPP name. 14668as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14669 14670# Sed expression to map a string onto a valid variable name. 14671as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14672 14673 14674exec 6>&1 14675## ----------------------------------- ## 14676## Main body of $CONFIG_STATUS script. ## 14677## ----------------------------------- ## 14678_ASEOF 14679test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14680 14681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14682# Save the log message, to keep $0 and so on meaningful, and to 14683# report actual input values of CONFIG_FILES etc. instead of their 14684# values after options handling. 14685ac_log=" 14686This file was extended by $as_me, which was 14687generated by GNU Autoconf 2.69. Invocation command line was 14688 14689 CONFIG_FILES = $CONFIG_FILES 14690 CONFIG_HEADERS = $CONFIG_HEADERS 14691 CONFIG_LINKS = $CONFIG_LINKS 14692 CONFIG_COMMANDS = $CONFIG_COMMANDS 14693 $ $0 $@ 14694 14695on `(hostname || uname -n) 2>/dev/null | sed 1q` 14696" 14697 14698_ACEOF 14699 14700case $ac_config_files in *" 14701"*) set x $ac_config_files; shift; ac_config_files=$*;; 14702esac 14703 14704case $ac_config_headers in *" 14705"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14706esac 14707 14708 14709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14710# Files that config.status was made for. 14711config_files="$ac_config_files" 14712config_headers="$ac_config_headers" 14713 14714_ACEOF 14715 14716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14717ac_cs_usage="\ 14718\`$as_me' instantiates files and other configuration actions 14719from templates according to the current configuration. Unless the files 14720and actions are specified as TAGs, all are instantiated by default. 14721 14722Usage: $0 [OPTION]... [TAG]... 14723 14724 -h, --help print this help, then exit 14725 -V, --version print version number and configuration settings, then exit 14726 --config print configuration, then exit 14727 -q, --quiet, --silent 14728 do not print progress messages 14729 -d, --debug don't remove temporary files 14730 --recheck update $as_me by reconfiguring in the same conditions 14731 --file=FILE[:TEMPLATE] 14732 instantiate the configuration file FILE 14733 --header=FILE[:TEMPLATE] 14734 instantiate the configuration header FILE 14735 14736Configuration files: 14737$config_files 14738 14739Configuration headers: 14740$config_headers 14741 14742Report bugs to the package provider." 14743 14744_ACEOF 14745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14746ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14747ac_cs_version="\\ 14748config.status 14749configured by $0, generated by GNU Autoconf 2.69, 14750 with options \\"\$ac_cs_config\\" 14751 14752Copyright (C) 2012 Free Software Foundation, Inc. 14753This config.status script is free software; the Free Software Foundation 14754gives unlimited permission to copy, distribute and modify it." 14755 14756ac_pwd='$ac_pwd' 14757srcdir='$srcdir' 14758AWK='$AWK' 14759test -n "\$AWK" || AWK=awk 14760_ACEOF 14761 14762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14763# The default lists apply if the user does not specify any file. 14764ac_need_defaults=: 14765while test $# != 0 14766do 14767 case $1 in 14768 --*=?*) 14769 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14770 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14771 ac_shift=: 14772 ;; 14773 --*=) 14774 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14775 ac_optarg= 14776 ac_shift=: 14777 ;; 14778 *) 14779 ac_option=$1 14780 ac_optarg=$2 14781 ac_shift=shift 14782 ;; 14783 esac 14784 14785 case $ac_option in 14786 # Handling of the options. 14787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14788 ac_cs_recheck=: ;; 14789 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14790 $as_echo "$ac_cs_version"; exit ;; 14791 --config | --confi | --conf | --con | --co | --c ) 14792 $as_echo "$ac_cs_config"; exit ;; 14793 --debug | --debu | --deb | --de | --d | -d ) 14794 debug=: ;; 14795 --file | --fil | --fi | --f ) 14796 $ac_shift 14797 case $ac_optarg in 14798 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14799 '') as_fn_error $? "missing file argument" ;; 14800 esac 14801 as_fn_append CONFIG_FILES " '$ac_optarg'" 14802 ac_need_defaults=false;; 14803 --header | --heade | --head | --hea ) 14804 $ac_shift 14805 case $ac_optarg in 14806 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14807 esac 14808 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14809 ac_need_defaults=false;; 14810 --he | --h) 14811 # Conflict between --help and --header 14812 as_fn_error $? "ambiguous option: \`$1' 14813Try \`$0 --help' for more information.";; 14814 --help | --hel | -h ) 14815 $as_echo "$ac_cs_usage"; exit ;; 14816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14817 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14818 ac_cs_silent=: ;; 14819 14820 # This is an error. 14821 -*) as_fn_error $? "unrecognized option: \`$1' 14822Try \`$0 --help' for more information." ;; 14823 14824 *) as_fn_append ac_config_targets " $1" 14825 ac_need_defaults=false ;; 14826 14827 esac 14828 shift 14829done 14830 14831ac_configure_extra_args= 14832 14833if $ac_cs_silent; then 14834 exec 6>/dev/null 14835 ac_configure_extra_args="$ac_configure_extra_args --silent" 14836fi 14837 14838_ACEOF 14839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14840if \$ac_cs_recheck; then 14841 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14842 shift 14843 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14844 CONFIG_SHELL='$SHELL' 14845 export CONFIG_SHELL 14846 exec "\$@" 14847fi 14848 14849_ACEOF 14850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14851exec 5>>auto/config.log 14852{ 14853 echo 14854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14855## Running $as_me. ## 14856_ASBOX 14857 $as_echo "$ac_log" 14858} >&5 14859 14860_ACEOF 14861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14862_ACEOF 14863 14864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14865 14866# Handling of arguments. 14867for ac_config_target in $ac_config_targets 14868do 14869 case $ac_config_target in 14870 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 14871 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 14872 14873 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14874 esac 14875done 14876 14877 14878# If the user did not use the arguments to specify the items to instantiate, 14879# then the envvar interface is used. Set only those that are not. 14880# We use the long form for the default assignment because of an extremely 14881# bizarre bug on SunOS 4.1.3. 14882if $ac_need_defaults; then 14883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14885fi 14886 14887# Have a temporary directory for convenience. Make it in the build tree 14888# simply because there is no reason against having it here, and in addition, 14889# creating and moving files from /tmp can sometimes cause problems. 14890# Hook for its removal unless debugging. 14891# Note that there is a small window in which the directory will not be cleaned: 14892# after its creation but before its name has been assigned to `$tmp'. 14893$debug || 14894{ 14895 tmp= ac_tmp= 14896 trap 'exit_status=$? 14897 : "${ac_tmp:=$tmp}" 14898 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14899' 0 14900 trap 'as_fn_exit 1' 1 2 13 15 14901} 14902# Create a (secure) tmp directory for tmp files. 14903 14904{ 14905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14906 test -d "$tmp" 14907} || 14908{ 14909 tmp=./conf$$-$RANDOM 14910 (umask 077 && mkdir "$tmp") 14911} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14912ac_tmp=$tmp 14913 14914# Set up the scripts for CONFIG_FILES section. 14915# No need to generate them if there are no CONFIG_FILES. 14916# This happens for instance with `./config.status config.h'. 14917if test -n "$CONFIG_FILES"; then 14918 14919 14920ac_cr=`echo X | tr X '\015'` 14921# On cygwin, bash can eat \r inside `` if the user requested igncr. 14922# But we know of no other shell where ac_cr would be empty at this 14923# point, so we can use a bashism as a fallback. 14924if test "x$ac_cr" = x; then 14925 eval ac_cr=\$\'\\r\' 14926fi 14927ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14928if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14929 ac_cs_awk_cr='\\r' 14930else 14931 ac_cs_awk_cr=$ac_cr 14932fi 14933 14934echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14935_ACEOF 14936 14937 14938{ 14939 echo "cat >conf$$subs.awk <<_ACEOF" && 14940 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14941 echo "_ACEOF" 14942} >conf$$subs.sh || 14943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14944ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14945ac_delim='%!_!# ' 14946for ac_last_try in false false false false false :; do 14947 . ./conf$$subs.sh || 14948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14949 14950 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14951 if test $ac_delim_n = $ac_delim_num; then 14952 break 14953 elif $ac_last_try; then 14954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14955 else 14956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14957 fi 14958done 14959rm -f conf$$subs.sh 14960 14961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14962cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14963_ACEOF 14964sed -n ' 14965h 14966s/^/S["/; s/!.*/"]=/ 14967p 14968g 14969s/^[^!]*!// 14970:repl 14971t repl 14972s/'"$ac_delim"'$// 14973t delim 14974:nl 14975h 14976s/\(.\{148\}\)..*/\1/ 14977t more1 14978s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14979p 14980n 14981b repl 14982:more1 14983s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14984p 14985g 14986s/.\{148\}// 14987t nl 14988:delim 14989h 14990s/\(.\{148\}\)..*/\1/ 14991t more2 14992s/["\\]/\\&/g; s/^/"/; s/$/"/ 14993p 14994b 14995:more2 14996s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14997p 14998g 14999s/.\{148\}// 15000t delim 15001' <conf$$subs.awk | sed ' 15002/^[^""]/{ 15003 N 15004 s/\n// 15005} 15006' >>$CONFIG_STATUS || ac_write_fail=1 15007rm -f conf$$subs.awk 15008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15009_ACAWK 15010cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15011 for (key in S) S_is_set[key] = 1 15012 FS = "" 15013 15014} 15015{ 15016 line = $ 0 15017 nfields = split(line, field, "@") 15018 substed = 0 15019 len = length(field[1]) 15020 for (i = 2; i < nfields; i++) { 15021 key = field[i] 15022 keylen = length(key) 15023 if (S_is_set[key]) { 15024 value = S[key] 15025 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15026 len += length(value) + length(field[++i]) 15027 substed = 1 15028 } else 15029 len += 1 + keylen 15030 } 15031 15032 print line 15033} 15034 15035_ACAWK 15036_ACEOF 15037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15038if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15040else 15041 cat 15042fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15043 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15044_ACEOF 15045 15046# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15047# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15048# trailing colons and then remove the whole line if VPATH becomes empty 15049# (actually we leave an empty line to preserve line numbers). 15050if test "x$srcdir" = x.; then 15051 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15052h 15053s/// 15054s/^/:/ 15055s/[ ]*$/:/ 15056s/:\$(srcdir):/:/g 15057s/:\${srcdir}:/:/g 15058s/:@srcdir@:/:/g 15059s/^:*// 15060s/:*$// 15061x 15062s/\(=[ ]*\).*/\1/ 15063G 15064s/\n// 15065s/^[^=]*=[ ]*$// 15066}' 15067fi 15068 15069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15070fi # test -n "$CONFIG_FILES" 15071 15072# Set up the scripts for CONFIG_HEADERS section. 15073# No need to generate them if there are no CONFIG_HEADERS. 15074# This happens for instance with `./config.status Makefile'. 15075if test -n "$CONFIG_HEADERS"; then 15076cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15077BEGIN { 15078_ACEOF 15079 15080# Transform confdefs.h into an awk script `defines.awk', embedded as 15081# here-document in config.status, that substitutes the proper values into 15082# config.h.in to produce config.h. 15083 15084# Create a delimiter string that does not exist in confdefs.h, to ease 15085# handling of long lines. 15086ac_delim='%!_!# ' 15087for ac_last_try in false false :; do 15088 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15089 if test -z "$ac_tt"; then 15090 break 15091 elif $ac_last_try; then 15092 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15093 else 15094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15095 fi 15096done 15097 15098# For the awk script, D is an array of macro values keyed by name, 15099# likewise P contains macro parameters if any. Preserve backslash 15100# newline sequences. 15101 15102ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15103sed -n ' 15104s/.\{148\}/&'"$ac_delim"'/g 15105t rset 15106:rset 15107s/^[ ]*#[ ]*define[ ][ ]*/ / 15108t def 15109d 15110:def 15111s/\\$// 15112t bsnl 15113s/["\\]/\\&/g 15114s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15115D["\1"]=" \3"/p 15116s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15117d 15118:bsnl 15119s/["\\]/\\&/g 15120s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15121D["\1"]=" \3\\\\\\n"\\/p 15122t cont 15123s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15124t cont 15125d 15126:cont 15127n 15128s/.\{148\}/&'"$ac_delim"'/g 15129t clear 15130:clear 15131s/\\$// 15132t bsnlc 15133s/["\\]/\\&/g; s/^/"/; s/$/"/p 15134d 15135:bsnlc 15136s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15137b cont 15138' <confdefs.h | sed ' 15139s/'"$ac_delim"'/"\\\ 15140"/g' >>$CONFIG_STATUS || ac_write_fail=1 15141 15142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15143 for (key in D) D_is_set[key] = 1 15144 FS = "" 15145} 15146/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15147 line = \$ 0 15148 split(line, arg, " ") 15149 if (arg[1] == "#") { 15150 defundef = arg[2] 15151 mac1 = arg[3] 15152 } else { 15153 defundef = substr(arg[1], 2) 15154 mac1 = arg[2] 15155 } 15156 split(mac1, mac2, "(") #) 15157 macro = mac2[1] 15158 prefix = substr(line, 1, index(line, defundef) - 1) 15159 if (D_is_set[macro]) { 15160 # Preserve the white space surrounding the "#". 15161 print prefix "define", macro P[macro] D[macro] 15162 next 15163 } else { 15164 # Replace #undef with comments. This is necessary, for example, 15165 # in the case of _POSIX_SOURCE, which is predefined and required 15166 # on some systems where configure will not decide to define it. 15167 if (defundef == "undef") { 15168 print "/*", prefix defundef, macro, "*/" 15169 next 15170 } 15171 } 15172} 15173{ print } 15174_ACAWK 15175_ACEOF 15176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15177 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15178fi # test -n "$CONFIG_HEADERS" 15179 15180 15181eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15182shift 15183for ac_tag 15184do 15185 case $ac_tag in 15186 :[FHLC]) ac_mode=$ac_tag; continue;; 15187 esac 15188 case $ac_mode$ac_tag in 15189 :[FHL]*:*);; 15190 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15191 :[FH]-) ac_tag=-:-;; 15192 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15193 esac 15194 ac_save_IFS=$IFS 15195 IFS=: 15196 set x $ac_tag 15197 IFS=$ac_save_IFS 15198 shift 15199 ac_file=$1 15200 shift 15201 15202 case $ac_mode in 15203 :L) ac_source=$1;; 15204 :[FH]) 15205 ac_file_inputs= 15206 for ac_f 15207 do 15208 case $ac_f in 15209 -) ac_f="$ac_tmp/stdin";; 15210 *) # Look for the file first in the build tree, then in the source tree 15211 # (if the path is not absolute). The absolute path cannot be DOS-style, 15212 # because $ac_f cannot contain `:'. 15213 test -f "$ac_f" || 15214 case $ac_f in 15215 [\\/$]*) false;; 15216 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15217 esac || 15218 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15219 esac 15220 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15221 as_fn_append ac_file_inputs " '$ac_f'" 15222 done 15223 15224 # Let's still pretend it is `configure' which instantiates (i.e., don't 15225 # use $as_me), people would be surprised to read: 15226 # /* config.h. Generated by config.status. */ 15227 configure_input='Generated from '` 15228 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15229 `' by configure.' 15230 if test x"$ac_file" != x-; then 15231 configure_input="$ac_file. $configure_input" 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15233$as_echo "$as_me: creating $ac_file" >&6;} 15234 fi 15235 # Neutralize special characters interpreted by sed in replacement strings. 15236 case $configure_input in #( 15237 *\&* | *\|* | *\\* ) 15238 ac_sed_conf_input=`$as_echo "$configure_input" | 15239 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15240 *) ac_sed_conf_input=$configure_input;; 15241 esac 15242 15243 case $ac_tag in 15244 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15246 esac 15247 ;; 15248 esac 15249 15250 ac_dir=`$as_dirname -- "$ac_file" || 15251$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15252 X"$ac_file" : 'X\(//\)[^/]' \| \ 15253 X"$ac_file" : 'X\(//\)$' \| \ 15254 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15255$as_echo X"$ac_file" | 15256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15257 s//\1/ 15258 q 15259 } 15260 /^X\(\/\/\)[^/].*/{ 15261 s//\1/ 15262 q 15263 } 15264 /^X\(\/\/\)$/{ 15265 s//\1/ 15266 q 15267 } 15268 /^X\(\/\).*/{ 15269 s//\1/ 15270 q 15271 } 15272 s/.*/./; q'` 15273 as_dir="$ac_dir"; as_fn_mkdir_p 15274 ac_builddir=. 15275 15276case "$ac_dir" in 15277.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15278*) 15279 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15280 # A ".." for each directory in $ac_dir_suffix. 15281 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15282 case $ac_top_builddir_sub in 15283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15285 esac ;; 15286esac 15287ac_abs_top_builddir=$ac_pwd 15288ac_abs_builddir=$ac_pwd$ac_dir_suffix 15289# for backward compatibility: 15290ac_top_builddir=$ac_top_build_prefix 15291 15292case $srcdir in 15293 .) # We are building in place. 15294 ac_srcdir=. 15295 ac_top_srcdir=$ac_top_builddir_sub 15296 ac_abs_top_srcdir=$ac_pwd ;; 15297 [\\/]* | ?:[\\/]* ) # Absolute name. 15298 ac_srcdir=$srcdir$ac_dir_suffix; 15299 ac_top_srcdir=$srcdir 15300 ac_abs_top_srcdir=$srcdir ;; 15301 *) # Relative name. 15302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15303 ac_top_srcdir=$ac_top_build_prefix$srcdir 15304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15305esac 15306ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15307 15308 15309 case $ac_mode in 15310 :F) 15311 # 15312 # CONFIG_FILE 15313 # 15314 15315_ACEOF 15316 15317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15318# If the template does not know about datarootdir, expand it. 15319# FIXME: This hack should be removed a few years after 2.60. 15320ac_datarootdir_hack=; ac_datarootdir_seen= 15321ac_sed_dataroot=' 15322/datarootdir/ { 15323 p 15324 q 15325} 15326/@datadir@/p 15327/@docdir@/p 15328/@infodir@/p 15329/@localedir@/p 15330/@mandir@/p' 15331case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15332*datarootdir*) ac_datarootdir_seen=yes;; 15333*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15335$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15336_ACEOF 15337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15338 ac_datarootdir_hack=' 15339 s&@datadir@&$datadir&g 15340 s&@docdir@&$docdir&g 15341 s&@infodir@&$infodir&g 15342 s&@localedir@&$localedir&g 15343 s&@mandir@&$mandir&g 15344 s&\\\${datarootdir}&$datarootdir&g' ;; 15345esac 15346_ACEOF 15347 15348# Neutralize VPATH when `$srcdir' = `.'. 15349# Shell code in configure.ac might set extrasub. 15350# FIXME: do we really want to maintain this feature? 15351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15352ac_sed_extra="$ac_vpsub 15353$extrasub 15354_ACEOF 15355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15356:t 15357/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15358s|@configure_input@|$ac_sed_conf_input|;t t 15359s&@top_builddir@&$ac_top_builddir_sub&;t t 15360s&@top_build_prefix@&$ac_top_build_prefix&;t t 15361s&@srcdir@&$ac_srcdir&;t t 15362s&@abs_srcdir@&$ac_abs_srcdir&;t t 15363s&@top_srcdir@&$ac_top_srcdir&;t t 15364s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15365s&@builddir@&$ac_builddir&;t t 15366s&@abs_builddir@&$ac_abs_builddir&;t t 15367s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15368$ac_datarootdir_hack 15369" 15370eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15371 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15372 15373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15374 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15376 "$ac_tmp/out"`; test -z "$ac_out"; } && 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15378which seems to be undefined. Please make sure it is defined" >&5 15379$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15380which seems to be undefined. Please make sure it is defined" >&2;} 15381 15382 rm -f "$ac_tmp/stdin" 15383 case $ac_file in 15384 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15385 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15386 esac \ 15387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15388 ;; 15389 :H) 15390 # 15391 # CONFIG_HEADER 15392 # 15393 if test x"$ac_file" != x-; then 15394 { 15395 $as_echo "/* $configure_input */" \ 15396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15397 } >"$ac_tmp/config.h" \ 15398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15399 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15401$as_echo "$as_me: $ac_file is unchanged" >&6;} 15402 else 15403 rm -f "$ac_file" 15404 mv "$ac_tmp/config.h" "$ac_file" \ 15405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15406 fi 15407 else 15408 $as_echo "/* $configure_input */" \ 15409 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15410 || as_fn_error $? "could not create -" "$LINENO" 5 15411 fi 15412 ;; 15413 15414 15415 esac 15416 15417done # for ac_tag 15418 15419 15420as_fn_exit 0 15421_ACEOF 15422ac_clean_files=$ac_clean_files_save 15423 15424test $ac_write_fail = 0 || 15425 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15426 15427 15428# configure is writing to config.log, and then calls config.status. 15429# config.status does its own redirection, appending to config.log. 15430# Unfortunately, on DOS this fails, as config.log is still kept open 15431# by configure, so config.status won't be able to write to it; its 15432# output is simply discarded. So we exec the FD to /dev/null, 15433# effectively closing config.log, so it can be properly (re)opened and 15434# appended to by config.status. When coming back to configure, we 15435# need to make the FD available again. 15436if test "$no_create" != yes; then 15437 ac_cs_success=: 15438 ac_config_status_args= 15439 test "$silent" = yes && 15440 ac_config_status_args="$ac_config_status_args --quiet" 15441 exec 5>/dev/null 15442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15443 exec 5>>auto/config.log 15444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15445 # would make configure fail if this is the last instruction. 15446 $ac_cs_success || as_fn_exit 1 15447fi 15448if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15450$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15451fi 15452 15453 15454